From legacy-knowledge
Reverse-engineer PRD (Product Requirements Document) from existing codebase. Scans code structure, APIs, services, and DB schema to generate structured specification documents.
How this skill is triggered — by the user, by Claude, or both
Slash command
/legacy-knowledge:current-prdThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> This is a generic skill from [CLysis](https://github.com/t-hasuike/CLysis).
This is a generic skill from CLysis. Terminology can be customized via
config/terminology.md.
Generate a PRD (Product Requirements Document) by reverse-engineering an existing codebase. Instead of writing specs from scratch, extract the actual behavior from code and organize it into structured documentation that can be maintained as a living document.
Collect facts that can be extracted without human input:
Output: reports/current-prd-{repo}-phase1.md
For each significant module/service discovered in Phase 1:
Output: reports/current-prd-{repo}-phase2.md
Assemble findings into PRD format, mapped to the project's knowledge structure:
knowledge/system/01_overview/knowledge/system/02_structure/knowledge/system/03_behavior/Output: reports/current-prd-{repo}-final.md
To manage token consumption on large codebases, scope can be limited:
full: scan entire repository (use for small repos or initial baseline)[module-name]: scan specific module/feature area (e.g., "order-processing", "payment")reports/ only. Never overwrite knowledge/ directly/doc-organize to promote to knowledge/| Existing Skill | Relationship |
|---|---|
| /current-spec | Point investigation and detailed specification. current-prd is the surface-level counterpart |
| /current-prd | Promotes bulk findings. current-spec promotes individual findings |
| /doc-organize | Transfers current-prd output from reports/ to knowledge/ |
| /current-legacy | Phase 0 auto-collection overlaps. current-prd extends with Module Analysis |
| Type | Content | Required |
|---|---|---|
| Repository path | Local path to target repository | Required |
| Scope | full or module name | Optional (default: full) |
| Type | Format | Destination |
|---|---|---|
| Phase 1 report | Markdown (tech stack, endpoints, DB tables) | reports/current-prd-{repo}-phase1.md |
| Phase 2 report | Markdown (module analysis, dependencies) | reports/current-prd-{repo}-phase2.md |
| Final PRD | Markdown (assembled PRD with knowledge/ mapping) | reports/current-prd-{repo}-final.md |
/doc-organize promotes relevant sections to knowledge//doc-update adjusts depth for target audienceCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub t-hasuike/clysis --plugin legacy-knowledge