From magician
TDD engine that enforces red/green/refactor discipline for implementing features or bug fixes, with freeform and task mode for blueprint plans.
How this skill is triggered — by the user, by Claude, or both
Slash command
/magician:wardThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this 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.)
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, FR-CA vs FR) 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. See lore/models.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: reading CLAUDE.md/standards, searching, kg query/blast, running the tests, and read-only git (git status, diff) NEVER pause for permission between phases. 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 file first; if the plan isn't clear from context, ask which plan file. End your turn and wait if you must ask.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.
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).- [ ] → - [x]).npx claudepluginhub alexander-tyagunov/magician --plugin magicianGuides Red-Green-Refactor cycles for test-first feature or bug fix implementation. Auto-detects specs, creates feature branches, and commits per behavior.
Enforces test-driven development discipline for implementing features, bug fixes, and refactors with observable behavior.
Implements task specs via TDD (RED-GREEN-REFACTOR cycle), one test at a time from PLAN-*.md files. Collaborative mode pauses per step; auto mode runs autonomously.