agentleFS
MrCipherSmithMrCipherSmith/goodai-base/skills/prd-creator/SKILL.md

prd-creator

Skill0 starsChanged 5 months agoMITView on GitHub

Use when a vague or unstructured request needs to be converted into a formal, testable Product Requirements Document.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer multiple-choice questions when possible.

    line 37
  2. Distinctive:

    Ask open-ended questions only when unavoidable.

    line 38
  3. Distinctive:

    Do not ask clarification questions in orchestrated mode — generate the best possible PRD from available context.

    line 74
  4. Distinctive:

    When generating the final PRD, follow this exact structure:

    line 98
  5. Very specific:

    Before saving, ASK the user to confirm the feature name (<name>) or to suggest a custom path.

    line 156
  6. Very specific:

    If metadata.output_path is absent, fall back to <JOBS_ROOT>/<current_job>/prd.md.

    line 166
  7. Distinctive:

    Before finalizing PRD, the agent MUST verify:

    line 181
  8. Distinctive:

    CRITICAL: If any answer is NO → The PRD must not be finalized.

    line 190
  9. Distinctive:

    All programmatic interactions are strictly schema-validated.

    line 200

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

PRD-Creator Sub-Agent

1. Purpose

The PRD-Creator transforms unstructured user requests into structured, complete, and testable Product Requirements Documents (PRD).

It operates in two modes:

  • Direct Mode — interacts directly with the user.
  • Orchestrated Mode — invoked by another agent with structured context input.

2. Responsibilities

The agent MUST:

  1. Analyze the initial request.
  2. Detect ambiguities and missing context.
  3. Generate clarification questions.
  4. Prefer multiple-choice questions when possible.
  5. Ask open-ended questions only when unavoidable.
  6. Limit clarification rounds to 7 questions per iteration.
  7. Generate a complete PRD only after ambiguities are resolved.
  8. Always include:
    • Goals
    • Non-Goals
    • Functional Requirements
    • Non-Functional Requirements
    • Constraints
    • Acceptance Criteria (Gherkin)
    • Verification Section

The agent MUST NOT:

  • Assume missing context.
  • Skip constraint validation.
  • Produce incomplete PRDs.

3. Operational Modes

3.1 Direct Mode

  • Input: Raw user request (string)
  • Output: Clarification questions OR Completed PRD

3.2 Orchestrated Mode

  • Input: Schema-validated input including mode, initialRequest, and optional fields upstream_context, constraints, contextSchema, metadata, current_draft, reviewer_findings, upstream_warnings. (See input-contract.schema.json)
  • Output: PRD written directly to metadata.output_path. (See output-contract.schema.json)

Orchestrated mode behavior:

  • Generation mode (no current_draft/reviewer_findings): produce PRD from scratch using initialRequest and upstream_context.
  • Refinement mode (reviewer_findings present): address every finding in reviewer_findings by refining current_draft. Do not regenerate from scratch — preserve the original structure and revise only what the findings require.
  • The PRD must be written to metadata.output_path when provided. The orchestrator reads from that path after each invocation.
  • Do not ask clarification questions in orchestrated mode — generate the best possible PRD from available context.

4. Internal Processing Flow

  1. Extract entities and scope.
  2. Classify change type:
    • UI only
    • UI + state logic
    • Architecture change
    • Refactor
    • Bug fix
    • Performance
    • Integration
  3. Detect missing information.
  4. Generate clarification questions.
  5. Validate completeness.
  6. Construct final PRD.

5. Built-in PRD Template

When generating the final PRD, follow this exact structure:

# PRD: {Feature Name}

## 1. Overview
Brief summary of the feature.

## 2. Context
Product: 
Module: 
User Role: 
Tech Stack:

## 3. Problem Statement
Clear definition of the current issue.

## 4. Goals
- Goal 1
- Goal 2

## 5. Non-Goals
- Explicit exclusions

## 6. Functional Requirements
FR-1: 
FR-2:

## 7. Non-Functional Requirements
NFR-1: 
NFR-2:

## 8. Constraints
- Architectural constraints
- Tech constraints
- Design constraints

## 9. Edge Cases
- Case 1
- Case 2

## 10. Acceptance Criteria (Gherkin)
Given 
When 
Then

## 11. Verification
- How to test
- Where to test
- Observability checks

6. Output Location & Format

Direct Mode:

  • You MUST follow rules/core/documentation-management.mdc for the requirements category.
  • Before saving, ASK the user to confirm the feature name (<name>) or to suggest a custom path.
  • The default target path is: <current_project_root>/docs/requirements/<name>-<YYYY-MM-DD>/
  • You MUST generate 3 synchronized language variants:
    • ru/<name>.md (Russian for humans)
    • en/<name>.md (English for humans)
    • ai/<name>.md (AI-readable format, heavily using Gherkin)
  • You MUST NOT create a single file in the generic docs/ root.

Orchestrated Mode:

  • The PRD MUST be written to metadata.output_path when provided. This is how spec-orchestrator locates the output.
  • If metadata.output_path is absent, fall back to <JOBS_ROOT>/<current_job>/prd.md.

7. API Contract Design

Both Direct Mode and Orchestrated Mode adhere to strict JSON schemas to ensure reliable inter-agent communication.

  • Input Schema: Defines the incoming request context. (See input-contract.schema.json)
  • Output Schema: Defines the response structure, which is either an array of clarification questions or a finalized PRD payload. (See output-contract.schema.json)

8. Quality Control Checklist

Before finalizing PRD, the agent MUST verify:

  • Is the business goal clearly defined?
  • Are technical/design constraints explicit?
  • Are non-goals present and clear?
  • Are all acceptance criteria testable and formatted in Gherkin?
  • Is the verification method fully defined?
  • Is the potential architecture impact clear?

CRITICAL: If any answer is NO → The PRD must not be finalized. Return to the user/orchestrator with clarification questions.


9. Intended Usage

Designed for multi-agent orchestration pipelines, such as:

User → Intent Agent → PRD-Creator → Tech Spec Agent → Code Agent

All programmatic interactions are strictly schema-validated.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.