brownfield-retrospective
Fungsinya
Alat ini membantu memahami dan memperbaiki proyek perangkat lunak yang sudah ada. Alat ini menganalisis kode yang ada saat ini, mencari tahu bagaimana kode tersebut dibuat, lalu mengidentifikasi apa yang kurang atau bisa ditingkatkan.
Kapan dipakai
- βSaat mulai memakai alat baru di proyek lama.
- βSaat mewarisi atau kembali ke kode yang bukan Anda buat.
- βSaat Anda ingin tahu apa yang terlewat atau mengapa kode dibuat seperti itu.
Link skill
https://github.com/affaan-m/ECC/blob/main/skills/brownfield-retrospective/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
βAnalisis proyek yang sudah ada ini dan beri tahu saya apa yang bisa kita tingkatkan.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Alat mengambil sebagian kode, melihat kondisinya saat ini, mencoba menemukan keputusan yang menghasilkan kondisi tersebut, lalu merencanakan cara memperbaiki masalah yang ditemukan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Brownfield Retrospective
Run ECC's engineering process retroactively against a project that was built without it. Pick any slice of an existing codebase, audit what exists, reconstruct how it got there, extract a four-axis gap register, then execute the fixes forward through the standard ECC pipeline.
The workflow is slice-first: no whole-repo onboarding is required before it is useful, and every phase is re-enterable from a durable artifact on disk. Start in the middle, work backwards, then move forward.
When to Activate
- Adopting ECC in a repository that already exists and is already shaped
- User asks to "audit my existing project", "retro this codebase", or "what did we miss?"
- Taking over, inheriting, or returning to a codebase after a long gap
- User asks "why is it like this?" followed by "should it stay like this?"
- A module, feature, or service needs a rethink before the next feature lands on top of it
- Deciding whether a legacy area should be fixed forward, rewritten, or left documented as-is
When Not to Use
- Greenfield work with no existing code β use
plannerandtdd-workflowdirectly - Onboarding to spec-driven development without the redesign loop β the
spec-mineragent does that on its own - A launch go/no-go production-readiness pass β use
production-audit - Security-only sweeps β use
security-review - Team process retrospectives (sprint ceremonies) β this audits a codebase, not people
The Working Set
All artifacts are written inside the audited project, under docs/retro/<slice>/:
| File | Phase | Purpose |
|---|---|---|
gap-register.md |
0-6 | The state machine β perimeter, Current phase: marker, and rows. The only file required to resume mid-stream. |
baseline-audit.md |
1 | Reviewer findings, test/CI snapshot, TODO inventory. |
reconstructed-spec.md |
2 | What the code actually does today (Requirements + Invariants). |
target-design.md |
4 | Target shape for the slice and the fix sequence. |
Backfilled decisions go to docs/adr/ per the architecture-decision-records skill. If the project uses OpenSpec, reconstructed-spec.md may instead be openspec/specs/<capability>/spec.md produced by spec-miner.
How It Works
Phase 0 β Pick the Entry Point
Start from what the user cares about today. Do not map the whole repo first.
Any of these is a valid slice:
| User signal | Slice |
|---|---|
| Names a directory, module, or service | That path plus its direct callers |
| Names a feature or user flow | The files that implement it, traced from the entry point |
| Names a bug, incident, or pain point | The code that produced it plus one level of call chain |
| Names a dependency or tech choice | Everything that touches it |
| Names nothing | The 2-3 hottest paths by churn β propose them and let the user pick |
Record the perimeter at the top of gap-register.md before anything else: paths in scope, entry points, callers, blast radius. Budget the slice at roughly 15 files or 2,000 lines; if the user's pick is bigger, cut it into named sub-slices and register each as its own row of work. A slice too big to audit in one session is a slice that never finishes. Keep a Current phase: marker beside the perimeter and advance it each time a phase completes.
Phase 1 β Present-State Audit
Establish what exists now, with evidence. Do not fix anything yet.
- Recon the slice: manifest and framework fingerprint, entry points, test layout, CI checks (borrow the recon steps from
codebase-onboarding, scoped to the perimeter). - Run the reviewers that match the stack, in parallel where possible. Every finding must carry a
file:linepointer:- The language reviewer for the stack (
typescript-reviewer,python-reviewer,go-reviewer, ...) security-reviewersilent-failure-hunterfor swallowed errorstype-design-analyzerwhere invariants are encoded in typesperformance-optimizeronly if the slice is on a hot path
- The language reviewer for the stack (
- Snapshot the current state: test count and coverage, lint/CI status,
TODO/FIXME/HACKinventory inside the perimeter.
Write everything to baseline-audit.md. Findings that get fixed during this phase corrupt the baseline β hold them for the register.
Phase 2 β Backward Reconstruction
Work backwards from the present state to the decisions that produced it.
β¦
Pertanyaan umum
Apa itu 'slice' kode?
Itu adalah bagian kecil dari proyek, seperti sebuah modul atau fitur tertentu, sehingga analisis tidak perlu mencakup seluruh kode sekaligus.
Apa yang dimaksud dengan 'four axes'?
Ini adalah empat kategori untuk mengelompokkan masalah yang ditemukan: keputusan yang tidak tercatat (pemikiran), praktik penulisan kode, fitur yang belum ada, dan pilihan teknologi.
Apakah saya perlu menganalisis seluruh proyek?
Tidak. Anda bisa mulai dengan menganalisis satu 'slice' kecil dari proyek, lalu memperluasnya nanti jika diperlukan.
Detail
Deskripsi asli dari pembuat
Run the ECC engineering process retroactively against an existing project slice. Audit current state, reconstruct past decisions, produce a four-axis gap register (thinking, coding practice, missing features, technology selection), then execute fixes forward through the plan-TDD-review pipeline. Use when adopting ECC mid-project, taking over an inherited codebase, or asking what was missed and wha
repo: affaan-m/ECC
Popularitas
- Bintang GitHub
- 280k
- Peringkat
- #271
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
accessibility
280kMembantu agent Anda membuat antarmuka yang ramah untuk semua orang. Memastikan website dan aplikasi tetap bisa dipakai penyandang disabilitas, seperti tunanetra.
agent-architecture-audit
280kMembuat agent Anda memeriksa apakah semuanya berjalan dengan benar. Agent akan menemukan dan memperbaiki masalah pada sistem AI agar bekerja sesuai harapan.
agent-eval
280kMembantu agent Anda membandingkan berbagai alat coding AI. Mengukur mana yang lebih cepat, lebih murah, dan lebih andal untuk tugas tertentu.
agent-harness-construction
280kMembuat agent Anda lebih memahami cara menyelesaikan tugas. Agent mengoptimalkan alat dan instruksi yang digunakan agar peluang berhasilnya lebih besar.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.