بنقرة واحدة
prd-done
Complete PRD implementation workflow - create branch, push changes, create PR, merge, and close issue
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Complete PRD implementation workflow - create branch, push changes, create PR, merge, and close issue
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Draft, polish, and create a well-formed GitHub issue with required structure
Post a structured checkpoint comment to the relevant issue and commit current code state
Close out issue work - ensure PR exists, run the full CodeRabbit + /code-review gate, merge, close all issues in the working set, clean branches, and update PROGRESS.md
Fresh session pickup using the most recent checkpoint comment and git log — reconstructs working context for active issue work
Recommend juggling pairs, user decides, create correctly-named branch for issue work
Update the active issue with a design decision and cascade impact to all open issues and PRDs
| name | prd-done |
| description | Complete PRD implementation workflow - create branch, push changes, create PR, merge, and close issue |
| category | project-management |
Complete the PRD implementation workflow including branch management, pull request creation, and issue closure.
Note: If any gh command fails with "command not found", inform the user that GitHub CLI is required and provide the installation link: https://cli.github.com/
FIRST: Determine the type of PRD completion to choose the appropriate workflow
Documentation-Only Completion (Skip PR workflow):
Code Implementation Completion (Full PR workflow):
./prds/done/ directory to maintain project organizationdocs/ROADMAP.md roadmap if the file existsNote: Tests will run automatically in the CI/CD pipeline when the PR is created. Do not run tests locally during the completion workflow.
For Documentation-Only Completions:
git add [prd-files] and commit with skip CI flag[skip ci], [ci skip], ***NO_CI***, [skip actions]git pull --rebase origin main && git push origin main to sync changesFor Code Implementation Completions:
git checkout -b feature/prd-[issue-id]-[feature-name]git push -u origin feature/prd-[issue-id]-[feature-name]Launch verification agent with the following task:
Read the full PRD document from top to bottom — all milestones, objectives, and acceptance criteria. For each milestone:
- List every success criterion or objective stated for that milestone.
- For each criterion, locate observable evidence in the codebase: the specific file that exists, the function that is wired to the main code path, the test that covers it.
- Apply the three-level check — Exists (artifact is present) → Substantive (real content, not a stub or placeholder) → Wired (connected and reachable from the running system).
- If any level fails, mark the criterion as a gap.
Report a criterion-by-criterion table: one row per criterion, with a column for the evidence found. Rows with no evidence must say "GAP — no evidence found" with a specific description of what is missing. Do not summarize at a milestone level. Every criterion must map to a specific, observable artifact.
Surface gaps to the user: Present the verification report. If any gaps are found, stop and ask the user how to proceed before creating the PR. If no gaps, proceed to Step 3.
IMPORTANT: Always check for and use PR template if available
Check for PR template in common locations:
.github/PULL_REQUEST_TEMPLATE.md.github/pull_request_template.md.github/PULL_REQUEST_TEMPLATE/ (directory with multiple templates)docs/pull_request_template.mdRead and parse template comprehensively: If found, analyze the template to extract:
Extract actionable instructions from template:
Examples of template instructions to identify and execute:
Signed-off-by line" → Validate commits have DCO sign-off, amend if missingnpm test before submitting" → Execute test commandgit diff main...HEAD to understand scope of changesgit log main..HEAD to understand implementation progressionAutomatically populate what can be deduced from analysis:
PR Title:
feat(scope): description)Description sections:
Closes #[issue-id] or Fixes #[issue-id]Testing checklist:
Documentation checklist:
Security checklist:
IMPORTANT: Don't just ask - analyze and propose answers, then let user confirm or correct
For each item, use available context to propose an answer, then present it to the user for confirmation:
Manual testing results:
Breaking changes:
Performance implications:
Security considerations:
Reviewer focus areas:
Follow-up work:
prds/ directory for related workAdditional context:
Presentation Format: Present all proposed answers together in a summary format:
📋 **Proposed PR Information** (based on analysis)
**Manual Testing:** [proposed answer]
**Breaking Changes:** [proposed answer]
**Performance Impact:** [proposed answer]
**Security Considerations:** [proposed answer]
**Reviewer Focus:** [proposed list]
**Follow-up Work:** [proposed items or "None"]
**Additional Context:** [proposed context or "None"]
Please review and respond:
- Type "yes" or "confirm" to accept all
- Specify corrections for any items that need changes
IMPORTANT: Before creating the PR, identify and execute any actionable requirements from the template
Analyze template for actionable instructions:
Categorize identified requirements:
Propose and execute requirements:
Summary before PR creation:
✅ Template Requirements Status:
[List each requirement with status: executed/validated/skipped/failed]
Ready to create PR? (yes/no)
IMPORTANT: Only apply labels if .github/release.yml exists - fully dynamic based on that file
Check for .github/release.yml:
If release.yml exists, parse it to understand available categories and labels:
Analyze PR characteristics:
Select the SINGLE best-matching label:
breaking-change or breakingfeat, feature, or enhancementfix, bug, or bugfixdocumentation or docsdependencies, deps, or dependencyApply detected label: Add the single best-matching label to the PR creation command
gh pr create --title "..." --body "..." --label "fix"gh pr create --title "[title]" --body "[body]" --label "[single-label]"gh pr create --title "[title]" --body "[body]"/code-review: Immediately after PR creation, invoke /code-review using the Skill tool. Review all findings at or above the 80-confidence threshold and fix them before merging. The CodeRabbit timer and Anki capture (steps 4.0–4.1) proceed in parallel — only the merge is gated on /code-review findings being addressed. /code-review and CodeRabbit find different issue classes — /code-review catches CLAUDE.md compliance, bugs, and historical context issues; CodeRabbit catches security and correctness issues. If CodeRabbit is rate-limited and never posts, /code-review provides full coverage; do not block indefinitely waiting for CodeRabbit.If no PR template is found, create a sensible default structure:
## Description
[What this PR does and why]
## Related Issues
Closes #[issue-id]
## Changes Made
- [List key changes]
## Testing
- [Testing approach and results]
## Documentation
- [Documentation updates made]
After creating the PR and starting the CodeRabbit review timer, use the wait time productively by capturing what was built as Anki cards.
Scope: Cover the ENTIRE PRD, not just recent work. Cards should be sourced from all milestones, the full decision log, and the complete git diff — not limited to the current conversation or the most recent milestone.
ANKI_FINISHED_DIR in the /anki skill) to check for cards already covering this PRD's topics. Do not create duplicates of concepts already captured./anki skill: Create flashcards sourced from the PRD and the code — not from conversation context. Focus on:
gh pr checks [pr-number] to check for any ongoing CI/CD, security analysis, or automated reviews (CodeRabbit, CodeQL, etc.)gh pr view [pr-number] to check for human review comments and PR metadatagh api repos/OWNER/REPO/pulls/PR_NUMBER/reviews --jq '[.[] | {user: .user.login, state, body}]'
gh api repos/OWNER/REPO/pulls/PR_NUMBER/comments --jq '[.[] | {user: .user.login, path, line, body}]'
gh api repos/OWNER/REPO/issues/PR_NUMBER/comments --jq '[.[] | {user: .user.login, body}]'
/pulls/{n}/reviews — full review bodies including "outside diff range" findings (most content lives here)/pulls/{n}/comments — inline comments attached to specific diff lines/issues/{n}/comments — conversation-level notices (rate-limit notices, "reviews paused")gh api calls from above. Repeat the triage loop until no new Fix findings remain (Defer and Skip findings do not block merge). If CodeRabbit is rate-limited, post @coderabbitai review as a PR comment to trigger a re-review../prds/done/ directorygit checkout maingit pull origin main to ensure local main is up to dategit branch -d feature/prd-[issue-id]-[feature-name]git push origin --delete feature/prd-[issue-id]-[feature-name]✅ Feature is live and functional
✅ All tests passing in production
✅ Documentation is accurate and complete
✅ PRD issue is closed with completion summary
✅ Team is notified of feature availability
The PRD implementation is only considered done when users can successfully use the feature as documented.