Commands are the friction-removers. Every command in this section
is a thin wrapper that either invokes a skill with the right
arguments, runs an octopus.sh subcommand, or stitches several of
both into a single orchestrated flow. They install as agent slash
commands during octopus setup: type /octopus:commit and the
agent runs the commit skill against the staged diff.
Why commands exist when skills do too
A skill is how the agent thinks about a task. A command is the
keystroke that starts the task. The split matters for two
reasons:
- Discoverability. Typing
/ shows the catalogue of things
the user can ask for. Skills are invisible until the agent
decides to engage one; commands surface them.
- Wrapping. Some flows arenβt just one skill β
dev-flow
walks the agent through branch / commit / PR / review / merge,
with pauses for human input. The command is the orchestrator
that holds the state; the skills are the steps.
Per the docs-site rule, commands that only invoke a skill get a
row in the table here β the rationale lives on the skill page.
Commands with their own design decisions get a detail page.
PR lifecycle
The end-to-end PR loop, designed to be invokable step-by-step or
end-to-end via /octopus:dev-flow.
| Command | What it does | Detail |
|---|
/octopus:branch-create | Create a branch following Conventional Commits prefixes; infers a name from context. | β |
/octopus:commit | Suggest a Conventional Commits message from the staged diff; commits after confirmation; adds AI co-authored trailer when applicable. | β |
/octopus:pr-open | Open a PR with an agent-written title + body following Octopus PR conventions; pushes the branch if needed. | β |
/octopus:pr-review | Self-review the PR diff against the projectβs correctness/design/readability/edge-case/security/tests checklist, then assign human reviewers. | β |
/octopus:pr-comments | Walk the respond-to-review discipline against feedback on the PR β verify, ask for evidence, separate reasoned vs preference, never performative, clarify ambiguity. | β |
/octopus:pr-merge | Merge an approved PR with squash; deletes the branch; refuses if unapproved or checks failing. | β |
/octopus:dev-flow | The full lifecycle in one command, with human pauses between phases. | β |
/octopus:codereview | Comprehensive security + quality review of uncommitted changes. Wider scope than pr-review. | β |
Doc lifecycle
The full RFC β Spec β ADR β Knowledge chain. Each command invokes
its eponymous skill; their rationale lives on the skill pages
(doc-lifecycle is the
overall guide).
| Command | Maps to skill |
|---|
/octopus:doc-research | doc-research β interactive brainstorming β research doc + roadmap RM |
/octopus:doc-rfc | doc-rfc β Request for Comments draft |
/octopus:doc-spec | doc-spec β new feature spec from template |
/octopus:doc-design | doc-design β interactive design fill-in for an existing spec |
/octopus:doc-plan | doc-plan β bite-sized TDD-style implementation plan from a spec |
/octopus:doc-prd | doc-prd β PRD published to the project issue tracker |
/octopus:doc-adr | doc-adr β Architecture Decision Record from template |
/octopus:doc-subcontext | doc-subcontext β per-module CLAUDE.md for monorepos |
/octopus:doc-api | doc-api β validate API contract fidelity or regenerate integrator docs |
Audits
All audits wrap their respective skills. Run audit-all to dispatch
the relevant ones in parallel.
| Command | What it audits |
|---|
/octopus:audit-all | Dispatches audit-security, audit-money, audit-tenant, and audit-contracts in parallel; consolidates findings with severity tiers. |
/octopus:audit-money | Money-touching code β types, rounding, cents tests, env drift, idempotency, webhook signatures. |
/octopus:audit-tenant | Multi-tenant data-scope enforcement β query filters, raw SQL, controller ownership. |
/octopus:audit-config | Agent-configuration freshness β model assumptions, stale dates, phantom skills, deprecated paths. |
Implementation & debugging
| Command | Maps to skill |
|---|
/octopus:implement | implement β the TDD / plan / verify / simplify / commit workflow. |
/octopus:debug | debug β reproduce β isolate β regression-test β document. |
/octopus:prototype | prototype β throwaway prototypes to flush out a design before committing to it. |
/octopus:audit-contracts | audit-contracts β frontend/backend contract drift detection. |
/octopus:respond-to-review | respond-to-review β discipline for handling PR feedback. |
Orchestration
| Command | What it does | Detail |
|---|
/octopus:delegate | Dispatch a task (or multi-step pipeline) to one or more Octopus roles; supports parallel dispatch, role aliases, and step gates. | β |
/octopus:context-handoff | Compact the current conversation into a handoff doc for another agent to pick up. | β |
/octopus:interview | Grill the user on a plan or design until each branch of the decision tree resolves. | β |
/octopus:triage-issues | Walk incoming bugs and feature requests through the triage state machine. | β |
/octopus:respond-to-reviewoposals | Review .octopus/proposals/<ts>.md candidates from the knowledge-update Stop hook; promote / partial / archive / discard. | β |
Launches & releases
| Command | What it produces |
|---|
/octopus:launch-feature | Multi-channel launch kit from a completed feature (RM / spec / PR). |
/octopus:launch-release | Themed release announcement kit for existing users β landing page, email, Slack, Discord, banner, X thread, deck. |
/octopus:release | Versioned release with CHANGELOG entry, README version sync, git tag, and GitHub Release. |
Skill authoring
| Command | What it does | Detail |
|---|
/octopus:scaffold-skill | Author a new skill end-to-end β frontmatter, SKILL.md, optional REFERENCE.md, bundle registration so no skill ships loose. | β |
/octopus:compress-skill | Shrink a SKILL.md without changing semantics β deterministic cleanup + optional LLM rewrite. | |
/octopus:plan-backlog | Scan planning directories + roadmap for orphan plans, concluded-but-not-archived, duplicates, broken links. | |
/octopus:map-system | Generate a system map of the current codebase for AFK agents and onboarding. | |
| Command | What it does |
|---|
/octopus:update | Update the Octopus CLI to the latest release; pins version in lockfile with --pin. |
Source: commands/