/unwind:uw-startfrom unwind
Entry point for reverse-engineering a codebase with Unwind. Orients user, checks prerequisites (git, node, pnpm), handles restart/update, then drives the rebuild pipeline (scan → analyze → grill → plan → dashboard) with phase checkpoints.
Ships in unwind. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The front door. This skill orients the user and drives the pipeline by delegating to the phase skills — it does not re-implement them. Each phase ends with its own continue/pause gate, so you stay in control.
Unwind reverse-engineers this codebase into a rebuild spec — enough to rebuild it in a different stack while preserving the data model, API contracts, and business logic. Every documented item is tagged
[MUST]/[SHOULD]/[DON'T], and completeness is verified by set arithmetic (scan − docs), not asserted.Pipeline: scan → analyze → grill → plan → dashboard. We checkpoint at each phase.
git rev-parse --is-inside-work-tree 2>/dev/null && echo "git: yes" || echo "git: no (local mode — source links degrade, still works)"
command -v node >/dev/null && command -v pnpm >/dev/null && echo "node+pnpm: yes" || echo "node/pnpm: missing (falls back to the legacy pure-LLM flow)"
pwd # confirm this is the repo to analyze
link_format for source links); without it Unwind
runs in local mode with degraded links.@unwind/core). If missing,
every skill degrades gracefully to the pure-LLM flow.pwd is the project root you intend to analyze.ls docs/unwind/layers/*/ >/dev/null 2>&1 && echo "EXISTING analysis found" || echo "fresh run"
uw-analyze (its Step 0 pre-gate): Update (refresh, non-destructive)
or Restart from scratch (deletes prior docs, requires explicit confirmation).
Don't delete anything here — let uw-analyze own that gated decision.Use AskUserQuestion to ask how they want to proceed:
Invoke the first phase now — unwind:uw-scan — and then follow the pipeline:
| Phase | Skill | Produces |
|---|---|---|
| 1. Scan | unwind:uw-scan | architecture.md + .cache/scan-manifest.json |
| 2. Analyze | unwind:uw-analyze | layers/** (seeded, verified to 100%) |
| 3. Grill (optional) | unwind:uw-grill | questions/*.md — attacks the documented business logic and asks domain experts what shouldn't be rebuilt |
| 4. Plan | unwind:uw-plan | REBUILD-PLAN.md (interviews you about target stack, re-use & phasing) |
| 5. Dashboard | unwind:uw-dashboard | builds rebuild-graph.json + launches the viewer |
| 6. Build (optional) | unwind:uw-build | executes the rebuild in the target stack + a source→target verification graph measuring completeness |
Step-through mode: invoke unwind:uw-scan, then act on each phase's
continue/pause prompt as the user answers it.
Grilling is opt-in and never auto-runs. After the coverage loop closes, offer
unwind:uw-grill: it hunts for business rules that shouldn't be rebuilt at all
(obsolete workarounds, unexplained constants, contradictions) and writes the ones
only a domain expert can settle into docs/unwind/questions/. Run it before
the plan, so the plan isn't built on rules you were about to drop. Skip it when the
user just wants the spec.
Run-to-dashboard mode: invoke each phase in turn, auto-continuing at the gates,
until the dashboard launches — pausing only for the restart confirmation, the
plan interview (target stack and re-use are user decisions; uw-plan lets you
one-shot them via "accept all recommended defaults"), or errors.
unwind:uw-graph is an optional export (raw rebuild-graph.json without a
server, for static deploy / CI / sharing) — not a required phase; the dashboard
builds the graph itself.
unwind:uw-build to actually rebuild the codebase in the target stack. It
interviews you about scope/order, dispatches technology-agnostic per-layer builder
agents, holds its progress in docs/unwind/.cache/rebuild-state.json, and
maintains a source→target verification graph measuring completeness. It can run
step-by-step or, via the /loop skill (/loop /uw-build), loop until the measured
completeness hits target.unwind:uw-refresh (incremental) or just re-open
unwind:uw-dashboard (it rebuilds the graph from the current scan + docs).unwind:uw-help.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nearform/unwind --plugin unwind25 skills in this plugin
/uw-analyzeUse after unwind:uw-scan to orchestrate layer-by-layer analysis using specialist subagents/uw-analyze-apiUse when analyzing REST/GraphQL API endpoints, contracts, authentication, and client-facing interfaces/uw-analyze-databaseUse when analyzing the database layer including schema, migrations, ORM configuration, and data access patterns/uw-analyze-domainUse when analyzing domain entities, value objects, aggregates, and business rules encoded in the model/uw-analyze-e2e-testsUse when analyzing end-to-end tests including browser automation, API workflows, and full system testing/uw-analyze-frontendUse when analyzing frontend/UI layer including components, state management, routing, and API integration (optional - skip if no frontend exists)Other plugins' skills for the same job