Deep-validate a single GitHub issue against the codebase: cross-reference file paths, detect already-implemented features, check for related PRs, verify dependencies, and deliver a structured verdict with recommended action. Triggers: review issue, validate issue, check issue status, is this issue still needed, issue review.
From project-managernpx claudepluginhub rube-de/cc-skills --plugin project-managerThis skill is limited to using the following tools:
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
Deep-validate a single GitHub issue against the current codebase. Cross-reference file paths, detect already-implemented features, check for related PRs, verify dependencies, and deliver a structured verdict with recommended action.
1. Auth Check → 2. Detect Repo → 3. Fetch Issue → 4. Parse Body
→ 5. Codebase Cross-Reference → 6. PR Check → 7. Dependency Check
→ 8. Verdict → 9. Present Report → 10. Interactive Action
gh auth status
On failure: Stop and tell the user to run gh auth login.
gh repo view --json nameWithOwner -q .nameWithOwner
On failure: Ask the user for the target repository (owner/repo).
Require an issue number from the user's arguments. If none provided, use AskUserQuestion to ask for one.
gh issue view ISSUE_NUMBER --json number,title,body,state,labels,assignees,milestone,createdAt,updatedAt,author,comments
Edge cases:
Classify the issue into one of two tiers based on body structure:
/pm)Detect /pm sections by their headers: ## Context, ## Acceptance Criteria, ## Implementation Guide, ## Scope.
Extract:
## Implementation Guide and ## Scope sectionsVERIFY: or checkbox patterns (- [ ] unchecked and - [x] checked). Include both so re-reviews after body edits still see previously checked-off criteria.Blocked by: #N and Blocks: #N patternsPart of #N pattern### In Scope and ### Out of Scope subsectionsWhen /pm section headers are absent, extract what you can:
/ with common extensions)#N references as issue/PR cross-referencesNote lower confidence in the verdict when using Tier 2 parsing.
Start with the Explore agent to get a broad understanding of the codebase structure before targeted searches. For large or unfamiliar codebases, use repomix-explorer (if available) to get a structural overview. Then use Glob, Grep, and Read for detailed analysis.
For each piece of extracted data, cross-check against the codebase:
For each extracted file path:
Globexists, missing, renamed/moved, correctly-absent (create intent, not yet created), already-created (create intent, file exists)For each function/component name and each acceptance criterion:
Grep for the name/pattern in the codebaseRead ~20 lines of surrounding contextCombine file and implementation signals:
| Condition | Signal |
|---|---|
| All "Files to Create" exist + all criteria Implemented | Already Implemented |
| Some files exist or some criteria met | Partially Implemented |
| No implementation evidence found | Still Needed |
Search for related pull requests:
gh pr list --state all --search "ISSUE_NUMBER" --limit 10 --json number,title,state,mergedAt,headRefName
Also search for PRs that reference the issue in their body:
gh api search/issues -f q="repo:OWNER/REPO type:pr ISSUE_NUMBER in:body" --jq '.items[] | {number,title,state,pull_request}'
Classify PR signals:
| PR State | Signal |
|---|---|
| Merged | Strong close signal — work was completed |
| Open | In Progress — active development |
| Closed (not merged) | Abandoned attempt — note but weigh lightly |
For each Blocked by: #N or Depends on: #N reference:
gh issue view BLOCKER_NUMBER --json number,title,state,labels
| Blocker State | Signal |
|---|---|
| Open | Still blocked — issue cannot proceed |
| Closed | Unblocked — stale blocker reference |
For each Part of #N reference:
Based on signals from Steps 5-7, assign a verdict:
| Verdict | Criteria |
|---|---|
| Already Implemented | All acceptance criteria met + merged PR exists |
| Partially Implemented | Some criteria met OR some expected files exist but not all |
| In Progress | Open PR exists referencing this issue |
| Still Needed | No implementation evidence, no related PRs, blockers resolved (or none) |
| Outdated | References files/APIs that no longer exist, 90+ days inactive, problem space changed |
| Needs Update | File paths drifted, resolved blockers still listed, scope no longer matches codebase |
Assign a confidence level based on parsing quality and signal strength:
| Confidence | Criteria |
|---|---|
| High | Structured issue (Tier 1) + strong, unambiguous signals |
| Medium | Unstructured issue (Tier 2) OR mixed/conflicting signals |
| Low | Keyword-only matching, minimal codebase evidence |
Present a structured markdown report:
## Issue Review: #NUMBER — TITLE
**Verdict:** VERDICT (Confidence: LEVEL)
### Evidence
#### File Status
| Path | Intent | Status |
|------|--------|--------|
| src/auth/login.ts | Modify | Exists |
| src/auth/mfa.ts | Create | Not yet created |
#### Acceptance Criteria
| Criterion | Status | Evidence |
|-----------|--------|----------|
| VERIFY: login redirects to dashboard | Implemented | Found in src/auth/login.ts:45 |
| VERIFY: MFA prompt on new device | Not found | No matching code |
#### Related PRs
| PR | Title | State | Merged |
|----|-------|-------|--------|
| #<number> | Add login redirect | Merged | 2024-01-15 |
#### Dependencies
| Blocker | Title | State | Impact |
|---------|-------|-------|--------|
| #<number> | Auth refactor | Closed | Unblocked (stale reference) |
#### Epic Context
Part of #<number> — 4/6 sub-issues closed (67%)
Adapt the report to include only sections with findings — omit empty sections.
Based on the verdict, offer appropriate actions via AskUserQuestion. For verdicts where the issue body contains stale or incorrect information, updating the body directly is the recommended action — implementing agents read the body first, and comments get buried. Every body edit is paired with an audit-trail comment explaining what changed and why.
Important — Tier 2 guard: For unstructured issues (Tier 2), only attempt body edits for the Already Implemented and Partially Implemented verdicts (checking off criteria is safe even without structured sections). For the Needs Update, In Progress, and Outdated verdicts on Tier 2 issues, default to comment-only — mechanical corrections and section-level edits are unreliable without well-defined sections. The verdict blocks below show tier-specific options where they differ.
Already Implemented:
Question: "This issue appears already implemented. What would you like to do?"
Options:
- Update issue body and close (Recommended) — check off implemented criteria with evidence, then close
- Close with comment summarizing evidence
- Add comment with findings (keep open)
- Skip — no action
Body modifications: In the Acceptance Criteria section, change - [ ] VERIFY: to - [x] VERIFY: for each implemented criterion. Append a brief evidence note inline (e.g., — found in src/auth/login.ts:45).
Needs Update (Tier 1 — structured issues):
Question: "This issue has stale references. What would you like to do?"
Options:
- Update issue body (Recommended) — fix stale file paths, line numbers, and resolved blockers
- Add comment listing what needs updating
- Skip — no action
Body modifications: Fix stale line numbers and file paths in the Implementation Guide and Approach sections. Remove resolved blocker references in Dependencies, or rewrite them to a non-parsed form such as "Resolved blocker: #123 (closed)" — do not use strikethrough, which preserves the literal Blocked by: pattern and confuses dependency parsers. Update any scope references that no longer match the codebase.
Needs Update (Tier 2 — unstructured issues):
Question: "This issue has stale references. What would you like to do?"
Options:
- Add comment listing what needs updating (Recommended)
- Skip — no action
Body edits are omitted for Tier 2 because mechanical corrections to unstructured bodies are unreliable without well-defined sections.
Partially Implemented:
Question: "This issue is partially done. What would you like to do?"
Options:
- Update issue body (Recommended) — check off completed criteria, keep unchecked ones
- Add status comment with progress summary
- Skip — no action
Body modifications: In the Acceptance Criteria section, change - [ ] VERIFY: to - [x] VERIFY: only for criteria confirmed as implemented. Leave unimplemented criteria unchecked.
In Progress (Tier 1 — structured issues):
Question: "This issue is partially done with active PR(s). What would you like to do?"
Options:
- Update issue body (Recommended) — add active PR reference at top of body
- Add status comment with progress summary
- Skip — no action
Body modifications: Add a status note at the top of the issue body linking to the active PR(s):
> **Status:** In progress — see #PR_NUMBER
In Progress (Tier 2 — unstructured issues):
Question: "This issue is partially done with active PR(s). What would you like to do?"
Options:
- Add status comment with progress summary (Recommended)
- Skip — no action
Outdated (Tier 1 — structured issues):
Question: "This issue appears outdated. What would you like to do?"
Options:
- Update issue body and close (Recommended) — mark outdated references with deprecation note, then close
- Close as outdated with explanation
- Add comment noting staleness
- Skip — no action
Body modifications: Add a deprecation note at the top of the body and mark affected sections with ~~strikethrough~~ or inline notes identifying what is no longer valid.
Outdated (Tier 2 — unstructured issues):
Question: "This issue appears outdated. What would you like to do?"
Options:
- Close as outdated with explanation (Recommended)
- Add comment noting staleness
- Skip — no action
Still Needed:
No action prompt — the issue is valid as-is. Report the verdict and move on.
Edit issue body (heredoc pattern):
First fetch the current body, apply the verdict-specific modifications, then write it back:
# Fetch current body
gh issue view ISSUE_NUMBER --json body -q .body
Apply the modifications described above for the specific verdict, then update:
# Write modified body via heredoc (quoted delimiter preserves all special characters)
gh issue edit ISSUE_NUMBER --body-file - <<'ISSUE_BODY_END'
MODIFIED_BODY_CONTENT
ISSUE_BODY_END
Immediately after every body edit, post an audit-trail comment:
gh issue comment ISSUE_NUMBER --body-file - <<'EOF'
## /pm:review — Issue Body Updated
**Changes made:**
- [list each specific modification]
**Why:**
- [evidence from review findings]
*Updated by `/pm:review` on YYYY-MM-DD*
EOF
Close issues:
gh issue close ISSUE_NUMBER --comment "Closing: REASON. Identified by /pm:review."
Add comments:
gh issue comment ISSUE_NUMBER --body "COMMENT_BODY"
Never modify an issue without explicit user approval.