Agent blueprint
Paste this URL to an agent with “Ejecuta” — audit and install MCP, rules, skills, and DESIGN.md on an existing project.
Human usage: copy this page URL and tell the agent:
Ejecuta https://auradesignsystem.com/docs/mcp-agent-blueprint(Local docs: http://localhost:4000/docs/mcp-agent-blueprint.)
This page is an agent runbook, not the CLI command aura blueprint. The runbook may invoke that command when the project is missing its wiki, image-generation command, preflight, or Sonar scaffolding.
Agent: follow this runbook
If the user pasted this URL with Ejecuta, Run, Execute, or Aplica, you are the agent. Do not only explain. Audit the workspace, install what is missing, and report.
Default target: consumer project (an app using Aura). Only use the Aura monorepo registry path if the repo clearly is aura-design-system (has packages/registry/registry/default/components/).
0. Preconditions
- Work in the project root that has (or will have)
package.json/ the Next app. - Prefer non-interactive installs:
pnpm dlx …. - Do not invent secrets. Do not force-push.
- If
components.jsonis missing and the app is not Next-like, say what blocked you and stop after the audit.
1. Audit (read before write)
Check and record present / missing for each:
| Item | How to detect |
|---|---|
Aura components.json | File exists; registries["@aura"] points at Aura registry JSON |
DESIGN.md (root) | File at project root (or install via @aura/rule-design-md / @aura/design-md) |
| Cursor rules | .cursor/rules/*.mdc (foundations, principles, design-md, etc.) |
| Cursor skills | .cursor/skills/port-component-to-aura/SKILL.md and .cursor/skills/generate-brand-images/SKILL.md |
| Image identity | wiki/obsidian-*/01-Identity/Image-Identity.md; status: ready only when style, palette, composition/motifs, and exclusions are concrete |
| Gemini image env | .env.example names GOOGLE_API_KEY; only check whether .env has GOOGLE_API_KEY or GEMINI_API_KEY, never print its value |
| shadcn MCP | .cursor/mcp.json (or user MCP) with shadcn → npx shadcn@latest mcp |
| Package manager | Prefer pnpm; fall back to npm/yarn if that is what the repo uses |
Also note: Tailwind/Aura CSS already applied? (globals.css with accent/gray scales, or prior aura setup / init).
2. Install / fix gaps
Apply only what is missing. Prefer the smallest fix.
A. Full Aura apply (no Aura yet, or heavily incomplete)
pnpm dlx @aura-design/cli@latest setup(setup updates components.json, globals.css, adds registry packages, rules, skills, and runs CLI blueprint scaffolding. Use from the app root.)
If the user only wants AI context (not full theme rewrite), skip setup and use the targeted adds below.
B. Targeted AI context (typical “old project already on Aura”)
pnpm dlx shadcn@latest add @aura/rules @aura/skills @aura/rule-design-md@aura/rules→.cursor/rules/@aura/skills→.cursor/skills/(includesport-component-to-auraandgenerate-brand-images)@aura/rule-design-md→ rule + rootDESIGN.md
If the blueprint wiki, Image-Identity.md, or pnpm ai:image is missing, scaffold those project capabilities without rewriting the Aura theme:
pnpm dlx @aura-design/cli@latest blueprint .Ensure components.json has:
"registries": {
"@aura": "https://auradesignsystem.com/r/{name}.json"
}(Optional local registry while developing Aura itself: "@aura-dev": "http://localhost:4000/r/{name}.json".)
C. MCP config (create if missing)
Write project .cursor/mcp.json if absent:
{
"mcpServers": {
"shadcn": {
"command": "npx",
"args": ["shadcn@latest", "mcp"]
}
}
}Then tell the user (you cannot finish this in the terminal):
- Restart Cursor or reload MCP.
- Settings → MCP → enable shadcn (green dot).
3. Verify
Confirm after installs:
-
.cursor/rules/has Aura foundation rules -
.cursor/skills/port-component-to-aura/SKILL.mdexists -
.cursor/skills/generate-brand-images/SKILL.mdand its generator script exist -
wiki/obsidian-*/01-Identity/Image-Identity.mdexists -
package.jsonhasai:image;.env.examplenamesGOOGLE_API_KEY - Root
DESIGN.mdexists (or user declined design-md) -
components.jsonincludes@aura -
.cursor/mcp.jsonhas shadcn MCP (user must enable in UI)
Optional smoke: pnpm dlx shadcn@latest add @aura/button only if the user asked to install a component; do not add random UI.
4. How to work after setup
- Consumer app: follow the skill
port-component-to-aurain project mode — write into@/componentsaliases; do not create Ladle/registry metadata. - Aura monorepo: skill registry mode — component + Ladle
Defaultstory +metadata/{kebab}.yml+registry:generate/registry:build. - Landing with images: follow
generate-brand-images. Read the blueprint01-Identitynotes first. If image identity is undefined, ask focused identity questions and updateImage-Identity.mdbefore generating. - Gemini access: the bundled command reads
GOOGLE_API_KEYorGEMINI_API_KEYdirectly from root.env. If absent, ask whether the user wants to add a key, use agent-native image generation when available, or continue with placeholders; never fabricate a key. - Batch landing flow: inspect the landing, create one manifest for the necessary image set, run
pnpm ai:image -- --manifest <path>, integrate accepted local assets, then record their paths in the wiki. - Mobile form UX (critical):
input/textarea/selectfont-size MUST be ≥ 17px. Never puttext-smortext-xson editable fields—iOS Safari zooms on focus below that size. Keephtml { font-size: 17px; }and the global floor instyles/main.css(font-size: max(1rem, 17px)). See Typography rules andDESIGN.md. - Concepts: MCP overview · Rules · Installation
5. Final reply to the user (required format)
## Agent blueprint — result
**Project:** <path or package name>
**Scenario:** consumer | aura-monorepo
| Check | Before | Action | After |
| --- | --- | --- | --- |
| components.json @aura | … | … | … |
| DESIGN.md | … | … | … |
| .cursor/rules | … | … | … |
| .cursor/skills | … | … | … |
| Blueprint image identity | … | … | … |
| Gemini image command | … | … | … |
| .cursor/mcp.json | … | … | … |
**Manual step for you:** enable shadcn MCP in Cursor Settings (if not already green).
**Next:** paste a component URL to port it, or describe a landing page; the agent can plan and generate its identity-aligned image set.Stop when the table is accurate. Do not claim MCP is connected if the user still needs to flip the Settings toggle.
Related
- MCP — what MCP/skills/rules are
- Rules — install
@aura/rules - Installation —
auraCLI init - CLI
aura blueprint— separate; wiki/preflight/Sonar only