CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

typescript-best-practices

Provides TypeScript patterns for type-first development, making illegal states unrepresentable, exhaustive handling, and runtime validation. Must use when reading or writing TypeScript/JavaScript files.

1.11x
Quality

78%

Does it follow best practices?

Impact

96%

1.11x

Average score across 3 eval scenarios

SecuritybySnyk

—

The risk profile of this skill

Fix and improve this skill with Tessl

tessl review fix ./data/skills-md/0xbigboss/claude-code/typescript-best-practices/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

71%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body delivers highly actionable, executable TypeScript pattern guidance with a clear type-first workflow, and its code examples are the strongest part. Its weaknesses are ~25-30% generic best-practice content Claude already knows (Functional Patterns, Instructions) and a monolithic single-file structure that inlines advanced Zod/type-fest material a 270-line skill should offload to reference files.

Suggestions

Cut or drastically compress the Functional Patterns and Instructions sections to pattern-only bullets — drop rationale clauses like 'Hidden failures delay debugging' and generic advice (const over let, map over for) that assumes Claude lacks basic TS/JS knowledge.

Move the extended Zod runtime-validation section and the type-fest utilities catalog into references/ files (e.g. references/zod.md, references/type-utilities.md) and keep one-line pointers with a single inline example each in SKILL.md.

Add an explicit feedback loop to the Type-First workflow for the validation step — e.g., what to do when safeParse fails or boundary validation rejects data (fix schema vs. surface errors to caller).

DimensionReasoningScore

Conciseness

The type-specific material (discriminated unions, branded types, never-checks, Zod patterns) is dense and earns its tokens, but entire sections restate knowledge Claude already has — "Prefer `const` over `let`", "Use `array.map/filter/reduce` over `for` loops", "Enable `strict` mode... Strong typing catches bugs at compile time" — and most Instruction bullets carry rationale clauses ("Hidden failures delay debugging", "Defensive checks prevent runtime surprises") that could be trimmed. This matches "mostly efficient but includes some unnecessary explanation or could be tightened" rather than the minor-trimming of a 4.

3 / 5

Actionability

Guidance is fully executable with copy-paste-ready code covering the common cases: RequestState unions, branded UserId/OrderId, exhaustive switch with `never`, safeParse caller handling, ConfigSchema.parse(process.env), and schema composition via omit/partial/extend. The few undefined symbols (User, Widget, PostSchema) are unavoidable domain-type references in a types skill, not missing steps, so this fits the score-5 anchor better than the "minor gaps" of 4.

5 / 5

Workflow Clarity

The Type-First Development workflow gives a clear 4-step sequence with checkpoints present — "let the compiler guide completeness" and "Validate at boundaries - runtime checks where data enters the system" — matching "clear sequence with most checkpoints present; minor validation gaps". It is not a 5 because there is no explicit feedback-loop guidance (e.g., what to do when boundary validation or safeParse fails mid-workflow), and the Zod/config sections present patterns without sequencing them into the workflow.

4 / 5

Progressive Disclosure

The ~270-line body is a single file with no bundle references: sections are well-organized with ## /### headers, but advanced material — the ~60-line Zod section, the type-fest utilities catalog, and the extended Examples — is inlined rather than split into reference files, fitting "content that should be separate is inline". It is above a 2 because the structure is real and navigation within the file is easy, but the under-50-lines exception for scoring 5 clearly does not apply, and no one-level-deep references exist to signal a 4.

3 / 5

Total

15

/

20

Passed

Description

75%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description that clearly states what the skill provides (specific TypeScript pattern areas) and when to use it (explicit trigger clause), written in third person without fluff. The main gaps are missing file extensions/synonyms in the trigger terms and a slightly narrow when-clause.

DimensionReasoningScore

Specificity

The description lists several concrete capability areas — "type-first development, making illegal states unrepresentable, exhaustive handling, and runtime validation" — going beyond the 1-2 actions of a score-3 anchor. It falls short of comprehensive (score 5) because body topics like module structure, functional patterns, and configuration validation are unmentioned.

4 / 5

Completeness

Both halves are present and explicit: a clear "what" ("Provides TypeScript patterns for...") and an explicit trigger clause ("Must use when reading or writing TypeScript/JavaScript files"), matching the score-4 example structure. It stops short of 5 because the when-clause is a single condition that could be more expansive (no mention of .tsx/.jsx, tsconfig, or discussing/fixing TypeScript errors).

4 / 5

Trigger Term Quality

"Must use when reading or writing TypeScript/JavaScript files" supplies good natural keyword coverage ("TypeScript", "JavaScript", "files"), matching the score-4 anchor's "good keyword coverage; a few natural terms missing". It is not a 5 because file extensions (.ts, .tsx, .js) and common synonyms/variants are absent.

4 / 5

Distinctiveness Conflict Risk

The TypeScript type-system niche is distinct with clear triggers, fitting "mostly distinct; minor overlap risk with closely related skills". It is not a 5 because claiming all "JavaScript files" broadens overlap with JS/framework-focused skills (the body itself acknowledges pairing with a React skill on .tsx/.jsx work).

4 / 5

Total

16

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

NeverSight/learn-skills.dev

Path

data/skills-md/0xbigboss/claude-code/typescript-best-practices/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.