/stack-patterns:typescript-best-practicesfrom stack-patterns
Enforces TypeScript conventions for precise contracts and valid program states. Use when writing or reviewing types, state models, optional values, or untrusted boundaries.
Ships in stack-patterns. 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
codebase-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.LICENSE.txt (opens in a new tab)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 casper-studios/casper-marketplace --plugin stack-patterns10 skills in this plugin
/better-all-best-practices`better-all` conventions for dependency-aware async task graphs. Use when defining `all` or `allSettled` graphs or converting staged async work with task dependencies./drizzle-orm-best-practicesDialect-aware Drizzle ORM conventions for safe query, mutation, and transaction boundaries. Use when writing or reviewing Drizzle schemas, queries, transactions, or raw SQL./open-telemetry-best-practicesLanguage-agnostic OpenTelemetry conventions for queryable signals and explicit operational outcomes. Use when adding or reviewing spans, structured logs, attributes, or exception recording.Other plugins' skills for the same job