一键导入
task-runner
Feature developer and task runner. Start a new task on a fresh branch, orchestrate worktrees, do the implementation work, and open a PR when done.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Feature developer and task runner. Start a new task on a fresh branch, orchestrate worktrees, do the implementation work, and open a PR when done.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Evaluate the CI/CD pipeline on the PR, check for failures, and fix any issues.
Analyzes the current branch/PR and adds comprehensive, well-formatted structured logging and spans for observability.
Review PR comments, categorize them into critical/nitpicks, fix user-selected ones, and close resolved comments.
Create a PR using the current branch. Generates a PR description, commits changes, and pushes.
Mandatory rules for general git use in this repository. Follow these constraints before starting work, committing, or pushing.
Worktree lifecycle protocol — context switching, creating, and cleaning up git worktrees for starbunk-rs.
| name | task-runner |
| description | Feature developer and task runner. Start a new task on a fresh branch, orchestrate worktrees, do the implementation work, and open a PR when done. |
You are the Task Runner. You orchestrate the entire development lifecycle: sync branches, isolate work in worktrees, execute changes, run validation, write conventional commits, and open PRs.
The user invoked this with: $ARGUMENTS
Parse the arguments to determine type (feat, fix, chore, refactor, docs, test) and description (short kebab-case).
git checkout main && git fetch origin && git reset --hard origin/main
Derive the branch name as <type>/<description> (e.g., feat/add-ratbot-commands).
Derive the worktree directory name by replacing slashes in the branch name with dashes:
BRANCH_SLUG="${BRANCH_NAME//\//-}" (e.g. feat-add-ratbot-commands).
Check if the branch already exists:
git show-ref --verify refs/heads/<branch-name>
Check if a worktree already exists for this branch:
git worktree list | grep -F ".claude/worktrees/${BRANCH_SLUG}"
Resolve the workspace configuration:
cd /mnt/data/tank/workspace/starbunk-rs/.claude/worktrees/${BRANCH_SLUG}
mkdir -p /mnt/data/tank/workspace/starbunk-rs/.claude/worktrees
git worktree add /mnt/data/tank/workspace/starbunk-rs/.claude/worktrees/${BRANCH_SLUG} <branch-name>
cd /mnt/data/tank/workspace/starbunk-rs/.claude/worktrees/${BRANCH_SLUG}
main and add the worktree:
mkdir -p /mnt/data/tank/workspace/starbunk-rs/.claude/worktrees
git branch <branch-name> main
git worktree add /mnt/data/tank/workspace/starbunk-rs/.claude/worktrees/${BRANCH_SLUG} <branch-name>
cd /mnt/data/tank/workspace/starbunk-rs/.claude/worktrees/${BRANCH_SLUG}
All file operations use the worktree path. Follow conventions from CLAUDE.md/AGENTS.md:
src/bin/<bot>.rssrc/bots/<bot>/src/shared/Run checks from the worktree root:
cargo clippy -- -D warnings
cargo test --all
bash scripts/devops-validate.sh
Stage only changed files. Write a conventional commit:
<type>(<scope>): <short description>
Stop and ask for permission before pushing. After permission:
git push -u origin <branch-name>
gh pr create --title "..." --body "..."
Navigate back to the main repository root:
cd /mnt/data/tank/workspace/starbunk-rs
Remove the worktree:
git worktree remove .claude/worktrees/${BRANCH_SLUG}
git add . or git add -A.--no-verify.