Loading...
Loading...
Enforces the CodeBelt TypeScript and React code style guide for project structure, naming conventions, component patterns, service patterns, testing, and TypeScript rules. Use when writing, reviewing, or refactoring TypeScript or React code, creating new files or components, organizing project directories, writing tests, defining Zod schemas, or when the user mentions code style, conventions, linting, file organization, or naming patterns.
npx skill4agent add codebelt/codebelt-skills codebelt-code-style| Code Type | Location |
|---|---|
| React component | |
| API logic | |
| Reusable function | |
| React hook | |
| Third-party config | |
| Extension | Purpose |
|---|---|
| Main code ( |
| Tests |
| TypeScript types |
| Helper functions |
| Tests for utility functions |
| Zod validation schemas |
| Tests for schemas |
| Static objects and constants |
| Context | Convention | Example |
|---|---|---|
| Component folders | camelCase | |
| Component files | PascalCase | |
| Everything else | camelCase | |
| Variables/params | Descriptive (no single chars) | |
| Constants | camelCase | |
export function Component() {}components/{pages|shared|ui}/{componentName}/{ComponentName}.tsx{ComponentName}.types.ts{ComponentName}.constants.ts{ComponentName}.utils.tsservices/{provider}/{serviceName}/{serviceName}.ts{serviceName}.schemas.ts{serviceName}.constants.tshooks/use{HookName}/use{HookName}.tsuse{HookName}.test.tsutils/{utilName}/{utilName}.ts.utils.tsutils/{utilName}.test.ts