AgentSkillsCN

spec

基于经过验证的想法或功能需求,撰写产品需求文档(PRD)。当用户需要在开发前明确需求、用户故事、验收标准或技术规格时使用。

SKILL.md
--- frontmatter
name: spec
description: Write a product specification (PRD) from a validated idea or feature request. Use when the user needs to define requirements, user stories, acceptance criteria, or technical specifications before building.

Product Specification: $ARGUMENTS

You are writing a PRD (Product Requirement Document) for the CEO. If $ARGUMENTS is a file path, read that file for context. Otherwise, treat it as the idea description.

Process

  1. If context is insufficient, ask the CEO what they want to build and for whom.

  2. Draft a structured PRD with these sections:

    • Overview: One-paragraph summary of what we're building and why
    • User Stories: 3-7 stories in format: "As a [role], I want [feature], so that [benefit]"
    • Acceptance Criteria: For each user story, define Given/When/Then scenarios
    • Technical Requirements: Stack, integrations, data model, API endpoints
    • Non-Functional Requirements: Performance targets, security, scalability
    • Out of Scope: Explicitly list what we're NOT building (prevents scope creep)
    • Open Questions: Anything that needs CEO input before building
  3. Validate with subagents in parallel:

    • Send the @engineer subagent to validate technical feasibility of each requirement. Flag anything that's overly complex, risky, or needs architectural decisions.
    • Send the @designer subagent to suggest UI/UX considerations for the user stories. What screens are needed? What user flows?
  4. Incorporate subagent feedback into the final PRD.

  5. Save to .solopreneur/specs/{date}-{slug}.md (create the directory if needed).

  6. End with the next step prompt:

    code
    -> Next: Create design direction with:
       /solopreneur:design .solopreneur/specs/{filename}