一键导入
incremental-implementation
Use when executing an approved multi-file implementation to ensure each batch compiles, tests, and stays within the approved manifest.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when executing an approved multi-file implementation to ensure each batch compiles, tests, and stays within the approved manifest.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Corrective batch of multiple small independent fixes (apply review findings, several/multiple fixes across >3 files, no new contract or architecture) — broader than fix, lighter than implement.
One-time repo setup that detects tech stack, audits the codebase, pulls coding guidelines, and generates a project-specific CLAUDE.md
Full feature implementation loop orchestrating planning, batching, verification, and review skills
Use when the task is a new feature, breaking change, multi-file change, or any work where approval should happen before coding begins.
Use to create, update, and read durable workflow state under .mtk/workflows/ so orchestration survives compaction, crash, and session handoff.
Use after a spec is approved and before multi-file implementation begins, to break work into verifiable batches with checkpoints.
| name | incremental-implementation |
| description | Use when executing an approved multi-file implementation to ensure each batch compiles, tests, and stays within the approved manifest. |
| type | skill |
| license | MIT |
| compatibility | ["claude-code","codex"] |
| trigger | approved-multi-file-implementation|batched-execution |
| skip_when | single-file-change|minimal-fix |
| user-invocable | false |
Implement in thin slices. Each slice must compile, test, and remain explainable before moving on. Use test-driven-development for the test strategy inside each slice and source-driven-development when framework behavior is uncertain.
CLAUDE.md and the shared references.test-driven-development for tests in the same batch.source-driven-development when any framework, library, or SDK behavior is uncertain.## Build & Test Commands.
6.5. Capture analyzer output. After the build command completes, pipe its output
through the build diagnostics parser if available:
# Example for .NET (adapt command from tech stack skill's Build & Test Commands):
dotnet build 2>&1 | tee /dev/tty | hooks/parse-build-diagnostics.sh > .mtk/analyzer-output.json
Surface any critical analyzer findings immediately — they block the batch just like
build failures. Warning-level findings carry forward to the pre-commit review.
If hooks/parse-build-diagnostics.sh does not exist in the installed toolkit, skip this step..claude/references/pre-commit-review-list.md if present and fix any violations immediately.tasks/todo.md. Record the per-batch gate decision on the workflow artifact: scripts/workflow-artifact.sh gate "$MTK_WF_UUID" phase_exit_gate pass --reason "batch <id> green" (or fail to trigger remediation). See .claude/references/orchestration-gates.md.git diff --stat and count net lines changed. If cumulative changes across batches exceed 300 lines, pause and trigger an early review checkpoint:
compliance-reviewer before continuingimplement section to the JSON handoff artifact at
docs/specs/<date>-<slug>.json. Schema:
.claude/schemas/handoff.schema.json. Required keys:
"implement": {
"actual_files": ["..."], // git diff --name-only <base>...HEAD
"completed_batches": ["B1","B2"],
"deviations": [
{ "kind": "extra-file", "detail": "src/Helper.cs",
"justification": "needed to unblock B2; spec did not anticipate" }
],
"behavioral_diff": "..."
}
Be honest about deviations — spec-drift-detection will diff
change_manifest against actual_files regardless. Run
bash scripts/validate-handoff.sh docs/specs/<date>-<slug>.json to
surface drift before handing off to review.See .claude/skills/context-engineering/SKILL.md for the shared table. Incremental-implementation-specific traps: "since I'm in the file already, I'll clean this up too" (that is how slices become unreadable and impossible to review — stay scoped per batch), and "this abstraction will help future work" (future work is hypothetical, current complexity is real — earn abstractions from duplication, don't pre-build them).