一键导入
work
Start working on a GitHub issue. Use when user says 'work on #123', 'start issue 42', or 'pick up the next task'.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Start working on a GitHub issue. Use when user says 'work on #123', 'start issue 42', or 'pick up the next task'.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate UI-viewable replay artifacts from a trained RL checkpoint. Use when user asks to generate replays, view agent behavior, or step through games.
Check Hetzner VM sweep status: games completed, errors/bugs with seeds, max fame leaderboard. Use when user asks about VM status, sweep progress, bugs, or fame.
View GitHub project board status. Shows issues by status (In Progress, Up Next, Backlog) with priority labels. Use when user asks 'what's the status', 'show me the board', or 'what's in progress'.
Complete work on current issue, create PR, and update project board. Use when implementation is complete and ready for review.
Link GitHub issues as sub-issues or blockers. Use when organizing epics or marking dependencies between issues.
Recommend what issue to work on next based on priority, complexity, and dependencies. Use when user asks 'what should I work on', 'what's next', or 'pick something for me'.
| name | work |
| description | Start working on a GitHub issue. Use when user says 'work on #123', 'start issue 42', or 'pick up the next task'. |
| user-invocable | true |
| argument-hint | [#issue-number or 'next'] [--worktree] |
Begin working on a GitHub issue, tracking progress in the project board.
If issue number provided (e.g., /work #42 or /work 42):
gh issue view $ARGUMENTS --json number,title,body,labels,state
If no number provided (/work or /work next):
# Get highest priority issue from project
gh issue list --label "P0-critical" --state open --limit 1
# If none, try P1-high
gh issue list --label "P1-high" --state open --limit 1
If the issue has the epic label, do not start work on it directly. Instead:
# Check if issue has epic label
gh issue view ISSUE_NUM --json labels --jq '.labels[].name' | grep -q "^epic$"
Verify the issue isn't already being worked on:
# Get current project item status (GraphQL — may hit rate limits)
ITEM_ID=$(gh project item-list 1 --owner eshaffer321 --format json --limit 100 | jq -r '.items[] | select(.content.number == ISSUE_NUM) | .id')
If rate-limited, skip this check and proceed.
If already "In Progress", warn the user and confirm they want to continue.
Update the project board status to prevent other agents from grabbing the same issue:
# Get the item ID for this issue (GraphQL — may hit rate limits)
ITEM_ID=$(gh project item-list 1 --owner eshaffer321 --format json --limit 100 | jq -r '.items[] | select(.content.number == ISSUE_NUM) | .id')
# Move to "In Progress" status
# Project ID: PVT_kwHOAYaRMc4BNjzC
# Status field ID: PVTSSF_lAHOAYaRMc4BNjzCzg8hL6U
# "In Progress" option ID: 47fc9ee4
gh project item-edit --project-id "PVT_kwHOAYaRMc4BNjzC" --id "$ITEM_ID" --field-id "PVTSSF_lAHOAYaRMc4BNjzCzg8hL6U" --single-select-option-id "47fc9ee4"
If rate-limited on project board updates, skip and proceed — the PR with Closes #XX will handle status when merged.
Replace ISSUE_NUM with the actual issue number.
gh issue comment ISSUE_NUM --body "Starting work on this issue."
Standard mode (default):
# Create feature branch from main
BRANCH_NAME="issue-${ISSUE_NUM}-$(echo "$TITLE" | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | sed 's/[^a-z0-9-]//g' | cut -c1-30)"
git checkout -b "$BRANCH_NAME"
Worktree mode (if --worktree flag or called from /implement):
# Generate branch name
BRANCH_NAME="issue-${ISSUE_NUM}-$(echo "$TITLE" | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | sed 's/[^a-z0-9-]//g' | cut -c1-30)"
# Create worktree in dedicated directory
WORKTREE_DIR="$HOME/.claude-worktrees/mage-knight"
mkdir -p "$WORKTREE_DIR"
WORKTREE_PATH="${WORKTREE_DIR}/${BRANCH_NAME}"
git worktree add "$WORKTREE_PATH" -b "$BRANCH_NAME"
echo "Created worktree at: $WORKTREE_PATH"
echo "To work in worktree: cd $WORKTREE_PATH"
echo "Add to Claude context: /add-dir ~/.claude-worktrees/mage-knight/"
Report the branch name and worktree path (if applicable) to the user.
docs/tickets/, read that fileUse the TodoWrite tool to create a task list based on the issue's acceptance criteria.
Start working through the task list, implementing the changes.
Throughout implementation:
User: /work #32
Response:
User: /work
Response:
After gathering context and creating the implementation plan, provide a Validation Steps section that tells the user exactly how to verify the work once complete:
## Validation Steps
To verify this feature works correctly:
1. [Step-by-step user journey to test the feature]
2. [Expected behavior at each step]
3. [Edge cases to check]
For example, if the issue is about mandatory card play:
This helps the user know exactly what to test when implementation is complete.