prd-demo-optimized
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "prd-demo-optimized":https://skillpi.com/zh/skills/deepskill-dd978ec9886676c91f89f9c8682ba7b54a16ca05a7e4b3b633579b1e6515728f。安装前核对上游来源和版本:https://skillhub.cn/skills/user_6c5df2c8/prd-demo-optimized。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
将结构化 PRD(尤其针对 AI 产品、多智能体系统、分析工具或 LLM 工作流的 jingsis-prd-generate Markdown PRD)转换为可运行的产品演示,包含 React 前端、FastAPI 后端、模拟智能体编排、上传/模式/SQL/报告路由及启动说明。适用于用户请求生成演示、从 PRD 生成代码、构建原型或搭建可运行 Demo 的场景。
介绍来源: third_party · user_6c5df2c8 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 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.
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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:
- PRD file path.
- Output directory.
- Scope:
quick,standard, orcomplete.
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
- 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.
- Show a short extraction summary and ask for confirmation before writing code unless the user explicitly asked to proceed directly.
- Generate the backend first. Keep mock LLM calls local and deterministic. Real file parsing and SQL execution should work.
- Generate the frontend second. Drive the UI from the same state machine and route contract as the backend.
- Generate root files:
README.md,.gitignore, optionaldocker-compose.ymlforcompletescope, and a small sample CSV when useful. - 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.
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决从PRD生成可运行Demo的实际开发痛点
- 支持多范围输出(quick/standard/complete)满足不同场景需求
- 明确的技术栈选择(React/FastAPI/SQLite)和端到端流程
亮点
- 触发词覆盖全面,包含中英文常见表达
- 边界清晰,专注于PRD到Demo的转换场景
待提升项
-
文档长度 原报告严重程度:轻微
文档内容较为详尽,接近但未超过500行限制
改进建议:可考虑将部分实现细节移至参考文档中保持主文档简洁
亮点
- Phase划分清晰(Parse->Generate->Validate->Delivery)
- 包含完整的输入确认、生成契约和工作流程
- 提供了明确的范围规则和实现约束
待提升项
-
依赖管理 原报告严重程度:轻微
提到了pandas/openpyxl等依赖,但未明确列出所有必需依赖
改进建议:建议在README或生成时明确列出所有Python/Node依赖项
亮点
- 使用mock LLM避免外部API依赖
- 包含完整的验证检查清单
- SQL执行有安全限制(只读检查)
- 提供了明确的启动和验证指令
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。