ワンクリックで
neural-execute
Test-driven execution loop — one task at a time, red→green→refactor, atomic commits
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Test-driven execution loop — one task at a time, red→green→refactor, atomic commits
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Implementation planning with optional adversarial cross-review (Claude Code ⇄ Codex). Tasks are sequential vertical slices, each carrying its own testable behaviors. Pass --visual to also render the plan as a self-contained HTML page (PLAN.html). Pass --skills <skills> to preload skills that shape the plan and that execute loads before coding
Execute all fixes from a REVIEW.md — address warnings, blocking issues, and gaps found during review
Plan vs implementation verification with goal-backward analysis and test-quality audit
Move completed features from wip to archive
Socratic interview that captures domain language, decisions, and ADRs inside .neural/wip/<feature>/
Harvest knowledge from archived features into .neural/knowledge/ — run after archiving a feature, or invoke manually to rebuild the project knowledge base
| name | neural-execute |
| description | Test-driven execution loop — one task at a time, red→green→refactor, atomic commits |
You are executing an implementation plan from PLAN.md. Work the tasks sequentially, one at a time, in dependency order. For each task, follow a vertical-slice TDD loop: one test → minimal implementation → next test. Never batch tests, never batch implementation.
The pace looks slower than batch implementation, but it is far more reliable: every line of code answers a failing test you just wrote.
.neural/wip/.$ARGUMENTS matches a feature name, use that one..neural/wip/<feature>/PLAN.md. If missing, stop and tell the user to run /neural:neural-plan..neural/wip/<feature>/CONTEXT.md. If missing, stop and tell the user to run /neural:neural-interview..neural/wip/<feature>/docs/adr/ — treat as binding.PLAN.md has a ## Model Invocable Skills section, load each listed skill now — before building the queue or writing any code — and apply its guidance throughout the run.PLAN.md — each row has number, title, dependencies, estimate.There are no waves. There is no parallelism. Run tasks one at a time, in the order the queue dictates.
Before your first task, read TDD-LOOP.md — it defines the vertical-slice loop you follow for every task. Re-read it any time you feel tempted to write tests in bulk or skip the red step.
For each behavior listed in the task:
RED → write ONE test that asserts the behavior → run → confirm it fails for the right reason
GREEN → write the minimum code to pass that test → run → confirm green
(only after all behaviors green for this task)
REFACTOR → improve names, extract duplication, deepen modules → run tests → still green
Three companion references — read each when its situation arises:
If the task has no testable behavior (e.g., pure config, formatter rules, dependency bump), skip the loop and just make the change. Verify by running the build or lint. Note in the report that TDD was N/A.
You will encounter things the task did not anticipate. Read TASK-PROTOCOL.md for the deviation rules (auto-fix vs auto-add vs ask) and status protocol. The summary: prefer doing less and reporting BLOCKED over silently expanding scope.
Honor the "Decision Boundaries" section in CONTEXT.md — those are feature-specific rules that override the generic protocol.
Retry cap: after 3 materially different failed attempts at the same task (different approaches — not the same one retried), stop and report it BLOCKED. Repeated failure usually means the plan or the design is wrong; don't keep adding risk.
When every behavior is green and refactors are done:
DONE / DONE_WITH_CONCERNS / BLOCKED), files touched (modified + created + deleted), and any concerns.If the task is BLOCKED, stop the queue and report. Do not start the next task until the user decides: retry, skip (with downstream impact noted), or abort.
After each task completes, print a one-line update:
Progress: <done>/<total> — Task <N> "<title>": <status>
After all tasks complete:
console.log / print / debugger, over-documented obvious methods.Skip this entire step if CONTEXT.md has **Git:** no or git rev-parse --is-inside-work-tree fails.
The orchestrator is the single git writer. No commits happened during the loop. Now propose one commit per task, in task-number order, with explicit user approval.
Print the accumulated task → files mapping:
Changes ready to commit (feature <feature-name>):
Task 1 — <title>: <file1>, <file2>
Task 2 — <title>: <file3>
...
Total: N tasks, M files, working tree unstaged.
Ask:
"All tasks completed. Progressively commit, one commit per task, in task-number order?"
- Yes — commit now.
- Show full diff first (
git diff+ per-task file list), then decide.- No — leave unstaged; I'll handle commits manually.
If Yes — for each DONE / DONE_WITH_CONCERNS task, in task-number order:
a. Stage only that task's files by explicit path: git add <file1> <file2> .... Never git add -A, git add ., or git commit -am. Exclude .neural/** and files owned by other tasks.
git diff --cached --name-only and confirm the staged set matches the task's file list. If it drifts, stop and report.
c. Commit with <type>(<feature-slug>): <task-title> (type inferred: feat / fix / refactor / chore / test / docs).
d. Record the commit hash.After the loop: git log --oneline <base>..HEAD and confirm commit count equals successful task count. Surface any divergence.
If git commit fails (hook rejects, hook auto-fixes and re-dirties the tree), stop and ask: fix & retry / skip that task / abort. Never --no-verify.
If Show diff — print git status + per-task file list, then re-prompt from step 2.
If No — note the working tree is left unstaged; the user owns commits from here.
Print:
Feature: <feature-name>
Tasks completed: <count>
Tasks blocked/skipped: <count>
Files changed: <count>
Commits created: <count> (or "none — left unstaged")
If everything succeeded, suggest: "Ready to verify? Run /neural:neural-review."
If anything blocked or was skipped, surface it before suggesting review.