/unwind:uw-helpfrom unwind
Entry point for reverse engineering codebases with Unwind skills. Establishes workflow for codebase analysis, service mapping, and documentation generation.
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.
Unwind provides structured skills for reverse engineering codebases. Produces complete, machine-readable documentation with source links.
Unwind is hybrid: a deterministic scanner (@unwind/core, tree-sitter) builds
the verifiable ground truth — file inventory, structural symbols, import graph,
and a first-pass layer assignment — and the LLM specialists add the semantic
rebuild documentation (business logic, contracts, MUST/SHOULD/DON'T). Completeness
is then verified by set arithmetic, not asserted.
The scanner is built on first use (the skills run pnpm install && pnpm build
automatically via ensure_unwind_core). To pre-build manually:
pnpm install && pnpm build
Supported languages for symbol extraction: TypeScript/JavaScript, Python, Rust, Java, C#. Other languages still get full file-level coverage (graceful degradation), and if Node/pnpm is unavailable Unwind falls back to a pure-LLM flow.
100% coverage means every symbol is described. It says nothing about whether the
described behaviour deserves to be reproduced. uw-grill is the step that asks
that question — and because the person running Unwind usually can't answer it, it
writes the business questions into docs/unwind/questions/ for the people who can.
See analysis-principles.md:
### name [MUST] <!-- id: ... --> so coverage is checked mechanicallyuw-start → entry point: orient, check prereqs, drive the pipeline
│
uw-scan → scan.mjs → scan-manifest.json (ground truth)
│ → architecture.md (derived + unassigned adjudicated)
│
uw-analyze
├── seed-layers.mjs → .cache/seeds/{layer}.json (candidate checklists)
│
├── uw-analyze-database → database/ (seeded)
├── uw-analyze-domain → domain-model/ (seeded)
├── uw-analyze-service → service-layer/ (seeded)
├── uw-analyze-api → api/ (seeded)
├── uw-analyze-messaging → messaging/ (if present)
├── uw-analyze-frontend → frontend/ (if present)
├── uw-analyze-unit-tests → unit-tests/
├── uw-analyze-integration-tests → integration-tests/
├── uw-analyze-e2e-tests → e2e-tests/
└── uw-analyze-infrastructure → infrastructure/ (seeded)
│
verify-coverage.mjs → DETERMINISTIC diff (manifest − docs)
│ → .cache/coverage/{layer}.json + gaps.md (missing items)
│
uw-complete → fills gaps.md, deletes it
│ (loop verify → complete until 100% coverage)
│
uw-grill → attacks the business logic (optional, before planning)
├── grill-brief.mjs → .cache/grill-brief.json (hotspot buckets)
├── uw-grill-layer → per-layer adversarial explorers (evidence required)
├── questions/*.md → questionnaires for DOMAIN EXPERTS, by capability
└── grill-answers.mjs → ingests ticked answers → retags the layer docs
│
uw-plan → REBUILD-PLAN.md (strategic rebuild approach)
│
uw-build → executes the rebuild in the target stack (optional)
├── uw-build-layer → per-slice builder subagents (technology-agnostic)
├── merge-rebuild-map.mjs → rebuild-state.json + rebuild-progress.json
└── verify-rebuild.mjs → rebuild-verification-graph.json + rebuild-gaps.md
(re-scans the target; measures completeness)
| Skill | Output |
|---|---|
uw-start | Entry point — orients, checks prereqs, drives the pipeline |
uw-scan | architecture.md |
uw-analyze | Orchestrates layer analysis |
uw-verify | gaps.md per layer (work list) |
uw-complete | Fills gaps, deletes gaps.md |
uw-plan | REBUILD-PLAN.md |
uw-graph | rebuild-graph.json (graph + coverage) |
uw-dashboard | Launches the interactive graph dashboard |
uw-build | Executes the rebuild in the target stack + rebuild-verification-graph.json (completeness) |
uw-build-layer | Per-slice technology-agnostic builder (dispatched by uw-build) |
uw-refresh | Incremental update — re-analyzes only changed layers |
| Skill | Output |
|---|---|
uw-analyze-database | database.md |
uw-analyze-domain | domain-model.md |
uw-analyze-service | service-layer.md |
uw-analyze-api | api.md |
uw-analyze-messaging | messaging.md |
uw-analyze-frontend | frontend.md |
uw-analyze-infrastructure | infrastructure/ |
| Skill | Output |
|---|---|
uw-analyze-unit-tests | unit-tests.md |
uw-analyze-integration-tests | integration-tests.md |
uw-analyze-e2e-tests | e2e-tests.md |
docs/unwind/
├── architecture.md
├── .cache/ # deterministic intermediates
│ ├── scan-manifest.json # ground truth (inventory + symbols)
│ ├── meta.json # baseline fingerprints + commit (incremental)
│ ├── changes.json # detect-changes output (incremental refresh)
│ ├── seeds/{layer}.json # per-layer candidate checklists
│ └── coverage/{layer}.json # per-layer coverage reports
├── rebuild-graph.json # knowledge graph for the dashboard
├── layers/
│ ├── database/
│ │ ├── index.md
│ │ ├── schema.md
│ │ ├── repositories.md
│ │ └── verification.md
│ ├── domain-model/
│ │ ├── index.md
│ │ ├── entities.md
│ │ └── verification.md
│ ├── service-layer/
│ │ ├── index.md
│ │ ├── services.md
│ │ ├── formulas.md
│ │ └── verification.md
│ ├── api/
│ │ ├── index.md
│ │ ├── endpoints.md
│ │ └── verification.md
│ └── [other layers...]
└── REBUILD-PLAN.md
Each layer is a folder with index.md + section files for incremental writes.
New here? Just Use unwind:uw-start — it orients you, checks prerequisites, and
drives the whole pipeline with a checkpoint at each phase. The manual sequence is:
Use unwind:uw-scan — runs the deterministic scan, derives architecture.mddocs/unwind/architecture.mdUse unwind:uw-analyze — seeds specialists, analyzes, verifies coverageUse unwind:uw-verify — deterministic coverage diff (re-run any time)Use unwind:uw-planUse unwind:uw-dashboard — builds the graph and launches the viewer
(unwind:uw-graph is an optional raw-artifact export)After code changes: Use unwind:uw-refresh — fingerprints detect
what moved and only the affected layers are re-analyzed; changed contracts are
flagged stale / needs-recheck in the graph.
Note: Step 4 (verification) is a deterministic manifest − docs diff and is
integrated into uw-analyze; run it standalone to re-verify existing
documentation at any time.
Re-run any skill to update documentation. Changes highlighted in ## Changes Since Last Review section.
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