/storyblok:storyblok-use-storyblokfrom storyblok
Entry point for all Storyblok-related requests. Loads first to assess the project setup, select the correct MCP tool, and route to the appropriate Storyblok skill.
Ships in storyblok. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Take stock, pick the tool, pick the skill.
In that order. Load no other skill until §1 has run and §2 has picked the tool — otherwise you are working through a tool you never chose.
What you check along the way — tools, sessions, config, project files — decides how you work; it is not news for the user. Mention it only when the user has to act on it or needs it to trust the result.
| Check | How |
|---|---|
| MCP server | mcp__storyblok__* tools present; load them with ToolSearch if deferred — nothing found means no server, so stop looking and do not load storyblok-use-mcp |
| CLI | node_modules/.bin/storyblok, else the package manager's exec, else command -v storyblok |
| CLI session | storyblok user — installed is not logged in |
| Schema mode | @storyblok/schema in package.json, or a file exporting defineSchema — usually src/schema/ |
| Storyblok project | storyblok.config.* in the root or .storyblok/config.*, or a @storyblok/* dependency in package.json |
space_id | Not a Storyblok project: ask, and open none of its files for it — nothing in them was written for Storyblok. In one: the CLI config's space, then a space-id key in .env (e.g. STORYBLOK_SPACE_ID), read by name, never the whole file; neither: ask |
Do this before §2, every time — routing on an assumption about which tools exist is the one mistake that cannot be recovered later.
Probe for the CLI with command -v storyblok || echo 'storyblok: not found',
never with a version flag. The echo keeps a missing CLI from reading as a
failed call. The flag is --vers; storyblok --version is an unknown option
that exits non-zero, so it reports a working CLI as missing. Do not suppress a
probe's stderr — the error that explains itself is the part you need.
Run each storyblok probe as its own Bash call. Chained behind ; or && into
a wider command it gets held for approval, and the retry usually drops the probe
— leaving you to guess at the one thing §2 routes on.
Use a token only where the user has named it: an environment variable ("use
STORYBLOK_TOKEN") or a command that reads it from their secret manager. A
token that is merely set in the environment is not one they handed over, so
never look for one there. Never accept a token through the chat, and never write
one down. The MCP server and the CLI each hold their own credentials.
Two credentials, for two APIs. A personal access token (STORYBLOK_TOKEN,
or STORYBLOK_PERSONAL_ACCESS_TOKEN) grants account-wide Management API access:
the MCP server, the CLI and curl run on it. A delivery token
(STORYBLOK_DELIVERY_API_TOKEN) is space-scoped, read-only content access, and
the only one that may reach frontend code or a .env. A personal access token
never goes there.
The MCP server and the CLI reach the same Management API; what differs is the shape of the work.
pull writes local JSON, you edit it, push sends
it back. That round trip is overhead for one item and leverage for fifty, and
it leaves an artifact that can be reviewed, diffed and committed.So, as a default:
| Task | Tool |
|---|---|
| Look up or search stories, resolve a slug, read a component schema, explore a space | MCP |
| Create or edit one story, block or component | MCP |
| Upload one asset; read datasource entries | MCP |
| Manage the schema from the repo | CLI schema init/validate/push/rollback |
| Transform existing story content after a breaking schema change | CLI migrations generate/run/rollback |
| Many stories, components, assets or datasources at once; space-to-space transfer | CLI <resource> pull/push, assets transfer |
| Scaffold a new project | CLI create |
| TypeScript types for a space | CLI types generate — but see §4 |
Only two rows are fixed: schema-as-code and migrations have no MCP equivalent. The rest is a starting point — when the shape of the job argues the other way, take the other tool and say why. A single story that should land in the repo as a reviewable file is a fair use of the CLI; a two-item "bulk" change is a fair use of MCP.
curl. Not installed
and cannot do it count the same — the CLI has no stories delete, so a delete
in a session without the MCP server is a curl. Say nothing about the rung you
skipped or the reasoning behind it: the user asked for an outcome, not a
tooling report. A logged-out CLI is waiting, not unavailable — §4 says what to
do.storyblok binary, the CLI does not exist for the
user. Never name it, a storyblok … command, or an install line — not while
working, not in the closing summary, and not as an optional next step ("to
keep this in sync…", "next time you could…"). An offer is a suggestion, and so
is an excuse: do not explain that you worked around a missing CLI, or that the
project has none. Say what you did, not what you could not do. §4 is the sole
exception.The mechanics of that last rung — hosts, auth, the curl shape — are in
references/management-api.md. Read it before the first call.
Close with what you did and where the result landed. No tooling-based next steps.
Load the matching skill before answering, also for advice or a plan that builds nothing yet: it holds the facts the answer depends on.
| Request | Skill |
|---|---|
| Look something up in a space — a read that writes nothing | none — the tool skill alone |
| Model or change blocks, content types, fields, datasources | storyblok-model-content |
| Write the frontend components that render blocks | storyblok-build-frontend |
| Turn a Figma design into blocks and frontend | storyblok-implement-figma |
| Something editors cannot do yet: a custom input, editor panel, space page, third-party integration; any plugin task | storyblok-build-plugin |
| The mechanics of driving the MCP server | storyblok-use-mcp |
| The mechanics of driving the CLI | storyblok-use-cli |
Load the skill for the tool you picked in §2 — storyblok-use-mcp or
storyblok-use-cli — always, including when no task skill applies. Alongside
the task skill, never instead of it. §2 picks the tool; a row here never
overrides it.
Settle §4 before starting a request that changes the schema.
Use the official packages where they fit: references/packages.md.
A schema lives either in the space or in the repo as @storyblok/schema
definitions pushed with the CLI. The fork is about where the source of truth
sits, not which tool may touch it — a space-mode schema can still travel by
components pull/push where that fits.
storyblok and @storyblok/schema as devDependencies with the repo's
package manager, then run storyblok user. No session → ask the user to run
storyblok login themselves and wait; the prompt is interactive and you
cannot complete it. Re-check, then continue. Do not model it in the space
meanwhile: the repo is the source of truth, and the next push overwrites what
you added.Schema<typeof schema>), never from
storyblok types generate.Append .md to any storyblok.com/docs/... URL before fetching it to return
Markdown (e.g., fetch https://www.storyblok.com/docs/concepts/blocks.md instead
of https://www.storyblok.com/docs/concepts/blocks).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub storyblok/agent-plugin --plugin storyblok7 skills in this plugin
/storyblok-build-frontendUse when generating frontend components for Storyblok blocks — writing, registering and validating the framework code that renders a space's content. E.g. "generate components for my blocks", "build an Astro + Storyblok landing page"./storyblok-build-pluginUse when extending Storyblok with plugins to enhance what editors can do — custom field inputs, Visual Editor panels, pages inside a space, integrations with external systems — including choosing, building, or deploying one. E.g. "editors need a map location picker", "build a field plugin", "deploy our plugin"./storyblok-implement-figmaUse when turning a Figma design into frontend components backed by Storyblok blocks. E.g. "figma to storyblok", "build this Figma design"./storyblok-model-contentUse when creating or modifying Storyblok components/blocks, content types, or fields, or modeling a content schema from multi-modal input. E.g. "model content for a blog", "add an image field to the teaser", "set up blocks for this landing page design"./storyblok-use-cliUse when driving Storyblok through the Storyblok CLI — code-driven schema, content migrations, bulk pull/push of stories, components, assets or datasources, or scaffolding a project./storyblok-use-mcpUse when interacting with Storyblok through the MCP server — the tool model, operation names and payload shapes for stories, assets, components, datasources and every other resource. Load it before calling `mcp__storyblok__` tools, alongside the skill that owns the task.