Onboarding a legacy service
An illustrative walkthrough of the first thing most teams do: take an existing, under-documented repository and make it agent-pilotable — without disturbing what already works.
- 01 Analyze
- 02 Reason
- 03 Onboard
- 04 Verify
reconcile, never overwrite
The goal
“Make this five-year-old service AI-first.” It already has a partial README, some scattered docs, and no AGENTS.md.
The run
The developer hands their agent one line — read and follow /init.md — and the onboarding flow:
- Reconnaissance. Detects the real language, package manager (from the lockfile that exists), and the actual build, test, and lint commands — by reading the repo, not by assuming.
- Proposes a plan and asks. Because artifacts already exist, it is non-destructive: it lists what it will create versus what it will reconcile, and waits for approval before touching the partial
READMEor scattered docs. - Generates the harness. A reasoned
AGENTS.mdwith the service’s real Quick Commands, a categorizeddocs/tree that absorbs the existing notes rather than duplicating them, per-module READMEs, the.agents/kit, and a gitignored.dwp/. - Verifies.
/dwp-verifyreturns an objective pass/fail report against the conformance criteria.
Outcome
The legacy service becomes AI-first with nothing destroyed: existing work is merged, not overwritten, and the result is checkable rather than asserted. From here the team plans and executes real work with /dwp-create and /dwp-execute.