Loading...
Loading...
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 skill4agent add skinnyandbald/fish-skills generate-comprehensive-style-guideWhen to use this vs:/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./setup-ai
src/services/UserService.tssrc/services/OrderService.ts| File | Stack |
|---|---|
| Node.js / JavaScript / TypeScript |
| TypeScript specifically |
| Ruby |
| Python |
| Go |
| Rust |
| PHP |
| Java / Kotlin |
| C# / .NET |
.eslintrc.eslintrc.json.eslintrc.js.prettierrc.prettierrc.json.rubocop.yml.editorconfigbiome.jsonbiome.jsoncruff.tomlpyproject.tomlCLAUDE.mdAGENTS.md.cursorrules*.service.ts*_controller.rb*.spec.js*_test.rb*.spec.ts*.test.jstest_*.pygit log --oneline -20git branch -a | head -20# 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/review-style-guide