incremental-implementation
Fungsinya
Skill ini membantu memecah tugas pemrograman yang besar menjadi langkah-langkah kecil yang mudah dikelola. Setiap langkah diuji dan harus berfungsi sebelum lanjut ke langkah berikutnya, sehingga proses pengembangan menjadi lebih aman dan terorganisir.
Kapan dipakai
- โSaat mengimplementasikan fitur baru yang memengaruhi banyak bagian kode.
- โSaat sebuah tugas terasa terlalu besar untuk dikerjakan sekaligus.
- โSaat melakukan refactoring (memperbaiki) kode yang sudah ada.
Link skill
https://github.com/addyosmani/agent-skills/blob/main/skills/incremental-implementation/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โPecah implementasi fitur login menjadi langkah-langkah kecil. Pertama, buat layar login. Lalu, tambahkan validasi email dan kata sandi. Terakhir, hubungkan ke sistem autentikasi.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Idenya adalah mengerjakan satu bagian kecil dalam satu waktu: tulis sedikit kode, uji apakah berfungsi, verifikasi bahwa kodenya benar, dan simpan kemajuan Anda. Ulangi untuk setiap bagian kecil sampai tugas selesai.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Incremental Implementation
Overview
Build in thin vertical slices โ implement one piece, test it, verify it, then expand. Avoid implementing an entire feature in one pass. Each increment should leave the system in a working, testable state. This is the execution discipline that makes large features manageable.
When to Use
- Implementing any multi-file change
- Building a new feature from a task breakdown
- Refactoring existing code
- Any time you're tempted to write more than ~100 lines before testing
When NOT to use: Single-file, single-function changes where the scope is already minimal.
The Increment Cycle
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ Implement โโโ Test โโโ Verify โโโ โ
โ โฒ โ โ
โ โโโโโโ Commit โโโโโโโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ Next slice โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
For each slice:
- Implement the smallest complete piece of functionality
- Test โ run the test suite (or write a test if none exists)
- Verify โ confirm the slice works as expected (tests pass, build succeeds, manual check)
- Commit -- save your progress with a descriptive message (see
git-workflow-and-versioningfor atomic commit guidance) - Move to the next slice โ carry forward, don't restart
Slicing Strategies
Vertical Slices (Preferred)
Build one complete path through the stack:
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
Each slice delivers working end-to-end functionality.
Contract-First Slicing
When backend and frontend need to develop in parallel:
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
Risk-First Slicing
Tackle the riskiest or most uncertain piece first:
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
If Slice 1 fails, you discover it before investing in Slices 2 and 3.
Implementation Rules
Rule 0: Simplicity First
Before writing any code, ask: "What is the simplest thing that could work?"
After writing code, review it against these checks:
- Can this be done in fewer lines?
- Are these abstractions earning their complexity?
- Would a staff engineer look at this and say "why didn't you just..."?
- Am I building for hypothetical future requirements, or the current task?
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
Three similar lines of code is better than a premature abstraction. Implement the naive, obviously-correct version first. Optimize only after correctness is proven with tests.
Rule 0.5: Scope Discipline
Touch only what the task requires.
Do NOT:
- "Clean up" code adjacent to your change
- Refactor imports in files you're not modifying
- Remove comments you don't fully understand
- Add features not in the spec because they "seem useful"
- Modernize syntax in files you're only reading
If you notice something worth improving outside your task scope, note it โ don't fix it:
NOTICED BUT NOT TOUCHING:
- src/utils/format.ts has an unused import (unrelated to this task)
- The auth middleware could use better error messages (separate task)
โ Want me to create tasks for these?
Rule 1: One Thing at a Time
Each increment changes one logical thing. Don't mix concerns:
Bad: One commit that adds a new component, refactors an existing one, and updates the build config.
Good: Three separate commits โ one for each change.
Rule 2: Keep It Compilable
โฆ
Pertanyaan umum
Mengapa dipecah menjadi langkah kecil?
Ini membuat tugas besar terasa lebih ringan, memungkinkan kesalahan ditemukan lebih awal, dan memudahkan membatalkan perubahan jika terjadi masalah.
Apa arti 'verifiable'?
Artinya setelah setiap langkah, Anda bisa memastikan kode berjalan sesuai harapan, biasanya dengan menjalankan tes atau memeriksanya secara manual.
Bolehkah saya memperbaiki kode sambil memecah tugas?
Sebaiknya fokus hanya pada yang diminta tugas. Jika Anda melihat sesuatu di luar cakupan yang perlu diperbaiki, catat untuk dikerjakan nanti, di tugas lain.
Detail
Deskripsi asli dari pembuat
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.
repo: addyosmani/agent-skills
Popularitas
- Bintang GitHub
- 107k
- Peringkat
- #775
- Lisensi
- MIT
- Diperbarui
- 13/10/2026
Komentar
- โฆ
Skill lain dari repositori ini
api-and-interface-design
107kMembantu merancang API dan antarmuka yang terdefinisi dengan baik. Berguna saat merancang cara berbagai bagian perangkat lunak saling berkomunikasi.
browser-testing-with-devtools
107kMembantu agent Anda menguji kode langsung di browser sungguhan. Berguna untuk memeriksa cara kerja di lingkungan penggunaannya, serta menemukan error dan masalah performa.
ci-cd-and-automation
107kMengajarkan agent AI Anda untuk mengotomatisasi tugas berulang, mengirim proyek, dan mengelola infrastruktur.
code-review-and-quality
107kMelakukan tinjauan kode mendetail dari berbagai sisi. Berguna sebelum menggabungkan perubahan baru untuk memastikan kualitas dan mencegah masalah di kemudian hari.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.