/magician:ward [behavior to implement | task <N>]from magician
Enforces strict red/green/refactor TDD discipline during implementation or bugfix work. Runs autonomously once the spec is settled, matching project conventions.
Ships in magician. 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.
None: SKILL.md is the whole skill.
Enforce strict red → green → refactor discipline for all implementation work. (This skill absorbed the former /forge — general TDD and per-task blueprint execution are one engine.)
Before implementing, discover and read the repo's own standards — CLAUDE.md, any code-review.md / CONTRIBUTING / STYLEGUIDE, and the linter/formatter config — and mirror the patterns already in the files you touch. Conventions a formatter can't enforce (async/await over .then, error-wrapping, naming, locale-code format) are still binding — apply them as you write, not after a reviewer flags them. See lore/code-standards.md.
Scale /effort to task size: low for a one-line fix, medium for normal work, high for a complex multi-behavior task (xhigh only for a genuinely hard multi-layer one; max is session-only and an opt-in for frontier problems). Across a run: medium for implementation turns, high for certify/review/security turns; on Bedrock/Vertex/gateways hold one level (an effort change drops the cache there). See lore/models.md.
The failing test is the verification. Don't add a self-review step after green — re-reading your own diff to confirm it is redundant on current models. Let RED → GREEN → REFACTOR and /certify carry the proof. See lore/model-behavior.md.
Once the spec is settled — the failing test you can write, or the plan task in .workspace/shared/plans/ — run the remaining phases (RED → GREEN → REFACTOR and the per-task steps) autonomously: don't stop to ask the owner between phases before reading CLAUDE.md/standards, searching, kg query/blast, running the tests, or read-only git (git status, diff). This skill pre-approves only reads and read-only searches (Read, Grep, Glob and the embedded ugrep/bfs/rg/grep/find commands), because TDD edits arbitrary source and no honest path limit exists: kg lookups, test runs, and edits go through Claude Code's normal permission prompt unless the user runs in auto mode or approves them. Re-gate only on real side effects — the per-task git add/commit/push. Beyond that, pause only for genuine spec ambiguity (the "cannot write the test first" case below). See lore/autonomy.md.
/ward <behavior>): drive TDD for whatever you're implementing now./ward task <N>): execute task N from the current blueprint plan in .workspace/shared/plans/. Read the task text from the plan first; if the plan isn't clear from context, ask which plan file or folder. End your turn and wait if you must ask. (dispatched with no human present: return NEEDS_CONTEXT instead of waiting).
plan.json next to plan.md): read plan.json with Read; task N is steps[N-1] — its red (test, code, run), green (sketch, run), verify, files and the top-level constraints are the task text. A step whose review.status is deferred is not executed this run: say so and stop. If the last line of plan.md (<!-- magician.plan/1 v<n> … -->) names a version other than plan.json.version, say the plan is stale and ask the user to re-run plan-render all <dir>/plan.json before continuing.plan.md (legacy): read the ### Task N block as before.Go end-to-end for one behavior before expanding: first test → first implementation → works → next behavior.
One function doing one thing · one API endpoint with one response case · one UI component in one state. NOT "the whole auth system".
test_returns_404_when_user_not_foundassertTrue(true) — always-pass tests are worse than noneThe spec is incomplete. Do not guess. Ask: "I can't write this test yet — the spec doesn't define what [behavior] should do. Clarify the expected input and output?" End your turn. Wait for clarification before writing code. But if you are running as a dispatched subagent with no human present to answer, do not wait — return an Obstacles block (see below) and stop: NEEDS_CONTEXT when the spec or another named input is missing or unreadable, BLOCKED for a gap in a spec that exists. Name the exact gap.
After the behavior(s) for the task are green and refactored:
code-review.md would flag (e.g. async/await vs .then) is a failing gate, not a post-review fixup (lore/code-standards.md).verify commands are the definition of done /blueprint wrote from the project's verify skill, REVIEW.md or the stack lore: run them exactly as written, every one, and treat a command you had to change as a plan defect to report, not a thing to paper over.- [ ] → - [x]). In a plan folder, tick the boxes in plan.md only; plan.json carries no progress and its version is not bumped for this. The plan file is the checklist — Task tools (TaskCreate/TodoWrite) are absent on current models unless CLAUDE_CODE_ENABLE_TODO_TOOLS=1 — and .workspace/local/session-state.md is the compaction-proof state: write it before you start a multi-task run and after each task lands.If this skill runs as a dispatched unit and hits something that blocks or degrades the work, do not wait for a human who is not there and do not silently ship a degraded result — return the Obstacles block from lore/obstacles.md (fields: STATUS, OBSTACLE, BLOCKER, SEVERITY, WORKAROUND, RECURRENCE, SCOPE, NEXT) to the caller alongside whatever you completed; interactively, say the same in prose.
What SKILL.md sets; muted values are Claude Code's defaults
mediumnpx claudepluginhub alexander-tyagunov/magician --plugin magician25 skills in this plugin
/acceleratePerformance profiling and optimization, baseline first. Use when something is slow or must hit a latency/throughput target./almanacOne-time workspace setup; .workspace/, .gitignore, CLAUDE.md, optional AGENTS.md and REVIEW.md. Run once per project./autopsyBlameless post-mortem / RCA; timeline, 5-Whys, action items, committed write-up. Use after an incident or outage./blueprintTurns an approved spec into a TDD task plan, parallelism map and plan.md + plan.html. Use after spec approval, before coding./certifyVerification loop; tests, types, lint, build, Playwright for UI; evidence before success claims. Use to verify a change is green./chronicleSession history, references, context size, learnings. Use to review past sessions, remember or recall a reference, or capture learnings.Other plugins' skills for the same job