incremental-implementation

incremental-implementation is a skill for Claude Code, Codex from 233i/agent-skills. It costs 50 tokens per session (2,131 once invoked), scanned A, original, MIT.

A way to build and deliver changes in small, complete slices. Each slice is implemented, tested, checked, and saved as a separate Git commit before the next slice begins.

In plain words
What is it for?
Use it for features or refactors that touch multiple files, especially when the work is too large to implement safely in one step.
Why use it?
Large changes made all at once are harder to test, review, and recover when something goes wrong. Small working steps keep the project usable and make progress easier to track.

Skill for Claude CodeCodex

Part of the agent-skills plugin — 20 skills, 7 commands, 3 agents, 1 hook 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/233i/agent-skills/incremental-implementation
Any agent
npx skills add 233i/agent-skills --skill incremental-implementation
Clone the repo
git clone --depth 1 https://github.com/233i/agent-skills

Made for: Claude Code, Codex.

Or install agent-skills, the plugin that ships this one along with the rest of its 20 skills, 7 commands, 3 agents, 1 hook.

Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,131 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.00050 $0.02131
Opus 5 $0.00025 $0.01066
Sonnet 5 $0.00010 $0.00426
Haiku 4.5 $0.00005 $0.00213

Measured 3d ago against content hash 824a6d6df9e8, 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.

skills/incremental-implementation/SKILL.md · 241 lines

How it starts

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

增量实现

概览

用薄的纵向切片来构建系统:实现一小块,测试它,验证它,再继续扩展。避免一次把整个功能全部做完。每一个增量都应该让系统保持在可工作、可测试的状态。这种执行纪律,能让大型功能变得可控。

何时使用

  • 实现任何多文件改动
  • 根据任务拆解落地新功能
  • 重构现有代码
  • 任何你想在测试前一口气写超过约 100 行代码的时候

不适用的场景: 单文件、单函数,并且范围已经很小的改动。

增量循环

┌──────────────────────────────────────┐
│                                      │
│   Implement ──→ Test ──→ Verify ──┐  │
│       ▲                           │  │
│       └───── Commit ◄─────────────┘  │
│              │                       │
│              ▼                       │
│          Next slice                  │
│                                      │
└──────────────────────────────────────┘

对于每个切片:

  1. Implement:实现最小但完整的一块功能
  2. Test:运行测试,如果还没有测试就补测试
  3. Verify:确认这一块真的符合预期,例如测试通过、构建成功、手工检查正常
  4. Commit:用清晰的提交信息保存进度,参见 git-workflow-and-versioning
  5. Move to the next slice:继续推进,不要推倒重来

切片策略

纵向切片(首选)

一次打通一条完整路径:

Slice 1: Create a task (DB + API + basic UI)
    → Tests pass, user can create a task via the UI

Slice 2: List tasks (query + API + UI)
    → Tests pass, user can see their tasks

Slice 3: Edit a task (update + API + UI)
    → Tests pass, user can modify tasks

Slice 4: Delete a task (delete + API + UI + confirmation)
    → Tests pass, full CRUD complete

每个切片都能交付一个真实可用的端到端能力。

先定义契约的切片方式

当前后端需要并行开发时:

Slice 0: Define the API contract (types, interfaces, OpenAPI spec)
Slice 1a: Implement backend against the contract + API tests
Slice 1b: Implement frontend against mock data matching the contract
Slice 2: Integrate and test end-to-end

风险优先切片

先处理最危险、最不确定的部分:

Slice 1: Prove the WebSocket connection works (highest risk)
Slice 2: Build real-time task updates on the proven connection
Slice 3: Add offline support and reconnection

如果 Slice 1 失败,你会在投入 Slice 2 和 3 之前就知道。

实现规则

规则 0:简单优先

在写代码之前,先问一句:“能工作的最简单方案是什么?”

写完之后,再用下面这些问题回看:

  • 能不能用更少的代码实现?
  • 这些抽象真的值回它们的复杂度吗?
  • 资深工程师会不会看完后问一句“你为什么不直接……?”
  • 我是在为假想的未来需求设计,还是只为当前任务服务?
SIMPLICITY CHECK:
✗ Generic EventBus with middleware pipeline for one notification
✓ Simple function call

✗ Abstract factory pattern for two similar components
✓ Two straightforward components with shared utilities

✗ Config-driven form builder for three forms
✓ Three form components

Read the full file on GitHub · 241 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 · 241 lines · 50 tokens per session scan A 824a6d6df9e8

Subscribe to this mod's changes

incremental-implementation is a skill published in the GitHub repository 233i/agent-skills (6 stars, last pushed 4mo ago), licensed MIT. It adds 50 tokens to every session and 2,131 once invoked, about $0.0003 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