code-review, a test-checkout, a verify-accessibility — things you sometimes want to run and don’t want the agent starting on its own.
How commands fit with the other Context Base types
The four Context Base types compared:| Triggered by | Shape | Example | |
|---|---|---|---|
| Commands | Forced by name only | Task procedure | code-review |
| Skills | A matching domain (or forced by name) | Domain expertise | seo-optimizer |
| Rules | Always active | Always-on constraint | product-images-through-cdn |
| Guides | Explicitly referenced | Reference document | authentication-flow |
What commands are good for
Reviews & checks
code-review, verify-accessibility, check-performance —
things you run when you want them, not every time the agent
touches the codebase. Invoking them explicitly keeps the agent
from second-guessing.Build recipes
build-landing-page, scaffold-product-detail-page,
add-block-component — the team’s way of creating something you
put together often enough that “build me one of those” should
always land the same shape.Writing a command
Open Studio → Context → Commands in the admin app and click New Command. Creation asks for two things:- Name — short, memorable, triggerable.
code-reviewandbuild-landing-pageare good. - Description — one sentence for the commands list.
Example: build-landing-page
A creation recipe — a repeatable “build me one of these” pattern that bakes in the team’s choices so every landing page lands in the same shape./build-landing-page for the spring sale campaign, the agent follows the same flow. Every landing page matches the rest of the site.
Example: verify-accessibility
An audit command — a different shape from a build recipe. The agent reviews something that already exists and reports back./verify-accessibility gets you a consistent report every time — the same baselines, the same gotchas, the same severity language. No restating “check this, check that” in the prompt.
Triggering a command
Commands are invoked as slash commands from the agent chat — the same mechanism in Studio, Claude Code, Cursor, and any other MCP-capable editor:/build-landing-page — brief for the spring sale campaign attached.
/verify-accessibility on the checkout confirmation page.In Studio, there’s a second path: the command menu lets you pick a command from a list and run it without typing the slash — handy when you don’t remember the exact name. The agent loads the command’s content, confirms the parameters, and starts executing. You stay in control: destructive steps still go through normal approval, and the agent will pause for confirmation at any step that needs it.
Command or skill — how to choose
Commands and skills share the same content shape, so the decision is about what the content describes and when you want it to fire:- Is it a domain the agent should carry into every relevant task → skill.
shopware-headless-commerce,seo-optimizer,product-variants-and-scopes— expertise that applies across many tasks. Let the agent discover and apply it on its own. - Is it a specific procedure you only want run when you ask → command.
code-review,verify-accessibility,build-landing-page— narrow actions with a beginning, middle, and end. Stay out of every task until invoked.
Related
Context Base
The mental model for the whole Context Base.
Skills
Task-specific reusable know-how.
Rules
Always-on guardrails build-side agents follow.
Guides
Reference documents the agent reads on demand.