Agent Skills
› pony-maggie/code_minions
› parse-prd
parse-prd
GitHub读取PRD文件并提取目标、交付配置、用户角色、功能需求等关键信息,输出为结构化JSON供下游工作流使用。
Trigger Scenarios
解析产品需求文档
从PRD中提取结构化数据
Install
npx skills add pony-maggie/code_minions --skill parse-prd -g -y
SKILL.md
Frontmatter
{
"llm": {
"temperature": 0.1,
"max_iterations": 10
},
"name": "parse-prd",
"inputs": {
"prd_file": {
"type": "string",
"required": true
},
"delivery_stack_id": {
"type": "string",
"required": false
}
},
"outputs": {
"goal": {
"type": "string"
},
"users": {
"type": "array"
},
"features": {
"type": "array"
},
"questions": {
"type": "array"
},
"constraints": {
"type": "array"
},
"non_functional": {
"type": "object"
},
"delivery_profile": {
"type": "object"
}
},
"policies": {
"cache": true
},
"description": "Parse a PRD file into a structured representation.",
"allowed-tools": [
"Read"
],
"required-mcps": []
}
parse-prd
Read a PRD file and produce a structured representation the rest of the workflow can consume.
Inputs
prd_file(string, required): path relative to the project root. In git-worktree workflows, the file must be committed so the same relative path exists in the run worktree.delivery_stack_id(string, optional): workflow-level stack preset such asreact-vite. When present, the workflow will enforce this stack on the structureddelivery_profile.
Instructions
- Use the built-in
Readtool to readprd_file. - Extract the following sections (infer when sections are unnamed):
goal: one-sentence business objectivedelivery_profile: the required deliverable contract. Prefer an explicitDelivery Contract/Delivery Profilesection if present. If absent, infer conservatively from the PRD. Use this shape:{stack_id, kind, language, framework, build_system, test_command, required_files, forbidden_product_languages, gate_strictness}.stack_idis optional but preferred when the stack is clear. Built-in stack IDs includereact-vite,swift-xcodegen,go-service, andpython-cli.gate_strictnessis optional and must be one ofrelaxed,balanced, orstrict; default tobalancedunless the PRD explicitly asks for a more permissive or stricter gate. Examples: native macOS Swift app, Go web service, Python CLI, React web app. If the PRD does not constrain delivery shape, return{}rather than guessing.users: target user rolesfeatures: list of functional requirements; each item{name, description, acceptance_criteria: [..]}non_functional: perf/security/availability constraintsconstraints: out-of-scope items, dependencies, etc.
- If anything critical is missing, include a
questionsarray with clarifications. Do NOT invent facts. - Reply with a single JSON object matching the output schema.
Outputs (reply JSON)
goal(string)delivery_profile(object)users(string[])features(object[])non_functional(object)constraints(string[])questions(string[])
Version History
- ac75593 Current 2026-07-24 17:41


