# 段階的な実装 (incremental-implementation)

> 変更を薄く検証可能なスライスで少しずつ届けます。小さく実装し、テスト・検証・コミットしてから次へ進みます。

- カテゴリ: [機能開発](https://www.myskills.tools/ja/categories/feature-development/)
- 提供元: コミュニティ · Addy Osmani
- リポジトリ: https://github.com/addyosmani/agent-skills/tree/main/skills/incremental-implementation (commit cda4542)
- SKILL.md: https://github.com/addyosmani/agent-skills/blob/main/skills/incremental-implementation/SKILL.md
- インストールコマンド: `npx skills add addyosmani/agent-skills --skill incremental-implementation`
- ライセンス: MIT
- 対応ツール: Claude Code, Codex, Cursor, Copilot, Gemini CLI
- 権限: read-repo ✓, write-files ✓, shell ✓, network ✗
- 状態: スキャン済み
- ルールスキャンですべてのリスクを検出できるわけではありません。インストール前にこのスキルの SKILL.md を読み、権限を確認してください。

## 基本ルール

各インクリメントの後も、システムがビルドでき、テストが通る動く状態を保つこと。

## 実行フェーズ

1. **切り方を選ぶ** — 縦スライスを基本とし、フロントとバックを並行するなら契約を先に決め、不確実性が高いなら最もリスクの高い部分から始めます。
2. **最小限の実装** — 最も単純に動く方法を考え、タスクに必要な部分だけを変え、範囲外の気づきはメモに留めて手を付けません。
3. **テストと検証** — リポジトリ自身のコマンドでテスト・ビルド・型チェック・lint を実行し、新機能が期待どおり動くことを確かめます。
4. **コミットして次へ** — 1インクリメント1変更で個別にコミットして戻しやすくし、未完成の機能は既定でオフのフィーチャーフラグの裏に置きます。

## 権限の説明（SKILL.md より）

| 機能 | 必要か | 説明 |
|---|---|---|
| ファイル書き込み | 必要 | タスクに必要なコードとテストを変更し、範囲外のファイルには触れません。 |
| コマンド実行 | 必要 | リポジトリのテスト・ビルド・型チェック・lint のコマンドと git のコミットを実行します。 |
| 外部通信 | 不要 | ネットワークアクセスは求めていません。 |

## SKILL.md のフロントマター（YAML）

```yaml
---
name: incremental-implementation
description: Delivers changes incrementally in thin, verifiable slices. Use when implementing any feature or change that touches more than one file, or when picking up the next task from a plan. Use when rolling a change out behind a feature flag, when you're about to write a large amount of code at once, or when a task feels too big to land in one step.
---
```

ホーム: https://www.myskills.tools/ja/ · URL: https://www.myskills.tools/ja/skills/incremental-implementation/
