بنقرة واحدة
eg-prd
Build a PRD with Codex using codebase grounding, gap-filling, research goldfish, and synthesis.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Build a PRD with Codex using codebase grounding, gap-filling, research goldfish, and synthesis.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Build a new feature with Codex using design doc, goldfish design check, implementation, review, and validation.
Generate divergent concept ideas with parallel Codex goldfish and structured synthesis.
Fix a bug with Codex using problem doc, independent diagnosis, failing test, fix, review, and validation.
Run a Codex-native pre-commit independent-review loop on pending changes.
| name | eg-prd |
| description | Build a PRD with Codex using codebase grounding, gap-filling, research goldfish, and synthesis. |
Build a Product Requirements Document from a rough idea. Use the user's text around the $eg-prd skill mention as the seed. If no seed is provided, ask for one.
If the seed is a GitHub issue URL or #<number>, fetch it with gh issue view <number> and use its title and body as the seed.
Use Codex structured user input when available. Otherwise ask concise chat questions.
Ask:
The user invoked this skill, so fresh subagents for codebase grounding are explicitly authorized.
Spawn 1-2 fresh Codex subagents with fork_context: false; use agent_type: "explorer" when available.
The elephant prints:
CODEBASE BRIEF
- Closest existing surfaces:
- Patterns to mirror:
- Constraints from AGENTS.md / CLAUDE.md / docs:
- Observed gaps:
Surface gaps grouped by:
Number gaps globally as G1, G2, etc. Ask which gaps to fill before drafting. Unselected gaps go into Open Questions.
For each selected gap, ask a structured question with 3-5 plausible answers plus "defer" and "other".
If research scope is not "none", spawn 3-5 fresh research goldfish in parallel with fork_context: false.
Possible lenses:
Each goldfish gets only:
You are a fresh researcher with no prior context. Your lens is <LENS NAME>.
SEED: <PASTE USER SEED>
CODEBASE BRIEF: <PASTE>
ANSWERED GAPS: <PASTE>
Research your lens. Produce 5-10 numbered findings with sources, then 3-5 bullets on what this implies for the PRD.
If Browser Use / in-app browser access to a logged-in or sensitive source is needed, stop and tell the elephant what you want to inspect and why.
End with `lens complete`.
The elephant summarizes research by lens and consolidates sources.
Draft:
# PRD: <title>
## Executive Summary
## Problem Statement
## Target Users
## Current State
## Proposed Solution
## Scope
## User Stories / Jobs To Be Done
## Functional Requirements
## Non-Functional Requirements
## Success Metrics
## Risks & Mitigations
## Implementation Hints
## Open Questions
## Sources & References
## Out-of-Scope Follow-Ups
Skip sections only when genuinely not applicable. Mark deferred gaps as Open Questions.
Ask whether the PRD is approved, needs specific section revisions, should restart, or should stop.
If approved, apply the selected output targets:
docs/prds/, docs/specs/, prd/, or a path documented in AGENTS.md/CLAUDE.md; otherwise use docs/prds/<slug>-<YYYY-MM-DD>.md when docs/ exists, or notes/prds/<slug>-<YYYY-MM-DD>.md.Use $eg-new-feature to build <summary> handoff prompt if selected.Report:
Stop short of staging or committing. Follow the commit policy documented in AGENTS.md/CLAUDE.md if the user later asks to commit.