code-simplify
Simplify code for clarity and maintainability — reduce complexity without changing behavior
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.
> /plugin marketplace add addyosmani/agent-skills > /plugin install agent-skills@addy-agent-skills
How it fires
How this command gets triggered: by you, by Claude, or both.
/buildContext preview
What this command does when you run it.
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.
description: Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.
Invoke the agent-skills:incremental-implementation skill alongside agent-skills:test-driven-development.
`$ARGUMENTS` selects the mode. Treat `auto` (canonical) or `all` as autonomous mode; anything else (or empty) is the default single-task mode. Note: autonomous mode is not faster *per task* — it runs the same test-driven loop — it only removes the human stepping *between* tasks.
Pick the next pending task from the plan. Then:
1. Read the task's acceptance criteria 2. Load relevant context (existing code, patterns, types) 3. Write a failing test for the expected behavior (RED) 4. Implement the minimum code to pass the test (GREEN) 5. Run the full test suite to check for regressions 6. Run the build to verify compilation 7. Commit with a descriptive message 8. Mark the task complete and stop
Use this once a spec exists and you want to collapse plan + build into one run. It removes the manual stepping between tasks — **not** the verification. Every task still earns a passing test and its own commit.
1. **Require a spec.** Look only for a spec at a known path: `SPEC.md` at the repo root, `docs/SPEC.md`, or a file under `spec/`. A README or arbitrary doc does **not** count. If none exists, stop and tell the user to run `/spec` first — do not invent requirements. 2. **Establish a clean baseline.** Run `git status --porcelain`. If there are uncommitted changes outside the expected planning artifacts (`SPEC.md`, `docs/SPEC.md`, `spec/*`, `tasks/plan.md`, `tasks/todo.md`), stop and ask the user to commit, stash, or confirm how to handle them. Autonomous per-task commits must not absorb unrelated local work, or the clean-rollback guarantee breaks. 3. **Plan if needed.** If there is no `tasks/plan.md`, invoke agent-skills:planning-and-task-breakdown to generate one. 4. **Single checkpoint.** Present the full plan and wait for an unambiguous affirmative (e.g. "approve", "go", "yes"). Treat hedged responses ("looks reasonable", "I guess") as **not** approved. This is the only human gate — after approval, run autonomously. If you generated `tasks/plan.md`, commit it as a single preparatory commit now so it doesn't bleed into the first task's commit. 5. **Execute every task in dependency order.** Use each task's declared dependencies; if they aren't explicit, execute in the order the plan lists them. For each task, run the full default loop above (RED → GREEN → regression → build → commit → mark complete). Stage only the files that task touched plus its task-status update — never `git add -A` blindly — and make one commit per task so any point is a clean rollback. 6. **Stop and ask the user** (do not push through) when:
After the user resolves a blocker, they re-invoke `/build auto` — it resumes from the next pending task. 7. **Summarize at the end:** tasks completed, tests added, commits made, and anything skipped, flagged, or left for the user.
If any step fails, follow the agent-skills:debugging-and-error-recovery skill.
Production-grade engineering skills for AI coding agents. Skills encode the workflows, quality gates, and best practices that senior engineers use when building software.
Get the whole plugin, auto-invokedRepo: addyosmani/agent-skills
Simplify code for clarity and maintainability — reduce complexity without changing behavior
Define and enforce this project's quality bar — interview, sane defaults, CONSTRAINTS.md
Break work into small verifiable tasks with acceptance criteria and dependency ordering
Conduct a five-axis code review — correctness, readability, architecture, security, performance
Run the pre-launch checklist via parallel fan-out to specialist personas, then synthesize a go/no-go decision
Start spec-driven development — write a structured specification before writing code