incremental-implementation

incremental-implementation is a skill for Claude Code, Codex from moberghr/mtk-agent-toolkit. It costs 29 tokens per session (1,162 once invoked), scanned A, original, MIT.

A workflow for implementing an approved change across several files in small batches, checking each batch before continuing.

In plain words
What is it for?
Use it for multi-file implementations and refactors, with test-driven development meaning tests guide the code and source-driven development meaning documentation or source code is checked when framework behavior is uncertain.
Why use it?
It limits the impact of mistakes and confirms that each part still builds and passes tests.

Skill for Claude CodeCodex

Part of the mtk plugin — 45 skills, 6 agents, 7 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/moberghr/mtk-agent-toolkit/incremental-implementation
Any agent
npx skills add moberghr/mtk-agent-toolkit --skill incremental-implementation
Clone the repo
git clone --depth 1 https://github.com/moberghr/mtk-agent-toolkit

Made for: Claude Code, Codex.

Or install mtk, the plugin that ships this one along with the rest of its 45 skills, 6 agents, 7 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for incremental-implementation

README.md
[![agentmods](https://agentmods.dev/badge/skills/moberghr/mtk-agent-toolkit/incremental-implementation.svg)](https://agentmods.dev/skills/moberghr/mtk-agent-toolkit/incremental-implementation)
Your own site
<a href="https://agentmods.dev/skills/moberghr/mtk-agent-toolkit/incremental-implementation"><img src="https://agentmods.dev/badge/skills/moberghr/mtk-agent-toolkit/incremental-implementation.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,162 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00029 $0.01162
Opus 5 $0.00015 $0.00581
Sonnet 5 $0.00006 $0.00232
Haiku 4.5 $0.00003 $0.00116

Measured 3d ago against content hash a31af68e0f70, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

incremental-implementation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/incremental-implementation/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Incremental Implementation

Overview

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.

When To Use

  • Any approved multi-file implementation
  • Refactors that still require verification
  • Any task where the cost of late failure is high

When NOT To Use

  • Single-file, single-function changes already minimal enough for the fix workflow

Workflow

  1. Before each batch, re-read the relevant rules from CLAUDE.md and the shared references.
  2. Ask the simplicity question: what is the smallest correct implementation that could work?
  3. Implement only the files listed for the batch.
  4. Follow test-driven-development for tests in the same batch.
  5. Use source-driven-development when any framework, library, or SDK behavior is uncertain.
  6. Run the batch checkpoint using the build and test commands from the active tech stack skill's ## 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.
  7. Read .claude/references/pre-commit-review-list.md if present and fix any violations immediately.
  8. Mark the batch complete in 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.
  9. Churn check: After completing each batch, run git diff --stat and count net lines changed. If cumulative changes across batches exceed 300 lines, pause and trigger an early review checkpoint:
    • Run the pre-commit review list if present
    • Assess whether the scope is still within the approved manifest
    • If changes exceed 500 lines without a review, stop and run compliance-reviewer before continuing
    • This catches large unplanned changes mid-implementation rather than at the end
  10. After all batches, run the full test command from the tech stack and write an explicit behavioral diff.
  11. Append the implement 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.

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 102 lines · 29 tokens per session scan A a31af68e0f70

Subscribe to this mod's changes

incremental-implementation is a skill published in the GitHub repository moberghr/mtk-agent-toolkit (6 stars, last pushed 9d ago), licensed MIT. It adds 29 tokens to every session and 1,162 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens