[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M755QESSVACDDY2WSXYGBTBY":3,"skill-same:01M755QESSVACDDY2WSXYGBTBY":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":51},"01M755QESSVACDDY2WSXYGBTBY","x-implement-task",null,"Implements a feature\u002Fstory\u002Ftask using TDD (Red-Green-Refactor) workflow. Schema-aware: v1 (legacy) runs the original Double-Loop TDD flow with story-section task extraction; v2 (task-first, EPIC-0038) reads task-TASK-XXXX-YYYY-NNN.md + plan-task-TASK-XXXX-YYYY-NNN.md, honours declared I\u002FO contracts, respects task-implementation-map dependencies, verifies post-conditions via grep\u002Fassert, and produces a single atomic commit per task via x-commit-changes.","review-bench\u002Federcnj_ia-dev-environment","review-bench","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F286778065?v=4","01M7517F9NTEPDZDAXJBR30FWT","ReviewBench","01M7517FAC9F4P7TGWCNJ8VYVW",0,"MIT","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring-neo4j\u002F.claude\u002Fskills\u002Fx-implement-task\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: x-implement-task\nmodel: sonnet\ndescription: \"Implements a feature\u002Fstory\u002Ftask using TDD (Red-Green-Refactor) workflow. Schema-aware: v1 (legacy) runs the original Double-Loop TDD flow with story-section task extraction; v2 (task-first, EPIC-0038) reads task-TASK-XXXX-YYYY-NNN.md + plan-task-TASK-XXXX-YYYY-NNN.md, honours declared I\u002FO contracts, respects task-implementation-map dependencies, verifies post-conditions via grep\u002Fassert, and produces a single atomic commit per task via x-commit-changes.\"\nuser-invocable: true\nallowed-tools: Read, Write, Edit, Bash, Grep, Glob, Skill, TaskCreate, TaskUpdate\nargument-hint: \"[TASK-ID (TASK-XXXX-YYYY-NNN) or STORY-ID or feature-description] [--worktree] [--no-ci-watch]\"\ncontext-budget: medium\nrequires-capabilities: []\n---\n\n## Global Output Policy\n\n- **Language**: English ONLY.\n- **Tone**: Technical, Direct, and Concise.\n- **Efficiency**: Remove all conversational fillers and greetings to save tokens.\n\n> 🔒 **EXECUTION INTEGRITY (Rule 24)** — Every `Skill(...)` block is a **MANDATORY TOOL CALL**. TDD cycles (`x-drive-tdd`), atomic commits (`x-commit-changes`), CI watch (`x-watch-pr-ci`), and PR creation (`x-create-pr`) MUST be invoked as real tool calls, not inlined. See `.claude\u002Frules\u002F24-execution-integrity.md`.\n\n## Triggers\n\n```\n\u002Fx-implement-task STORY-ID          — implement a story by ID (v1 or v2 schema auto-detected)\n\u002Fx-implement-task TASK-XXXX-YYYY-NNN  — implement a specific task (v2 task-file-first mode)\n\u002Fx-implement-task feature-description  — implement a feature from description\n\u002Fx-implement-task STORY-ID --worktree  — standalone worktree mode (ADR-0004 Mode 2)\n```\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `STORY-ID` or `TASK-ID` or description | positional | (required) | Story ID, TASK-XXXX-YYYY-NNN, or feature description |\n| `--worktree` | boolean | `false` | Create dedicated worktree (standalone Mode 2). Ignored inside existing worktree (Rule 14 §3). |\n| `--no-ci-watch` | boolean | `false` | Skip Step 4.5 CI-Watch. Required for CI\u002Fautomation. |\n\n## Output Contract\n\n**Schema dispatch:**\n\n| `planningSchemaVersion` | Execution Mode | Input artifacts |\n|--------------------------|---------------|-----------------|\n| `\"1.0\"` (or absent) | v1 — Double-Loop TDD via story section 8 | story file, `plan-story-*.md`, `tests-story-*.md` |\n| `\"2.0\"` | v2 — task-file-first | `task-TASK-*.md` + `plan-task-TASK-*.md` + `task-implementation-map-*.md` |\n\nEmits structured result to caller:\n```json\n{\"status\":\"DONE\",\"taskId\":\"TASK-XXXX-YYYY-NNN\",\"commitSha\":\"abc123\",\"cycleCount\":N,\"coverageDelta\":{\"lineBefore\":95.1,\"lineAfter\":95.3},\"wallclockMs\":12340}\n```\n\n## Task Tracking (Rule 25)\n\nSix phases (Rule 25 REGRA-001, EPIC-0055). Each phase opens with `x-internal-verify-phase-gates --mode pre` + `TaskCreate`, closes with `TaskUpdate(completed)` + POST\u002FWAVE\u002FFINAL gate. Phase 2 dispatches 3 × N `TaskCreate` calls (Red\u002FGreen\u002FRefactor per cycle) in Batch A, then updates sequentially in the execution loop. See `references\u002Ftdd-cycle-protocol.md` for the canonical TDD cycle tracking protocol.\n\n## Phase 0 — Setup (Steps 0 and 0.5)\n\n\u003C!-- TELEMETRY: phase.start -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh start x-implement-task Phase-0-Setup`\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode pre --skill x-implement-task --phase Phase-0-Setup\")\n\nOpen phase tracker (close with `TaskUpdate(id: phase0TaskId, status: \"completed\")` after Step 0.5):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 0 - Precheck\", activeForm: \"Checking plan reuse and staleness\")\n\nResolve paths, check staleness (Step 0), detect worktree context (Step 0.5):\n\n    Skill(skill: \"x-manage-worktrees\", model: \"haiku\", args: \"detect-context\")\n\nSee `references\u002Ffull-protocol.md` §Step 0 and §Step 0.5 for full three-way mode decision (REUSE \u002F CREATE \u002F LEGACY).\n\nPersist interactiveMode to execution-state.json (EPIC-0068 — consumed by Stop hook `enforce-continuous-flow.sh`):\n\n    Skill(skill: \"x-internal-update-status\", args: \"--file ai\u002Fepics\u002Fepic-XXXX\u002Fexecution-state.json --type task --id \u003CTASK-ID> --field interactiveMode --value \u003Cinteractive|non-interactive>\")\n\nValue: `\"interactive\"` when `--interactive` passed or `CLAUDE_LEGACY_INTERACTIVE=1`; otherwise `\"non-interactive\"` (Rule 20 default, EPIC-0061).\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode post --skill x-implement-task --phase Phase-0-Setup\")\n\nTaskUpdate(id: phase0TaskId, status: \"completed\")\n\n\u003C!-- TELEMETRY: phase.end -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh end x-implement-task Phase-0-Setup ok`\n\n## Phase 1 — Prepare and Understand (Step 1)\n\n\u003C!-- TELEMETRY: phase.start -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh start x-implement-task Phase-1-Prepare`\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode pre --skill x-implement-task --phase Phase-1-Prepare\")\n\nOpen phase tracker (close with `TaskUpdate(id: phase1TaskId, status: \"completed\")` after Step 1):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 1 - Prepare\", activeForm: \"Loading knowledge packs and building TDD plan\")\n\nDispatch a preparation subagent (Rule 13 Pattern 2 — SUBAGENT-GENERAL) that reads KPs and produces the TDD implementation plan. See `references\u002Ffull-protocol.md` §Step 1.\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode post --skill x-implement-task --phase Phase-1-Prepare\")\n\nTaskUpdate(id: phase1TaskId, status: \"completed\")\n\n\u003C!-- TELEMETRY: phase.end -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh end x-implement-task Phase-1-Prepare ok`\n\n## Phase 2 — TDD Cycles (Step 2)\n\nSee `references\u002Ftdd-cycle-protocol.md` for the canonical TDD cycle tracking protocol with Batch A\u002FB dispatch and wave gate.\n\n\u003C!-- TELEMETRY: phase.start -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh start x-implement-task Phase-2-TDD`\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode pre --skill x-implement-task --phase Phase-2-TDD\")\n\nOpen phase tracker (close with `TaskUpdate(id: phase2TaskId, status: \"completed\")` after wave gate):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 2 - TDD Cycles\", activeForm: \"Running TDD Red-Green-Refactor cycles\")\n\n**Batch A — emit all TDD cycle task trackers in ONE assistant message (Red\u002FGreen\u002FRefactor per UT-N):**\n\n    TaskCreate(subject: \"{TASK_ID} › Step 2 › Cycle 1 › Red\", activeForm: \"RED cycle 1\")\n    TaskCreate(subject: \"{TASK_ID} › Step 2 › Cycle 1 › Green\", activeForm: \"GREEN cycle 1\")\n    TaskCreate(subject: \"{TASK_ID} › Step 2 › Cycle 1 › Refactor\", activeForm: \"REFACTOR cycle 1\")\n    [... repeat for Cycle 2..N in the same message ...]\n\nStore returned IDs: `tddCycleTaskIds[N] = {red: id, green: id, refactor: id}`.\n\n**Per-cycle execution (sequential):**\n\nFor each cycle N = 1..M:\n\n    TaskUpdate(id: tddCycleTaskIds[N].red, status: \"in_progress\")\n    [RED: write failing test → run → MUST fail]\n    Skill(skill: \"x-commit-changes\", model: \"haiku\", args: \"--type test --scope {scope} --subject \\\"add failing test UT-N (RED)\\\"\")\n    TaskUpdate(id: tddCycleTaskIds[N].red, status: \"completed\")\n\n    TaskUpdate(id: tddCycleTaskIds[N].green, status: \"in_progress\")\n    [GREEN: minimum code → all tests MUST pass]\n    Skill(skill: \"x-commit-changes\", model: \"haiku\", args: \"--type feat --scope {scope} --subject \\\"implement UT-N (GREEN)\\\"\")\n    TaskUpdate(id: tddCycleTaskIds[N].green, status: \"completed\")\n\n    TaskUpdate(id: tddCycleTaskIds[N].refactor, status: \"in_progress\")\n    [REFACTOR: improve design → tests MUST stay GREEN]\n    Skill(skill: \"x-commit-changes\", model: \"haiku\", args: \"--type refactor --scope {scope} --subject \\\"improve UT-N\\\"\")\n    TaskUpdate(id: tddCycleTaskIds[N].refactor, status: \"completed\")\n\n**Wave gate — all TDD cycle tasks completed:**\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode wave --skill x-implement-task --phase Phase-2-TDD --expected-tasks {all-tdd-task-ids}\")\n\nTaskUpdate(id: phase2TaskId, status: \"completed\")\n\n\u003C!-- TELEMETRY: phase.end -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh end x-implement-task Phase-2-TDD ok`\n\n## Phase 3 — Validate and Status Transition (Steps 3 and 3.5)\n\n\u003C!-- TELEMETRY: phase.start -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh start x-implement-task Phase-3-Validate`\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode pre --skill x-implement-task --phase Phase-3-Validate\")\n\nOpen phase tracker (close with `TaskUpdate(id: phase3TaskId, status: \"completed\")` after Step 3.5):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 3 - Validate\", activeForm: \"Validating coverage and acceptance criteria\")\n\nRun all AT-N acceptance tests; coverage check (line ≥ 95%, branch ≥ 90%). See `references\u002Ffull-protocol.md` §Step 3.\n\nv2 only — Status transition (Step 3.5):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 3.5 - Status sync\", activeForm: \"Syncing task status to Concluida\")\n\nWrite `**Status:** Concluída` to task file and map row via `TaskMapRowUpdaterCli`. See `references\u002Ffull-protocol.md` §Phase 3.5.\n\n    TaskUpdate(id: step35TaskId, status: \"completed\")\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode post --skill x-implement-task --phase Phase-3-Validate\")\n\nTaskUpdate(id: phase3TaskId, status: \"completed\")\n\n\u003C!-- TELEMETRY: phase.end -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh end x-implement-task Phase-3-Validate ok`\n\n## Phase 4 — Commit and CI Watch (Steps 4 and 4.5)\n\n\u003C!-- TELEMETRY: phase.start -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh start x-implement-task Phase-4-Commit`\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode pre --skill x-implement-task --phase Phase-4-Commit\")\n\nOpen phase tracker (close with `TaskUpdate(id: phase4TaskId, status: \"completed\")` after Step 4.5):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 4 - Commit\", activeForm: \"Creating TDD atomic commit\")\n\nInvoke atomic commit via `x-commit-changes`. See `references\u002Ffull-protocol.md` §Step 4.\n\n    Skill(skill: \"x-commit-changes\", model: \"haiku\", args: \"--type feat --scope {scope} --subject \\\"implement {task-description}\\\"\")\n\nCI Watch (Step 4.5, conditional — v2 + `--worktree` standalone only; see decision table in `references\u002Ffull-protocol.md` §Step 4.5):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 4.5 - CI Watch\", activeForm: \"Polling CI checks after PR creation\")\n\n**MANDATORY TOOL CALL — NON-NEGOTIABLE (Rule 24 + Rule 45):** Invoke the `x-watch-pr-ci` skill via the Skill tool — silent omission fails Camada 3 audit (`EIE_EVIDENCE_MISSING`):\n\n    Skill(skill: \"x-watch-pr-ci\", args: \"--pr-number {N} --poll-interval-seconds 60 --timeout-minutes 30 --require-copilot-review=false\")\n\n    TaskUpdate(id: step45TaskId, status: \"completed\")\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode post --skill x-implement-task --phase Phase-4-Commit\")\n\nTaskUpdate(id: phase4TaskId, status: \"completed\")\n\n\u003C!-- TELEMETRY: phase.end -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh end x-implement-task Phase-4-Commit ok`\n\n## Phase 5 — Cleanup (Step 5)\n\n\u003C!-- TELEMETRY: phase.start -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh start x-implement-task Phase-5-Cleanup`\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode pre --skill x-implement-task --phase Phase-5-Cleanup\")\n\nOpen phase tracker (close with `TaskUpdate(id: phase5TaskId, status: \"completed\")` at final gate):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 5 - Cleanup\", activeForm: \"Cleaning up worktree\")\n\nMode-aware cleanup (REUSE: no-op; CREATE: remove worktree; LEGACY: checkout develop). See `references\u002Ffull-protocol.md` §Step 5.\n\n    Skill(skill: \"x-manage-worktrees\", model: \"haiku\", args: \"remove --id {task-id}\")\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode final --skill x-implement-task --phase Phase-5-Cleanup\")\n\nTaskUpdate(id: phase5TaskId, status: \"completed\")\n\n\u003C!-- TELEMETRY: phase.end -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh end x-implement-task Phase-5-Cleanup ok`\n\n## Error Envelope\n\n| Code | Condition |\n|------|-----------|\n| `TASK_ARTIFACT_NOT_FOUND` | task \u002F plan \u002F map file missing (v2) |\n| `UNMET_DEPENDENCY` | declared `Depends on` TASK-ID not DONE |\n| `SCHEMA_VIOLATION` | task file fails ERROR-level schema validation |\n| `OUTPUT_CONTRACT_VIOLATION` | declared output failed post-exec verification (v2 Phase 3) |\n| `RED_NOT_OBSERVED` | RED phase test didn't fail as expected |\n| `REFACTOR_BROKE_TESTS` | refactor made previously-green tests fail |\n| `STATUS_SYNC_FAILED` | Phase 3.5 (v2) failed to update `**Status:**` header or map row |\n| Coverage below threshold | Add missing test scenarios; no bypass |\n\n## Full Protocol\n\n> Complete step-by-step instructions for each phase (Step 0 plan-reuse + staleness check, Step 0.5 worktree three-way mode decision, Step 1 subagent KP loading, Step 2 Double-Loop TDD + TPP ordering, Step 3 coverage + AC validation, Step 3.5 status transition, Step 4 atomic commit conventions, Step 4.5 CI-Watch decision table, Step 5 mode-aware cleanup), v2 extensions (Phase 0c schema detection, Phase 0d–0e pre-execution gates, Phase 5 status report), CI-Watch state-file schema, and all knowledge pack references in [`references\u002Ffull-protocol.md`](references\u002Ffull-protocol.md). Canonical TDD cycle tracking protocol (Batch A\u002FB dispatch, wave gate, cycle IDs) in [`references\u002Ftdd-cycle-protocol.md`](references\u002Ftdd-cycle-protocol.md).\n","## Global Output Policy\n\n- **Language**: English ONLY.\n- **Tone**: Technical, Direct, and Concise.\n- **Efficiency**: Remove all conversational fillers and greetings to save tokens.\n\n> 🔒 **EXECUTION INTEGRITY (Rule 24)** — Every `Skill(...)` block is a **MANDATORY TOOL CALL**. TDD cycles (`x-drive-tdd`), atomic commits (`x-commit-changes`), CI watch (`x-watch-pr-ci`), and PR creation (`x-create-pr`) MUST be invoked as real tool calls, not inlined. See `.claude\u002Frules\u002F24-execution-integrity.md`.\n\n## Triggers\n\n```\n\u002Fx-implement-task STORY-ID          — implement a story by ID (v1 or v2 schema auto-detected)\n\u002Fx-implement-task TASK-XXXX-YYYY-NNN  — implement a specific task (v2 task-file-first mode)\n\u002Fx-implement-task feature-description  — implement a feature from description\n\u002Fx-implement-task STORY-ID --worktree  — standalone worktree mode (ADR-0004 Mode 2)\n```\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `STORY-ID` or `TASK-ID` or description | positional | (required) | Story ID, TASK-XXXX-YYYY-NNN, or feature description |\n| `--worktree` | boolean | `false` | Create dedicated worktree (standalone Mode 2). Ignored inside existing worktree (Rule 14 §3). |\n| `--no-ci-watch` | boolean | `false` | Skip Step 4.5 CI-Watch. Required for CI\u002Fautomation. |\n\n## Output Contract\n\n**Schema dispatch:**\n\n| `planningSchemaVersion` | Execution Mode | Input artifacts |\n|--------------------------|---------------|-----------------|\n| `\"1.0\"` (or absent) | v1 — Double-Loop TDD via story section 8 | story file, `plan-story-*.md`, `tests-story-*.md` |\n| `\"2.0\"` | v2 — task-file-first | `task-TASK-*.md` + `plan-task-TASK-*.md` + `task-implementation-map-*.md` |\n\nEmits structured result to caller:\n```json\n{\"status\":\"DONE\",\"taskId\":\"TASK-XXXX-YYYY-NNN\",\"commitSha\":\"abc123\",\"cycleCount\":N,\"coverageDelta\":{\"lineBefore\":95.1,\"lineAfter\":95.3},\"wallclockMs\":12340}\n```\n\n## Task Tracking (Rule 25)\n\nSix phases (Rule 25 REGRA-001, EPIC-0055). Each phase opens with `x-internal-verify-phase-gates --mode pre` + `TaskCreate`, closes with `TaskUpdate(completed)` + POST\u002FWAVE\u002FFINAL gate. Phase 2 dispatches 3 × N `TaskCreate` calls (Red\u002FGreen\u002FRefactor per cycle) in Batch A, then updates sequentially in the execution loop. See `references\u002Ftdd-cycle-protocol.md` for the canonical TDD cycle tracking protocol.\n\n## Phase 0 — Setup (Steps 0 and 0.5)\n\n\u003C!-- TELEMETRY: phase.start -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh start x-implement-task Phase-0-Setup`\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode pre --skill x-implement-task --phase Phase-0-Setup\")\n\nOpen phase tracker (close with `TaskUpdate(id: phase0TaskId, status: \"completed\")` after Step 0.5):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 0 - Precheck\", activeForm: \"Checking plan reuse and staleness\")\n\nResolve paths, check staleness (Step 0), detect worktree context (Step 0.5):\n\n    Skill(skill: \"x-manage-worktrees\", model: \"haiku\", args: \"detect-context\")\n\nSee `references\u002Ffull-protocol.md` §Step 0 and §Step 0.5 for full three-way mode decision (REUSE \u002F CREATE \u002F LEGACY).\n\nPersist interactiveMode to execution-state.json (EPIC-0068 — consumed by Stop hook `enforce-continuous-flow.sh`):\n\n    Skill(skill: \"x-internal-update-status\", args: \"--file ai\u002Fepics\u002Fepic-XXXX\u002Fexecution-state.json --type task --id \u003CTASK-ID> --field interactiveMode --value \u003Cinteractive|non-interactive>\")\n\nValue: `\"interactive\"` when `--interactive` passed or `CLAUDE_LEGACY_INTERACTIVE=1`; otherwise `\"non-interactive\"` (Rule 20 default, EPIC-0061).\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode post --skill x-implement-task --phase Phase-0-Setup\")\n\nTaskUpdate(id: phase0TaskId, status: \"completed\")\n\n\u003C!-- TELEMETRY: phase.end -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh end x-implement-task Phase-0-Setup ok`\n\n## Phase 1 — Prepare and Understand (Step 1)\n\n\u003C!-- TELEMETRY: phase.start -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh start x-implement-task Phase-1-Prepare`\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode pre --skill x-implement-task --phase Phase-1-Prepare\")\n\nOpen phase tracker (close with `TaskUpdate(id: phase1TaskId, status: \"completed\")` after Step 1):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 1 - Prepare\", activeForm: \"Loading knowledge packs and building TDD plan\")\n\nDispatch a preparation subagent (Rule 13 Pattern 2 — SUBAGENT-GENERAL) that reads KPs and produces the TDD implementation plan. See `references\u002Ffull-protocol.md` §Step 1.\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode post --skill x-implement-task --phase Phase-1-Prepare\")\n\nTaskUpdate(id: phase1TaskId, status: \"completed\")\n\n\u003C!-- TELEMETRY: phase.end -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh end x-implement-task Phase-1-Prepare ok`\n\n## Phase 2 — TDD Cycles (Step 2)\n\nSee `references\u002Ftdd-cycle-protocol.md` for the canonical TDD cycle tracking protocol with Batch A\u002FB dispatch and wave gate.\n\n\u003C!-- TELEMETRY: phase.start -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh start x-implement-task Phase-2-TDD`\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode pre --skill x-implement-task --phase Phase-2-TDD\")\n\nOpen phase tracker (close with `TaskUpdate(id: phase2TaskId, status: \"completed\")` after wave gate):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 2 - TDD Cycles\", activeForm: \"Running TDD Red-Green-Refactor cycles\")\n\n**Batch A — emit all TDD cycle task trackers in ONE assistant message (Red\u002FGreen\u002FRefactor per UT-N):**\n\n    TaskCreate(subject: \"{TASK_ID} › Step 2 › Cycle 1 › Red\", activeForm: \"RED cycle 1\")\n    TaskCreate(subject: \"{TASK_ID} › Step 2 › Cycle 1 › Green\", activeForm: \"GREEN cycle 1\")\n    TaskCreate(subject: \"{TASK_ID} › Step 2 › Cycle 1 › Refactor\", activeForm: \"REFACTOR cycle 1\")\n    [... repeat for Cycle 2..N in the same message ...]\n\nStore returned IDs: `tddCycleTaskIds[N] = {red: id, green: id, refactor: id}`.\n\n**Per-cycle execution (sequential):**\n\nFor each cycle N = 1..M:\n\n    TaskUpdate(id: tddCycleTaskIds[N].red, status: \"in_progress\")\n    [RED: write failing test → run → MUST fail]\n    Skill(skill: \"x-commit-changes\", model: \"haiku\", args: \"--type test --scope {scope} --subject \\\"add failing test UT-N (RED)\\\"\")\n    TaskUpdate(id: tddCycleTaskIds[N].red, status: \"completed\")\n\n    TaskUpdate(id: tddCycleTaskIds[N].green, status: \"in_progress\")\n    [GREEN: minimum code → all tests MUST pass]\n    Skill(skill: \"x-commit-changes\", model: \"haiku\", args: \"--type feat --scope {scope} --subject \\\"implement UT-N (GREEN)\\\"\")\n    TaskUpdate(id: tddCycleTaskIds[N].green, status: \"completed\")\n\n    TaskUpdate(id: tddCycleTaskIds[N].refactor, status: \"in_progress\")\n    [REFACTOR: improve design → tests MUST stay GREEN]\n    Skill(skill: \"x-commit-changes\", model: \"haiku\", args: \"--type refactor --scope {scope} --subject \\\"improve UT-N\\\"\")\n    TaskUpdate(id: tddCycleTaskIds[N].refactor, status: \"completed\")\n\n**Wave gate — all TDD cycle tasks completed:**\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode wave --skill x-implement-task --phase Phase-2-TDD --expected-tasks {all-tdd-task-ids}\")\n\nTaskUpdate(id: phase2TaskId, status: \"completed\")\n\n\u003C!-- TELEMETRY: phase.end -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh end x-implement-task Phase-2-TDD ok`\n\n## Phase 3 — Validate and Status Transition (Steps 3 and 3.5)\n\n\u003C!-- TELEMETRY: phase.start -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh start x-implement-task Phase-3-Validate`\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode pre --skill x-implement-task --phase Phase-3-Validate\")\n\nOpen phase tracker (close with `TaskUpdate(id: phase3TaskId, status: \"completed\")` after Step 3.5):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 3 - Validate\", activeForm: \"Validating coverage and acceptance criteria\")\n\nRun all AT-N acceptance tests; coverage check (line ≥ 95%, branch ≥ 90%). See `references\u002Ffull-protocol.md` §Step 3.\n\nv2 only — Status transition (Step 3.5):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 3.5 - Status sync\", activeForm: \"Syncing task status to Concluida\")\n\nWrite `**Status:** Concluída` to task file and map row via `TaskMapRowUpdaterCli`. See `references\u002Ffull-protocol.md` §Phase 3.5.\n\n    TaskUpdate(id: step35TaskId, status: \"completed\")\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode post --skill x-implement-task --phase Phase-3-Validate\")\n\nTaskUpdate(id: phase3TaskId, status: \"completed\")\n\n\u003C!-- TELEMETRY: phase.end -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh end x-implement-task Phase-3-Validate ok`\n\n## Phase 4 — Commit and CI Watch (Steps 4 and 4.5)\n\n\u003C!-- TELEMETRY: phase.start -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh start x-implement-task Phase-4-Commit`\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode pre --skill x-implement-task --phase Phase-4-Commit\")\n\nOpen phase tracker (close with `TaskUpdate(id: phase4TaskId, status: \"completed\")` after Step 4.5):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 4 - Commit\", activeForm: \"Creating TDD atomic commit\")\n\nInvoke atomic commit via `x-commit-changes`. See `references\u002Ffull-protocol.md` §Step 4.\n\n    Skill(skill: \"x-commit-changes\", model: \"haiku\", args: \"--type feat --scope {scope} --subject \\\"implement {task-description}\\\"\")\n\nCI Watch (Step 4.5, conditional — v2 + `--worktree` standalone only; see decision table in `references\u002Ffull-protocol.md` §Step 4.5):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 4.5 - CI Watch\", activeForm: \"Polling CI checks after PR creation\")\n\n**MANDATORY TOOL CALL — NON-NEGOTIABLE (Rule 24 + Rule 45):** Invoke the `x-watch-pr-ci` skill via the Skill tool — silent omission fails Camada 3 audit (`EIE_EVIDENCE_MISSING`):\n\n    Skill(skill: \"x-watch-pr-ci\", args: \"--pr-number {N} --poll-interval-seconds 60 --timeout-minutes 30 --require-copilot-review=false\")\n\n    TaskUpdate(id: step45TaskId, status: \"completed\")\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode post --skill x-implement-task --phase Phase-4-Commit\")\n\nTaskUpdate(id: phase4TaskId, status: \"completed\")\n\n\u003C!-- TELEMETRY: phase.end -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh end x-implement-task Phase-4-Commit ok`\n\n## Phase 5 — Cleanup (Step 5)\n\n\u003C!-- TELEMETRY: phase.start -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh start x-implement-task Phase-5-Cleanup`\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode pre --skill x-implement-task --phase Phase-5-Cleanup\")\n\nOpen phase tracker (close with `TaskUpdate(id: phase5TaskId, status: \"completed\")` at final gate):\n\n    TaskCreate(subject: \"{TASK_ID} › Step 5 - Cleanup\", activeForm: \"Cleaning up worktree\")\n\nMode-aware cleanup (REUSE: no-op; CREATE: remove worktree; LEGACY: checkout develop). See `references\u002Ffull-protocol.md` §Step 5.\n\n    Skill(skill: \"x-manage-worktrees\", model: \"haiku\", args: \"remove --id {task-id}\")\n\nSkill(skill: \"x-internal-verify-phase-gates\", model: \"haiku\", args: \"--mode final --skill x-implement-task --phase Phase-5-Cleanup\")\n\nTaskUpdate(id: phase5TaskId, status: \"completed\")\n\n\u003C!-- TELEMETRY: phase.end -->\nBash command: `$CLAUDE_PROJECT_DIR\u002F.claude\u002Fhooks\u002Ftelemetry-phase.sh end x-implement-task Phase-5-Cleanup ok`\n\n## Error Envelope\n\n| Code | Condition |\n|------|-----------|\n| `TASK_ARTIFACT_NOT_FOUND` | task \u002F plan \u002F map file missing (v2) |\n| `UNMET_DEPENDENCY` | declared `Depends on` TASK-ID not DONE |\n| `SCHEMA_VIOLATION` | task file fails ERROR-level schema validation |\n| `OUTPUT_CONTRACT_VIOLATION` | declared output failed post-exec verification (v2 Phase 3) |\n| `RED_NOT_OBSERVED` | RED phase test didn't fail as expected |\n| `REFACTOR_BROKE_TESTS` | refactor made previously-green tests fail |\n| `STATUS_SYNC_FAILED` | Phase 3.5 (v2) failed to update `**Status:**` header or map row |\n| Coverage below threshold | Add missing test scenarios; no bypass |\n\n## Full Protocol\n\n> Complete step-by-step instructions for each phase (Step 0 plan-reuse + staleness check, Step 0.5 worktree three-way mode decision, Step 1 subagent KP loading, Step 2 Double-Loop TDD + TPP ordering, Step 3 coverage + AC validation, Step 3.5 status transition, Step 4 atomic commit conventions, Step 4.5 CI-Watch decision table, Step 5 mode-aware cleanup), v2 extensions (Phase 0c schema detection, Phase 0d–0e pre-execution gates, Phase 5 status report), CI-Watch state-file schema, and all knowledge pack references in [`references\u002Ffull-protocol.md`](references\u002Ffull-protocol.md). Canonical TDD cycle tracking protocol (Batch A\u002FB dispatch, wave gate, cycle IDs) in [`references\u002Ftdd-cycle-protocol.md`](references\u002Ftdd-cycle-protocol.md).\n",{"name":5,"model":24,"description":7,"allowed-tools":25,"argument-hint":26,"context-budget":27,"user-invocable":28,"requires-capabilities":29},"sonnet","Read, Write, Edit, Bash, Grep, Glob, Skill, TaskCreate, TaskUpdate","[TASK-ID (TASK-XXXX-YYYY-NNN) or STORY-ID or feature-description] [--worktree] [--no-ci-watch]","medium",true,[],"main","952a630c6f38d193a349d86fa18db1de8843e837","src\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring-neo4j\u002F.claude\u002Fskills\u002Fx-implement-task",1,"https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment","https:\u002F\u002Fgithub.com\u002Freview-bench","https:\u002F\u002Freview-bench.ai","An open benchmark for AI code review.","2026-10-27 06:56:37",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":28},[41,44,47],{"tool":42,"command":43},"npx","npx skills add review-bench\u002Federcnj_ia-dev-environment --skill x-implement-task",{"tool":45,"command":46},"bunx","bunx skills add review-bench\u002Federcnj_ia-dev-environment --skill x-implement-task",{"tool":48,"command":49},"pnpm","pnpm dlx skills add review-bench\u002Federcnj_ia-dev-environment --skill x-implement-task","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring-neo4j\u002F.claude\u002Fskills\u002Fx-implement-task\u002FSKILL.md",[52,58,62],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"README.md","REFERENCE","参考文档",1997,"https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring-neo4j\u002F.claude\u002Fskills\u002Fx-implement-task\u002FREADME.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Ffull-protocol.md",9733,"https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring-neo4j\u002F.claude\u002Fskills\u002Fx-implement-task\u002Freferences\u002Ffull-protocol.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Ftdd-cycle-protocol.md",5267,"https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring-neo4j\u002F.claude\u002Fskills\u002Fx-implement-task\u002Freferences\u002Ftdd-cycle-protocol.md",[67,74,81,88,95,102],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M757M8J48TQ1Y3X25GSJBXAS","x-parallel-eval","Detects and classifies file-collision risks between work units (tasks, stories, or epic phases) before parallel execution. Reads ## File Footprint blocks produced by x-task-plan \u002F x-story-plan, applies the parallelism-heuristics knowledge pack (hard \u002F regen \u002F soft categories + hotspot overrides), and emits a collision matrix + serialization recommendation in Markdown (default) or JSON.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fx-parallel-eval\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M757M57XMR9546S69466HDWT","parallelism-heuristics","Canonical catalog of file-collision heuristics for parallel task, story, and epic execution. Defines the File Footprint block format, the three Conflict Categories (hard \u002F regen \u002F soft), a hotspot list of high-contention paths, and the degrade-with-warning policy. Consumed by x-task-plan, x-story-plan, x-epic-map, x-parallel-eval, and x-dev-*-implement.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fparallelism-heuristics\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M757M11SZ8P1VCQABT08QVYA","x-watch-pr-ci","Polls a PR's CI checks and Copilot review status, blocking until checks complete or timeout. Returns one of 8 stable exit codes (SUCCESS=0, CI_PENDING_PROCEED=10, CI_FAILED=20, TIMEOUT=30, PR_ALREADY_MERGED=40, NO_CI_CONFIGURED=50, PR_CLOSED=60, PR_NOT_FOUND=70). Writes a versioned state-file for session resume.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-watch-pr-ci\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M757KW53K8KFPGADFB4PH949","x-validate-docs","Documentation freshness gate: validates 6 dimensions (readme, api-specs, grpc-proto, adr, skill-docs, system-architecture) against code changes in a PR. Stack-aware — only validates targets declared\u002Fauto-detected from ProjectConfig.documentation.targets. Returns exit non-zero on staleness; produces structured report.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-validate-docs\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M757KQZHSA10MKC0CR571D60","x-update-system-architecture","Incrementally updates docs\u002Farchitecture\u002Fsystem.md after an epic completes. Appends new entries to the Decision Log (§11) using x-internal-write-report --append (dedup by ## ID: marker) and surgically inserts component\u002Fintegration changes into sections 1-10 via Edit. Idempotent: re-running with the same epic produces a byte-identical system.md.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-update-system-architecture\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M757KKBT5Q1SVF8DMJBVF46M","x-update-architecture","Incrementally updates the service architecture document with changes from architecture plans. Adds new components, integrations, flows, and ADR references without rewriting existing content. Use after implementation to keep architecture documentation current.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-update-architecture\u002FSKILL.md",[],[]]