agentsclimarketplace

Gh prd generator

Skill Globaly-Inc/GH-AI-Skills-and-Plugins/skills/gh-prd-generator

Generate a structured PRD for any GlobalyHub project. Reads brainstorming outputs, market research outputs, and the codebase first, then drafts and gap-fills. Writes to docs/prd/YYYY-MM-DD-<feature-name>-prd.md. Use when the user says "write a PRD", "create a spec", "product requirements document", "I need a PRD", or invokes /gh-prd-generator or /prd.From its SKILL.md

Install
npx -y skills add Globaly-Inc/GH-AI-Skills-and-Plugins --skill gh-prd-generator

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

13.3 KB, as published. Nobody here has run it

GlobalyHub PRD Generation

Produce a production-quality PRD for any GlobalyHub project feature or initiative (GlobalyApp, GlobalyOS, or other projects in the ecosystem). This skill is inputs-first: consume prior skill outputs before asking anything.


Upstream Inputs

This skill is the downstream consumer of two skills. Always check for their outputs before exploring the codebase:

SkillExpected output fileWhat to extract
/gh-brainstormingdocs/brainstorms/YYYY-MM-DD-<topic>-design.md (path is user-chosen at write time β€” glob docs/brainstorms/*-design.md and take the latest, or ask if none found)Problem framing, personas, design decisions, approved approach
/gh-product-deep-researchdocs/research/YYYY-MM-DD-<topic>-research.md (path is user-chosen at write time β€” glob docs/research/*-research.md and take the latest, or ask if none found)Competitor landscape, market sizing, user insights, differentiation signals

If either file is missing, mark the affected sections πŸ”΅ Open Question and continue β€” do not block on them.


Principles

  • Inputs-first, questions-last. Mine brainstorming docs and research outputs before asking the user a single question.
  • Vertical slices only. User stories cut end-to-end through ALL layers (schema β†’ API β†’ UI β†’ acceptance test). Never horizontal slices.
  • Two-tier user flows. Every feature gets a high-level flow. Every epic gets a detailed 6-state flow. Both are required β€” neither is optional.
  • Living document. Tag every gap: πŸ”Ά Assumption (plausible, unvalidated) or πŸ”΅ Open Question (unknown, needs discovery). Never leave a blank section.
  • Project vocabulary. Use terms from existing code, docs, and brainstorm outputs β€” not generic alternatives.

Execution Steps

Step 1 β€” Consume upstream outputs (silent)

Read in this order:

  1. Brainstorming output β€” docs/brainstorms/ (latest *-design.md)
  2. Market research output β€” docs/research/ (latest *-research.md)
  3. docs/ β€” other existing specs, ADRs, design docs
  4. .planning/ β€” GSD planning artifacts if present
  5. README.md / CLAUDE.md β€” project overview and constraints
  6. Key src/ files β€” current domain model, entities, feature boundaries
  7. Any prior docs/PRD.md β€” established section style

Extract per-section:

  • Problem framing and evidence (from brainstorming)
  • Personas and JTBD (from brainstorming)
  • Suggested solution options considered and chosen approach (from brainstorming)
  • Competitor table and differentiators (from market research)
  • Market sizing if available (from market research)
  • Existing feature set, tech stack, constraints (from codebase)

Step 2 β€” Draft skeleton

Draft every section with everything inferred. Mark gaps inline. Do NOT ask the user anything yet.

Step 3 β€” Gap-fill Q&A

Ask only about mandatory sections still substantially empty after Steps 1–2. One question at a time, in template order.

Mandatory sections that must not remain as pure πŸ”΅ Open Questions:

  • Problem Statement (specific pain + evidence)
  • Suggested Solution (what approach was chosen and why)
  • Solution Overview (what is being built)
  • Feature-Level User Flows (at least one high-level flow)
  • Epic User Flows (6-state flow for each epic)
  • Success Metrics (primary metric with baseline β†’ target)
  • Scope (at least one explicit out-of-scope item)

Step 4 β€” Write the PRD

Derive <feature-name> (kebab-case slug of the feature/initiative name) and save to:

docs/prd/YYYY-MM-DD-<feature-name>-prd.md

using today's actual date. Confirm the path with the user if the inferred slug is ambiguous; otherwise proceed without asking. Write the complete file, then end with a one-line summary: Inferred from: [sources used]. Asked about: [sections that needed Q&A].


PRD Template

# [Feature / Initiative Name] β€” PRD

> **Status:** Draft | **Owner:** [PM name] | **Last updated:** [date]
> **Project:** [GlobalyApp / GlobalyOS / other]
> **One-liner:** [problem] β†’ [solution] β†’ [expected impact]

---

## 1. Problem Statement & Hypothesis

### Problem
<!-- Who has it? What is it? Why is it painful? -->
[description]

**Evidence**
- [customer quote / analytics datum / support ticket count]

### Hypothesis
> If we [action] for [persona], then [measurable outcome], because [root cause].

---

## 2. User Personas & Jobs-to-be-Done

### Primary Persona β€” [Name]
| Attribute | Detail |
|-----------|--------|
| Role | |
| Tech savviness | |
| Core goal | |
| Key pain point | |

**JTBD:** When [situation], I want to [motivation], so I can [outcome].

### Secondary Persona β€” [Name] *(if applicable)*
[brief profile]

---

## 3. Suggested Solution

<!-- What options were considered? What was chosen and why?
     Source: brainstorming design doc. -->

### Options Considered
| Option | Summary | Pros | Cons |
|--------|---------|------|------|
| A | | | |
| B | | | |

### Chosen Approach
**[Option X]** β€” [one-paragraph rationale: why this over the alternatives,
what constraints drove the decision, what is deliberately deferred.]

---

## 4. Solution Overview

<!-- What are we building β€” from the user's perspective.
     High-level only: no pixel specs, no file paths. -->

[2–3 paragraphs]

**Key capabilities:**
- [capability 1]
- [capability 2]

---

## 5. Competitor Analysis

<!-- Source: market research output. -->

| Competitor | How they solve it | Our differentiator |
|------------|-------------------|--------------------|
| [name] | [approach] | [why ours is better/different] |

---

## 6. Feature-Level User Flows

<!-- One high-level flow per feature. Shows the main path through the
     feature without branching into every state. Use Mermaid flowchart. -->

### Feature: [Feature Name]

```mermaid
flowchart TD
    A([User lands on screen]) --> B[Action 1]
    B --> C{Decision point}
    C -->|Yes| D[Outcome A]
    C -->|No| E[Outcome B]
    D --> F([Done])
    E --> F
```

*(Repeat for each feature in this initiative.)*

---

## 7. Epics, User Stories & Acceptance Criteria

<!-- Each epic block contains: Epic Hypothesis β†’ Detailed 6-State User Flow
     β†’ User Stories with AC. -->

---

### Epic 1 β€” [Epic Name]

#### Epic Hypothesis
> We believe that [building X] for [persona] will [outcome] because [reason].
> We'll validate by measuring [metric] within [timeframe].

#### Epic User Flow

<!-- Detailed flowchart covering all 6 states for this epic. -->

```mermaid
flowchart TD
    Start([User initiates action]) --> Loading

    Loading[/"⏳ Loading state\nFetching / uploading / syncing data"/]
    Loading --> DataCheck{Data available?}

    DataCheck -->|No data / first use| Empty
    DataCheck -->|Yes| HappyPath

    Empty[/"πŸ“­ Empty state\nNo data Β· No permission Β· First-time setup"/]
    Empty --> SetupAction[User completes setup / adds first item]
    SetupAction --> HappyPath

    HappyPath[/"βœ… Happy path\nEverything works as expected"/]
    HappyPath --> ResultCheck{All items succeeded?}

    ResultCheck -->|All succeeded| Success([Done β€” full success])
    ResultCheck -->|Some succeeded| PartialSuccess
    ResultCheck -->|Error occurred| ErrorState

    PartialSuccess[/"⚠️ Partial success\nSome items succeeded, others failed"\]
    PartialSuccess --> PartialAction[Show which succeeded Β· Allow retry for failed]
    PartialAction --> Done([Done β€” partial])

    ErrorState[/"πŸ”΄ Error state\nValidation Β· System error Β· Permission denied\nExpired link Β· Integration failure"/]
    ErrorState --> ErrorAction[Show specific error message Β· Offer recovery action]
    ErrorAction --> Retry{User retries?}
    Retry -->|Yes| Loading
    Retry -->|No| Abandoned([Abandoned])

    HappyPath --> EdgeCheck{Edge case?}
    EdgeCheck -->|Duplicate| DupHandler[Prevent or merge duplicate]
    EdgeCheck -->|Capacity limit| CapHandler[Block with upgrade prompt]
    EdgeCheck -->|Timezone mismatch| TZHandler[Normalise or warn]
    EdgeCheck -->|Role restriction| RoleHandler[Hide or disable action]
    EdgeCheck -->|Plan restriction| PlanHandler[Upsell or graceful block]
    DupHandler & CapHandler & TZHandler & RoleHandler & PlanHandler --> Done2([Done β€” edge case handled])
```

**State inventory for this epic:**

| State | Trigger | Expected behaviour |
|-------|---------|-------------------|
| Happy path | Normal data, correct permissions | [describe] |
| Empty state | No data / no permission / first use | [describe] |
| Loading state | Data fetch / upload / import / sync / processing | [describe] |
| Error state | Validation / system / permission / expired / integration | [describe] |
| Partial success | Some items pass, some fail | [describe] |
| Edge cases | Duplicates / capacity / timezone / role / plan limits | [describe] |

#### Stories

Stories follow vertical-slice rules β€” each cuts end-to-end and is demoable alone.
Use INVEST (Independent Β· Negotiable Β· Valuable Β· Estimable Β· Small Β· Testable).

**Story 1 β€” [Title]** `P0 / P1 / P2`
```
As a [persona],
I want to [action],
so that [outcome].
```
**Acceptance Criteria:**
- **Given** [precondition] **When** [action] **Then** [result]
- **Given** [empty state trigger] **When** [user lands] **Then** [empty state shown]
- **Given** [loading trigger] **When** [operation starts] **Then** [loading indicator shown]
- **Given** [error condition] **When** [operation fails] **Then** [specific error + recovery shown]

*(Repeat Story block. Use `/epic-breakdown-advisor` to split stories > 5 days.)*

---

*(Repeat Epic block for each epic in this initiative.)*

---

## 8. Success Metrics & KPIs

| Metric | Type | Baseline | Target | Timeframe |
|--------|------|----------|--------|-----------|
| [primary metric] | Leading | | | 30 days post-launch |
| [secondary metric] | Lagging | | | 90 days post-launch |

**Guardrail metrics** (must not regress):
- [metric]: maintain β‰₯ [current value]

---

## 9. Scope & Out-of-Scope

### In Scope
- [item]

### Out of Scope
- [item] β€” [one-line rationale]

### Future Consideration
- [item deliberately deferred]

---

## 10. Dependencies & Risks

| Item | Type | Owner | Mitigation |
|------|------|-------|------------|
| [dependency] | Technical / External | | |
| [risk] | | | |

---

## 11. Open Questions

| Question | Owner | Due |
|----------|-------|-----|
| [question] | [PM / Eng / Design] | [date] |

---

## Appendix

- Brainstorming doc: [link]
- Market research: [link]
- Design files: [link]
- Related ADRs: [link]

User Flow Rules

Feature-level (Β§6) β€” high-level only

  • One diagram per feature
  • Shows the main path: entry β†’ key decision β†’ outcomes
  • No branching into loading/error/edge states
  • Goal: anyone can understand the feature in 30 seconds

Epic-level (Β§7) β€” full 6-state coverage

Every epic flow MUST cover all six states. None are optional:

StateWhat triggers itWhat must be shown
Happy pathEverything worksEnd-to-end success sequence
Empty stateNo data Β· No permission Β· No setup Β· First-time useContextual empty UI + action to fill it
Loading stateData fetch Β· Upload Β· Import Β· Sync Β· ProcessingProgress indicator + cancel if > 3s
Error stateValidation error Β· System error Β· Permission denied Β· Expired link Β· Integration failureSpecific message + recovery action
Partial successSome items succeed, some failWhich succeeded Β· Which failed Β· Retry option
Edge casesDuplicates Β· Capacity limits Β· Timezone Β· Role restrictions Β· Plan restrictionsGraceful block or merge, never silent failure

Anti-Patterns

What to avoidWhyFix
Skipping brainstorming/research inputsDuplicates work already doneAlways check upstream docs in Step 1
Happy-path-only user flowShips broken empty/error statesEvery epic flow requires all 6 states
One user flow for the whole PRDEpic-specific behaviour gets lostFeature-level flow + per-epic detailed flow
Horizontal user storiesDelivers no standalone user valueRewrite as thin end-to-end slice
Solution section specifying exact UIRemoves design collaborationKeep it behavioural, not visual
Metrics without targetsCan't validate successAlways pair metric with baseline β†’ target
Out-of-scope section missingCauses scope creepList at least 3 explicit exclusions

Related Skills

  • /gh-brainstorming β€” Required upstream: explore and design before PRD
  • /gh-product-deep-research β€” Required upstream: competitor and user research
  • /epic-breakdown-advisor β€” Split large epics using 9 Humanizing Work patterns
  • /user-story β€” Write and validate individual user stories
  • /product-discovery β€” Validate an idea before brainstorming
  • /gsd-plan-phase β€” Turn a finished PRD into an executable GSD plan

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.