ワンクリックで
what-next
Read ROADMAP.md files, cross-reference with GitHub issues, detect staleness, and suggest prioritized next work.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Read ROADMAP.md files, cross-reference with GitHub issues, detect staleness, and suggest prioritized next work.
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.
Independent evaluation of a committed work plan before implementation begins. Checks scope, approach, principle alignment, consequences, and ROS conventions.
| name | what-next |
| description | Read ROADMAP.md files, cross-reference with GitHub issues, detect staleness, and suggest prioritized next work. |
/what-next [--workspace-only] [--project-only]
Without flags, checks both workspace and project roadmaps.
Lifecycle position: Utility — run when choosing what to work on next.
Reads ROADMAP.md from the workspace and project repos, cross-references
checklist items against GitHub issues, and surfaces:
Check for roadmaps in both repos:
docs/ROADMAP.mdproject/ROADMAP.mdIf a file doesn't exist, skip that repo (don't error). If neither exists, report "No ROADMAP.md found in workspace or project" and stop.
If --workspace-only or --project-only was specified, check only that repo.
Read each ROADMAP.md and extract checklist items. Two formats are supported:
Simple checklists (project style):
## Phase 2 — Interactions & Core Loop (next)
- [x] Phaser 4 spike — validated Phaser v4 RC6 (PR #38)
- [ ] Object interaction system (triggers + behaviors from design doc)
Extract: {phase, text, checked, issue_refs} where issue_refs are any
#<N> or PR #<N> references found in the item text.
Table format (workspace style):
## Priority: Improve Local Reviews
| Item | Issue | Status | Source | Notes |
|------|-------|--------|--------|-------|
| Adaptive review depth | #47 | done | gstack | ... |
| Cognitive review patterns | #54 | planned | gstack | ... |
Tables may have varying column counts (e.g., the Unphased section uses 4
columns without Source). Find the Item, Issue, and Status columns
by matching header names, not by column position.
Extract: {section, item, issue_ref, status} where status is the value in
the Status column. Treat an empty Issue cell or an em dash (—) as
"no issue" — only actual #<N> references count as issue refs.
Sections to skip: Decided Against (rejected items) and To Consider
(unvetted inspiration-tracker findings, bullet-point format, not actionable
roadmap entries). Only parse sections that contain checklist or table items.
Resolve the <owner/repo> slug for each repo:
# Workspace repo (use git remote from workspace root, not gh repo view which depends on CWD)
WS_REPO=$(git remote get-url origin 2>/dev/null | sed -nE 's|.*github\.com[:/](.+)(\.git)?$|\1|p')
# Project repo (if project/ has its own .git)
PJ_REPO=$(git -C project remote get-url origin 2>/dev/null | sed -nE 's|.*github\.com[:/](.+)(\.git)?$|\1|p')
For each repo that has a roadmap, fetch issues via gh (needed for labels,
assignees, URLs used in the cross-reference step). git-bug can provide a
quick offline count but lacks these fields.
# Primary: gh (provides number, title, labels, assignees, URLs)
# Open issues
gh issue list --repo <owner/repo> --state open --json number,title,labels,url,assignees --limit 200
# Recently closed (up to 100 most recent, to detect staleness)
gh issue list --repo <owner/repo> --state closed --json number,title,closedAt,url --limit 100
# Optional: git-bug for offline issue count (when gh is unavailable)
# Note: git-bug output lacks labels, assignees, and URLs — use only for counts
if ! command -v gh &>/dev/null && command -v git-bug &>/dev/null \
&& git bug bridge 2>/dev/null | grep -q github; then
git bug bug status:open | wc -l # count only
fi
For each roadmap item, classify it:
Simple checklist items:
| Item state | Issue state | Classification |
|---|---|---|
- [ ] | No issue ref | Needs ticket — unchecked, no tracking |
- [ ] | Open issue, has assignee or linked PR | In progress — someone is working on it |
- [ ] | Open issue, no assignee or PR | Ready to start — has a ticket, not yet claimed |
- [ ] | Closed issue | Stale — issue closed but item not checked off |
- [x] | Any | Done — no action needed |
To detect in-progress state for simple checklists (which lack a status column),
check the open issue for assignees (from the assignees field fetched in
step 3) or linked pull requests:
gh pr list --repo <owner/repo> --search "linked:issue:#<N>" --state open --json number --jq 'length'
If the issue has assignees or an open linked PR, classify as In progress.
Table items:
| Status column | Issue state | Classification |
|---|---|---|
done | Any | Done — no action needed |
planned | Open issue | Ready to start |
planned | No issue | Needs ticket |
planned | Closed issue | Stale — issue closed but status not updated |
in progress | Open issue | In progress — someone is working on it |
in progress | No issue | In progress (no ticket) — work started but untracked; needs an issue |
deferred | Any | Deferred — intentionally postponed |
subsumed by #N | Any | Subsumed — covered by another item |
Rank ready-to-start items by:
## What Next
**Workspace roadmap**: <found/not found>
**Project roadmap**: <found/not found>
### Stale Items (need roadmap update)
| Repo | Section | Item | Issue | Why stale |
|------|---------|------|-------|-----------|
| workspace | Improve Local Reviews | Adaptive review depth | #47 | Issue closed but status still "planned" |
| project | Phase 2 | Object interaction system | #99 | Issue closed but item unchecked |
### Needs Ticket
| Repo | Section | Item | Notes |
|------|---------|------|-------|
| project | Phase 2 | Robot butler NPC | No issue reference found |
### Suggested Next Work
Prioritized list of ready-to-start items:
1. **[project] Phase 2**: Object interaction system — #<N>
2. **[workspace] Improve Local Reviews**: Cognitive review patterns — #54
3. **[workspace] Reduce Agent Coordination Overhead**: Web dashboard — #64
### In Progress
| Repo | Section | Item | Issue |
|------|---------|------|-------|
| workspace | Reduce Coordination | Permission prompt reduction | (no issue) |
### Summary
<1-3 sentence assessment: how current are the roadmaps? what's the
highest-impact next item?>
Omit any section that has no items (e.g., if no stale items, skip that table).
#N
reference is definitive; title-keyword overlap is suggestive (note as
"possible match" rather than definitive).done and subsumed items from the report
unless they're stale. The user wants to know what needs attention, not a
full inventory.deferred were intentionally
postponed. List them only if asked, not in the default report.