prd-demo-optimized

Convert structured PRDs—particularly those for AI products, multi-agent systems, analytics tools, or LLM workflows (jingsis-prd-generate Markdown PRD)—into runnable product demos, including React frontend, FastAPI backend, simulated agent orchestration, upload/mode/SQL/report routes, and startup instructions. Intended for requests to generate demos, produce code from PRDs, build prototypes, or create runnable front-end/back-end scaffolds.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "prd-demo-optimized" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-dd978ec9886676c91f89f9c8682ba7b54a16ca05a7e4b3b633579b1e6515728f. Verify the upstream source and version against https://skillhub.cn/skills/user_6c5df2c8/prd-demo-optimized before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Convert structured PRDs—particularly those for AI products, multi-agent systems, analytics tools, or LLM workflows (jingsis-prd-generate Markdown PRD)—into runnable product demos, including React frontend, FastAPI backend, simulated agent orchestration, upload/mode/SQL/report routes, and startup instructions. Intended for requests to generate demos, produce code from PRDs, build prototypes, or create runnable front-end/back-end scaffolds.

0 Downloads

Introduction source: third_party · user_6c5df2c8 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Confirm these only when they are missing from the user request or cannot be inferred: 1. PRD file path. 2. Output directory. 3. Scope: `quick`, `standard`, or `complete`. Default to: PRD: the file named or currently relevant in the workspace. Output: `<prd-directory>/<product-slug>-demo`. Scope: `standard`.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: prd-to-demo
description: Convert a structured PRD, especially a jingsis-prd-generate Markdown PRD for AI products, multi-agent systems, analytics tools, or LLM workflows, into a runnable product demo with React frontend, FastAPI backend, mock Agent orchestration, upload/schema/SQL/report routes, and startup instructions. Use when the user asks to generate a demo, generate code from PRD, build a prototype, create a runnable frontend/backend scaffold, 搭建原型, 生成Demo, 从PRD生成代码, 根据需求文档生成代码, or 帮我搭个Demo.

PRD To Demo

Use this skill to turn a PRD into a runnable demo project. Optimize for a working vertical slice over a broad but broken scaffold.

Inputs To Confirm

Confirm these only when they are missing from the user request or cannot be inferred:

  1. PRD file path.
  2. Output directory.
  3. Scope: quick, standard, or complete.

Default to:

  • PRD: the file named or currently relevant in the workspace.
  • Output: <prd-directory>/<product-slug>-demo.
  • Scope: standard.

Generation Contract

Read references/codegen-guide.md before generating code. It is the source of truth for:

  • Product extraction fields.
  • State machine.
  • API route contract.
  • Frontend/backend file map.
  • Validation checklist.

Read templates only when generating the corresponding side:

  • Backend: templates/backend-templates.md.
  • Frontend: templates/frontend-templates.md.

Workflow

  1. Parse the PRD and extract product name, slug, target users, core features, intents, agents, tools, states, UI components, file constraints, error messages, and non-functional requirements.
  2. Show a short extraction summary and ask for confirmation before writing code unless the user explicitly asked to proceed directly.
  3. Generate the backend first. Keep mock LLM calls local and deterministic. Real file parsing and SQL execution should work.
  4. Generate the frontend second. Drive the UI from the same state machine and route contract as the backend.
  5. Generate root files: README.md, .gitignore, optional docker-compose.yml for complete scope, and a small sample CSV when useful.
  6. Validate before delivery:
    • Python imports compile.
    • FastAPI app starts or at least imports.
    • TypeScript builds when dependencies are present.
    • Frontend API client matches backend routes.
    • State names match across backend, frontend, and documentation.

Required Demo Behavior

The generated demo must support this route-backed flow:

idle
  -> parsing
  -> metric_confirm
  -> sql_generating
  -> sql_review
  -> executing
  -> completed
  -> error

The demo must not skip SQL review. Users need to see, edit, and execute generated SQL.

Scope Rules

  • quick: one FastAPI app plus one simple React page; keep fewer files but preserve the route contract.
  • standard: full backend modules, frontend components, mock Agent orchestration, schema viewer, metric selector, SQL review, charts, report viewer.
  • complete: standard plus Docker Compose, sample data, richer styling, and report download.

Implementation Rules

  • Use mock LLM responses by default. Do not require external API keys.
  • Parse uploaded CSV/Excel files for real with pandas/openpyxl.
  • Execute SQL in a SQLite sandbox loaded from the uploaded file.
  • Reject non-read-only SQL before execution.
  • Keep route names, state names, and response models identical across backend and frontend.
  • Prefer clear, small files over clever abstractions.
  • If dependencies cannot be installed in the current environment, still generate code and report that validation was limited.

Delivery

End with:

  • Output path.
  • Generated file tree summary.
  • How to start backend and frontend.
  • Validation commands run and any failures.

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 解决从PRD生成可运行Demo的实际开发痛点
  • 支持多范围输出(quick/standard/complete)满足不同场景需求
  • 明确的技术栈选择(React/FastAPI/SQLite)和端到端流程
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包含中英文常见表达
  • 边界清晰,专注于PRD到Demo的转换场景
Structure and Standards85/100

Areas to improve

  • 文档长度 Reported severity: Minor

    文档内容较为详尽,接近但未超过500行限制

    Recommendation: 可考虑将部分实现细节移至参考文档中保持主文档简洁

Highlights

  • Phase划分清晰(Parse->Generate->Validate->Delivery)
  • 包含完整的输入确认、生成契约和工作流程
  • 提供了明确的范围规则和实现约束
Execution Reliability88/100

Areas to improve

  • 依赖管理 Reported severity: Minor

    提到了pandas/openpyxl等依赖,但未明确列出所有必需依赖

    Recommendation: 建议在README或生成时明确列出所有Python/Node依赖项

Highlights

  • 使用mock LLM避免外部API依赖
  • 包含完整的验证检查清单
  • SQL执行有安全限制(只读检查)
  • 提供了明确的启动和验证指令
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.