Agent tools: SOS, brand, schema, and skills
Use Apex CLI agent-oriented commands for brand context, SOS handoffs, command schema introspection, and local skill installation.
These commands are designed for automation and external agent workflows. They expose public CLI behavior only; internal dashboards, internal API routes, and operations runbooks are not part of this reference.
Brand context
apex brand
apex brand --jsonapex brand reads the current shop brand context. Human output prints the prompt-ready brand block when one exists. JSON output returns brandContext, or null with a message when no profile exists yet.
Use this before generating customer-facing experiment copy so external agents inherit the same brand grounding as Apex-managed workflows.
SOS tickets
apex sos create \
--type qa \
--experiment 00000000-0000-4000-8000-000000000040 \
--sub-class "tracking evidence missing" \
--loom https://www.loom.com/share/example \
--description @sos-description.md
apex sos mine --json| Command | Flags | Behavior |
|---|---|---|
apex sos create | --type <type>, --loom <url>, --experiment <id>, --sub-class <text>, --description <text-or-@file>, optional [description] argument | Creates or reuses an Apex SOS ticket through the API. |
apex sos mine | None beyond global flags | Lists tickets created by the current API key. |
SOS type values are full_handover, design, development, qa, config, and bug. The default type is qa.
Schema introspection
apex schema --jsonapex schema prints the current command tree, aliases, argument metadata, options, descriptions, default values, and nested commands. Agents should call this before scripting unfamiliar commands.
Skill files
apex skills
apex skills --install
apex skills --install --target ./.claude/skills --jsonapex skills prints the package paths for the CLI AGENTS.md contract and the bundled apex-cli skill. With --install, it copies both files into <target>/apex-cli. The default target is .claude/skills.
Agent contract reminders
- Use
apex, not inferred fuzzy command names. - Prefer
--jsonand parse the envelope, not human tables. - Treat
.apex/folders as CLI-owned metadata. - Treat preview tokens and API keys as secrets.
- Do not edit generated QA or launch state directly; use
apex experiments qa.