/typescript-development:tighten-typescript-typesfrom typescript-development
Use when tightening annotations in existing TypeScript, removing avoidable any or assertions, improving changed-file types, or reducing compiler errors without broad refactoring.
Ships in typescript-development. 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.
None: SKILL.md is the whole skill.
Improve the smallest changed surface while preserving runtime behavior and supported consumers. Types must describe evidence, not hide uncertainty.
tsconfig, configured checks, and the task diff.any with unknown, then validate or narrow before use.satisfies to check values without discarding useful inference.Public compatibility does not require preserving any automatically. A narrower, truthful declaration may be acceptable only after compiling supported consumers and confirming the intended API contract; otherwise tighten behind the existing boundary.
Expand beyond the selected files only for a directly used declaration that prevents an honest local type, a necessary consumer fixture, or a focused regression test. Do not clean unrelated any, assertions, ignores, formatting, or legacy modules. Report pre-existing external errors separately.
Run the configured focused typecheck and tests, then required repository checks. When exported types change, emit declarations if applicable and compile a supported external consumer. Review the diff for runtime changes, public API drift, formatting churn, new suppressions, and assertions.
| Mistake | Correction |
|---|---|
Replacing any with an asserted domain type | Use unknown and validate at the boundary |
Freezing a public any without examining consumers | Test whether a truthful type is compatible |
| Fixing every nearby legacy error | Limit edits to necessary interfaces and report the rest |
| Adding generic machinery for local inference | Prefer the compiler's existing inference |
Using @ts-ignore to finish the pass | Resolve the cause or leave the uncertainty explicit |
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/dignified-typescriptUse when implementing or reviewing substantial TypeScript, designing public APIs, modeling domain state, validating runtime data, or refactoring project-scale TypeScript code./typescript-modules-packagingUse when TypeScript imports, ESM or CommonJS, module resolution, package exports, declaration emit, subpaths, project references, or published consumer compatibility are involved./typescript-project-toolingUse when configuring or maintaining a TypeScript repository, package manager, tsconfig files, linting, formatting, testing, builds, workspaces, CI, or publishing automation.Other plugins' skills for the same job
npx claudepluginhub cjthompson/claude-code-config --plugin typescript-development