用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/gautam-achieveai/ClaudePlugins --skill gh-work-my-backlog命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | gh-work-my-backlog |
| description | Internal helper. Load only when explicitly named by another skill or agent. |
| user-invocable | true |
| disable-model-invocation | false |
Autonomous backlog processor. Single-pass design — scan, classify, advance eligible items, report, exit. Designed to run in a loop via:
/loop 15m /gh-work-my-backlog
All querying, classification, and context-gathering is handled by
scripts/scan.mjs. The LLM handles only the actions that require reasoning.
The scanner is zero-dependency (Node.js + gh). Run:
node <skill-dir>/scripts/scan.mjs --repo-root <repo-root>
Auth:
gh authGITHUB_TOKEN / GITHUB_PERSONAL_ACCESS_TOKENScope:
The scanner outputs a ScanResult JSON to stdout and logs to stderr.
The scanner handles:
.ai/work-my-backlog/worktreePath /
branch values when the referenced worktree no longer existsThe JSON has this shape:
{
"timestamp": "...",
"iteration": "...",
"passCount": 5,
"devName": "...",
"actionable": [ ... ],
"skipped": [ ... ],
"errors": [ ... ],
"summary": "..."
}
Print the summary field.
For each item in actionable, the action field tells you what to do.
action: "plan" — fresh item, needs planningSpawn a background agent that invokes gh:gh-work-on <workItemId>.
The packet includes the issue's title, description, labels, milestone, project
fields, and linked items — but gh:gh-work-on will fetch its own context anyway.
The key value is knowing THIS item needs a plan.
Concurrency: All Stage 1 items can run in parallel (planning is read-only).
action: "revise_plan" — feedback exists, needs plan revisionSpawn a background agent that invokes gh:gh-work-on <workItemId> and pass the
captured feedback so it can revise the posted plan.
The packet includes:
planVersion: current plan version (for example, 2)planText: the full plan textfeedback[]: the exact human feedback captured after the planPass the feedback array to the agent so it has context without needing to
re-fetch comments. gh:gh-work-on auto-detects revision mode.
Concurrency: All Stage 2b items can run in parallel (comment-only work).
action: "implement" — approved or revision-cap planVerify the approval source is:
"human" (explicit approval), or"revision_cap" (plan v3+)For each item:
.worktrees/wi-<id>/ with branch
work-item/<id>-<slugified-title> if not already present.gh:gh-work-on <workItemId>.The packet includes the approved plan text and any approver feedback.
Concurrency: Independent items can run in parallel (isolated worktrees). Items with dependency relationships (from the scanner state and work-item links) should be sequenced.
action: "babysit_pr" — linked PR existsSpawn the gh:gh-babysit-pr-worker agent for a single pass using the
pre-fetched PR / review / checks context, including:
prId, sourceBranch, targetBranchmergeStatus, draft state, review decision, reviewer votesbuilds[]unresolvedThreads[]reviewSummaries[]conversationComments[]addressedThreadIds[]Provide all pre-fetched context so the worker does not need to re-query GitHub.
Concurrency: All Stage 3 items can run in parallel (each in its own worktree).
Process items in this order (closest to done first):
babysit_pr) — all in parallelimplement) — parallel by execution grouprevise_plan) — all in parallelplan) — all in parallelWait for each stage group to complete before starting the next only if there are dependency relationships between items across groups.
Print a summary of what was done:
Backlog Processing Complete — Pass #<passCount>
================================================
Stage 3 (PR Babysitting):
#123 PR #45 updated, review threads addressed
Stage 2c/2d (Implementation):
#124 implementation in progress / PR updated
Stage 2b (Plan Revision):
#125 plan revised and reposted
Stage 1 (Planning):
#126 implementation plan posted
Skipped:
#127 Plan awaiting review
Errors:
#128 API timeout (will retry next pass)
gh auth status, then retrygh:setup-gh-mcp or ask the user to authenticate gh if MCP is not availableAll scanner state lives under .ai/work-my-backlog/:
| File | Purpose |
|---|---|
scan-state.json | Global pass count, last run, developer identity, and scope label (iteration) |
last-scan.json | Latest ScanResult payload |
wi-<id>.json | Per-work-item lifecycle state (stage, subState, plan metadata, prId, addressedThreadIds, optional worktreePath / branch, errorCount) |
activity.jsonl | Append-only activity log |
There is no aggregate state.json and no pr-<id>.json. When an issue is no
longer assigned/open its wi-<id>.json file is removed on the next scan.
/gh-work-on <id>/gh-babysit-pr <pr-id>/gh-draft-work-item/gh-work-items