원클릭으로
gh-work-my-backlog
Internal helper. Load only when explicitly named by another skill or agent.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Internal helper. Load only when explicitly named by another skill or agent.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
This skill should be used when the user asks to "babysit a PR", "babysit my pull request", "monitor my PR", "watch my pull request", "keep my PR green", "fix PR build failures automatically", "handle PR review comments", or wants autonomous Azure DevOps PR monitoring that fixes build breaks, test failures, code coverage gaps, and review comments on a polling loop.
Internal helper. Load only when explicitly named by another skill or agent.
Internal helper. Load only when explicitly named by another skill or agent.
Publish local changes as an Azure DevOps pull request — analyzes commits, creates or links a work item (bug, task, or user story), pushes the branch, composes a PR description, and optionally tends to reviewer feedback and build failures until the PR is merged.
Internal helper. Load only when explicitly named by another skill or agent.
Internal helper. Load only when explicitly named by another skill or agent.
| 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