/typescript:typescript-best-practicesfrom typescript
Provides TypeScript conventions for precise contracts and valid program states. Use when writing, refactoring, or reviewing expressions, declarations, types, state models, optional values, or untrusted boundaries.
Ships in typescript. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
[!IMPORTANT] Apply the
architecture:code-styleprinciples through TypeScript's type system: treat types as precise, compiler-checked models of valid program states and boundaries, preserve inference where it carries information, and narrow uncertainty explicitly so invalid states and unhandled cases cannot silently reach runtime.
Read the references that apply to the current task before writing or reviewing TypeScript.
const enums rather than string-literal unions.as const when consumers require it rather than treating the assertion as a default.interface by default and compose it with extends for handwritten object contracts; use a Pick alias for an exact subset of an existing contract.any and unknown inside the boundary that receives them so neither can escape to callers or domain state.!.void 0 only where an undefined value must be present.typeof guards before required calls, or preserve absence in the return or state contract when it is expected.noUncheckedIndexedAccess preserves possible absence.agents/openai.yaml (opens in a new tab)references/const-enums.md (opens in a new tab)references/escape-hatches.md (opens in a new tab)references/exhaustive-decisions.md (opens in a new tab)references/indexed-access-and-destructuring.md (opens in a new tab)references/inference-over-annotation.md (opens in a new tab)references/interfaces-and-types.md (opens in a new tab)references/literal-const-assertions.md (opens in a new tab)references/literal-union-inference.md (opens in a new tab)references/no-fabricated-defaults.md (opens in a new tab)references/non-null-assertions.md (opens in a new tab)references/optional-arguments.md (opens in a new tab)references/optional-value-narrowing.md (opens in a new tab)references/regex-capture-groups.md (opens in a new tab)references/structural-conformance.md (opens in a new tab)references/unchecked-assertions.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bastidood/skills --plugin typescript4 skills in this plugin
/better-all-best-practices`better-all` conventions for dependency-aware async task graphs that replace sequential `Promise.all` and `Promise.allSettled` batches. Use when defining, reviewing, or converting async work with task dependencies./valibot-best-practicesValibot conventions for owned wire contracts and explicit validation outcomes. Use when defining, debugging, or reviewing schemas or parsing untrusted data./zod-best-practicesZod v4 conventions for owned wire contracts and explicit validation outcomes. Use when defining, debugging, or reviewing schemas or parsing untrusted data.Other plugins' skills for the same job