AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Prd To Dev Spec

skill-lucky2024-pllove-product-to-delivery-lifecycle-skills-prd-to-dev-spec · by Lucky2024-pllove

>-

No reviews yet
0 installs
6 views
0.0% view→install

Install

$ agentstack add skill-lucky2024-pllove-product-to-delivery-lifecycle-skills-prd-to-dev-spec

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-lucky2024-pllove-product-to-delivery-lifecycle-skills-prd-to-dev-spec)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Prd To Dev Spec? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

PRD To Dev Spec

Production Addendum

Before converting PRD to development artifacts, read and follow [references/production-pipeline-rules.md](references/production-pipeline-rules.md). These production rules override older default behavior when they conflict.

Key production requirements:

  1. Prefer confirmed PRD + confirmed prototype + confirmed requirement analysis as input.
  2. If the user shortcuts from draft PRD, prototype, or raw requirement, mark output as a draft and list missing confirmations.
  3. Produce both developer-facing technical artifacts and a natural-language development guide.
  4. Generate a development task list and test cases as first-class outputs, not only an appendix.
  5. Carry forward open questions with owner, impact, and blocker status.
  6. Expand AI/Agent implementation only when upstream classification is AI-enhanced or AI-core, or the PRD explicitly includes AI/Agent capability.
  7. If AI classification is pending, block AI-specific implementation tasks until confirmation.
  8. Use the user-specified output folder or Dev-Spec/; never overwrite existing files.

Turn a reviewed PRD into a complete development handoff package. Produce these coordinated drafts by default:

04-development-spec.md
04-development-guide.md
04-development-task-list.md
04-test-cases.md
04-open-questions.md
04-development-confirmation.md

The development specification, test cases, task list, open questions, and confirmation checklist are first-class outputs, not appendices. The natural-language development guide explains the implementation scope and review path for non-technical stakeholders. If database changes are involved, also produce a draft 04-db-scripts/ package for DBA/data engineer review. Project-name legacy file names may be used only when the user requests them.

If the PRD is not baselined, still draft the documents when asked, but mark them as development draft based on unbaselined PRD and list risks.

Operating Rules

  1. Use the baselined PRD as the source of truth. Do not invent scope beyond PRD without marking it as assumption or open question.
  2. Preserve traceability: FA -> FR -> AC -> Module/Menu/API/Data/TC/Task.
  3. Split by executable delivery units: module, menu/page, function, API, data object, integration, job, AI capability, and test scope.
  4. Every menu/function detail must include: menu/function name, entry, permissions, UI/control details, button behavior, business logic, data logic, validations, exceptions, and acceptance/test mapping.
  5. Include low-fidelity prototype sketches when UI exists. Use Markdown tables, ASCII layout, or Mermaid user flow; do not over-design visual style.
  6. Include diagrams when useful: architecture/module diagram, business flow, sequence diagram, state diagram, ER/data diagram.
  7. Mermaid diagrams must use cross-platform compatible syntax. Use English/digit/underscore IDs, put Chinese in display labels or aliases, avoid high-risk edge-label syntax such as -.label.->, keep version numbers and punctuation-heavy text out of edge labels, and run a Mermaid compatibility self-check before delivery.
  8. Add pseudocode for key functions when logic is complex, high-risk, stateful, algorithmic, permission-sensitive, data-sensitive, integration-heavy, or AI-related. Keep pseudocode language-neutral unless the user specifies a stack.
  9. For AI applications, expand PRD AI/Agent sections into engineering detail: Agent workflow, Agent responsibilities, tool/data permissions, key sequence flow, orchestration pseudocode, AI Prompt Package, evaluation, fallback, and monitoring.
  10. For AI applications, include an AI Prompt Package draft: system prompt, user prompt template, input variables, output schema, few-shot examples when useful, safety boundaries, fallback behavior, evaluation samples, and prompt versioning.
  11. Keep pseudocode and prompt examples in Markdown/code blocks so they work across Codex, Claude Code, Cursor, and other agents; do not depend on proprietary tools unless the user explicitly asks.
  12. For database changes, generate script specifications and SQL drafts by change type and by table: database creation, table creation, schema alteration, index/constraint changes, seed/reference data, data correction, data migration/backfill, rollback, and verification. Mark every script as draft / not executed / requires DBA or data engineer review.
  13. Generate test cases from PRD AC and dev spec logic, not directly from vague product text.
  14. End with a development task confirmation checklist. Development should not start until unresolved questions have owners or are closed.
  15. Use the same ID conventions as upstream PRD: FA-{nnn}, FR-{nnn}, AC-{nn}, OQ-{nn}, TC-{nnn}. Do not rename AC IDs (e.g. do not change AC-01 to AC-001).
  16. In the task confirmation checklist, state whether work will be executed by AI coding agents. If yes, flag that engineering-delivery must produce AI Agent task cards and link implementation todolist items to AIC-xxx.

Reference Loading

Load only what is needed:

| Need | Reference | |------|-----------| | Development spec structure | [references/dev-spec-structure.md](references/dev-spec-structure.md) | | Mermaid rendering compatibility | [references/mermaid-compatibility.md](references/mermaid-compatibility.md) | | Menu/function/UI/button detail | [references/function-detail-guide.md](references/function-detail-guide.md) | | Key-function pseudocode | [references/pseudocode-guide.md](references/pseudocode-guide.md) | | Database script specification | [references/database-script-spec.md](references/database-script-spec.md) | | Test case derivation | [references/test-case-design.md](references/test-case-design.md) | | Development confirmation checklist | [references/task-confirmation.md](references/task-confirmation.md) | | AI implementation notes | [references/ai-implementation.md](references/ai-implementation.md) |

Agent Compatibility

Keep this skill portable across Codex, Claude Code, Cursor, and other Markdown-capable agents:

  • Use plain Markdown, tables, ASCII sketches, and Mermaid diagrams.
  • Keep AI Prompt Packages in Markdown/code blocks, not in a vendor-specific prompt manager only.
  • Do not require proprietary design/prototype tools unless the user explicitly asks for generated design assets.
  • If an agent cannot load references/, inline the relevant reference rules into the response.
  • If an agent cannot write files, output the intended file names and Markdown bodies in chat.

Bilingual Usage

Match the user's requested output language. If the user writes in Chinese or does not specify a language, Chinese output is acceptable; if the user asks for English, produce English documents. Keep frontmatter metadata in English for cross-agent compatibility.

Common Chinese requests that should trigger this skill include:

  • 开发说明文档
  • 把 PRD 转成开发说明
  • 开发任务清单 / 开发确认清单
  • 测试用例
  • PRD 研发交接
  • 功能详细设计
  • 按钮细节 / 业务逻辑 / 数据逻辑
  • 关键函数伪代码

Workflow

1. Intake

Extract from PRD and optional requirement analysis:

| Item | Output | |------|--------| | Project name | Use PRD title or infer | | PRD version/status | Draft / In Review / Baselined | | Scope | V1/MVP, Out of Scope | | Traceability | FA, FR, AC, business rules, NFRs | | Product shape | Web/App/backend/integration/reporting/AI | | AI/Agent design | Agent workflow, Agent responsibilities, AI/Agent function list, prompt design from PRD | | Existing constraints | Tech stack, systems, data, permission, deadline | | Database impact | New database/schema/table/data/index/migration/rollback/check requirements |

If PRD lacks traceability, reconstruct a lightweight mapping and mark it as inferred.

2. Build Development Specification

Required sections:

  1. Source and baseline information
  2. Scope and non-scope
  3. Architecture and module overview
  4. Menu/function list
  5. Detailed function specification
  6. Business logic
  7. Data logic and data model
  8. API/interface/integration design
  9. Database change and script specification, when data storage changes
  10. Permissions and audit
  11. Exceptions and edge cases
  12. Key-function pseudocode, when triggered
  13. Non-functional implementation notes
  14. Agent workflow and AI implementation notes, if any
  15. Deployment, migration, configuration, and rollout notes
  16. Requirement traceability
  17. Risks and open questions

For AI-enhanced or AI-core work, section 13 must include Agent workflow/design and the AI Prompt Package unless the PRD explicitly says no prompt-based capability exists.

3. Detail Each Menu Or Function

For each menu/page/function, include:

| Field | Required Content | |-------|------------------| | Menu/function name | User-facing name and internal module name | | Purpose | What user/business goal it supports | | Entry | Navigation path, trigger, route, API entry, scheduled job | | Roles/permissions | Who can see/use/edit/approve/export | | UI/prototype sketch | Low-fidelity layout or state table when there is UI | | Controls/buttons | Button names, states, enable/disable rules, confirmation dialogs | | Business logic | Rules, calculations, state transitions, workflows | | Data logic | Read/write fields, validation, default values, derived fields | | Pseudocode | Required for key functions or complex/high-risk logic | | API/events | Request/response, side effects, external dependencies | | Exceptions | Empty, invalid, permission denied, duplicate, timeout, rollback | | Logs/audit | What to log and what must not be logged | | Related PRD items | FR/AC/BR/NFR |

4. Generate Test Cases

Create test cases from:

FR + AC + business rules + data logic + permission + exception + NFR

Cover: main path, boundary, validation, permissions, state transitions, data consistency, integration failure, UI button behavior, AI low-confidence/fallback when applicable, and regression.

5. Generate Development Guide And Task List

Create 04-development-guide.md for non-technical stakeholders. Explain the source baseline, implementation scope, excluded scope, major modules, risky decisions, human review gates, AI/Agent boundaries, database/script review needs, and what must be confirmed before engineering starts.

Create 04-development-task-list.md as a first-class task list. Each task must include owner or suggested role, priority, dependencies, estimate or sizing signal, linked FR/AC/TC, and completion standard. If an item is blocked by an open question, link the relevant OQ-{nn}.

6. Generate Open Questions

Create 04-open-questions.md carrying forward upstream OQ items and adding development-specific questions. Each item must include owner, impact, blocker status, affected module/API/data/test area, and recommended next action.

7. Generate Development Task Confirmation Checklist

The checklist is the final handoff gate before coding. It should include:

  1. Document baseline confirmation
  2. Scope confirmation
  3. Module/function confirmation
  4. API/data confirmation
  5. UI/prototype confirmation
  6. Test coverage confirmation
  7. Risks/open questions/owners
  8. Task list with owner, priority, dependency, estimate, acceptance link

Development Specification Template

# {项目名} 开发说明文档

> **文档状态**:草案  **版本**:v0.1  **日期**:YYYY-MM-DD  **作者**:Agent+用户
> **依据 PRD**:{项目名}-产品需求文档PRD.md(版本/状态:...)
> **关联需求分析**:{项目名}-需求分析文档.md

## 1. 输入基线与范围说明
## 2. 模块/功能总览
### 2.1 范围内/范围外
### 2.2 模块清单
| 模块 | 职责 | 关联页面/功能 | 关联 FR/AC | 备注 |
|------|------|--------------|-----------|------|

## 3. 菜单/功能列表
| 菜单/功能 | 描述 | 入口 | 角色权限 | 关联模块 | 关联 FR/AC |
|-----------|------|------|----------|----------|-----------|

## 4. 详细功能说明
### 4.x {菜单/功能名}
| 项 | 内容 |
|----|------|
| 功能目标 | ... |
| 入口/触发方式 | ... |
| 角色权限 | ... |
| 关联 PRD | FR-... / AC-... |

#### 4.x.1 页面/原型草图
#### 4.x.2 页面元素与按钮
| 元素/按钮 | 类型 | 默认状态 | 启用/禁用条件 | 点击/变更行为 | 校验/提示 |
|-----------|------|----------|----------------|----------------|-----------|

#### 4.x.3 业务逻辑
#### 4.x.4 数据逻辑
| 字段/对象 | 输入来源 | 读/写 | 校验 | 默认/派生规则 | 备注 |
|-----------|----------|-------|------|----------------|------|

#### 4.x.5 异常与边界
#### 4.x.6 关键函数伪代码(按需)

## 5. 接口 API/集成设计
## 6. 数据模型与数据流
## 7. 数据库变更与脚本规范(如适用)
> 以下 SQL / migration 脚本均为草案,尚未执行。需由 DBA / 数据工程师在目标环境审核、备份、评估影响后执行。AI Agent 不得直接执行目标数据库变更。

### 7.1 数据库变更影响
| 对象类型 | 对象名 | 变更类型 | 用途 | 关联 FR/AC |
|----------|--------|----------|------|-----------|
| Database/Table/Column/Index/Data | ... | create/alter/seed/update/migrate | ... | ... |

### 7.2 脚本清单(按类型/按表拆分)
| 脚本文件 | 类型 | 对象/表 | 用途 | 状态 | 审核人 |
|----------|------|---------|------|------|--------|
| 001_create_database_{database}.sql | database-create | {database} | 创建数据库/Schema | Draft, Not Executed | DBA/数据工程师 |
| 010_create_table_{table}.sql | table-create | {table} | 创建表 | Draft, Not Executed | DBA/数据工程师 |
| 020_alter_table_{table}.sql | table-alter | {table} | 字段/约束变更 | Draft, Not Executed | DBA/数据工程师 |
| 030_seed_data_{table}.sql | data-seed | {table} | 初始化参考数据 | Draft, Not Executed | DBA/数据工程师 |
| 040_update_data_{table}.sql | data-update | {table} | 数据修正 | Draft, Not Executed | DBA/数据工程师 |
| 050_migrate_data_{table}.sql | data-migration | {table} | 数据迁移/回填 | Draft, Not Executed | DBA/数据工程师 |
| 090_rollback_{table_or_change}.sql | rollback | {table/change} | 回滚方案 | Draft, Not Executed | DBA/数据工程师 |
| 100_verify_{table_or_change}.sql | verification | {table/change} | 校验 | Draft, Not Executed | DBA/数据工程师 |

### 7.3 执行顺序与依赖
### 7.4 回滚与校验策略
## 8. 权限、审计与日志
## 9. 关键逻辑伪代码汇总(按需)
| 功能 | 触发条件 | 伪代码位置 | 关联 FR/AC |
|------|----------|------------|-----------|

## 10. 非功能实现说明
## 11. Agent 工作设计与 AI 能力实现说明(如适用)
## 12. 部署、迁移、配置与发布说明
## 13. 需求追溯矩阵
| FA | FR | AC | 模块/功能 | API/数据 | 测试用例 |
|----|----|----|-----------|----------|----------|

## 14. 风险与未决问题

Test Case Template

# {项目名} 测试用例

> **依据 PRD**:{项目名}-产品需求文档PRD.md
> **依据开发说明**:{项目名}-开发说明文档.md

| TC | 关联 FR/AC | 模块/功能 | 优先级 | 描述 | 前置条件 | 测试步骤 | 预期结果 | 实际结果 |
|----|-----------|-----------|--------|------|----------|----------|----------|----------|

Task Confirmation Template

# {项目名} 开发任务确认清单

> **确认状态**:待确认 | 已确认 | 有阻塞
> **依据 PRD**:...
> **依据开发说明**:...
> **依据测试用例**:...

## 1. 开发基线确认
| 检查项 | 状态 | 负责人 | 备注 |
|--------|------|--------|------|
| PRD 已基线 | 是/否 | 产品 | ... |
| 开发说明覆盖 FR/AC | 是/否 | 技术负责人 | ... |
| 测试用例覆盖 AC | 是/否 | 测试 | ... |
| UI/原型已确认 | 是/否/不适用 | 产品/设计 | ... |
| 数据库脚本草案已生成且标记未执行 | 是/否/不适用 | DBA/数据工程师 | ... |
| 开放问题使用 OQ-{nn} 且含 Owner | 是/否 | 产品 | ... |
| 是否由 AI 编码 Agent 实现 | 是/否/部分 | 技术负责人 | 若是,须触发 engineering-delivery 四件套 |
| 下游须产出 AI-Agent 任务卡 | 是/否/不适用 | 技术负责人 | 与 todolist AIC 链接 |

## 2. 开发任务清单
| 任务ID | 任务 | 模块/功能 | 关联 FR/AC | 优先级 | 估时 | 依赖 | Owner | 完成标准 |
|--------|------|-----------|-----------|--------|------|------|--------|----------|

Self-Check

  • [ ] Inputs are tied to a PRD version/status.
  • [ ] No new scope is added silently beyond PRD.
  • [ ] Every core function includes menu/function name, buttons/controls, business logic, data logic, exceptions, and traceability.
  • [ ] Key functions include language-neutral pseudocode when logic is complex, high-risk, stateful, algorithmic, permission-sensitive, data-sensitive, integration-heavy, or AI-related.
  • [ ] UI functions include a low-fidelity sketch or a reason why no UI sketch is needed.
  • [ ] Architecture/flow/sequence/state/ER diagrams are included when useful.
  • [ ] Every Mermaid block passes compatibility checks: closed code fence, valid diagram type, English IDs, Chinese only in labels/aliases, no high-risk edge labels such as -.label.->, and no punctuation-heavy labels on edges.
  • [ ] Database changes include script specifications and SQL drafts by change type and by table, all marked draft/not executed/requires DBA or data engineer review.
  • [ ] AI applica

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.