用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cwijayasundara/claude_harness_eng_v4 --skill implement命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Discover and map an existing codebase before planning or changing it.
Change the behavior of existing code — story-driven by default, or --issue N for a GitHub bug fix. Test-first, full verification, code review.
Use when a planned change touches persisted data shape — ORM models, migration files, schema definitions, serialized formats, or message contracts — in /change, /refactor, or /implement on an existing codebase. Routes schema changes through expand-contract and proves reversibility before any deploy.
基于 SOC 职业分类
正在显示 SKILL.md
| name | implement |
| description | Generate production code and tests for a story group using agent teams for parallel execution. |
| argument-hint | [group-id] |
| context | fork |
| agent | generator |
Generate production-quality code and tests for all stories in a dependency group, using a Claude Code agent team for parallel execution.
Ultracode tip: Leave ultracode off here (
/effort high). This skill already spawns an agent team for parallel story execution; ultracode's auto-workflows would double-orchestrate and conflict with the per-story contracts.
/goal tip (single-story only, optional unattended iteration): For a focused single-story group (Step 6, generator-direct path), Claude Code v2.1.139+ lets
/goaldrive that one bounded session toward a verifiable condition — e.g./goal the story's tests pass and lint is clean, or stop after N turns. Always include the "or stop after N turns" safety clause, and phrase conditions so each turn must produce fresh evidence (re-run the tests, show the exit code) to avoid false-positive completion./goal's evaluator (Haiku) only judges what is in the transcript — it does not run tools or read files — so the proof must be printed in the conversation. Because that conflicts with routing verbose output through the parallel teammate subagents of a multi-story group, reserve/goalfor the single-story lane. Do not use/goalinside/auto: it is single-session and would conflict with session chaining, the GAN evaluator, and sprint contracts./goaldoes not replace the evaluator/sprint-contract gate.
/implement C
Implements all stories in group C. The group ID corresponds to a node in specs/stories/dependency-graph.md.
Before running /implement, verify:
specs/stories/dependency-graph.md exists and lists groups with story assignments.specs/design/component-map.md exists and maps each story to the files it owns.Readiness: ready.If any prerequisite is missing, stop and report what is absent. Do not proceed with partial context.
If specs/brownfield/ exists, read architecture-map.md, test-map.md, risk-map.md, and change-strategy.md before planning. Treat these as implementation constraints:
symbol-map.md and, for files flagged in skeletons/, read only the relevant symbol slice with Read(offset, limit) — never whole-file-read a skeleton-flagged file. Pass this instruction into teammate spawn prompts.checking-coverage-before-change first; UNCOVERED routes through pinning-down-behavior / sprouting-instead-of-editing. Pass this into teammate spawn prompts too.checking-migration-safety and carry its expand-contract plan into the teammate spawn prompts.Before loading code or spawning agents, invoke superpowers:writing-plans to produce a structured implementation plan for this group. The plan identifies task decomposition, dependencies, and risk areas. This feeds into the teammate spawn prompts and prevents ad-hoc implementation.
If story metadata, component ownership, or API/data contracts conflict, invoke .claude/skills/clarify/SKILL.md before planning implementation. Keep clarification bounded:
needs_breakdown and stop instead of guessing.Read .claude/skills/code-gen/SKILL.md in full. Its core quality principles apply to every line of code produced. Inject the full text into every teammate prompt.
Pay particular attention to deep modules and public-interface testing:
Read specs/stories/dependency-graph.md. Identify:
For every story in the group, read the corresponding specs/stories/E{n}-S{n}.md file and verify:
Readiness: readyLayer is presentGroup matches the requested groupDepends On matches the dependency graphAbort if any story is marked needs_breakdown, lacks concrete acceptance criteria, or has metadata that conflicts with the dependency graph. Abort if upstream groups are not yet evaluated as PASS.
Read specs/design/component-map.md. For each story in the group, extract:
This ownership map is the single source of truth for file assignments during parallel execution.
Read .claude/state/learned-rules.md. Inject ALL rules verbatim into every teammate spawn prompt. Learned rules include anti-pattern code examples and better approach code — teammates must study these before writing code, not just read the rule text. Rules represent project-specific decisions made during previous sprints (naming conventions, library choices, API patterns). Skipping this step causes regressions.
The agent-team execution protocol is defined once, in /auto SECTION 4 (Agent Team Execution) — .claude/skills/auto/SKILL.md. Follow it verbatim in standalone mode (skip SECTION 3's sprint-contract negotiation): the mandatory team spawn for 2+ story groups (1 teammate per story, max 5 concurrent, batch the remainder), the orchestrator and teammate spawn prompt templates, model tiering, the shared-type dependency handshake, and the spawn-evidence logging to .claude/state/iteration-log.md. Do not restate or improvise that protocol here — if this skill and SECTION 4 ever disagree, SECTION 4 wins.
For a single-story group, skip the team: use the generator agent directly — present a plan, await approval, write the failing test first, watch it fail, then implement the minimum to pass.
Ratchet warning:
/implementruns outside the/autoloop, so its output bypasses auto's ratchet Gates 1–7 (contract negotiation, evaluator scoring, regression ratchet, security gate). Steps 6–7 below cover validation and clean-code review only. Run/evaluate(or/review) on the group after this skill completes before treating it as merge-ready.
After all teammates (or the generator) complete:
npm test or pytest (whichever applies to the project).npm run lint or ruff check ..tsc --noEmit or mypy ..All three must pass with zero errors before proceeding. If any fails, return the failure output to the responsible teammate for a fix, then re-run the validation gate.
Spawn the clean-code-reviewer agent (harness-provided: .claude/agents/clean-code-reviewer.md; recognized by the review-on-stop Stop hook) on the set of changed files:
If the reviewer still emits BLOCK findings after 3 retries, escalate to the user with a summary of the unresolved issues.
needs_breakdown. Break the story down and update specs/stories/, dependency-graph.md, component-map.md, and features.json first..claude/state/learned-rules.md recreates decisions the team has already made, causing style and pattern drift.