mcpField
M
maintainable-typescript

maintainable-typescript

github.com/miguelspizzaDevelopment12109 installsUpdated 2w ago
Repository

About maintainable-typescript

A skill for maintaining and reviewing TypeScript projects through task-specific guidance on structure, types, testing, and tooling. It includes an audit workflow and recommends Fallow for code health checks.

Key features

  1. 01Task-based guidance routing
  2. 02Repository audit workflow
  3. 03Type and API design principles
  4. 04Testing and boundary practices
  5. 05Fallow code health checks

Use cases

  1. 01Review a TypeScript repository
  2. 02Remove obsolete code
  3. 03Plan module and package boundaries
  4. 04Improve tests and type design

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/miguelspizza/skills --skill maintainable-typescript

After installing, type/maintainable-typescriptin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

assets/tooling-templates/
.fallowrc.json
doctrine/abstractions/
build-deep-modules-not-shallow-abstractions.md
compose-behavior-do-not-specialize-classes.md
design-around-composable-primitives.md
keep-a-functional-core-and-imperative-shell.md
keep-schemas-minimal.md
make-builders-earn-their-keep.md
no-premature-abstractions.md
ssot-or-die.md
structure-typescript-apps-around-feature-owners.md
use-classes-for-object-apis-not-service-buckets.md
doctrine/boundaries/
assign-cache-invalidation-owners.md
boundaries-validate-internals-trust.md
error-messages-are-ux.md
log-at-boundaries-not-everywhere.md
no-defensive-catches.md
no-defensive-null-checks.md
no-type-casts.md
pass-values-across-boundaries.md
doctrine/deletion/
clean-up-what-you-touch.md
delete-fake-layers.md
delete-obsolete-code.md
edit-real-owners.md
no-backwards-compat-shims.md
doctrine/foundations/
atomic-changes.md
bounded-behavior.md
comments-say-why-not-what.md
commit-messages-describe-why.md
maintainability-equals-correctness.md
naming-is-navigation.md

Details

From the project README

Maintainable TypeScript

Use this skill when the project needs maintainability doctrine, not just local code changes.

Load Order

Do not read the whole skill directory by default.

  1. Read this file first.
  2. Load only files that match the task.
  3. If the repo matches the house stack, read stack/start-here.md.
  4. Treat doctrine/, stack/, prompts/, scripts/, and assets/tooling-templates/ as references, not required context.

Companion Skills

Use the fallow skill for Fallow config, commands, JSON output, fixes, CI gates, and result interpretation. If missing:

npx skills add https://github.com/fallow-rs/fallow/tree/main/npm/fallow/skills/fallow --skill fallow

Task Router

Audit workflow

For cleanup or review:

skill_dir="<path-to-this-skill>"
bash "$skill_dir/scripts/audit-typescript-repo.sh" .

Treat audit output as signal, not authority. Check real usage before deleting API surface or collapsing a pattern.

If the target repo is Vite+, use vp for the normal toolchain entrypoint: vp lint, vp test, vp fmt, vp pack, vp add, and vp dlx.

Defaults

  • Structure is expensive; preserve contracts, tests, and invariants.
  • Prefer deletion over shims, real owners over fake layers, and stable subsystem files over helper forests.
  • Resolve uncertainty into contracts, not adapters, defaults, optionals, spreads, or catches.
  • Prefer derived types/schemas, durable integration tests, external-boundary mocks only, and assertions on observable outcomes.
  • Prefer Fallow for dead code, duplication, dependency hygiene, health, cycles, and dependency boundaries.
  • Leave the codebase more coherent now.

Comments

Markdown supported