Agent skill
style-guide
Style guide enforcement and documentation conventions
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/style-guide-baphled-dotopencode
SKILL.md
Skill: style-guide
What I do
I help you maintain a consistent and readable codebase by enforcing coding standards and documentation conventions. I focus on making the code easy for any team member to understand and modify. I ensure that your style guide is a living document that improves the quality of every commit.
When to use me
- When you're setting up a new project and defining its coding standards.
- When you're configuring linters or formatting tools.
- When you're reviewing code for naming and formatting consistency.
- When you're writing documentation or comments.
Core principles
- Automate enforcement, use tools like linters and formatters to catch style issues automatically.
- Naming clarity, choose descriptive names for variables, functions, and files that reveal their purpose.
- Consistent formatting, ensure that all code looks like it was written by a single person.
- Purposeful comments, write comments that explain the "why" rather than the "what".
Patterns & examples
Linter configuration
Use industry-standard tools for automated checks.
- Go, Use
golangci-lintwith a comprehensive.golangci.ymlconfiguration. - JavaScript, Use
ESLintwith a shared config like Airbnb or Standard.
Naming conventions
Follow language-specific idioms.
- Go, Use camelCase for internal symbols and PascalCase for exported symbols. Keep names concise.
- JavaScript, Use camelCase for variables and functions, PascalCase for classes and components.
Comment style
Use standard formats for automated documentation.
- Go, Use
godocstyle comments for exported functions. - JavaScript, Use
JSDocfor providing type and purpose information in untyped files.
Import ordering
Organise imports to reduce noise.
- Pattern, Group standard library imports, then third-party libraries, then internal modules. Separate groups with a blank line.
Anti-patterns to avoid
- ❌ Style disagreements over logic, spending too much time arguing about trivial style details instead of meaningful code improvements.
- ❌ Inconsistent names, using multiple naming patterns for the same concept across the project.
- ❌ Useless comments, comments that just restate what the code is doing without providing context.
- ❌ Ignoring linter warnings, allowing linter errors to accumulate until they are ignored by everyone.
KB Reference
~/vaults/baphled/3. Resources/Knowledge Base/AI Development System/Skills/Code-Quality/Style Guide.md
Related skills
clean-code, for broader coding best practices.static-analysis, for automated quality checks.documentation-writing, for better comments and guides.writing-style, for a consistent tone in docs.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?