brownfield-retrospective
Was er macht
Dieses Tool hilft dir, bestehende Softwareprojekte zu verstehen und zu verbessern. Es analysiert den aktuellen Code, findet heraus, wie er entstanden ist, und erkennt, was fehlt oder verbessert werden kann.
Wann du ihn nutzt
- ✓Wenn du ein neues Tool bei einem alten Projekt einsetzt.
- ✓Wenn du Code übernimmst oder zu Code zurückkehrst, den du nicht selbst geschrieben hast.
- ✓Wenn du wissen willst, was übersehen wurde oder warum der Code so aussieht, wie er aussieht.
Link zum Skill
https://github.com/affaan-m/ECC/blob/main/skills/brownfield-retrospective/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Analysiere dieses bestehende Projekt und sag mir, was wir verbessern können.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Es nimmt einen Teil des Codes, betrachtet seinen aktuellen Zustand, versucht die Entscheidungen aufzudecken, die dazu geführt haben, und plant am Ende, wie die erkannten Probleme behoben werden können.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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.
…
Häufige Fragen
Was ist ein Code-„Slice“?
Das ist ein kleiner Teil des Projekts, zum Beispiel ein Modul oder eine bestimmte Funktion, damit die Analyse nicht gleich die gesamte Codebasis auf einmal umfassen muss.
Was sind die „vier Achsen“?
Das sind vier Kategorien, in die die erkannten Probleme eingeordnet werden: nicht dokumentierte Entscheidungen (Denkweise), Coding-Praktiken, fehlende Funktionen und Technologieentscheidungen.
Muss ich das ganze Projekt analysieren?
Nein, du kannst mit einem kleinen „Slice“ des Projekts beginnen und die Analyse bei Bedarf später erweitern.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 280k
- Platz im Ranking
- #271
- Lizenz
- MIT
- Aktualisiert
- 15.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
accessibility
280kHilft deinem Agenten, barrierefreie Oberflächen zu bauen. Websites und Apps werden so auch für Blinde und Menschen mit eingeschränkter Mobilität gut nutzbar.
agent-architecture-audit
280kLässt deinen Agenten prüfen, ob alles richtig läuft. Er findet und behebt Probleme in KI-Systemen, damit sie wie erwartet arbeiten.
agent-eval
280kHilft deinem Agenten, verschiedene KI-Coding-Tools zu vergleichen. Er misst, welches für bestimmte Aufgaben schneller, günstiger und zuverlässiger ist.
agent-harness-construction
280kMacht deinen Agenten besser darin, Aufgaben zu lösen. Er optimiert die Tools und Anweisungen, die er nutzt, damit er mit höherer Wahrscheinlichkeit erfolgreich ist.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.