Skip to content

Commands

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.

CommandWhat it doesDetail
/octopus:branch-createCreate a branch following Conventional Commits prefixes; infers a name from context.β†’
/octopus:commitSuggest a Conventional Commits message from the staged diff; commits after confirmation; adds AI co-authored trailer when applicable.β†’
/octopus:pr-openOpen a PR with an agent-written title + body following Octopus PR conventions; pushes the branch if needed.β†’
/octopus:pr-reviewSelf-review the PR diff against the project’s correctness/design/readability/edge-case/security/tests checklist, then assign human reviewers.β†’
/octopus:pr-commentsWalk the respond-to-review discipline against feedback on the PR β€” verify, ask for evidence, separate reasoned vs preference, never performative, clarify ambiguity.β†’
/octopus:pr-mergeMerge an approved PR with squash; deletes the branch; refuses if unapproved or checks failing.β†’
/octopus:dev-flowThe full lifecycle in one command, with human pauses between phases.β†’
/octopus:codereviewComprehensive 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).

CommandMaps to skill
/octopus:doc-researchdoc-research β€” interactive brainstorming β†’ research doc + roadmap RM
/octopus:doc-rfcdoc-rfc β€” Request for Comments draft
/octopus:doc-specdoc-spec β€” new feature spec from template
/octopus:doc-designdoc-design β€” interactive design fill-in for an existing spec
/octopus:doc-plandoc-plan β€” bite-sized TDD-style implementation plan from a spec
/octopus:doc-prddoc-prd β€” PRD published to the project issue tracker
/octopus:doc-adrdoc-adr β€” Architecture Decision Record from template
/octopus:doc-subcontextdoc-subcontext β€” per-module CLAUDE.md for monorepos
/octopus:doc-apidoc-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.

CommandWhat it audits
/octopus:audit-allDispatches audit-security, audit-money, audit-tenant, and audit-contracts in parallel; consolidates findings with severity tiers.
/octopus:audit-moneyMoney-touching code β€” types, rounding, cents tests, env drift, idempotency, webhook signatures.
/octopus:audit-tenantMulti-tenant data-scope enforcement β€” query filters, raw SQL, controller ownership.
/octopus:audit-configAgent-configuration freshness β€” model assumptions, stale dates, phantom skills, deprecated paths.

Implementation & debugging

CommandMaps to skill
/octopus:implementimplement β€” the TDD / plan / verify / simplify / commit workflow.
/octopus:debugdebug β€” reproduce β†’ isolate β†’ regression-test β†’ document.
/octopus:prototypeprototype β€” throwaway prototypes to flush out a design before committing to it.
/octopus:audit-contractsaudit-contracts β€” frontend/backend contract drift detection.
/octopus:respond-to-reviewrespond-to-review β€” discipline for handling PR feedback.

Orchestration

CommandWhat it doesDetail
/octopus:delegateDispatch a task (or multi-step pipeline) to one or more Octopus roles; supports parallel dispatch, role aliases, and step gates.β†’
/octopus:context-handoffCompact the current conversation into a handoff doc for another agent to pick up.β€”
/octopus:interviewGrill the user on a plan or design until each branch of the decision tree resolves.β€”
/octopus:triage-issuesWalk incoming bugs and feature requests through the triage state machine.β€”
/octopus:respond-to-reviewoposalsReview .octopus/proposals/<ts>.md candidates from the knowledge-update Stop hook; promote / partial / archive / discard.β†’

Launches & releases

CommandWhat it produces
/octopus:launch-featureMulti-channel launch kit from a completed feature (RM / spec / PR).
/octopus:launch-releaseThemed release announcement kit for existing users β€” landing page, email, Slack, Discord, banner, X thread, deck.
/octopus:releaseVersioned release with CHANGELOG entry, README version sync, git tag, and GitHub Release.

Skill authoring

CommandWhat it doesDetail
/octopus:scaffold-skillAuthor a new skill end-to-end β€” frontmatter, SKILL.md, optional REFERENCE.md, bundle registration so no skill ships loose.β†’
/octopus:compress-skillShrink a SKILL.md without changing semantics β€” deterministic cleanup + optional LLM rewrite.
/octopus:plan-backlogScan planning directories + roadmap for orphan plans, concluded-but-not-archived, duplicates, broken links.
/octopus:map-systemGenerate a system map of the current codebase for AFK agents and onboarding.

Meta

CommandWhat it does
/octopus:updateUpdate the Octopus CLI to the latest release; pins version in lockfile with --pin.

Source: commands/