| name | using-unwind |
| description | Use when starting any reverse engineering task - establishes how to find and use Unwind skills for codebase analysis, service mapping, and documentation |
| allowed-tools | ["Read","Grep","Glob"] |
Using Unwind
Overview
Unwind provides structured skills for reverse engineering codebases. Produces complete, machine-readable documentation with source links.
Principles
See analysis-principles.md:
- Completeness: Document ALL items (30 tables = 30 documented)
- Machine-readable: Use actual code, SQL, mermaid - not markdown recreation
- Link to source: GitHub links with line numbers where possible
- No commentary: Facts only, no speculation or recommendations
Workflow
start โ architecture.md (+ repo info for linking)
โ
unwinding-codebase โ dispatches layer specialists
โ
โโโ analyzing-database-layer โ database/
โโโ analyzing-domain-model โ domain-model/
โโโ analyzing-service-layer โ service-layer/
โโโ analyzing-api-layer โ api/
โโโ analyzing-messaging-layer โ messaging/ (if present)
โโโ analyzing-frontend-layer โ frontend/ (if present)
โโโ analyzing-unit-tests โ unit-tests/
โโโ analyzing-integration-tests โ integration-tests/
โโโ analyzing-e2e-tests โ e2e-tests/
โ
verifying-layer-documentation โ gap detection (parallel per layer)
โ
โโโ Outputs gaps.md per layer (missing items only)
โ
completing-layer-documentation โ gap completion (parallel per layer)
โ
โโโ Reads gaps.md work list
โโโ Adds missing documentation
โโโ Deletes gaps.md when done
โ
synthesizing-findings โ REBUILD-PLAN.md (strategic rebuild approach)
Skills
Core Flow
| Skill | Output |
|---|
start | architecture.md |
unwinding-codebase | Orchestrates layer analysis |
verifying-layer-documentation | gaps.md per layer (work list) |
completing-layer-documentation | Fills gaps, deletes gaps.md |
synthesizing-findings | REBUILD-PLAN.md |
Layer Specialists
| Skill | Output |
|---|
analyzing-database-layer | database.md |
analyzing-domain-model | domain-model.md |
analyzing-service-layer | service-layer.md |
analyzing-api-layer | api.md |
analyzing-messaging-layer | messaging.md |
analyzing-frontend-layer | frontend.md |
Testing Specialists
| Skill | Output |
|---|
analyzing-unit-tests | unit-tests.md |
analyzing-integration-tests | integration-tests.md |
analyzing-e2e-tests | e2e-tests.md |
Output Structure
docs/unwind/
โโโ architecture.md
โโโ 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.
Quick Start
Use unwind:start
- Review
docs/unwind/architecture.md
Use unwind:unwinding-codebase
Use unwind:verifying-layer-documentation (runs parallel verification)
Use unwind:synthesizing-findings
Note: Step 4 (verification) is integrated into unwinding-codebase but can also be run independently to re-verify existing documentation.
Refresh Mode
Re-run any skill to update documentation. Changes highlighted in ## Changes Since Last Review section.