issue-workerlisted
Install: claude install-skill mattbutlerengineering/mattbutlerengineering
# Issue Worker
Autonomous issue resolver. Picks up one ready issue, delegates implementation to `mbe agent run` (worktree-isolated), and manages the label lifecycle.
## Workflow
### Step 0: Governor Check
Before picking up work, check the adaptive cadence governor:
```bash
node plugins/acmm/scripts/cadence-governor.js
```
If the governor exits with code 1 (SKIP), exit cleanly: "Governor says SKIP (mode: \<MODE\>). No work this cycle."
If the governor exits with code 0 (EXECUTE), proceed to Step 1.
After completing work (Step 5a or 5b), mark that execution happened:
```bash
node plugins/acmm/scripts/cadence-governor.js --execute
```
### Step 1: Find an Issue
```bash
gh issue list --label "ready" --state open --limit 5 --sort created --json number,title,body,labels
```
Filter the results to exclude issues that also have the `agent-skip` label. Pick the first issue that passes all filters (no `agent-skip`, dependencies met, etc.).
If no issues remain after filtering, **exit cleanly** with a message: "No ready issues found. Nothing to do."
### Step 1b: Check Dependencies
Before claiming, check if the issue has unresolved dependencies:
```bash
# Extract "Depends on: #N" from issue body
DEPS=$(echo "$ISSUE_BODY" | grep -oP 'Depends on: #\K\d+')
for DEP in $DEPS; do
STATE=$(gh issue view $DEP --json state -q '.state')
if [ "$STATE" != "CLOSED" ]; then
echo "Blocked: issue #<NUMBER> depends on #$DEP which is still $STATE. Skipping."
# Try the next ready i