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.
npx claudepluginhub t-hasuike/clysis --plugin legacy-knowledgeThis skill uses the workspace's default tool permissions.
> This is a generic skill from [CLysis](https://github.com/t-hasuike/CLysis).
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Performs token-optimized structural code search using tree-sitter AST parsing to discover symbols, outline files, and unfold code without reading full files.
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 audience