/ai-devkit:cmk:delivery-simplifyfrom ai-devkit
Cleans up changed code by applying four quality angles (reuse, simplification, efficiency, altitude) while preserving behavior and keeping tests green. Part of the cmk:delivery-pipeline.
Ships in ai-devkit. 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.
Quality cleanup of the changed code. Not a bug hunt, not a merge
verdict, and not a substitute for cmk:delivery-review.
CMK port of Claude Code's built-in /simplify slash command (binary
2.1.227+). Angle mandates and apply/skip rules live in
references/angles.md — that file is the contract; this skill is the
orchestration.
| Owner | Role |
|---|---|
cmk:delivery-pipeline | When — phase-3 epilogue (3b) after implement, before phase 4 |
| This skill | How — gather diff, four angles, apply, evidence |
cmk:delivery-review | Judge — lenses and disposition after this pass (pre-ship) |
Default pipeline order:
3 Implement → 3b Simplify (this skill) → 4 Review → 5 Ship
Run once on the joined issue branch, never on a per-task wave worktree. Cluster joins: run on the combined branch after join, before that branch's pre-ship review.
| Occasion | Run? | Apply fixes? |
|---|---|---|
| Pipeline pre-ship (own issue, phase 3b) | Yes (default) | Yes |
| Standalone on own branch / unpushed work | Yes when asked or as polish | Yes |
| Standalone on a teammate's PR | Only if explicitly asked | No — report findings only |
| Docs-only / empty diff / no code change | Skip | — |
| Operator said skip simplify | Skip | — |
Every skip is recorded in run notes (pipeline) or the simplify report (standalone) with the reason. Silent skip is a defect.
cmk:delivery-review.references/angles.md. Do not fold in security, compliance, or
production-readiness here.Follow references/angles.md § Phase 0. Prefer the issue's merge base
against the repo's default integration branch when @{upstream} is missing
or wrong for this branch.
Fan-out (preferred): launch four independent workers in one dispatch when
the runtime supports concurrent agents. Each worker gets the same diff and
exactly one angle. Use the delivery reviewer role (or the runtime's review
role) with the angle name and the mandate text from references/angles.md.
Workers are read-only on the tree.
Single-pass (fallback): when fan-out is unavailable, one context walks all four angles in turn. Do not skip an angle for lack of fan-out. The final summary must state that the engine was single-pass.
Each finding: file, line, one-line summary, concrete cost.
A worker result without evidence (files read / checks run) is rejected and re-run — same bar as other delivery roles.
Only when the occasion allows apply (table above).
references/angles.md § Phase 2 (behavior change, outside
diff, false positive) — note the skip.Write git-ignored scratch (e.g. docs/plans/<issue>-simplify.md):
fan-out | single-passfile:linePipeline phase 3b also records in run notes: simplify ran or skip reason, and engine.
When the user asks only to simplify (no full pipeline), run this skill alone with the occasion table above. Do not advance into phase 4 or ship.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-cleanup, refactoring, quality-polish, delivery-pipeline
Generated from the plugin's indexed repository (commandosslabs/ai-devkit) — no native marketplace selected
npx claudepluginhub p/commandosslabs-ai-devkit36 skills in this plugin
/cmk:adrUse when the user asks to "record this decision", "we decided to use X over Y", "document why we chose this approach", "record an ADR", "update ADR-0003", or needs to create or update architecture decision records for system-level technical choices like choosing a database, communication protocol, or infrastructure pattern./cmk:agent-instructionsUse when the user asks to "set up CLAUDE.md", "set up AGENTS.md", "agent instructions", "add engineering rules", "make the instructions thinner", or needs to establish or maintain a thin, multi-vendor root instruction file backed by on-demand engineering rules under docs/rules/./cmk:agent-vendorsUse when the user asks to "vendor the kit's skills into this repo", "set up agent adapters", "add a coding-agent vendor", "wire skills for Claude Code / Codex / OpenCode / Grok Build / Cursor", or whenever a repo needs one canonical skill set discoverable by multiple coding agents.