repo-harness-prd
Generates an AI-implementation-friendly PRD from a product idea into plans/prds/, with tiered sections, evidence rules, and sprint-consumable structure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates an AI-implementation-friendly PRD from a product idea into plans/prds/, with tiered sections, evidence rules, and sprint-consumable structure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
routes repo-harness requests through the CLI and hook automation plugin for init, update, scaffold, migrate, audit, repair, and ship workflows
Use when setting up or operating the repo-harness ChatGPT Controller, GitHub Issue Launcher, local Agent Runs, or GitHub Copilot cloud sessions.
Use when the user wants Codex to consult their logged-in ChatGPT Web session through repo-harness browser engine for planning, architecture review, PRD critique, or Codex goal generation.
Resolves repo-harness architecture drift requests and updates architecture docs or diagrams without running full init, migrate, or upgrade.
Full repo-harness workflow orchestrator. Reads repo state, drafts a plan, self-reviews twice, executes the approved plan, runs review/check gates, and delegates final PR closeout to repo-harness-ship.
Adds or syncs explicit repo-local capability boundaries without running full repo-harness init, migrate, or upgrade.
| name | repo-harness-prd |
| description | Generates an AI-implementation-friendly PRD from a product idea into plans/prds/, with tiered sections, evidence rules, and sprint-consumable structure. |
| when_to_use | repo-harness-prd, generate PRD, write PRD, product requirements doc, PRD from idea, plans/prds, 产品需求文档, 需求文档 |
Use this command to generate an upper-layer PRD under plans/prds/. The PRD is product intent and implementation guidance; it is not a Sprint backlog and does not start task execution. Activate $geju before drafting so the PRD starts from a high-altitude direction judgment. Prefer Claude CLI (claude -p --model opus) for PRD drafting; use Codex only as a fallback when Claude is unavailable, fails, or the user explicitly asks for Codex.
git rev-parse --show-toplevel; read docs/spec.md, .ai/harness/policy.json, and the PRD template from .prds.template_file when present, otherwise .claude/templates/prd.template.md.compact by default. Use standard only for multi-module products, explicit user request, commercialization, or frontend/backend deepening.$geju for a direction pass before PRD drafting. Produce a compact geju framing with Thesis, High-格局 Direction, Bold Takes, What Not To Do, First Proof Point, and Falsifier. This framing is input to the PRD, not a replacement for the PRD.docs/spec.md excerpt, PRD template path/content, selected tier, output language, evidence rules, non-goals, target filename, and the $geju framing. Tell Claude to apply that framing and return complete PRD Markdown only, not implementation code.command -v claude succeeds, run claude -p --model opus "$(<prompt-file>)" or an equivalent safely quoted prompt invocation. Capture stdout as the PRD draft. The current agent still owns writing the file, fixing validation failures, and reporting the result.$geju framing and prompt, and disclose the fallback reason in the final response.plans/prds/<YYYYMMDD>-<HHMM>-<slug>.prd.md. Fill every core section; include optional sections only when tier or user request requires them. Keep section headings in English and write body content in the user's language.[UNKNOWN] or [UNVERIFIED].$geju thesis; do not paste the full document.bash .ai/harness/scripts/check-task-workflow.sh --strict when the helper exists; in this self-host source repo, bash scripts/check-task-workflow.sh --strict is also valid. If verification fails, stop and fix the PRD instead of bypassing the check.repo-harness-sprint plan from-prd <prd-file> only after the PRD exists and the user wants an ordered Sprint backlog.plans/prds/ is missing, report the missing catalog and route the user to repo-harness-init or repo-harness-repair.$geju is unavailable, still perform the same compact geju-style direction pass in the current agent and report the missing skill as a fallback condition.claude -p --model opus fails or hangs, retry at most once with a smaller prompt; then fall back to Codex and report the fallback reason.repo-harness-sprint.docs/spec.md or reinterpret repo product truth.> **Status**: Approved; the user must review and approve the PRD.plans/prds/ except for verification artifacts produced by existing workflow checks.$geju direction pass; the PRD must carry a clear target model before section writing starts.Adjacent Patterns; use adjacent workflow patterns or mark claims [UNVERIFIED].