skills/generate-comprehensive-style-guide/SKILL.md
Deep codebase analysis to generate or regenerate STYLE_GUIDE.md with full evidence citations. Use when /setup-ai's quick pass isn't thorough enough, when conventions have drifted, or after a major refactor. Produces a 17-section style guide citing specific files as evidence.
npx skillsauth add skinnyandbald/fish-skills generate-comprehensive-style-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Perform a deep analysis of this codebase and generate (or regenerate) a STYLE_GUIDE.md file with full evidence citations for every convention.
When to use this vs
/setup-ai:/setup-aigenerates a quick-pass style guide as part of initial project setup. This skill is for when you need the thorough version — 17 sections, every convention backed by specific file citations, inconsistencies flagged for human decision. Run this after/setup-aifor more depth, or independently when conventions have drifted.
src/services/UserService.ts, src/services/OrderService.ts..."Search for dependency and config files:
| File | Stack |
|------|-------|
| package.json | Node.js / JavaScript / TypeScript |
| tsconfig.json | TypeScript specifically |
| Gemfile | Ruby |
| requirements.txt, pyproject.toml, Pipfile | Python |
| go.mod | Go |
| Cargo.toml | Rust |
| composer.json | PHP |
| pom.xml, build.gradle | Java / Kotlin |
| *.csproj, *.sln | C# / .NET |
Read the dependency file to identify: language version, framework and version, key libraries, build tools, testing framework, linter/formatter configuration.
Check for existing style/convention docs that define rules:
.eslintrc, .eslintrc.json, .eslintrc.js.prettierrc, .prettierrc.json.rubocop.yml.editorconfigbiome.json, biome.jsoncruff.toml, pyproject.toml (ruff/black sections)CLAUDE.md, AGENTS.md, .cursorrulesThese are authoritative — extract rules from them directly.
Read 10-15 representative files — sample strategically, don't try to read everything:
For each file, extract patterns for:
*.service.ts, *_controller.rb, *.spec.js, etc.From the test files:
*_test.rb, *.spec.ts, *.test.js, test_*.py)Run git log --oneline -20 to see:
Run git branch -a | head -20 to see:
Write to the project root. Use this structure:
# Coding Style Guide
> Auto-generated from codebase analysis on [date]. Review and adjust — these patterns were extracted from your existing code. Where patterns were inconsistent, the most common convention was chosen.
## Language & Formatting
[Indentation: tabs or spaces, width. Line length limit. Semicolons. Quote style. Trailing commas.]
**Evidence:** Based on [cite 2-3 representative files]
## Naming Conventions
### Files & Directories
[Pattern with real examples from the codebase]
### Variables & Functions
[camelCase / snake_case / etc. with real examples]
### Classes, Types & Interfaces
[PascalCase / etc. with real examples]
### Constants
[UPPER_SNAKE_CASE / etc.]
### Database
[Column naming (snake_case?), table naming (plural?), migration naming]
## Code Organization
### File Structure
[Standard order within a file: imports → types → constants → main logic → helpers → exports]
**Evidence:** [cite a file that exemplifies this pattern]
### Import Ordering
[Standard order: stdlib/framework → external packages → internal modules → relative imports]
[Are there path aliases? (@/ or ~/)]
## Function Patterns
[Arrow functions vs declarations. When to use each. Parameter destructuring. Return style. Async/await conventions.]
**Evidence:** [cite examples]
## Error Handling
[The standard error handling pattern — with a real code example copied from the codebase]
## Testing Standards
### File Naming
[Pattern: `*.spec.ts`, `*_test.rb`, etc.]
### Test Structure
[describe/it blocks, test() calls, class-based — with skeleton example]
### What to Test
[Unit tests for what, integration tests for what, what coverage is expected]
### Fixtures & Mocking
[How test data is set up. How external dependencies are mocked.]
## API Patterns
[Endpoint naming. Request validation. Response format (envelope? direct?). Error response format. Status code conventions.]
## Database Patterns
[Migration style. Model/schema definitions. Query conventions. Transactions.]
## Component Patterns (if frontend)
[Component file structure. Props patterns. State management. Styling approach.]
## Git Conventions
[Commit message format. Branch naming. PR description expectations.]
## Anti-Patterns — Do NOT Replicate
[Patterns found in the codebase that should NOT be followed in new code. Legacy approaches being phased out. Inconsistencies being resolved.]
/setup-ai to generate your AGENTS.md and CLAUDE.md, then it will reference STYLE_GUIDE.md automatically."/review-style-guide before PRs to automatically check new code against this style guide."development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
tools
Verify worktree plugin patches are intact after plugin updates. Checks compound-engineering and superpowers skills for Claude Code launch instructions.
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Reviews the feature you just built and adds missing test coverage. Focuses on behavior that matters — not coverage metrics. Use after completing a feature to identify untested code paths, edge cases, and risk areas.