Skip to content
style-guide logo

Skill: style-guide

style-guide

Style guide enforcement and documentation conventions

baphled/dotopencode0installs1stars

SKILL.md

Full skill instructions

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

  1. Automate enforcement, use tools like linters and formatters to catch style issues automatically.
  2. Naming clarity, choose descriptive names for variables, functions, and files that reveal their purpose.
  3. Consistent formatting, ensure that all code looks like it was written by a single person.
  4. 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-lint with a comprehensive .golangci.yml configuration.
  • JavaScript, Use ESLint with 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 godoc style comments for exported functions.
  • JavaScript, Use JSDoc for 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.

More skills from baphled

task-tracker logo
baphled/dotopencode

task-tracker

Track progress through structured task lists with complexity scoring and token tracking

1 0
View
tdd-first logo
baphled/dotopencode

tdd-first

Enforce strict test-first discipline — no implementation code before a failing test exists

1 0
View
technical-debt logo
baphled/dotopencode

technical-debt

Identifying, documenting, and systematically managing technical debt to maintain codebase health

1 0
View
tdd-workflow logo
baphled/dotopencode

tdd-workflow

DEPRECATED - Use bdd-workflow instead

1 0
View
systems-thinker logo
baphled/dotopencode

systems-thinker

Understand complex systems, interconnections, and emergent behaviors

1 0
View
trade-off-analysis logo
baphled/dotopencode

trade-off-analysis

Systematically evaluate trade-offs when comparing alternatives

1 0
View
tool-usage-discipline logo
baphled/dotopencode

tool-usage-discipline

Use skills for domain knowledge, MCP tools over manual lookups

1 0
View
writing-style logo
baphled/dotopencode

writing-style

Personal writing voice and communication style conventions

1 0
View
token-cost-estimation logo
baphled/dotopencode

token-cost-estimation

Estimate and track token costs before work sessions - complexity, duration, resources

1 0
View
ux-design logo
baphled/dotopencode

ux-design

Intuitive user experiences in terminal applications - mental models, interaction patterns

1 0
View
skill-discovery logo
baphled/dotopencode

skill-discovery

Automatically discover/load local skills and suggest external skills based on task context

1 0
View
token-efficiency logo
baphled/dotopencode

token-efficiency

Maximise AI interaction value per token - techniques, patterns, integration with cost estimation

1 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View