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
npx -y skills add Globaly-Inc/GH-AI-Skills-and-Plugins --skill gh-prd-generatorAssembled 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:
| Skill | Expected output file | What to extract |
|---|---|---|
/gh-brainstorming | docs/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-research | docs/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:
- Brainstorming output β
docs/brainstorms/(latest*-design.md) - Market research output β
docs/research/(latest*-research.md) docs/β other existing specs, ADRs, design docs.planning/β GSD planning artifacts if presentREADME.md/CLAUDE.mdβ project overview and constraints- Key
src/files β current domain model, entities, feature boundaries - 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:
| State | What triggers it | What must be shown |
|---|---|---|
| Happy path | Everything works | End-to-end success sequence |
| Empty state | No data Β· No permission Β· No setup Β· First-time use | Contextual empty UI + action to fill it |
| Loading state | Data fetch Β· Upload Β· Import Β· Sync Β· Processing | Progress indicator + cancel if > 3s |
| Error state | Validation error Β· System error Β· Permission denied Β· Expired link Β· Integration failure | Specific message + recovery action |
| Partial success | Some items succeed, some fail | Which succeeded Β· Which failed Β· Retry option |
| Edge cases | Duplicates Β· Capacity limits Β· Timezone Β· Role restrictions Β· Plan restrictions | Graceful block or merge, never silent failure |
Anti-Patterns
| What to avoid | Why | Fix |
|---|---|---|
| Skipping brainstorming/research inputs | Duplicates work already done | Always check upstream docs in Step 1 |
| Happy-path-only user flow | Ships broken empty/error states | Every epic flow requires all 6 states |
| One user flow for the whole PRD | Epic-specific behaviour gets lost | Feature-level flow + per-epic detailed flow |
| Horizontal user stories | Delivers no standalone user value | Rewrite as thin end-to-end slice |
| Solution section specifying exact UI | Removes design collaboration | Keep it behavioural, not visual |
| Metrics without targets | Can't validate success | Always pair metric with baseline β target |
| Out-of-scope section missing | Causes scope creep | List 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