Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.
Add this skill
npx mdskills install affaan-m/everything-claude-codeComprehensive project conventions guide with commit patterns, workflows, and code style for JavaScript
1---2name: everything-claude-code-conventions3description: Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.4---56# Everything Claude Code Conventions78> Generated from [affaan-m/everything-claude-code](https://github.com/affaan-m/everything-claude-code) on 2026-03-20910## Overview1112This skill teaches Claude the development patterns and conventions used in everything-claude-code.1314## Tech Stack1516- **Primary Language**: JavaScript17- **Architecture**: hybrid module organization18- **Test Location**: separate1920## When to Use This Skill2122Activate this skill when:23- Making changes to this repository24- Adding new features following established patterns25- Writing tests that match project conventions26- Creating commits with proper message format2728## Commit Conventions2930Follow these commit message conventions based on 500 analyzed commits.3132### Commit Style: Conventional Commits3334### Prefixes Used3536- `fix`37- `test`38- `feat`39- `docs`4041### Message Guidelines4243- Average message length: ~65 characters44- Keep first line concise and descriptive45- Use imperative mood ("Add feature" not "Added feature")464748*Commit message example*4950```text51feat(rules): add C# language support52```5354*Commit message example*5556```text57chore(deps-dev): bump flatted (#675)58```5960*Commit message example*6162```text63fix: auto-detect ECC root from plugin cache when CLAUDE_PLUGIN_ROOT is unset (#547) (#691)64```6566*Commit message example*6768```text69docs: add Antigravity setup and usage guide (#552)70```7172*Commit message example*7374```text75merge: PR #529 — feat(skills): add documentation-lookup, bun-runtime, nextjs-turbopack; feat(agents): add rust-reviewer76```7778*Commit message example*7980```text81Revert "Add Kiro IDE support (.kiro/) (#548)"82```8384*Commit message example*8586```text87Add Kiro IDE support (.kiro/) (#548)88```8990*Commit message example*9192```text93feat: add block-no-verify hook for Claude Code and Cursor (#649)94```9596## Architecture9798### Project Structure: Single Package99100This project uses **hybrid** module organization.101102### Configuration Files103104- `.github/workflows/ci.yml`105- `.github/workflows/maintenance.yml`106- `.github/workflows/monthly-metrics.yml`107- `.github/workflows/release.yml`108- `.github/workflows/reusable-release.yml`109- `.github/workflows/reusable-test.yml`110- `.github/workflows/reusable-validate.yml`111- `.opencode/package.json`112- `.opencode/tsconfig.json`113- `.prettierrc`114- `eslint.config.js`115- `package.json`116117### Guidelines118119- This project uses a hybrid organization120- Follow existing patterns when adding new code121122## Code Style123124### Language: JavaScript125126### Naming Conventions127128| Element | Convention |129|---------|------------|130| Files | camelCase |131| Functions | camelCase |132| Classes | PascalCase |133| Constants | SCREAMING_SNAKE_CASE |134135### Import Style: Relative Imports136137### Export Style: Mixed Style138139140*Preferred import style*141142```typescript143// Use relative imports144import { Button } from '../components/Button'145import { useAuth } from './hooks/useAuth'146```147148## Testing149150### Test Framework151152No specific test framework detected — use the repository's existing test patterns.153154### File Pattern: `*.test.js`155156### Test Types157158- **Unit tests**: Test individual functions and components in isolation159- **Integration tests**: Test interactions between multiple components/services160161### Coverage162163This project has coverage reporting configured. Aim for 80%+ coverage.164165166## Error Handling167168### Error Handling Style: Try-Catch Blocks169170171*Standard error handling pattern*172173```typescript174try {175 const result = await riskyOperation()176 return result177} catch (error) {178 console.error('Operation failed:', error)179 throw new Error('User-friendly message')180}181```182183## Common Workflows184185These workflows were detected from analyzing commit patterns.186187### Database Migration188189Database schema changes with migration files190191**Frequency**: ~2 times per month192193**Steps**:1941. Create migration file1952. Update schema definitions1963. Generate/update types197198**Files typically involved**:199- `**/schema.*`200- `migrations/*`201202**Example commit sequence**:203```204feat: implement --with/--without selective install flags (#679)205fix: sync catalog counts with filesystem (27 agents, 113 skills, 58 commands) (#693)206feat(rules): add Rust language rules (rebased #660) (#686)207```208209### Feature Development210211Standard feature implementation workflow212213**Frequency**: ~22 times per month214215**Steps**:2161. Add feature implementation2172. Add tests for feature2183. Update documentation219220**Files typically involved**:221- `manifests/*`222- `schemas/*`223- `**/*.test.*`224- `**/api/**`225226**Example commit sequence**:227```228feat(skills): add documentation-lookup, bun-runtime, nextjs-turbopack; feat(agents): add rust-reviewer229docs(skills): align documentation-lookup with CONTRIBUTING template; add cross-harness (Codex/Cursor) skill copies230fix: address PR review — skill template (When to use, How it works, Examples), bun.lock, next build note, rust-reviewer CI note, doc-lookup privacy/uncertainty231```232233### Add Language Rules234235Adds a new programming language to the rules system, including coding style, hooks, patterns, security, and testing guidelines.236237**Frequency**: ~2 times per month238239**Steps**:2401. Create a new directory under rules/{language}/2412. Add coding-style.md, hooks.md, patterns.md, security.md, and testing.md files with language-specific content2423. Optionally reference or link to related skills243244**Files typically involved**:245- `rules/*/coding-style.md`246- `rules/*/hooks.md`247- `rules/*/patterns.md`248- `rules/*/security.md`249- `rules/*/testing.md`250251**Example commit sequence**:252```253Create a new directory under rules/{language}/254Add coding-style.md, hooks.md, patterns.md, security.md, and testing.md files with language-specific content255Optionally reference or link to related skills256```257258### Add New Skill259260Adds a new skill to the system, documenting its workflow, triggers, and usage, often with supporting scripts.261262**Frequency**: ~4 times per month263264**Steps**:2651. Create a new directory under skills/{skill-name}/2662. Add SKILL.md with documentation (When to Use, How It Works, Examples, etc.)2673. Optionally add scripts or supporting files under skills/{skill-name}/scripts/2684. Address review feedback and iterate on documentation269270**Files typically involved**:271- `skills/*/SKILL.md`272- `skills/*/scripts/*.sh`273- `skills/*/scripts/*.js`274275**Example commit sequence**:276```277Create a new directory under skills/{skill-name}/278Add SKILL.md with documentation (When to Use, How It Works, Examples, etc.)279Optionally add scripts or supporting files under skills/{skill-name}/scripts/280Address review feedback and iterate on documentation281```282283### Add New Agent284285Adds a new agent to the system for code review, build resolution, or other automated tasks.286287**Frequency**: ~2 times per month288289**Steps**:2901. Create a new agent markdown file under agents/{agent-name}.md2912. Register the agent in AGENTS.md2923. Optionally update README.md and docs/COMMAND-AGENT-MAP.md293294**Files typically involved**:295- `agents/*.md`296- `AGENTS.md`297- `README.md`298- `docs/COMMAND-AGENT-MAP.md`299300**Example commit sequence**:301```302Create a new agent markdown file under agents/{agent-name}.md303Register the agent in AGENTS.md304Optionally update README.md and docs/COMMAND-AGENT-MAP.md305```306307### Add New Command308309Adds a new command to the system, often paired with a backing skill.310311**Frequency**: ~1 times per month312313**Steps**:3141. Create a new markdown file under commands/{command-name}.md3152. Optionally add or update a backing skill under skills/{skill-name}/SKILL.md316317**Files typically involved**:318- `commands/*.md`319- `skills/*/SKILL.md`320321**Example commit sequence**:322```323Create a new markdown file under commands/{command-name}.md324Optionally add or update a backing skill under skills/{skill-name}/SKILL.md325```326327### Sync Catalog Counts328329Synchronizes the documented counts of agents, skills, and commands in AGENTS.md and README.md with the actual repository state.330331**Frequency**: ~3 times per month332333**Steps**:3341. Update agent, skill, and command counts in AGENTS.md3352. Update the same counts in README.md (quick-start, comparison table, etc.)3363. Optionally update other documentation files337338**Files typically involved**:339- `AGENTS.md`340- `README.md`341342**Example commit sequence**:343```344Update agent, skill, and command counts in AGENTS.md345Update the same counts in README.md (quick-start, comparison table, etc.)346Optionally update other documentation files347```348349### Add Cross Harness Skill Copies350351Adds skill copies for different agent harnesses (e.g., Codex, Cursor, Antigravity) to ensure compatibility across platforms.352353**Frequency**: ~2 times per month354355**Steps**:3561. Copy or adapt SKILL.md to .agents/skills/{skill}/SKILL.md and/or .cursor/skills/{skill}/SKILL.md3572. Optionally add harness-specific openai.yaml or config files3583. Address review feedback to align with CONTRIBUTING template359360**Files typically involved**:361- `.agents/skills/*/SKILL.md`362- `.cursor/skills/*/SKILL.md`363- `.agents/skills/*/agents/openai.yaml`364365**Example commit sequence**:366```367Copy or adapt SKILL.md to .agents/skills/{skill}/SKILL.md and/or .cursor/skills/{skill}/SKILL.md368Optionally add harness-specific openai.yaml or config files369Address review feedback to align with CONTRIBUTING template370```371372### Add Or Update Hook373374Adds or updates git or bash hooks to enforce workflow, quality, or security policies.375376**Frequency**: ~1 times per month377378**Steps**:3791. Add or update hook scripts in hooks/ or scripts/hooks/3802. Register the hook in hooks/hooks.json or similar config3813. Optionally add or update tests in tests/hooks/382383**Files typically involved**:384- `hooks/*.hook`385- `hooks/hooks.json`386- `scripts/hooks/*.js`387- `tests/hooks/*.test.js`388- `.cursor/hooks.json`389390**Example commit sequence**:391```392Add or update hook scripts in hooks/ or scripts/hooks/393Register the hook in hooks/hooks.json or similar config394Optionally add or update tests in tests/hooks/395```396397### Address Review Feedback398399Addresses code review feedback by updating documentation, scripts, or configuration for clarity, correctness, or convention alignment.400401**Frequency**: ~4 times per month402403**Steps**:4041. Edit SKILL.md, agent, or command files to address reviewer comments4052. Update examples, headings, or configuration as requested4063. Iterate until all review feedback is resolved407408**Files typically involved**:409- `skills/*/SKILL.md`410- `agents/*.md`411- `commands/*.md`412- `.agents/skills/*/SKILL.md`413- `.cursor/skills/*/SKILL.md`414415**Example commit sequence**:416```417Edit SKILL.md, agent, or command files to address reviewer comments418Update examples, headings, or configuration as requested419Iterate until all review feedback is resolved420```421422423## Best Practices424425Based on analysis of the codebase, follow these practices:426427### Do428429- Use conventional commit format (feat:, fix:, etc.)430- Follow *.test.js naming pattern431- Use camelCase for file names432- Prefer mixed exports433434### Don't435436- Don't write vague commit messages437- Don't skip tests for new features438- Don't deviate from established patterns without discussion439440---441442*This skill was auto-generated by [ECC Tools](https://ecc.tools). Review and customize as needed for your team.*443
Full transparency — inspect the skill content before installing.