write-coding-standards-from-file

Generate coding standards documents by analyzing syntax patterns in source files.

3|1|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/firstsun-dev/skills --skill write-coding-standards-from-file-firstsun-dev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: write-coding-standards-from-file
Source: https://github.com/firstsun-dev/skills/tree/main/plugins/software-delivery/skills/write-coding-standards-from-file
Command: npx skills add https://github.com/firstsun-dev/skills --skill write-coding-standards-from-file-firstsun-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams often lack documented coding standards, and writing them manually from scratch is tedious. This Skill analyzes the actual syntax conventions used in your existing source files and produces a standards document that reflects how the project is really written. ## Core Features & Use Cases - Syntax-Based Analysis: Examines indentation, naming conventions, commenting style, conditionals, and function patterns from one file or an entire folder of files. - Inconsistency Detection and Fixing: Counts style variations across files, identifies minority patterns, and optionally fixes them to match the majority convention. - Flexible Output Targets: Writes to a new standards file (CONTRIBUTING.md, STYLE.md, CODING_STANDARDS.md, and more), inserts into README.md at a chosen position, or outputs directly to the prompt. - Language Style Guide References: Optionally fetches official style guides for over 30 languages including Python, JavaScript, Go, Rust, and C++ to enrich the generated standards. - Use Case: Point the Skill at your src/ folder to produce a CODING_STANDARDS.md that documents your project's real conventions, ready to share with new contributors. ## Quick Start Analyze the files in my src folder and write a coding standards document based on the conventions you find.

Frequently Asked Questions about write-coding-standards-from-file

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a coding standards document from existing code?▼

Pass a source file or folder to the Skill, and it analyzes indentation, naming, commenting, and structural patterns to produce a standards document. Multiple files are aggregated into a single dataset so the standards reflect the dominant conventions.

How to create a CONTRIBUTING.md or style guide automatically?▼

The Skill creates a new file by checking a prioritized list of names including CONTRIBUTING.md, STYLE.md, and CODING_STANDARDS.md, using the first name that does not already exist. You can also specify a custom file name directly.

Can I add coding standards to an existing README.md?▼

Yes, set the addToREADME option and choose an insertion position: beginning, middle, before the end, or best fit based on document context. The standards content is inserted at the selected location without creating a separate file.

Does it detect inconsistent code styles across files?▼

Yes, it counts style variations per category such as indentation and quote style, flags minority patterns as inconsistencies, and can either report them or automatically fix files to match the majority convention.

What languages are supported for style guide references?▼

The Skill includes fetch links for official style guides covering over 30 languages and frameworks, including Python PEP 8, Go, Rust, Java, TypeScript, C++, Ruby, Swift, SQL, and shell scripting.

What are the limitations of generating standards from code?▼

The generated standards only reflect conventions present in the analyzed files, so small or unrepresentative samples may produce incomplete rules. Reviewing and editing the output before adoption is recommended.