claude-skills/product-team/code-to-prd
Claude aecfb8e0bb
feat(skills): wave-3 optimization — domain overhauls per newgen audit
marketing: context-file unified on .claude/product-marketing-context.md;
ai-seo merged into aeo (2 new cited references, folder deleted); index +
marketing-ops routers rebuilt honestly; 24 orphan scripts wired with exact
CLIs; prompt-engineer-toolkit stub references rewritten with cited content;
Meta 20%-rule + GA4 terminology freshness; 5 zips + 3 planning docs removed

c-level-advisor: role registry 9->14 across all 6 routing surfaces; decision
memory unified on ~/.claude/decisions/{raw,approved}; onboarding schema
canonicalized; 12 phantom commands resolved; index repaired (33/37/68 real
counts); ma-playbook sourced + verification loop; 28 trigger descriptions

engineering(+team): agent-designer 279->76 lines and rag-architect 318->71
lines rebuilt around their tools (stale ada-002/pricing gone); release-manager
merged into changelog-generator (version_bumper + hotfix refs moved, crashing
release_planner dropped); 6 skills' orphan scripts wired; ms365 tools gained
real CLIs; 5 brochure skills de-filled; 4 unreferenced zips removed;
bundle counts trued (25->37, 23->32); 18 trigger descriptions

product/research/compliance/bizops: apple-hig-expert rebuilt around
hig_checker's real CLI with web-verified facts; notebooklm re-verified against
live product; 5 index skills converted to honest routers; research-summarizer
repaired with explicit lane statement; 8 over-1024 descriptions compressed;
9 sub-skills gained fenced CLI examples; GDPR one-month (Art. 12(3)) with
calendar-month deadline math; MDR PSUR table per Art. 86(1); 12 ra-qm zips
removed; 24 trigger descriptions

Verified: check_paths 0 findings; check_dual_publish 0 drifted; smoke 581/581;
check_plugin_json 77 OK; compileall rc=0; all descriptions <=1024 chars

https://claude.ai/code/session_019AJddAL1NADWMXsy1qNPQF
2026-06-11 03:58:41 +00:00
..
.claude-plugin chore(versioning,docs): normalize stale versions to 2.9.0 + refresh counts 2026-05-27 05:22:59 +00:00
skills/code-to-prd feat(skills): wave-3 optimization — domain overhauls per newgen audit 2026-06-11 03:58:41 +00:00
README.md fix(code-to-prd): pass skill-tester validation — README, assets, frontmatter, imports 2026-03-17 12:43:22 +01:00
settings.json feat(code-to-prd): expand to fullstack — add NestJS, Django, Express, FastAPI support 2026-03-17 12:28:30 +01:00

Code → PRD

Reverse-engineer any codebase into a complete Product Requirements Document (PRD).

Quick Start

# One command
/code-to-prd /path/to/project

# Or step by step
python3 scripts/codebase_analyzer.py /path/to/project -o analysis.json
python3 scripts/prd_scaffolder.py analysis.json -o prd/ -n "My App"

Supported Frameworks

Stack Frameworks
Frontend React, Vue, Angular, Svelte, Next.js, Nuxt, SvelteKit, Remix
Backend NestJS, Express, Django, DRF, FastAPI, Flask
Fullstack Next.js (pages + API), Nuxt (pages + server), Django (views + templates)

What It Generates

prd/
├── README.md                  # System overview
├── pages/
│   ├── 01-user-mgmt-list.md   # Per-page/endpoint docs
│   └── ...
└── appendix/
    ├── enum-dictionary.md      # All enums and status codes
    ├── api-inventory.md        # Complete API reference
    └── page-relationships.md   # Navigation and data coupling

Scripts

Script Purpose
codebase_analyzer.py Scan codebase → extract routes, APIs, models, enums
prd_scaffolder.py Generate PRD directory skeleton from analysis JSON

Both are stdlib-only — no pip install needed. Run --help for full usage.

References

  • references/framework-patterns.md — Route, state, API, form, and model patterns per framework
  • references/prd-quality-checklist.md — Validation checklist for completeness and accuracy

Attribution

Inspired by code-to-prd by @lihanglogan.

License

MIT