<skill_doc>
Code Style & Discovery
π Discovery Phase (Mandatory)
Before writing any code:
- Search: Search for existing patterns using the
greptool. - Read: Read similar files to match style.
- Types: Find the TypeScript interfaces/types defined in the project.
π‘οΈ Coding Standards
- Strict TypeScript: No
any. Define interfaces. - Error Handling: Use
try/catchwith specific error logging. No silent failures. - Comments: Comment why, not what.
- Imports: Use absolute imports if project configured (check
tsconfig).
π§ͺ Verification
- Test-Driven: Create/Update tests for every logic change.
- Lint: Run linting before reporting success. </skill_doc>