软件开发提示词生成
下载地址
https://www.zhengdianxue.com/wp-content/uploads/skills/user_af28adda--idea-to-dev-prompt.zip将提示词发送给你的 AI 安装该 skills
请根据 https://skillhub.cn/install/skillhub.md,安装 @user_af28adda/idea-to-dev-prompt。通过多轮对话引导用户澄清产品想法(用户、场景、行为流、功能、页面、数据、权限),最终输出可直接用于 AI 编码或开发团队的提示词;当用户有应用、网站、SaaS、管理系统、MVP 等想法需要梳理时使用
阅读全文 (展开查看完整说明)
概述
Idea To Dev Prompt
Overview
Use this skill when the user has a product or system idea but no prototype, screenshots, or complete requirements. Guide the user through short multi-turn clarification, then produce an implementation-ready development prompt and optional lightweight product specification.
Do not immediately generate a final prompt from a vague idea unless the user explicitly asks for a first draft. First identify missing decisions that materially affect architecture, user flows, data, or scope.
Operating Principles
- Ask at most 3 questions per turn.
- Prefer concrete choices over open-ended interrogation when the user seems unsure.
- Do not ask about low-impact details before core users, goals, flows, and data are clear.
- Keep moving: once enough information exists for an MVP, generate a first version with assumptions.
- Separate confirmed needs from assumptions and recommendations.
- Avoid expanding the product beyond the user's intent.
- Optimize final output for development: pages, actions, states, permissions, data, APIs, validation, and acceptance criteria.
Confidence Labels
Use these labels in summaries and final documents:
- 【用户确认】: explicitly stated or confirmed by the user.
- 【合理假设】: assumed to keep the design moving; can be revised.
- 【建议项】: recommended by the assistant, not yet accepted.
- 【待确认】: important missing decision.
- 【暂不纳入】: intentionally excluded from current scope.
Never present assumptions or suggestions as confirmed requirements.
Dialogue Workflow
1. Idea Capture
Extract the user's raw idea, target product type, and intended outcome.
If the idea is vague, ask only the highest-impact questions:
- Who will use it?
- What problem should it solve?
- What is the main action users must complete?
2. Scenario and User Clarification
Identify:
- Primary user roles.
- Secondary user roles.
- Real-world use scenarios.
- User goals and success criteria.
- Operational constraints such as industry, device, locale, privacy, compliance, or offline needs.
3. Behavior Flow Mapping
Turn the idea into user behavior paths:
- Entry point.
- User actions in order.
- System responses.
- Decision branches.
- Completion state.
- Failure or exception paths.
For each role, produce a concise flow such as:
角色 -> 进入系统 -> 执行动作 -> 系统反馈 -> 完成目标4. Feature and Page Decomposition
Convert behavior flows into:
- Navigation structure.
- Page list.
- Page purpose.
- Module list.
- Controls and operations.
- Form fields and validation.
- Tables, filters, search, import/export, charts, notifications, or audit logs where applicable.
Mark anything not required for the MVP as 【建议项】 or 【暂不纳入】.
5. Data and Permission Modeling
Identify core entities and fields:
- Users and roles.
- Business objects.
- Relationships between objects.
- Required status fields.
- Audit fields such as created_at, updated_at, owner_id, reviewer_id.
- Permissions per role.
Keep schemas practical. Do not over-model uncertain domains.
6. Nonfunctional Constraints
Capture development-relevant constraints:
- Target platform and default technology stack.
- Authentication needs.
- Responsive behavior.
- Browser/device support.
- Performance expectations.
- Data security and privacy.
- Integration needs.
- Deployment assumptions.
Default Technology Stack
If the user does not specify a stack, recommend based on product shape:
- Web app or SaaS: React + TypeScript + Tailwind CSS.
- Admin system: React + TypeScript + Ant Design or shadcn/ui, depending on desired visual style.
- Backend MVP: Node.js + NestJS or Express + PostgreSQL.
- Full-stack lightweight MVP: Next.js + TypeScript + PostgreSQL + Prisma.
- Mobile app: React Native or Flutter, marked 【待确认】.
- WeChat mini-program: native mini-program or Taro, marked 【待确认】.
State the selected stack as 【合理假设】 unless the user confirms it.
When to Stop Asking and Generate
Generate the first development prompt when these are known or reasonably assumed:
- Product goal.
- Primary user role.
- Main user flow.
- MVP feature scope.
- At least 3-5 core pages or modules, or a clear single-workflow app.
- Core data objects.
- Target platform or default stack.
If major gaps remain, include them under 【待确认】 rather than blocking forever.
Required Final Output
When the user asks to generate, or when enough information has been collected, use this structure:
# 第一部分:需求澄清摘要
## 1. 产品一句话定位
## 2. 用户与场景
- 主要用户:
- 次要用户:
- 使用场景:
- 核心问题:
- 成功标准:
## 3. 已确认需求
- ...
## 4. 合理假设
- ...
## 5. 待确认问题
- ...
---
# 第二部分:用户行为与业务流程
## 1. 核心用户行为路径
1. ...
## 2. 异常与边界流程
- 空状态:
- 错误状态:
- 权限不足:
- 表单校验失败:
- 数据不存在:
---
# 第三部分:系统功能设计
## 1. 信息架构与页面清单
| 页面/模块 | 目标 | 核心内容 | 主要操作 |
|---|---|---|---|
## 2. 核心功能模块
### 模块1:[名称]
- 功能目标:
- 用户操作:
- 系统反馈:
- 数据依赖:
- 状态规则:
## 3. 角色与权限
| 角色 | 可执行操作 | 不可执行操作 |
|---|---|---|
## 4. 数据对象草案
### 对象1:[名称]
- 字段:
- 状态:
- 关系:
---
# 第四部分:系统开发提示词(可直接复制使用)
请根据以下需求开发一个可运行的系统/MVP。
## 1. 技术栈
- 前端:
- 后端:
- 数据库:
- UI 组件:
- 认证:
## 2. 产品目标
## 3. 页面与路由
- ...
## 4. 核心功能
- ...
## 5. 数据模型
- ...
## 6. 接口与服务逻辑
- ...
## 7. 交互与状态
- loading:
- empty:
- error:
- success:
- disabled:
- validation:
## 8. 权限规则
- ...
## 9. 验收标准
- ...
## 10. 输出要求
- 生成完整可运行代码
- 使用清晰的组件结构
- 使用模拟数据或数据库种子数据时必须标注
- 不实现【暂不纳入】范围
- 对【待确认】内容使用可替换配置或待办标注Lightweight Demo Mode
If the user asks for a quick demo, use a small fictional idea and show only:
- Two clarification questions.
- A short assumed answer.
- A compact final development prompt excerpt.
Do not create files for demos unless the user requests artifacts.