phase-2-convention
Skill69 starsChanged 8 months agoApache-2.0View on GitHub
Phase 2: Coding Conventions and Naming Rules. Establish consistent coding standards, file naming, and project structure. Next: $phase-3-mockup. Triggers: convention, coding standard, naming rule, style guide, lint, 코딩 컨벤션, 네이밍 규칙, 코드 스타일, コーディング規約, 命名規則, 编码规范, 命名规则, convención de código, convention de codage, Kodierkonvention Do NOT use for: data modeling (use $phase-1-schema), UI design (use $phase-3-mockup).
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Git Commit Conventions: - Commit message format
- Distinctive: line 116
When conventions are established, proceed to $phase-3-mockup for UI/UX design.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Phase 2: Coding Conventions
Establish coding standards before writing application code.
Purpose
Phase 2 sets the rules everyone (human and AI) follows. Consistent conventions prevent confusion and reduce code review friction.
Actions
| Action | Description | Example |
start | Begin Phase 2 | $phase-2-convention start |
generate | Generate convention doc | $phase-2-convention generate |
lint | Check convention compliance | $phase-2-convention lint |
Deliverables
- Convention Document -
docs/01-plan/convention.md - ESLint/Prettier Config - Automated enforcement
- File Naming Rules - Directory and file naming patterns
- Component Naming Rules - UI component conventions
- Git Commit Conventions - Commit message format
Process
Step 1: Language & Framework Conventions
## TypeScript Conventions
- Strict mode enabled
- No `any` type (use `unknown` if needed)
- Interfaces over Types for object shapes
- Enum for fixed value sets
- Async/await over .then() chainsStep 2: Naming Rules
| Element | Convention | Example |
| Files (components) | PascalCase | UserProfile.tsx |
| Files (utilities) | camelCase | formatDate.ts |
| Files (styles) | kebab-case | user-profile.module.css |
| Variables | camelCase | userName, isActive |
| Constants | UPPER_SNAKE | MAX_RETRY_COUNT |
| Types/Interfaces | PascalCase | UserProfile, ApiResponse |
| Hooks | camelCase with use | useAuth, useQuery |
| Components | PascalCase | UserCard, NavBar |
| API routes | kebab-case | /api/user-profile |
| Database | snake_case | user_profile, created_at |
Step 3: Directory Structure Rules
- Group by feature, not by type
- Max 3 levels deep
- index.ts for barrel exports
- tests/ next to source files
Step 4: Git Conventions
<type>(<scope>): <description>
Types: feat, fix, docs, style, refactor, test, chore
Scope: component or module name
Description: imperative mood, lowercase, no period
Examples:
- feat(auth): add social login support
- fix(api): handle null response from user endpointStep 5: Code Style Enforcement
{
"extends": ["next/core-web-vitals", "prettier"],
"rules": {
"no-console": "warn",
"no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "error"
}
}Convention Patterns
See references/naming-conventions.md for detailed patterns.
Output Location
docs/01-plan/
├── convention.md # Full convention document
project/
├── .eslintrc.json # ESLint config
├── .prettierrc # Prettier config
└── .editorconfig # Editor configNext Phase
When conventions are established, proceed to $phase-3-mockup for UI/UX design.
Common Mistakes
| Mistake | Solution |
| No automated enforcement | Set up ESLint + Prettier from day 1 |
| Too many rules | Start minimal, add rules as needed |
| Inconsistent naming | Use a naming decision table |
| No commit conventions | Use commitlint with husky |
| Mixing conventions | One language = one convention set |
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- ww-w-ai/bkit-claude-code★ 605same name
- popup-studio-ai/bkit-claude-code★ 601same name
- ww-w-ai/bkit-gemini★ 66same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bkend-authSkill
- bkend-cookbookSkill
- bkend-dataSkill
- bkend-quickstartSkill
- bkend-storageSkill
- bkit-rulesSkill
- bkit-templatesSkill
- code-reviewSkill
- codex-learningSkill
- desktop-appSkill
- development-pipelineSkill
- dynamicSkill
- enterpriseSkill
- mobile-appSkill
- pdcaSkill
- phase-1-schemaSkill
- phase-3-mockupSkill
- phase-4-apiSkill
- phase-5-design-systemSkill
- phase-6-ui-integrationSkill
- phase-7-seo-securitySkill
- phase-8-reviewSkill
- phase-9-deploymentSkill
- plan-plusSkill
- starterSkill
- zero-script-qaSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

