/skills:maintainable-typescriptfrom skills
Cleans up, refactors, and reviews strict TypeScript repos and monorepos. Targets dead code, duplication, module ownership, and package boundaries.
Ships in skills. 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.
Apply these rules when changing or reviewing strict TypeScript code.
Read the files that match the task. For the house stack, start with stack/start-here.md.
Load doctrine/, stack/, prompts/, scripts/, and assets/tooling-templates/ as needed.
Use oxlint-maintainability to reject re-exports, type escape hatches, and internal module mocks. Review wrapper and shape warnings using its coverage map. Install with npx skills add miguelspizza/skills --skill oxlint-maintainability.
Use the fallow skill for project analysis, config, fixes, and CI gates. Install if missing:
npx skills add https://github.com/fallow-rs/fallow/tree/main/npm/fallow/skills/fallow --skill fallow
maintainability-equals-correctness, resolve-uncertainty-into-contracts, ssot-or-die, integration-first-testing, external-boundary-mocks-only, assert-observable-outcomesclean-up-what-you-touch, delete-obsolete-code, no-backwards-compat-shims, delete-fake-layers, edit-real-owners, build-deep-modules-not-shallow-abstractions, cleanup-module-rewrite, review-structural-slopstructure-typescript-apps-around-feature-owners, monorepo-package-boundaries, treat-critical-code-like-a-library, naming-is-navigation, no-re-exportsstack-overview, design-openapi-for-inference, errors-are-schema, document-fields-in-derived-zod-schemas, use-canonical-named-types, jsdoc-with-first-party-sources, no-magic-values, use-branded-scalar-typescontract-gate-synthetic-fixtures, test-ai-apps-by-artifacts-not-prose, no-type-casts, boundaries-validate-internals-trust, do-not-synchronize-state-with-useeffect, use-the-design-system-not-ad-hoc-tailwind, test-react-apps-in-real-browsers, maintainability-toolingFor cleanup or review:
skill_dir="<path-to-this-skill>"
bash "$skill_dir/scripts/audit-typescript-repo.sh" .
Check real usage before acting on audit findings.
In Vite+ repos, use vp lint, vp test, vp fmt, vp pack, vp add, and vp dlx.
README.md (opens in a new tab)doctrine/abstractions/build-deep-modules-not-shallow-abstractions.md (opens in a new tab)doctrine/abstractions/compose-behavior-do-not-specialize-classes.md (opens in a new tab)doctrine/abstractions/design-around-composable-primitives.md (opens in a new tab)doctrine/abstractions/keep-a-functional-core-and-imperative-shell.md (opens in a new tab)doctrine/abstractions/keep-schemas-minimal.md (opens in a new tab)doctrine/abstractions/make-builders-earn-their-keep.md (opens in a new tab)doctrine/abstractions/no-premature-abstractions.md (opens in a new tab)doctrine/abstractions/ssot-or-die.md (opens in a new tab)doctrine/abstractions/structure-typescript-apps-around-feature-owners.md (opens in a new tab)doctrine/abstractions/use-classes-for-object-apis-not-service-buckets.md (opens in a new tab)doctrine/boundaries/assign-cache-invalidation-owners.md (opens in a new tab)doctrine/boundaries/boundaries-validate-internals-trust.md (opens in a new tab)doctrine/boundaries/error-messages-are-ux.md (opens in a new tab)doctrine/boundaries/log-at-boundaries-not-everywhere.md (opens in a new tab)doctrine/boundaries/no-defensive-catches.md (opens in a new tab)doctrine/boundaries/no-defensive-null-checks.md (opens in a new tab)doctrine/boundaries/no-type-casts.md (opens in a new tab)doctrine/boundaries/pass-values-across-boundaries.md (opens in a new tab)doctrine/deletion/clean-up-what-you-touch.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub miguelspizza/skills --plugin skills5 skills in this plugin
/flatten-fake-layersFind and flatten "fake layer" indirection in a TypeScript codebase — functions with exactly one caller that only forward, reshape, or inject dependencies and add no fact. Runs a deterministic AST detector that flags candidates, then uses agent judgment to inline the real slop while keeping functions that do real work (type narrowing, throwing, validation, lifecycle). Use when asked to reduce over-abstraction, "un-slop" or simplify code, flatten dependency-injection ceremony, delete single-use wrappers, or clean up AI-generated indirection. Pairs with a goal/loop prompt to run iteratively across a codebase until clean./oxlint-maintainabilityInstall and extend Oxlint rules for TypeScript maintainability, including Vite+ projects. Covers re-exports, type safety, internal mocks, forwarding wrappers, and shape churn./webmcp-designerDesigns and reviews WebMCP instrumentation for existing web apps, especially SPAs. Use when adding agent-accessible tools, route maps, prompts, or WebMCP workflows to a React, Vue, Angular, or vanilla browser app, or when deciding whether WebMCP is the right fit./write-good-docsWrite, review, and restructure useful documentation with Diataxis, audience-specific README patterns, and AI-writing trope cleanup. Use when creating docs, improving READMEs, reorganizing documentation, or editing prose for clarity.Other plugins' skills for the same job