Install any skill in seconds. Free to start, no credit card required.
Get Started Free →rohitg00/typescript-best-practices
Enforces TypeScript best practices and modern patterns
Passed 17 of 23 test cases with the skill, and 16 of 23 without it.
1 fixed16 passed either way6 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
Conduct a code review on this pull request snippet and state required changes: ```typescript export function processInput(data: any) { let factor = 2; return data * factor; } ```
| Checked | Without skill | With skill |
|---|---|---|
| Requires replacing `any` with `unknown`. | Missed | Passed |
| Requires replacing `let factor` with `const factor`. | Passed | Passed |
| Requires adding an explicit return type annotation to `processInput`. | Passed | Passed |
The instructions your model reads when the skill loads.
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-ignore// Good: explicit return type
export function calculateTotal(items: Item[]): number {
return items.reduce((sum, item) => sum + item.price, 0);
}
// Good: discriminated union
type Result<T> =
| { success: true; data: T }
| { success: false; error: Error };
test cases passed, vs 16 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.