| name | conventions-skill |
| description | Naming patterns, formatting rules, import order, and module design standards for modern software codebases. |
| hints | ["Inspect project root configuration files (e.g. .prettierrc, eslint.config.js) to align with existing styling tools.","Check existing project files for naming patterns and module architecture styles.","Follow kebab-case for system files and PascalCase for UI components (e.g. React components).","Keep functions focused and under 50 lines; extract complex logic into small, reusable helpers.","Eliminate console.log statements before committing, substituting appropriate logging utilities."] |
Coding Conventions Skill
Overview
This skill ensures all new code written in the codebase matches existing style and patterns. Load this before writing new files, adding features, or conducting code reviews.
Workflow
Required Checks
When to Use
- Use when creating new modules, adding endpoints, writing frontend components, or conducting local codebase cleanups and refactoring.
- NOT for simple documentation-only changes or config modifications.
Common Rationalizations
| Rationalization | Reality |
|---|
| I'll format the code manually later. | Automated formatting ensures clean git diffs and prevents formatting noise. |
| It's just a single console.log for quick debugging. | Forgotten debug logs clutter runtime output in production and create noise. |
Red Flags
- Committing code with generic
console.log statements instead of proper logging mechanisms.
- Functions exceeding 50-60 lines without being split into cohesive helpers.
- Inconsistent file naming conventions (e.g. mixing
camelCase and kebab-case filenames in the same folder).
Verification
After completing the skill, confirm: