/apogee:init [--migrate] [notes]from apogee
Bootstrap a project's Apogee context: research the codebase, fill docs/apogee/ai-context and the root CLAUDE.md, seed a CLAUDE.md per first-level submodule. Run once per project, in Plan Mode.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Bootstrap a project's Apogee context: research the codebase, plan, then fill the full doc set
(docs/apogee/ai-context/* + root CLAUDE.md) and seed a flat CLAUDE.md in each first-level
submodule. Designed to run inside Plan Mode (toggle with Shift+Tab).
Usage: /apogee:init [--migrate] [notes]
Run this once on a new project (or after adding submodules). Optional [notes] steer focus
(e.g. "this is a mobile app", "skip the legacy/ dir"). --migrate converts an existing project's
CLAUDE.md to the project-only layout (section "Migrate" below) and stops.
What goes into CLAUDE.md. Only this project's facts, settled decisions and its own rules or
exceptions, in the scaffold's sections (Project, Operator Model, Key Architecture Decisions,
Project Rules, Testing, Privacy & Security, Bilingual Documentation). Apogee's general rules and
tone are not written there: they come from the plugin's rules/RULES.md and rules/SOUL.md,
injected at every session start (ADR 0009).
--migrate)For a project set up before 4.0, whose CLAUDE.md still carries Apogee's general sections
(typically "Critical Rules", "Communication Style", "Tool Usage Rules", "Coding Standards").
CLAUDE.md and the plugin's rules:
${CLAUDE_PLUGIN_ROOT}/rules/RULES.md and ${CLAUDE_PLUGIN_ROOT}/rules/SOUL.md.legacy/", a
deliberate deviation from a toolkit rule).CLAUDE.md into the scaffold layout
(${CLAUDE_PLUGIN_ROOT}/../../scaffold/CLAUDE.md is not reachable from a project, so use the
section list above), preserving every project line verbatim. Sections that end up empty keep
only their heading and a one-line comment.Build an accurate picture of the project before writing anything. Dispatch sub-agents in parallel to
map: what the project is and does, the tech stack, the directory structure and entry points, and the
current status (read git log / open work). For unfamiliar libraries, frameworks, or platform
capabilities, use Context7 MCP first; WebSearch only if Context7 lacks coverage. Treat training data
as potentially stale.
Enumerate first-level git submodules (skip silently if there is no .gitmodules):
git config --file .gitmodules --get-regexp '^submodule\..*\.path$'
Each output line is submodule.<name>.path <path> — collect the <path> values. Do not recurse
into nested submodules.
Present, for approval:
spec.md, project-structure.md, progress.md,
deployment-infrastructure.md) and the root CLAUDE.md you will create or refine.CLAUDE.md. Mark
any that already have one — those are skipped (never overwritten).For a large or unfamiliar codebase, optionally run /apogee:second-opinion on this plan to catch blind
spots. Then exit Plan Mode with the synthesized plan.
If you are not in Plan Mode, present the same plan inline and ask for confirmation before writing.
Root docs + CLAUDE.md. Follow the /apogee:update-docs skill's initial-creation path (its
"Create Missing Files" step) to populate the core docs and fill the root CLAUDE.md's project
sections from the actual codebase (project facts only, see "What goes into CLAUDE.md"). A core doc is MISSING when it does not exist OR still carries the apogee:scaffold-stub
sentinel (setup.sh scaffolds these template stubs — placeholders, not real docs). Treat a stub as
create-from-scratch: replace its entire content with researched project context and drop the sentinel;
refine only docs that lack it. Do not restate that skill's ownership/density rules here — defer to it (single source of
truth: each fact in exactly one doc; document only what can't be inferred from the code).
Submodules (first-level, non-clobbering). For each submodule path: if <path>/CLAUDE.md does
not already exist, create a flat one — minimal and self-contained:
Submodule of <parent-repo>; shared conventions live in the parent CLAUDE.md.Keep it short — a flat working file, not the full root template. Never overwrite an existing
CLAUDE.md in a submodule.
A submodule is its own git repo, so the parent's .git/info/exclude does not cover it. Nothing to
do by hand: the plugin's SessionStart hook re-asserts the AI-tooling exclude list (CLAUDE.md,
GEMINI.md, docs/apogee/, .claude/, .beads/, .scratch/) for the parent and every first-level
submodule at the start of each session, so a submodule CLAUDE.md created here stays out of git
from the next session on. Do not verify it, do not stage it, do not add it to .gitignore.
Index. docs/apogee/README.md is the index /apogee:prime reads. Drop its scaffold sentinel
and list whatever already exists under docs/apogee/ beyond ai-context/ (one line each); leave
the optional-directories table as guidance.
/apogee:prime would) so the session continues
primed, then summarize what was created vs skipped (and any submodules left untouched).Notes / focus: $ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
highnpx claudepluginhub mishagin-dev/apogee --plugin apogee20 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.