templates/template-github-review-agent/workspace/skills/code-standards/references/style-guide.md
| Element | Convention | Example |
|---|---|---|
| Variables & Functions | camelCase | getUserName, isActive |
| Constants | UPPER_SNAKE_CASE | MAX_RETRIES, API_BASE_URL |
| Classes & Types | PascalCase | UserService, PullRequestData |
| Files | kebab-case | user-service.ts, pr-review.ts |
| Booleans | is/has/should prefix | isValid, hasPermission, shouldRetry |
| Event handlers | handle/on prefix | handleClick, onSubmit |
Order sections within a file:
// 1. Node built-ins
import { resolve } from 'node:path';
// 2. External packages
import { z } from 'zod';
// 3. Internal/project imports
import { myUtil } from '@/utils';
// 4. Relative imports
import { helper } from './helper';
Error// increment counter → Good: // Retry up to 3 times to handle transient network failures