Documentation Index
Fetch the complete documentation index at: https://docs.frontic.com/llms.txt
Use this file to discover all available pages before exploring further.
The Context Base is available on the Plus plan. See Billing &
Plans for details.
What’s in it
Skills
Domain expertise. Named experts the agent pulls in when a task
touches their domain —
shopware-headless-commerce, seo-optimizer,
product-variants-and-scopes. Also invokable by name when you want
to force one.Rules
Guardrails. Project-wide expectations agents follow on every
task — “load product images from the CDN”, “every user-facing
string gets a translation key”, “no rounded corners on the brand”.
Rules are always-on.
Commands
On-demand operations. Same shape as a skill, but the agent
never auto-picks one — it runs only when you invoke it by name:
code-review, test-checkout, verify-accessibility.Guides
Reference material. Longer documents you pin so the agent can
pull them in on demand — a styleguide, a migration plan, an
architecture note. Read only when referenced.
Why the Context Base exists
Agents that start from zero every conversation have four problems:- Slow cold start. Every session opens with “let me explore the codebase” — the agent crawls files, reads configs, and pattern-matches its way back to a mental model you already know. Minutes (and tokens) spent before the first useful response.
- Inconsistency. Two agents (or the same agent on two days) make different choices for the same task. Either the codebase drifts, or you burn tokens and time iterating to pull the agent back to the pattern you wanted in the first place.
- Re-explanation cost. Every meaningful prompt spends half its token budget explaining the project’s conventions before it gets to the actual task. That’s expensive and tedious.
- Lost decisions. A week ago you told an agent “every user-facing string gets a translation key, no hardcoding”, and this week it’s proposing
<h1>Add to cart</h1>again because nobody wrote the decision down.
How agents read from it
The Context Base sits outside your project’s runtime data — it isn’t part of what ships through releases to your storefront. Edit a skill or a rule and the change lands immediately; build-side agents pick it up on their next session.You write content in the Context Base
From Studio → Context in the admin app, you write skills,
rules, and commands. Each has its own editor and metadata.



Agents get access to it
Delivery differs by surface:
- In Studio — active skills and rules are surfaced to the chat agent at session start automatically. You don’t run anything; the workspace makes sure the agent has what it needs.
- In your editor — run
frontic context initto sync skills and rules into.claude/or.cursor/. Your local agent reads them from the filesystem on every session. Commit the synced files so teammates pick up the same guardrails.
Agents apply what they read
Every proposal — the block it creates, the image URL it generates,
the SEO tags it writes, the strings it hardcodes-or-doesn’t — is
shaped by what’s in the Context Base. If a rule says “product
images go through the CDN”, the agent uses the CDN. If a skill
called
seo-optimizer is available, the agent brings its
perspective into any page metadata task.One Context Base, every build surface
The same Context Base serves the Studio chat and MCP agents in your editor equally:- A rule you write once applies whether the change is happening in a Studio workspace or in your editor
- A skill like
shopware-headless-commerceorseo-optimizerbrings the same expertise into any task, regardless of which surface is running it
Document scoping: project vs. global
Every Context Base document — skill, rule, command, or guide — lives in one of two scopes:- Project (default) — only available to the project it was created in. Good for project-specific conventions, feature patterns, and local shortcuts.
- Global — promoted to your organization, available to every project on your team. Good for organization-wide standards: a CDN image rule the whole team enforces, a shared accessibility baseline, a hotfix command every storefront uses.
Bootstrapping with /init-context
You don’t have to write everything by hand. In any Studio workspace, run the /init-context command — Studio interviews you about your business, brand, design preferences, and coding conventions, inspects your codebase, and generates a full set of context documents:
- Root context — what you sell, who your customers are, key terminology
- Project prompt — how Studio should behave when working with you
- Rules — codebase patterns, styleguide, coding standards, tone of voice
/init-context --refresh <name> to regenerate a specific document without redoing the full interview.
Improving with /get-better
Where /init-context sets your context up at the start, /get-better refines it over time. Run the command in a Studio workspace — usually at the end of a session — and Studio reviews the conversation for generalizable lessons worth capturing as project rules:
- Corrections — moments where you pushed back on the agent’s output
- Preferences — “always use X”, “never do Y”, “prefer Z”
- Recurring gotchas — patterns the agent guessed wrong or had to be told twice
/init-context once at setup, then run /get-better at the end of sessions where corrections piled up — the Context Base grows the way your team’s taste grows.
Related
Skills
Capture reusable know-how for specific tasks.
Rules
Always-on guardrails build-side agents follow.
Commands
Named shortcuts for recurring operations.
Guides
Reference documents the agent reads on demand.