Analyze existing code files to automatically generate a project coding standards document.
Works with
Extracts syntax patterns (indentation, naming conventions, commenting style, braces, line length) from one or more files or entire folders to establish baseline standards
Detects and optionally fixes inconsistencies across files, flagging deviations from the majority pattern in each category
Outputs standards to a new file (CONTRIBUTING.md, STYLE.md, CODING_STANDARDS.md, etc.), README.md insert
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionwrite-coding-standards-from-fileExecute the skills CLI command in your project's root directory to begin installation:
Fetches write-coding-standards-from-file from github/awesome-copilot and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate write-coding-standards-from-file. Access via /write-coding-standards-from-file in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
28.7K
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
28.7K
stars
Use the existing syntax of the file(s) to establish the standards and style guides for the project. If more than one file or a folder is passed, loop through each file or files in the folder, appending the file's data to temporary memory or a file, then when complete use temporary data as a single instance; as if it were the file name to base the standards and style guideline on.
Below is a set of quasi-configuration boolean and string[] variables. Conditions for handling true, or other values for each variable are under the level two heading ## Variable and Parameter Configuration Conditions.
Parameters for the prompt have a text definition. There is one required parameter ${fileName}, and several optional parameters ${folderName}, ${instructions}, and any [configVariableAsParameter].
${newFileName}, if file does not exist, use that file name and break, else continue to next file name of ${newFileName}.[["v", "verbose"], ["m", "minimal"], ["b", "best fit"], ["custom"]].## Coding Standards Templates, or use another composition that is a better fit.If any of the variable names are passed to prompt as-is, or as a similar but clearly related text value, then override the default variable value with the value passed to prompt.
${useTemplate} default. Values are [["v", "verbose"], ["m", "minimal"], ["b", "best fit"]].${fileName}.length > 1 || ${folderName} != undefined${fixInconsistencies} to false.${addToREADME} == trueREADME.md instead of outputting to the prompt or creating a new file.${createNewFile} and ${outputSpecToPrompt} to false.${addToREADMEInsertions} == "atBegin"${addToREADME} is true, then insert the coding standards data at the beginning of the README.md file after the title.${addToREADMEInsertions} == "middle"${addToREADME} is true, then insert the coding standards data at the middle of the README.md file, changing the standards title heading to match that of the README.md composition.${addToREADMEInsertions} == "beforeEnd"${addToREADME} is true, then insert the coding standards data at the end of the README.md file, inserting a new line after the last character, then inserting the data on a new line.${addToREADMEInsertions} == "bestFitUsingContext"${addToREADME} is true, then insert the coding standards data at the best fitting line of the README.md file in regards to the context of the README.md composition and flow of data.${addStandardsTest} == true${createNewFile} == true${newFileName}.${outputSpecToPrompt} and ${addToREADME} to false.${fetchStyleURL} == true### Fetch Links as context for creating standards, specifications, and styling data for the new file, prompt, or README.md.### Fetch Links, run #fetch ${item}.${findInconsistencies} == true' or " for strings, etc., and categorize.${fixInconsistencies}, either edit and fix the low count categories to match the majority, or output to prompt inconsistencies stored in temporary memory.${fixInconsistencies} == truetypeof ${newFileName} == "string"string, create a new file using the value from ${newFileName}.typeof ${newFileName} != "string"string, but instead an object or an array, create a new file using a value from ${newFileName} by applying this rule:
${newFileName}, if file does not exist, use that file name and break, else continue to the next.${outputSpecToPrompt} == true${createNewFile} and ${addToREADME} to false.${useTemplate} == "v" || ${useTemplate} == "verbose"### "v", "verbose" as guiding template when composing the data for coding standards.${useTemplate} == "m" || ${useTemplate} == "minimal"### "m", "minimal" as guiding template when composing the data for coding standards.${useTemplate} == "b" || ${useTemplate} == "best"### "v", "verbose" or ### "m", "minimal", depending on the data extracted from ${fileName}, and use the best fit as guiding template when composing the data for coding standards.${useTemplate} == "custom" || ${useTemplate} == "<ANY_NAME>"${fetchStyleURL} == trueDepending on the programming language, for each link in list below, run #fetch (URL), if programming language is ${fileName} == [<Language> Style Guide].
"m", "minimal" ```markdown
## 1. Introduction
* **Purpose:** Briefly explain why the coding standards are being established (e.g., to improve code quality, maintainability, and team collaboration).
* **Scope:** Define which languages, projects, or modules this specification applies to.
## 2. Naming Conventions
* **Variables:** `camelCase`
* **Functions/Methods:** `PascalCase` or `camelCase`.
* **Classes/Structs:** `PascalCase`.
* **Constants:** `UPPER_SNAKE_CASE`.
## 3. Formatting and Style
* **Indentation:** Use 4 spaces per indent (or tabs).
* **Line Length:** Limit lines to a maximum of 80 or 120 characters.
* **Braces:** Use the "K&R" style (opening brace on the same line) or the "Allman" style (opening brace on a new line).
* **Blank Lines:** Specify how many blank lines to use for separating logical blocks of code.
## 4. Commenting
* **Docstrings/Function Comments:** Describe the function's purpose, parameters, and return values.
* **Inline Comments:** Explain complex or non-obvious logic.
* **File Headers:** Specify what information should be included in a file header, such as author, date, and file description.
## 5. Error Handling
* **General:** How to handle and log errors.
* **Specifics:** Which exception types to use, and what information to include in error messages.
## 6. Best Practices and Anti-Patterns
* **General:** List common anti-patterns to avoid (e.g., global variables, magic numbers).
* **Language-specific:** Specific recommendations based on the project's programming language.
## 7. Examples
* Provide a small code example demonstrating the correct application of the rules.
* Provide a small code example of an incorrect implementation and how to fix it.
## 8. Contribution and Enforcement
* Explain how the standards are to be enforced (e.g., via code reviews).
* Provide a guide for contributing to the standards document itself.
```
"v", verbose" ```markdown
# Style Guide
This document defines the style and conventions used in this project.
All contributions should follow these rules unless otherwise noted.
## 1. General Code Style
- Favor clarity over brevity.
- Keep functions and methods small and focused.
- Avoid repeating logic; prefer shared helpers/utilities.
- Remove unused variables, imports, code paths, and files.
## 2. Naming Conventions
Use descriptive names. Avoid abbreviations unless well-known.
| Item | Convention | Example |
|-----------------|----------------------|--------------------|
| Variables | `lower_snake_case` | `buffer_size` |
| Functions | `lower_snake_case()` | `read_file()` |
| Constants | `UPPER_SNAKE_CASE` | `MAX_RETRIES` |
| Types/Structs | `PascalCase` | `FileHeader` |
| File Names | `lower_snake_case` | `file_reader.c` |
## 3. Formatting Rules
- Indentation: **4 spaces**
- Line length: **max 100 characters**
- Encoding: **UTF-8**, no BOM
- End files with a newline
### Braces (example in C, adjust for your language)
```c
if (condition) {
do_something();
} else {
do_something_else();
}
```
### Spacing
- One space after keywords: `if (x)`, not `if(x)`
- One blank line between top-level functions
## 4. Comments & Documentation
- Explain *why*, not *what*, unless intent is unclear.
- Keep comments up-to-date as code changes.
- Public functions should include a short description of purpose and parameters.
Recommended tags:
```text
TODO: follow-up work
FIXME: known incorrect behavior
NOTE: non-obvious design decision
```
## 5. Error Handling
- Handle error conditions explicitly.
- Avoid silent failures; either return errors or log them appropriately.
- Clean up resources (files, memory, handles) before returning on failure.
## 6. Commit & Review Practices
### Commits
- One logical change per commit.
- Write clear commit messages:
```text
Short summary (max ~50 chars)
Optional longer explanation of context and rationale.
```
### Reviews
- Keep pull requests reasonably small.
- Be respectful and constructive in review discussions.
- Address requested changes or explain if you disagree.
## 7. Tests
- Write tests for new functionality.
- Tests should be deterministic (no randomness without seeding).
- Prefer readable test cases over complex test abstraction.
## 8. Changes to This Guide
Style evolves.
Propose improvements by opening an issue or sending a patch updating this document.
```
Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
github/awesome-copilot
github/awesome-copilot
mattpocock/skills
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
write-coding-standards-from-file has been reliable in day-to-day use. Documentation quality is above average for community skills.
write-coding-standards-from-file reduced setup friction for our internal harness; good balance of opinion and flexibility.
Keeps context tight: write-coding-standards-from-file is the kind of skill you can hand to a new teammate without a long onboarding doc.
write-coding-standards-from-file is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
I recommend write-coding-standards-from-file for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
We added write-coding-standards-from-file from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
write-coding-standards-from-file fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Useful defaults in write-coding-standards-from-file — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Solid pick for teams standardizing on skills: write-coding-standards-from-file is focused, and the summary matches what you get after install.
Registry listing for write-coding-standards-from-file matched our evaluation — installs cleanly and behaves as described in the markdown.
showing 1-10 of 47