/apogee:start [feature|bugfix|hotfix|research] <slug or description> [in <path>...] [read <path>...] [epic: <br id>] [version: <x.y.z>]from apogee
Open a unit of work the right way, and the only way work is opened in an Apogee project: feature or bugfix branch off an up-to-date develop, hotfix branch off main with its version, or a research note with no branch at all. Carries uncommitted changes along, links the br epic in beads projects, publishes the branch. Closed by /apogee:finish.
Ships in apogee. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The entry point that /apogee:finish closes. Every unit of work goes through this pair, so the
rules that live in prose (base branch, naming, the br link, no work on develop or main) are
applied once, here, instead of remembered each time. The raw git flow <type> start commands are
this skill's internals; don't run them directly.
Context from user: $ARGUMENTS
feature, bugfix, hotfix or research → that type. Absent → infer:
a defect ("fix", "bug", "broken", "regression", a br issue of type bug) → bugfix; a question
to answer rather than code to write ("investigate", "compare", "evaluate", "research", "which
… should we") → research; otherwise feature. A hotfix is never inferred: it touches the
production line, so it must be asked for by name.[a-z0-9-]+) use it. Otherwise derive one:
lowercase, words joined by -, filler dropped, at most 40 characters. Show it in the report;
don't ask for approval.epic: <id> names the br epic to link. Without it, in a beads project, look for an
open epic whose slug or title matches (br list --json, issue_type == "epic").in <path>... names the submodules the work
changes, read <path>... the ones it only builds against; a path may be a directory holding
several (in platform). Present → open in a zone worktree (below).version: <x.y.z>, else the last tag with the patch number bumped
(git describe --tags --abbrev=0, keeping its v prefix style). The hotfix branch is named
after the version, as git-flow expects; the slug goes into the br epic title and the report.Skip for research.
git rev-parse --is-inside-work-tree, then
git config --get-regexp '^gitflow\.branch\.'. Not git-flow → offer to initialise it (the
apogee:git-flow skill's "Detect first": main + develop) and stop until the user agrees; never hand-roll git checkout -b.git branch --show-current.
develop or the production branch: fine; uncommitted changes (staged or not) travel to
the new branch, which is exactly the fix for "I edited on develop by mistake".apogee:git-commit) or stash them deliberately first.git branch --list 'feature/*' 'bugfix/*' 'hotfix/*'. Any open → list them in the
report. Parallel feature/bugfix branches are fine when their file sets are disjoint (RULES.md "Decompose"). A second
open hotfix → STOP: git-flow allows one at a time; finish the open one first.git fetch origin, then fast-forward the base branch
(develop for feature/bugfix, the production branch for hotfix) when it is checked out and
behind: git merge --ff-only origin/<base>. A diverged base is left alone and reported; never
rebase or reset here.git flow <type> start <slug>
git push -u origin <type>/<slug> # only if a remote exists
A superproject checkout has one HEAD and one index. Sessions that work in it in parallel move
them under each other: a start switches everyone's branch, a git add picks up another
session's submodule pins. A zone worktree gives the session its own: a linked worktree of the
superproject in which only the zone's submodules are populated, each a linked worktree of the
main checkout's own submodule repository (shared objects, branches and git-flow config, nothing
cloned, a few MB of sources; build directories start cold).
Without in, in a superproject whose git worktree list or recent git log shows other work
in flight, offer the zone with the submodules the task names; a single session needs none.
bash "${CLAUDE_PLUGIN_ROOT}/skills/start/scripts/zone-worktree.sh" open <type>/<slug> <path>... [--read <path>...]
Run from the main checkout, which stays on develop (pre-flight 2 does not apply to it). It
prints the worktree path, <root>/worktrees/<slug>; it refuses a submodule without git-flow or
not initialised. Then publish the branch in the superproject worktree and in each in
submodule (git -C <path> push -u origin <type>/<slug>).
From here on, work only inside that worktree: absolute paths for Read/Edit/Write, cd or
git -C into it for commands. Pin a submodule in the superproject branch as you go
(git add <path>, through apogee:git-commit). The main checkout belongs to no session; don't
switch, commit or submodule update there. Inside the worktree the other submodules are
inactive and the zone's have update=none, so git submodule update (or make sync) is a
no-op there instead of repointing the shared repositories. Local-only notes (docs/apogee/,
.scratch/) stay in the main checkout, by absolute path: the worktree has none, and closing
refuses while it holds any. /apogee:finish closes it.
git flow hotfix start <version> # branches off the production branch
git push -u origin hotfix/<version> # only if a remote exists
Starting a hotfix only creates a branch from main; nothing reaches main until the operator
runs the finish that /apogee:finish prepares (ADR 0007). Fix the defect with small commits on
this branch; the version bump and CHANGELOG are /apogee:finish's job, not the first commit's.
No branch, no git. Hand over to apogee:research with open <the question or slug>: it creates
the dated note in docs/apogee/research/, links the tracker, and runs the research with deep
reasoning and a second opinion from agy. Code is not changed under a research item.
Skip when there is no .beads/ at the repo root.
br update <epicId> --external-ref <branch> --actor "${BR_ACTOR:-assistant}". No epic: create one (br create "<title>" -t epic --slug <slug> --json, a hotfix's title carrying its version) plus one child step, link it, then claim
the step: br update <stepId> --claim --actor "${BR_ACTOR:-assistant}".apogee:research; skip here.br comments add <id> --message "start: opened <branch>".br never runs git and .beads/ is local-only; nothing to commit here.
Branch types only; a research item is reported by apogee:research. Four lines, no more:
<type>/<slug> off <base> at <short sha> (published or not).Then continue with the work. Commits go through apogee:git-commit; the unit is closed with
/apogee:finish. Nothing here needs confirmation: a branch is reversible with
git flow <type> delete <name>, a research file with rm.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
20 skills in this plugin
/ai-clean-roomPersonal black-box clean-room skill: build an independent product that reproduces the functionality of a closed-source reference application using only its public documentation, observed behavior and screenshots, without copying its code, texts, icons, design or name. Manual invocation only (/apogee:ai-clean-room)./brOfficial skill for beads_rust (`br`), a local-first, dependency-aware issue tracker for AI agents. Use when creating issues, triaging backlogs, managing dependencies, finding ready work, updating status, or exporting the local JSONL backup (br sync --flush-only)./cleanupReclaim disk space that agent work leaves behind: linked git worktrees (of the repository and of every submodule), the stale records of worktrees deleted by hand, orphaned worktree directories, and the build directories (Rust target/, DerivedData) that make each copy 5–35 GB. Inventories first with a read-only script, deletes only what the user picks. Use when the disk fills up, when worktrees pile up after parallel agents, or when the user asks to clean up, tidy up or free space, in any language. Offered by the session-start reminder and by /apogee:finish.npx claudepluginhub mishagin-dev/apogee --plugin apogee