用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/kapilvirenahuja/garura --skill setup-branch命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Install Garura into a target project or repository so its skills, agents, and plays become discoverable by a host coding tool — Claude Code or the OpenAI Codex CLI. Reads this garura checkout's core/components and runs a per-tool ADAPTER that lays them down in the host's native shape: for claude, .claude/ skills + agents with model tiers resolved to Claude models; for codex, .agents/skills Agent Skills plus AGENTS.md and ~/.codex model/sandbox/approval profiles. Always writes a .garura/ tooling tree (config + STM scaffold) and copies shared memory to the machine-global ~/.garura, and records an install manifest so uninstall-garura can reverse exactly what was placed. Use when the user wants to install, set up, bootstrap, add, or enable Garura in another folder or repo for claude or codex — "install garura into X", "set up garura in this repo for codex", "bootstrap garura", "make codex see the garura skills". Takes the target path, an optional --tool, and an optional --scope (full = everything, the default; ha
Compile a deterministic "play" (a multi-step, gated workflow recipe) from an intent. Interviews for the intent triple, generates the expectation, identifies the skills, scripts, and agents the play needs, selects a workflow structure, generates evals, and emits a compiled play (a SKILL.md plus bundled scripts for its mechanical work). Use this whenever the user wants to create, build, compile, or review a play — or says "create a play", "new play", "compile this into a play", "play-creator", "turn this intent into a play", or "review my play for gaps" — even if they don't say the word "play" explicitly but are describing a repeatable, multi-step, checkpoint-gated workflow they want captured as a runnable recipe.
Modify an existing compiled play — change its goal, a constraint, a failure condition, a success scenario, a step, the workflow shape, or the agents/skills it uses — by editing the play's ICE source and recompiling, never by hand-patching the output into disagreement with its intent. This is the companion to play-creator (which makes new plays). Use this whenever the user wants to edit, change, modify, update, tweak, extend, or fix an existing play — or says "edit the play", "change this play", "add a constraint to the play", "the play needs a new failure condition / step / scenario", "play-editor", or "recompile the play after I changed its intent" — even if they don't say "play" outright but are clearly reshaping a workflow recipe that already exists.
基于 SOC 职业分类
正在显示 SKILL.md
| name | setup-branch |
| description | Create branch, push to origin, optionally use worktree for dirty trees |
| user-invocable | false |
| model | haiku |
| allowed-tools | Bash, Read |
Model-invocable skill for creating and pushing branches.
Create a new branch from the current HEAD, push to origin with tracking, and handle dirty working trees via worktree or stash.
You DO the branch operations. You do NOT make decisions about branch naming — that comes from the caller.
Receive from agent:
branch_name — Full branch name (e.g., feature/42-add-oauth-login)issue_number — Associated issue number (for reference only)push_to_origin — Whether to push (default: true)git status --porcelain
Count changed files and lines to assess dirty state.
git branch --list "{branch_name}"
git ls-remote --heads origin "{branch_name}"
If branch exists locally or remotely, return error immediately.
If clean tree:
git checkout -b "{branch_name}"
If dirty tree — assess scope:
# Count changed files
git status --porcelain | wc -l
# Count changed lines
git diff --stat | tail -1
Minor changes (≤5 files AND ≤100 lines): Stash, create branch, pop stash
git stash push -m "garura: pre-branch stash for {branch_name}"
git checkout -b "{branch_name}"
git stash pop
Significant changes (>5 files OR >100 lines): Use worktree
git worktree add "../{repo-name}-{branch_slug}" -b "{branch_name}"
If push_to_origin is true:
git push -u origin "{branch_name}"
git branch --show-current
git config --get branch.{branch_name}.remote
git config --get branch.{branch_name}.merge
Produce output using template: templates/branch-output.md
IMPORTANT: This skill produces operation results. The calling agent receives this output and decides what to do next. Do NOT instruct the agent to return or stop.
Load branching conventions from: reference/branching.md
| Field | Value |
|---|---|
| Version | 1.0.0 |
| Category | operations |