architecture-review
Reviews a technical proposal before any code is written: an architecture, spec, RFC, ADR, or design issue. Finds choices that…
Makes existing code easier to understand without changing behavior. Use to simplify structure, remove duplication or dead code, improve names, or remove unnecessary abstractions.
Claude Code
$ npx -y skills add owainlewis/blueprint --skill improve --agent claude-code
Codex
$ npx skills add owainlewis/blueprint --skill improve -a codex -y
Cursor
$ npx skills add owainlewis/blueprint --skill improve -a cursor -y
Gemini CLI
$ npx skills add owainlewis/blueprint --skill improve -a gemini-cli -y
GitHub Copilot
$ npx skills add owainlewis/blueprint --skill improve -a github-copilot -y
OpenCode
$ npx skills add owainlewis/blueprint --skill improve -a opencode -y
Windsurf
$ npx skills add owainlewis/blueprint --skill improve -a windsurf -y
name: improve description: "Makes existing code easier to understand without changing behavior. Use to simplify structure, remove duplication or dead code, improve names, or remove unnecessary abstractions." user-invocable: true argument-hint: "[code, files, diff, branch, or improvement focus]" disable-model-invocation: true
Make code easier to understand without changing what it does. Reduce the layers a reader must trace and the hidden state they must remember.
1. Identify the target from the request, current diff, or recently changed code. 2. Read the target, its tests, and relevant surrounding code. State the behavior that must not change. 3. If that behavior lacks tests, add focused coverage and run it against the unchanged code. Commit the passing test-only change before refactoring. If automated tests cannot exercise the behavior, explain why and give other evidence. 4. Find unnecessary complexity, duplication, dead code, weak names, awkward boundaries, and abstractions that cost more than they help. Ask of each important value: can a new reader say where it comes from and what can change it? 5. Delete first: remove dead code and redundant checks before you reshape what is left. Then make focused improvements by deduplicating, renaming, simplifying, extracting, or inlining. 6. Preserve public interfaces, data shapes, errors, and user-visible behavior unless the user explicitly asks to change them. 7. Run tests and checks that cover behavior the refactor can affect. Report what improved, what behavior was preserved, and the evidence.
State what became simpler, what behavior stayed the same, and which checks prove it. Name any behavior that remains unverified.
Senior engineering habits for coding agents. Small skills for Claude Code and Codex that turn an idea into a reviewed, tested pull request.
Reviews a technical proposal before any code is written: an architecture, spec, RFC, ADR, or design issue. Finds choices that…
Writes root ARCHITECTURE.md from a fixed template: the intended system, a data flow diagram, the data model, and the rules every…
Coordinates a large batch of GitHub issues through separate Codex worker threads, tested pull requests, review loops, and gated…
Generates a polished, static HTML reading view from an existing Markdown PRD or technical design. Use when a user asks to render,…
Splits a spec into small tasks, each a working slice an agent can finish in one pull request. Use when a spec is too big for one…
Writes the product requirements document (PRD) in root REQUIREMENTS.md as user stories with checkable outcomes. Use for a new…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.