Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Writes, reviews, refactors TypeScript per conventions: branded types, discriminated unions, ts-pattern, JSDoc on exports, kebab-case files.
52% 68%+16 ptsof test cases passed
Passed 17 of 25 test cases with the skill, and 13 of 25 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Write, review, and refactor TypeScript code to follow battle-tested conventions: object-arg parameters, JSDoc on exports, discriminated unions for variants, branded types for IDs, ts-pattern for multi-branch logic, and exports-first file structure.
| Element | Convention | Example |
|---|---|---|
| Files | kebab-case.ts | user-service.ts, auth-types.ts |
| Variables | camelCase | userId, isAuthenticated |
| Functions | camelCase (verbs) | createUser, parseHeaders |
| Types/interfaces | PascalCase | User, CreateUserParams |
| Constants | SCREAMING_SNAKE_CASE | MAX_RETRIES = 3 |
| Const objects | SCREAMING_SNAKE_CASE keys with as const | GITHUB_EVENTS = { PUSH: 'push' } as const |
Object properties: prefer nested when properties form a logical group; flat for standalone values.
Top-to-bottom order in every .ts file:
@pkg/*, relative — blank line between groups)Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.