一键导入
survey
Portfolio archaeology: scan ALL local branches for forgotten/neglected work and rank by 'could Claude do something useful on this right now?'
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Portfolio archaeology: scan ALL local branches for forgotten/neglected work and rank by 'could Claude do something useful on this right now?'
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
You may have peer Claude sessions cooperating with you, and a human whose terminal is recorded — claude-pod lets you read what they're doing
Compose a paste-ready condition for Claude Code's built-in /goal command — turn a rough intent into a measurable, self-verifying, self-terminating goal
Analyze current work context and recommend top priorities
Resume a (often neglected) branch/worktree: where we left off, and what has to be true before the user can engage autopilot and walk away for minutes or hours
Bootstrap Claude Code plumbing in a repo (settings, tmp dir, gitignore)
| name | survey |
| description | Portfolio archaeology: scan ALL local branches for forgotten/neglected work and rank by 'could Claude do something useful on this right now?' |
| allowed-tools | Bash, Agent |
You are scanning every local branch to find work that was important but has been neglected. The goal is not recency (that's /work-context) and not a single branch deep-dive (that's /autopilot). This is: what have I forgotten, and can Claude make progress on it right now?
Run these in parallel:
git for-each-ref --format='%(refname:short)|%(committerdate:unix)|%(committerdate:relative)|%(subject)' refs/heads/
git worktree list --porcelain
gh pr list --state open --json headRefName,number,title,state 2>/dev/null || true
For each branch, compute:
git rev-list --count main...<branch>) — invested workproj-123) — signals tracked workExclude immediately:
main, master, develop, or your current branchgit branch --merged main)staging-*, deploy-*, release-*)Score each remaining branch (higher = more interesting):
Select the top 5–8 by score for deeper analysis.
For each candidate branch, launch an Agent (subagent_type: Explore) in parallel. Each agent receives:
"Investigate this branch:
<branch-name>. Run:
git log main...<branch> --oneline— what's been committedgit diff main...<branch> --stat— scope of changesgh pr list --head <branch> --state all --json number,title,body,state,url— PR info- grep for TODO/FIXME in files changed vs main
- If a worktree exists for this branch, check its CLAUDE.md and memory/ directory
Report (under 150 words): what's being built, what's done, what's obviously next, any blockers that would stop autonomous work, and a rough effort estimate if Claude ran autopilot on it now."
Do NOT spawn agents for branches you've already excluded.
After agents return, organize into sections:
## Forgotten Work — Branch Survey
<N branches scanned> | <M candidates> | top <K> shown
### Ready for autopilot (Claude can proceed now)
1. **branch-name** — <X days stale> | <N commits ahead> | [PR #NNN]
What: [1-2 sentence description]
Next: [concrete next action]
Runway: ~N hours before needing input
### Needs one decision first
2. **branch-name** — [the specific question that unblocks it]
### Has open PR but stalled
3. **branch-name** — [what's blocking merge]
### Low signal / probably dead
4. **branch-name** — [why it didn't make the cut; safe to delete?]
### Observations
- [Patterns: lots of stale PRs, common blocker type, cluster of related branches, etc.]
---
Pick a branch and run /autopilot to go deep on it.
Keep the whole response tight. The user wants to pick a target and get moving, not read a report.