Spawn a Claude worker to handle a GitHub issue. Fetches issue details, creates a feature branch, and works autonomously. Use when you want to delegate an issue to a worker.
Spawns an autonomous Claude worker to handle GitHub issues. Triggered by `/issue-worker <number>`, it fetches issue details, creates a feature branch, implements changes, and opens a PR.
/plugin marketplace add schmug/karkinos/plugin install karkinos@karkinosThis skill is limited to using the following tools:
Spawn a Claude worker to handle a GitHub issue.
/issue-worker <issue-number>
/issue-worker 42
/issue-worker 123
When the user invokes /issue-worker, follow these steps:
gh issue view <issue-number> --json number,title,body,labels,comments
Create a descriptive branch name from the issue:
feat/issue-<number>-<short-description>feat/issue-42-add-retry-logicFor bug issues, use fix/ prefix instead of feat/.
BRANCH="feat/issue-<number>-<slug>"
WORKTREE_PATH="../artemis-issue-<number>"
git worktree add "$WORKTREE_PATH" -b "$BRANCH"
Construct a comprehensive prompt for the worker:
You are working on GitHub Issue #<number>: <title>
## Issue Description
<body>
## Labels
<labels>
## Comments
<comments if any>
## Your Task
1. Understand the issue requirements
2. Implement the necessary changes
3. Write tests if applicable
4. Commit your changes with message referencing the issue (e.g., "feat: add retry logic (fixes #42)")
5. Push your branch and create a PR
## Guidelines
- Follow existing code patterns in the repository
- Keep changes focused on the issue scope
- Add comments only where logic isn't self-evident
cd "$WORKTREE_PATH" && claude --print --dangerously-skip-permissions "$PROMPT"
After the worker completes successfully and has made commits:
# Push the branch to origin
git push -u origin "$BRANCH"
# Create PR linking to the issue
gh pr create --title "<issue title>" --body "$(cat <<'EOF'
## Summary
<brief description of changes>
Closes #<issue-number>
## Changes
<list of key changes made>
---
š¤ Generated by Claude worker
EOF
)"
# Enable auto-merge (will merge automatically when CI passes)
gh pr merge --auto --squash
After completion:
git log $BRANCH --oneline -5git diff main...$BRANCH --statAdd to .claude/workers.json:
{
"type": "issue",
"issue": 42,
"branch": "feat/issue-42-add-retry-logic",
"worktree": "../artemis-issue-42",
"created": "2024-01-15T10:30:00Z",
"status": "completed",
"pr": "<pr-url>"
}