Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Enforces TypeScript best practices and modern patterns
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-17 | ✗→✓ | ▲ Improved | -8% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 25% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -30% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -68% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -45% | 0% |
Use this skill when:
Activated when editing .ts or .tsx files in the project.
const for variables that won't be reassignedinterface over type for object shapesany — use unknown insteadvar — use const or let@ts-ignoretypescript// Good: explicit return type export function calculateTotal(items: Item[]): number { return items.reduce((sum, item) => sum + item.price, 0); }
typescript// Good: discriminated union type Result<T> = | { success: true; data: T } | { success: false; error: Error };
tsconfig.json without explicit permissionOther measured skills in the registry, with their headline benchmark lift.