mtk-agent-toolkit: Skill for Claude Code

.claude/skills/incremental-implementation/SKILL.md

incremental-implementation is a skill for Claude Code from moberghr/mtk-agent-toolkit. It costs 29 tokens per session (1,527 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 Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

This is moberghr/mtk-agent-toolkit's own configuration. It tells Claude Code how to work on mtk-agent-toolkit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mtk-agent-toolkit configures →

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the mtk plugin — 33 skills, 7 agents, 6 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to moberghr/mtk-agent-toolkit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/moberghr/mtk-agent-toolkit/main/.claude/skills/incremental-implementation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/moberghr/mtk-agent-toolkit

Made for: Claude Code.

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

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for incremental-implementation

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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,527 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 85
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.1 $0.00029 $0.01527
Opus 5.5 $0.00012 $0.00611
Sonnet 5.5 $0.00006 $0.00305
Haiku 4.5 $0.00003 $0.00153

Measured 8d ago against content hash 2749bd980786, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 8d 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 · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 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.

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 shared references that batch's files match (context-engineering step 3).
  2. Implement only the files listed for the batch, with the smallest correct change.
  3. Write the tests in the same batch, failing first where the batch adds or fixes behavior (see Batch policy below).
  4. Run the batch checkpoint using the build and test commands from the active tech stack skill's ## Build & Test Commands.
  5. Capture analyzer output. Write the build output to a log, then feed the log to the build diagnostics parser. (No tee /dev/tty: agent shells have no terminal, so it fails.) The parser ships with the plugin; resolve it plugin-first, then the project copy:
    # Example for .NET (adapt command from tech stack skill's Build & Test Commands):
    PBD="${CLAUDE_PLUGIN_ROOT}/hooks/parse-build-diagnostics.sh"; [ -f "$PBD" ] || PBD=hooks/parse-build-diagnostics.sh
    mkdir -p .mtk; rc=0; dotnet build > .mtk/build.log 2>&1 || rc=$?; tail -n 30 .mtk/build.log
    [ -f "$PBD" ] && bash "$PBD" --file .mtk/build.log > .mtk/analyzer-output.json; [ "$rc" -eq 0 ]
    
    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 the parser resolves nowhere, skip this step.
  6. Read .claude/references/pre-commit-review-list.md if present and fix any violations immediately.
  7. Mark the batch complete in tasks/todo.md. Record the per-batch gate decision and progress on the workflow artifact in the same shell call as the checkpoint test run — <test cmd> && "$WFA" batch "$MTK_WF_UUID" gate phase_exit_gate pass --reason "batch <id> green" -- set results.batches_completed=<n> -- checkpoint --next "<next batch id: intent>" --verify "<test cmd> => <result>" (checkpoint must be the LAST op; exit 3 means --next names a finished unit — fix it and re-run checkpoint alone; on red: || "$WFA" gate … fail … to trigger remediation). A standalone bookkeeping turn is a wasted turn. Also checkpoint when a PR is opened, before waiting on a usage limit (--wait-until <ISO>), and when the context guard nudges. See .claude/references/orchestration-gates.md.
  8. Churn check: After completing each batch, run git diff --stat and count net lines changed since the last review (intermediate or Phase 4), excluding generated and mechanical files — lockfiles, *.Designer.cs, *.g.cs, *.generated.*, EF migration snapshots, *.min.js/*.min.css, built bundle output (e.g. wwwroot/dist/**). Generated churn is not review load. Thresholds are MTK_CHURN_REVIEW_LINES (default 300) and MTK_CHURN_HALT_LINES (default 500); at rigor HIGH/MAX — the subagent path or the inline-MAX profile — the defaults double to 600/1000, because every batch there is already isolated and drift-checked and a full two-stage review is guaranteed at Phase 4, so the mid-run review is a safety net, not the primary review. If the count exceeds the review threshold, 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 the count exceeds the halt threshold without a review, stop and run compliance-reviewer before continuing; the count resets after that review
    • This catches large unplanned changes mid-implementation rather than at the end
  9. After all batches, run the full test command from the tech stack and write an explicit behavioral diff.
  10. 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 · 95 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. 8d ago Changed 2749bd980786
  2. 16d ago Changed · -7 lines 00ab3540a534
  3. 1mo ago Changed 27a02afc4374
  4. 1mo ago Changed 9ee7a67f61f5
  5. 2mo 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 (9 stars, last pushed 8d ago), licensed MIT. It adds 29 tokens to every session and 1,527 once invoked, about $0.0001 per session on Opus 5.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

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

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

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 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

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens