Agent skill

Maintainability Review

by pmndrs in pmndrs/glyph

Audit and improve repository code milestone by milestone for correctness, clarity, local reasoning, DRY design, explicit state modeling, panic resistance, and trustworthy TypeScript boundaries.

MITAuto-check passedDevelopment

Install Maintainability Review

skills CLI
$ npx skills add pmndrs/glyph --skill maintainability-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pmndrs/glyph maintainability-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pmndrs/glyph.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/maintainability-review .claude/skills/maintainability-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
maintainability-review
GitHub stars
395
Token cost
~1.7k tokens
SKILL.md length
840 words
Files
5 (incl. references)
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Audit and improve repository code milestone by milestone for correctness, clarity, local reasoning, DRY design, explicit state modeling, panic resistance, and trustworthy TypeScript boundaries.

  • Works in 8 steps: Establish the baseline → Audit in parallel → Reconcile before editing → …
  • Deliberate cleanup passes
  • SKILL.md covers 1. Establish the baseline, 2. Audit in parallel, 3. Reconcile before editing and 4. Implement bounded changes, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Maintainability Review is an agent skill from pmndrs/glyph. Audit and improve repository code milestone by milestone for correctness, clarity, local reasoning, DRY design, explicit state modeling, panic resistance, and trustworthy TypeScript boundaries. Use for deliberate cleanup passes, pre-release maintainability reviews, agent-assisted refactors, or requests invoking Jane Street-style algebraic data types, Rust newtypes, TypeScript discriminated unions, type guards, or evidence-backed simplification without public API churn.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `agents/openai.yaml`, `references/complexity-and-type-integrity.md` and `references/review-rubric.md`).

It sits in Development, covering Project management and Refactoring. It works with TypeScript and Rust. The repository describes itself as: ♠️ A typography engine for web graphics. The licence is MIT.

When your agent uses it

  • Deliberate cleanup passes
  • Pre-release maintainability reviews
  • Agent-assisted refactors
  • Requests invoking Jane Street-style algebraic data types

Example prompts

  • “/maintainability-review”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Establish the baseline
  2. Audit in parallel
  3. Reconcile before editing
  4. Implement bounded changes
  5. Review every delegated diff
  6. Verify from narrow to broad
  7. Keep knowledge and history current
  8. Report the result

What it can do on your machine

Read from SKILL.md and the folder at commit b6ec800. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Maintainability Review loads about 1.7k tokens when it runs, and up to ~9.6k if it reads all its reference files. Until then it costs about 124 tokens; SKILL.md has 840 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~124
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pmndrs/glyph at commit b6ec800, republished under its MIT licence (© pmndrs). 840 words, ~1,714 tokens.

Download SKILL.mdSave it as .claude/skills/maintainability-review/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
maintainability-review
description
Audit and improve repository code milestone by milestone for correctness, clarity, local reasoning, DRY design, explicit state modeling, panic resistance, and trustworthy TypeScript boundaries. Use for deliberate cleanup passes, pre-release maintainability reviews, agent-assisted refactors, or requests invoking Jane Street-style algebraic data types, Rust newtypes, TypeScript discriminated unions, type guards, or evidence-backed simplification without public API churn.

Maintainability Review

Run a two-phase, evidence-led review. Preserve behavior and public boundaries unless correctness, measured performance, or a seriously misleading name provides strong contrary evidence.

Read the canonical engineering house style and the review rubric before auditing or changing code. The engineering standard owns durable code rules; this skill owns the review procedure. Do not restate the standard in findings, plans, or package documentation.

When a review includes complexity ceilings, metric-driven refactoring, or type-erasure/inference concerns, also read the complexity and type-integrity guide. It defines the repository thresholds, measurement limits, anti-gaming rules, and current evidence-led refactor candidates.

When a review adds, removes, consolidates, or evaluates tests, also read the test portfolio guide. It defines how to assign one authoritative test to each product invariant without deleting focused trust-boundary, failure, type-contract, or hot-path evidence.

1. Establish the baseline

  1. Read repository instructions, canonical plans, package knowledge, ADRs, and recent change logs.
  2. Inspect the worktree. Preserve unrelated user changes.
  3. Record the milestone/package scope, public API surface, existing tests, generated artifacts, and baseline check results.
  4. Treat regenerated goldens as evidence only when an intentional generator change explains them. Never regenerate a golden merely to make a failure disappear.

2. Audit in parallel

When the user requests subagents or parallel review, divide work by milestone or independently testable package boundary. Make this phase read-only.

Give every reviewer the rubric, public-API constraint, and exact scope. Require each finding to include:

  • severity and concrete failure mode;
  • exact file and symbol;
  • evidence from code or tests;
  • smallest credible correction;
  • tests that would distinguish the correction from the current behavior;
  • explicit clean findings for areas that do not need change.

Do not accept “more abstraction,” “more types,” “split the file,” or “deduplicate” as findings without a demonstrated reasoning, correctness, or maintenance benefit.

3. Reconcile before editing

Classify every validation finding with the engineering standard's value-authority matrix before accepting it. A module, Worker, language, or Wasm crossing is not itself a trust boundary. Confirm that a production caller can actually author the rejected value; a test-only import of an internal function does not make that state reachable.

Classify each finding as:

  • accept — a correctness, safety, determinism, performance, or material clarity problem;
  • defer — valid but outside the current milestone or lacking enough evidence;
  • reject — taste-only churn, speculative generalization, blanket newtyping, public-API disruption, or duplication whose removal would couple unrelated concepts.

Prefer the smallest change that restores a clear invariant. Keep domain vocabulary explicit and understandable from the current file.

4. Implement bounded changes

When the user requests implementation agents, assign accepted findings in non-overlapping slices and match agent capability to difficulty. Require no commits from subagents; the integrating agent owns review and commits.

Apply the engineering standard to every accepted finding. Begin with a deterministic regression that distinguishes the failure from the intended invariant when behavior changes. Preserve public signatures unless the reconciled evidence justifies a change.

For validation-to-test cleanup, use a narrow loop: remove one redundant package-owned runtime check, add or strengthen the producer-side unit/property/ABI/product proof, run that focused test, then continue. Do not replace the deleted guard with another check at a later internal layer. Reject negative tests that forge values no production path can supply.

Show full SKILL.md (310 more words)Show less

5. Review every delegated diff

Never accept an agent summary as proof. Inspect the diff and trace ownership, failure, cancellation, ordering, cleanup, and overflow paths yourself. Look for newly introduced casts, stale state, partial publication, hidden allocation, forged-handle behavior, and test assertions that only restate the implementation.

Send a bounded correction back to the implementation agent when its design remains unsafe or incomplete. Avoid layering a second workaround over the first.

6. Verify from narrow to broad

Run, in order:

  1. formatter and static type checks for touched files;
  2. focused unit and regression tests;
  3. integration and deterministic fuzz-smoke tests;
  4. strict Rust linting for touched crates and targets;
  5. product-level end-to-end or live GPU tests when the changed behavior reaches a real product;
  6. the repository's full check when practical;
  7. generated-contract, size, documentation, and knowledge-bundle checks.

Use structural assertions and externally derived invariants. Do not use timers, retries, or sleeps to hide races. If a binary fingerprint changes, prove whether only the generator changed or the produced artifact changed before updating the recorded fingerprint.

7. Keep knowledge and history current

Update canonical plans and package knowledge in place. Prefer checkboxes or explicit status cells over shadow plans. Link to the engineering standard instead of copying it. Record accepted changes, rejected tempting alternatives, residual limitations, and verification evidence in the repository's established log format.

Refresh OKF provenance/digests after the final source changes, then validate the bundle. Keep package explanation durable; leave line-level mechanics in code comments only when they explain a non-obvious invariant.

Create small conventional commits whose scope matches one coherent invariant. Run the relevant checks before each commit and finish with a clean worktree.

8. Report the result

Lead with outcomes. List accepted improvements, deliberate non-changes, public API impact, verification, residual risks, documentation updates, and commit identifiers. State plainly when a live/manual lane was not run.

© pmndrs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in .agents/skills/maintainability-review of pmndrs/glyph.

  • SKILL.md
  • agents/openai.yaml
  • references/complexity-and-type-integrity.md
  • references/review-rubric.md
  • references/test-portfolio.md

Open the folder on GitHubat commit b6ec800

Compare with similar skills

Maintainability Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Maintainability Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Maintainability Review this skillpmndrs/glyph395—~1.7kAutomated safety check: PassMIT
Worklog Designregisx001/Worklog261—~3.3kAutomated safety check: PassMIT
Coding Agentmastra-ai/mastra29k—~2.3kAutomated safety check: PassCustom licence
Rust Architectsergigp/yarrtube133—~6.1kAutomated safety check: PassMIT
Code RefinerMathews-Tom/armory328—~3.1kAutomated safety check: PassMIT
Docstring Generatorespennilsen/pi122—~1.6kAutomated safety check: PassMIT

Similar skills

  • Worklog Design

    regisx001/Worklog

    Design and UI skill for the Worklog desktop project manager.

    261 GitHub stars~3.3k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Coding Agent

    mastra-ai/mastra

    Authoring playbook for building agents that write, edit, review, or refactor code.

    29k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Rust Architect

    sergigp/yarrtube

    Architecture, naming, and testing conventions guidelines for architecting Rust codebases.

    133 GitHub stars~6.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Code Refiner

    Mathews-Tom/armory

    Deep code simplification and refactoring preserving behavior across Python, Go, TypeScript, Rust.

    328 GitHub stars~3.1k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Docstring Generator

    espennilsen/pi

    Generate and update language-idiomatic doc comments for TypeScript (TSDoc/JSDoc) and Rust (Rustdoc).

    122 GitHub stars~1.6k tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Create Release Checklist

    software-mansion/smelter

    Generate a GitHub release-checklist issue for a full (non-RC) release of the Smelter server and/or the TypeScript SDK.

    734 GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check: notes

More from pmndrs/glyph

All 8 skills in this repo
  • Codemod

    pmndrs/glyph

    Author, archive, apply, and verify TypeScript codemods with ts-morph for APIs that have reached the remote default branch or external users.

    395 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Create, migrate, inspect, query, validate, or maintain Open Knowledge Format v0.2 bundles made from linked Markdown concepts with YAML provenance.

    395 GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Tsl

    pmndrs/glyph

    Implement, migrate, review, debug, or verify Three.js Shading Language (TSL) materials, node graphs, WebGPU compute work, and post-processing.

    395 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Diataxis Docs

    pmndrs/glyph

    Design, classify, write, audit, or restructure technical documentation with the Diátaxis framework.

    395 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Evidence First

    pmndrs/glyph

    Shape human-facing engineering communication—including chat updates and final answers, reports, reviews, handoffs, debugging or benchmark summaries, PR and issue prose, READMEs, and technical…

    395 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Gh Stack

    pmndrs/glyph

    Manage dependent branches and pull requests with the gh-stack GitHub CLI extension.

    395 GitHub stars~1.4k tokensUpdated today
    Auto-check passed

Works with

Questions about Maintainability Review

What does Maintainability Review do?

Audit and improve repository code milestone by milestone for correctness, clarity, local reasoning, DRY design, explicit state modeling, panic resistance, and trustworthy TypeScript boundaries. Maintainability Review is an agent skill from pmndrs/glyph. Audit and improve repository code milestone by milestone for correctness, clarity, local reasoning, DRY design, explicit state modeling, panic resistance, and trustworthy TypeScript boundaries.

When should I use Maintainability Review?

Maintainability Review fits situations like: deliberate cleanup passes; pre-release maintainability reviews; agent-assisted refactors; requests invoking Jane Street-style algebraic data types.

How do I install Maintainability Review in Claude Code?

Run `npx skills add pmndrs/glyph --skill maintainability-review -a claude-code`. Or copy the skill folder (.agents/skills/maintainability-review in pmndrs/glyph) into .claude/skills/maintainability-review in your project. Claude Code loads it when a task matches its description.

How do I install Maintainability Review in Codex?

Run `npx skills add pmndrs/glyph --skill maintainability-review -a codex`. Or copy the skill folder (.agents/skills/maintainability-review in pmndrs/glyph) into .agents/skills/maintainability-review in your project. Codex loads it when a task matches its description.

Can I use Maintainability Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pmndrs/glyph --skill maintainability-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/maintainability-review, .gemini/skills/maintainability-review, .github/skills/maintainability-review and .opencode/skills/maintainability-review in your project.

What does Maintainability Review need to run?

SKILL.md names no scripts, command-line tools or credentials: Maintainability Review is instructions for the agent only.

Does Maintainability Review access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Maintainability Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Maintainability Review use?

Maintainability Review is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Maintainability Review use?

About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.9k tokens, read only when the agent opens those files.

What are the alternatives to Maintainability Review?

Skills that share tags, products or a category with Maintainability Review: Worklog Design (regisx001/Worklog, 261 stars), Coding Agent (mastra-ai/mastra, 29k stars), Rust Architect (sergigp/yarrtube, 133 stars) and Code Refiner (Mathews-Tom/armory, 328 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Maintainability Review?

pmndrs (a GitHub organization) maintains it in pmndrs/glyph, which has 395 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 9, 2026.

Source: pmndrs/glyph on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.