parse-prd

GitHub

读取PRD文件并提取目标、交付配置、用户角色、功能需求等关键信息,输出为结构化JSON供下游工作流使用。

src/code_minions/builtin/skills/parse-prd/SKILL.md pony-maggie/code_minions

Trigger Scenarios

解析产品需求文档 从PRD中提取结构化数据

Install

npx skills add pony-maggie/code_minions --skill parse-prd -g -y
More Options

Non-standard path

npx skills add https://github.com/pony-maggie/code_minions/tree/main/src/code_minions/builtin/skills/parse-prd -g -y

Use without installing

npx skills use pony-maggie/code_minions@parse-prd

指定 Agent (Claude Code)

npx skills add pony-maggie/code_minions --skill parse-prd -a claude-code -g -y

安装 repo 全部 skill

npx skills add pony-maggie/code_minions --all -g -y

预览 repo 内 skill

npx skills add pony-maggie/code_minions --list

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 as react-vite. When present, the workflow will enforce this stack on the structured delivery_profile.

Instructions

  1. Use the built-in Read tool to read prd_file.
  2. Extract the following sections (infer when sections are unnamed):
    • goal: one-sentence business objective
    • delivery_profile: the required deliverable contract. Prefer an explicit Delivery Contract / Delivery Profile section 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_id is optional but preferred when the stack is clear. Built-in stack IDs include react-vite, swift-xcodegen, go-service, and python-cli. gate_strictness is optional and must be one of relaxed, balanced, or strict; default to balanced unless 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 roles
    • features: list of functional requirements; each item {name, description, acceptance_criteria: [..]}
    • non_functional: perf/security/availability constraints
    • constraints: out-of-scope items, dependencies, etc.
  3. If anything critical is missing, include a questions array with clarifications. Do NOT invent facts.
  4. 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

Same Skill Collection

src/code_minions/builtin/skills/ai-code-review/SKILL.md
src/code_minions/builtin/skills/create-jira-tickets/SKILL.md
src/code_minions/builtin/skills/hello-world/SKILL.md
src/code_minions/builtin/skills/implement-with-tdd/SKILL.md
src/code_minions/builtin/skills/open-github-pr/SKILL.md
src/code_minions/builtin/skills/plan-tasks/SKILL.md
src/code_minions/builtin/skills/product-acceptance-review/SKILL.md
src/code_minions/builtin/skills/python-web-plan-tasks/SKILL.md
src/code_minions/builtin/skills/summarize-file/SKILL.md
src/code_minions/builtin/skills/compile-report/SKILL.md

Metadata

Files
0
Version
ac75593
Hash
aa67934f
Indexed
2026-07-24 17:41

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 18:20
浙ICP备14020137号-1 $mapa de visitantes$