Agent skill · software engineering · github

write-coding-standards-from-file

Write a coding standards document for a project using the coding styles from the file(s) and/or folder(s) passed as arguments in the prompt.

Why this skill is useful

Generates a coding standards document based on existing files, providing specific style guidelines that the AI wouldn't reliably create on its own.

What it needs

About 8k tokens when loaded. Last updated 2026-08-07. 37,534 stars on the source repository.

What this skill does

Write Coding Standards From File 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. Rules and Configuration 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]. Configuration Variables addStandardsTest = false; addToREADME = false; addToREADMEInsertions = ["atBegin", "middle", "beforeEnd", "bestFitUsingContext"]; Default to beforeEnd. createNewFile = true; fetchStyleURL = true; findInconsistencies = true; fixInconsistencies = true; newFileName = ["CONTRIBUTING.md", "STYLE.md", "CODEOFCONDUCT.md", "CODINGSTANDARDS.md", "DEVELOPING.md", "CONTRIBUTIONGUIDE.md", "GUIDELINES.md", "PROJECTSTANDARDS.md", "BESTPRACTICES.md", "HACKING.md"]; For each file in ${newFileName}, if file does not exist, use that file name and break, else continue to next file name of ${newFileName}. outputSpecToPrompt = false; useTemplate = "verbose"; // or "v" Possible values are [["v", "verbose"], ["m", "minimal"], ["b", "best fit"], ["custom"]]. Selects one of the two example templates at the bottom of prompt file under the level two heading ## Coding Standards Templates, or use another composition that is a better fit. If custom, then apply per request. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills github/write-coding-standards-from-file

View the source on GitHub

Browse the @skills marketplace