Langsung ke konten
Skillpedia
Tugas & proyek29k ยท #9688

code-to-prd

Fungsinya

Skill ini membaca kode aplikasi yang ada dan menulis dokumen persyaratan produk dalam bahasa bisnis yang sederhana. Skill ini untuk manajer produk dan tim yang sudah punya aplikasi berjalan tetapi belum punya spesifikasi tertulis.

Kapan dipakai

  • โœ“Saat aplikasi yang ada belum memiliki dokumen persyaratan produk tertulis.
  • โœ“Saat Anda perlu mendokumentasikan setiap halaman, kolom, dan endpoint dari sebuah basis kode.
  • โœ“Saat Anda menginginkan spesifikasi yang cukup detail agar insinyur atau agent AI dapat membangun ulang aplikasinya.

Link skill

https://github.com/alirezarezvani/claude-skills/blob/main/product-team/code-to-prd/skills/code-to-prd/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/alirezarezvani/claude-skills/blob/main/product-team/code-to-prd/skills/code-to-prd/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œBaca basis kode kami dan tulis dokumen persyaratan produk yang menjelaskan setiap halaman dan endpoint API.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill memindai proyek untuk memetakan rute, komponen, model, dan endpoint, lalu menyusun kerangka dokumen dan mengisinya, dengan memisahkan integrasi nyata dari data tiruan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Name

Code โ†’ PRD

Description

Reverse-engineer any frontend, backend, or fullstack codebase into a complete Product Requirements Document (PRD). Analyzes routes, components, models, APIs, and user interactions to produce business-readable documentation detailed enough for engineers or AI agents to fully reconstruct every page and endpoint.

Code โ†’ PRD: Reverse-Engineer Any Codebase into Product Requirements

Features

  • 3-phase workflow: global scan โ†’ page-by-page analysis โ†’ structured document generation
  • Frontend support: React, Vue, Angular, Svelte, Next.js (App + Pages Router), Nuxt, SvelteKit, Remix
  • Backend support: NestJS, Express, Django, Django REST Framework, FastAPI, Flask
  • Fullstack support: Combined frontend + backend analysis with unified PRD output
  • Mock detection: Automatically distinguishes real API integrations from mock/fixture data
  • Enum extraction: Exhaustively lists all status codes, type mappings, and constants
  • Model extraction: Parses Django models, NestJS entities, Pydantic schemas
  • Automation scripts: codebase_analyzer.py for scanning, prd_scaffolder.py for directory generation
  • Quality checklist: Validation checklist for completeness, accuracy, readability

Usage

# Analyze a project and generate PRD skeleton
python3 scripts/codebase_analyzer.py /path/to/project -o analysis.json
python3 scripts/prd_scaffolder.py analysis.json -o prd/ -n "My App"

# Or use the slash command
/code-to-prd /path/to/project

Examples

Frontend (React)

/code-to-prd ./src
# โ†’ Scans components, routes, API calls, state management
# โ†’ Generates prd/ with per-page docs, enum dictionary, API inventory

Backend (Django)

/code-to-prd ./myproject
# โ†’ Detects Django via manage.py, scans urls.py, views.py, models.py
# โ†’ Documents endpoints, model schemas, admin config, permissions

Fullstack (Next.js)

/code-to-prd .
# โ†’ Analyzes both app/ pages and api/ routes
# โ†’ Generates unified PRD covering UI pages and API endpoints

Role

You are a senior product analyst and technical architect. Your job is to read a frontend codebase, understand every page's business purpose, and produce a complete PRD in product-manager-friendly language.

Dual Audience

  1. Product managers / business stakeholders โ€” need to understand what the system does, not how
  2. Engineers / AI agents โ€” need enough detail to fully reconstruct every page's fields, interactions, and relationships

Your document must describe functionality in non-technical language while omitting zero business details.

Supported Stacks

Stack Frameworks
Frontend React, Vue, Angular, Svelte, Next.js (App/Pages Router), Nuxt, SvelteKit, Remix, Astro
Backend NestJS, Express, Fastify, Django, Django REST Framework, FastAPI, Flask
Fullstack Next.js (API routes + pages), Nuxt (server/ + pages/), Django (views + templates)

For backend-only projects, the "page" concept maps to API resource groups or admin views. The same 3-phase workflow applies โ€” routes become endpoints, components become controllers/views, and interactions become request/response flows.


Workflow

Phase 1 โ€” Project Global Scan

Build global context before diving into pages.

1. Identify Project Structure

Scan the root directory and understand organization:

Frontend directories:
- Pages/routes (pages/, views/, routes/, app/, src/pages/)
- Components (components/, modules/)
- Route config (router.ts, routes.ts, App.tsx route definitions)
- API/service layer (services/, api/, requests/)
- State management (store/, models/, context/)
- i18n files (locales/, i18n/) โ€” field display names often live here

Backend directories (NestJS):
- Modules (src/modules/, src/*.module.ts)
- Controllers (*.controller.ts) โ€” route handlers
- Services (*.service.ts) โ€” business logic
- DTOs (dto/, *.dto.ts) โ€” request/response shapes
- Entities (entities/, *.entity.ts) โ€” database models
- Guards/pipes/interceptors โ€” auth, validation, transformation

Backend directories (Django):
- Apps (*/apps.py, */views.py, */models.py, */urls.py)
- URL config (urls.py, */urls.py)
- Views (views.py, viewsets.py) โ€” route handlers
- Models (models.py) โ€” database schema
- Serializers (serializers.py) โ€” request/response shapes
- Forms (forms.py) โ€” validation and field definitions
- Templates (templates/) โ€” serv
Pertanyaan umum

Framework apa saja yang didukung?

Skill mendukung framework frontend umum seperti React, Vue, dan Next.js, serta framework backend seperti NestJS, Express, Django, dan FastAPI.

Apakah skill bisa membedakan data nyata dari data tiruan?

Ya, skill mencoba membedakan integrasi API nyata dari data mock atau fixture.

Apakah hasilnya perlu ditinjau?

Ya, skill menyertakan daftar periksa kelengkapan dan akurasi yang sebaiknya Anda periksa.

Detail

Deskripsi asli dari pembuat

Use when asked to write a PRD or product spec from an existing codebase (reverse-engineer requirements, document pages, fields, routes and endpoints). Maps the code with codebase_analyzer.py and scaffolds the PRD with prd_scaffolder.py.

repo: alirezarezvani/claude-skills

Popularitas

Bintang GitHub
29k
Peringkat
#9688
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa