ワンクリックで
review-issue
Evaluate a GitHub issue against workspace principles and ADRs before work begins. Posts findings as a comment on the issue.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Evaluate a GitHub issue against workspace principles and ADRs before work begins. Posts findings as a comment on the issue.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Lead reviewer that orchestrates specialist sub-reviews (static analysis, governance, plan drift, adversarial) to evaluate a PR. Scales review depth to change risk. Produces a unified structured report.
Claude Code only — create or enter the worktree for an issue/skill and switch the session into it via the native EnterWorktree tool. Wraps worktree_create.sh / worktree_enter.sh so all project policy (issue checks, branch naming, skill allowlist, --plan-file draft PR, --workflow scaffolding) still applies.
Evaluate PR review comments (human and bot) against local code, principles, and ADRs. Includes CI check status. Classifies each as valid or false positive and presents a fix plan.
Generate a principles-aware work plan for an issue. Saves to `.agent/work-plans/` in the repo that owns the issue and commits as the first step on the feature branch.
Scan project repositories for GitHub issues, categorize them, flag stale items, and cross-reference with workspace tracking.
Read ROADMAP.md files, cross-reference with GitHub issues, detect staleness, and suggest prioritized next work.
| name | review-issue |
| description | Evaluate a GitHub issue against workspace principles and ADRs before work begins. Posts findings as a comment on the issue. |
/review-issue <issue-number>
Evaluate an issue before work begins. Checks scope, principle alignment, ADR relevance, repo placement, and dependencies. Posts findings as a comment on the issue — does not modify the issue body.
Lifecycle position: review-issue → plan-task → review-plan → implement → review-code
This skill evaluates the issue itself (is it well-scoped? in the right
repo? conflicting with ADRs?). For evaluating an implementation plan, use
plan-task. For evaluating a completed PR, use review-code.
Try git-bug first for offline-capable issue reading, then fall back to gh:
# git-bug first (offline-capable) — provides title, body, and comments
ISSUE_TITLE=""
ISSUE_BODY=""
if command -v git-bug &>/dev/null && command -v jq &>/dev/null; then
_REPO_SLUG="<owner/repo>" # resolve from git remote
_GITHUB_URL="https://github.com/${_REPO_SLUG}/issues/<N>"
_LIST_JSON=$(git bug bug -m "github-url=${_GITHUB_URL}" --format json 2>/dev/null || echo "")
_BUG_ID=$(echo "$_LIST_JSON" | jq -r '.[0].human_id // empty' 2>/dev/null)
if [ -n "$_BUG_ID" ]; then
_SHOW_JSON=$(git bug bug show "$_BUG_ID" --format json 2>/dev/null || echo "")
ISSUE_TITLE=$(echo "$_SHOW_JSON" | jq -r '.title // empty')
ISSUE_BODY=$(echo "$_SHOW_JSON" | jq -r '.comments[0].message // empty')
fi
# Sync-on-miss: if not found, pull from GitHub and retry
if [ -z "$ISSUE_TITLE" ]; then
echo " git-bug: cache miss, pulling from GitHub..." >&2
git bug bridge pull github &>/dev/null || true
_LIST_JSON=$(git bug bug -m "github-url=${_GITHUB_URL}" --format json 2>/dev/null || echo "")
_BUG_ID=$(echo "$_LIST_JSON" | jq -r '.[0].human_id // empty' 2>/dev/null)
if [ -n "$_BUG_ID" ]; then
_SHOW_JSON=$(git bug bug show "$_BUG_ID" --format json 2>/dev/null || echo "")
ISSUE_TITLE=$(echo "$_SHOW_JSON" | jq -r '.title // empty')
ISSUE_BODY=$(echo "$_SHOW_JSON" | jq -r '.comments[0].message // empty')
fi
fi
fi
# Fall back to gh if git-bug didn't provide the data
if [ -z "$ISSUE_TITLE" ] || [ -z "$ISSUE_BODY" ]; then
_GH_JSON=$(gh issue view <N> --json title,body,labels,assignees,milestone,comments,url 2>/dev/null || echo "")
if [ -n "$_GH_JSON" ]; then
[ -z "$ISSUE_TITLE" ] && ISSUE_TITLE=$(echo "$_GH_JSON" | jq -r '.title')
[ -z "$ISSUE_BODY" ] && ISSUE_BODY=$(echo "$_GH_JSON" | jq -r '.body')
fi
fi
Check for review-issue comments — they contain scope assessment, principle
flags, and ADR notes. Comments are available from gh output (.comments[])
or from git-bug JSON (.comments[1:] — index 0 is the issue body).
Identify:
Read the evaluation criteria:
.agent/knowledge/principles_review_guide.md — principle quick reference,
ADR applicability, and consequences mapRead the governance docs:
docs/PRINCIPLES.md — workspace principlesdocs/decisions/*.md — ADR titles (read full text only for triggered ADRs)If the issue targets a project repo, also check:
PRINCIPLES.md.agent/project_knowledge/ if available (symlink to manifest repo's .agents/workspace-context/)For each relevant principle, assess whether the proposed change aligns:
| Principle | Status | Notes |
|---|---|---|
| ... | OK / Watch / Action needed | Specific observation |
Statuses:
Skip principles that clearly don't apply.
Using the ADR applicability table from the review guide, identify which ADRs are triggered by this type of change. For each triggered ADR:
Using the consequences map: if this issue changes something in the "If you change..." column, note the corresponding "Also update..." items. These should be part of the issue scope or flagged as follow-up work.
Post the review as a comment on the issue. Do not modify the issue body.
## Review
### Scope Assessment
**Well-scoped?** Yes/No — [explanation]
**Right repo?** Yes/No — [explanation]
**Dependencies**: [list or "none identified"]
### Principle Alignment
| Principle | Status | Notes |
|---|---|---|
| ... | ... | ... |
### ADR Applicability
| ADR | Triggered | Notes |
|---|---|---|
| ... | ... | ... |
### Consequences
- [items that should be updated as part of this work]
### Recommendations
- [specific suggestions, if any]
---
**Authored-By**: `$AGENT_NAME`
**Model**: `$AGENT_MODEL`
Use --body-file for the comment (not --body):
BODY_FILE=$(mktemp /tmp/gh_body.XXXXXX.md)
cat << 'COMMENT_EOF' > "$BODY_FILE"
[review content]
COMMENT_EOF
gh issue comment <N> --body-file "$BODY_FILE"
rm "$BODY_FILE"