원클릭으로
implement-batch
Use when you want to implement the next batch of a plan. Handles module implementation, testing, and validation.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when you want to implement the next batch of a plan. Handles module implementation, testing, and validation.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when you want a thorough code review of files, changes, or the entire project before shipping.
Use when you want structured feedback on a plan or document before implementation.
Use when you want a thorough security review of the codebase, a specific file/directory, or a set of changes before shipping.
Save all session progress to status tracking files. Use when you want to checkpoint work mid-session or before ending.
| name | implement-batch |
| description | Use when you want to implement the next batch of a plan. Handles module implementation, testing, and validation. |
| risk | critical |
| argument-hint | [plan-file] [batch-number] |
This skill must only be invoked from the main session, never from a subagent.
Arguments: <plan-file> <batch-number> (optional — will prompt if not provided)
Identify the plan and batch:
a. If the user specified a plan file and batch number, use those.
b. Else determine the project name: check origin git remote (parse last path component, strip .git) → git root basename → working directory basename.
c. List files in ~/.claude/plans/<project-name>/, sorted by modification time. If no plans found, tell the user and stop.
d. If no batch number specified, read the plan and identify the next unimplemented batch. Confirm with the user: "I'll implement Batch N of <plan-file>. Correct?"
Read the plan and extract the batch spec:
Spawn parallel subagents for independent modules:
model override so each inherits the session's model rather than pinning a version-specific name. Don't downgrade to a cheaper tier. (CLAUDE_CODE_SUBAGENT_MODEL, if set in the environment Claude launches subagents under, overrides the inherited model.)Implement the specified module per the plan. Also write comprehensive tests targeting 100% coverage of the new code.
Follow existing project conventions for: file layout, naming, imports, docstrings, type hints.
After writing code and tests, report back with:
- Files created: list with brief description
- Files modified: list with what changed
- Test count: number of tests written
- Open questions: anything ambiguous in the plan that you resolved with a judgment call
- Status: exactly one of:
STATUS: DONE(complete, tests pass, no concerns),STATUS: DONE_WITH_CONCERNS(complete and tests pass, but you have doubts — list them),STATUS: NEEDS_CONTEXT(cannot proceed — specify exactly what information is needed),STATUS: BLOCKED(technical blocker — describe it)
After all subagents complete — triage:
STATUS: DONE → accept, proceed to 4b.STATUS: DONE_WITH_CONCERNS → read concerns, re-read affected files, decide whether to accept or add to failure list. Do not silently ignore concerns.STATUS: NEEDS_CONTEXT → provide missing context, re-dispatch the subagent for the same module (max 1 re-dispatch; if the subagent returns NEEDS_CONTEXT again, treat as BLOCKED).STATUS: BLOCKED → add to failure list in step 5.4b. Consistency review:
4c. Validation:
pytest (do not duplicate what hooks cover)ruff check . and mypy (if configured)If tests or quality checks fail:
conftest.py, fixtures.*, test_helpers.*), that counts as a "cascade strike." Maintain a running strike count and cite it in each failure summary. The counter resets at the start of each batch. After 3 cascade strikes within a single batch, STOP fixing and escalate: "3 cascade events detected — fixes are breaking previously-passing modules. This suggests an architectural issue rather than isolated bugs. Recommend: review the batch's dependency graph and inter-module contracts before continuing."Summary to user:
Auto-save: After completing the summary, invoke /save to checkpoint progress. If this was batch 3 or later, recommend starting a new session for the next batch to reclaim context budget.