Setup instructions
Install your AI agent, connect Figma, and configure your template library.
Create your first spec
Prompt format, available skills, and tips for better output.
Setup instructions
uSpec connects an AI coding agent to Figma through the Figma Console MCP. You need three things:- AI agent host: the coding environment that runs uSpec skills (Cursor, Claude Code, or Codex)
- Figma Console MCP: the bridge that connects your agent to Figma files
- Template library: the Figma file containing documentation templates
You only need to complete this setup once. After that, you can generate specs anytime by opening the project in your agent host.
1. Set up your agent host
- Cursor
- Claude Code
- Codex
Cursor is an AI code editor. All uSpec skills run inside Cursor’s chat.
Download Cursor
Go to cursor.com and download the app for your platform.
Open the project in Cursor
Open the
uSpec folder in Cursor. The agent skills in .cursor/skills/ load automatically.Verify skills are available by typing
@create-voice in Cursor’s chat. It should autocomplete to the skill file.2. Set up Figma Console MCP
The Figma Console MCP connects your agent to Figma Desktop, giving it access to component data, variables, styles, and screenshots.Get a Figma personal access token
Go to the Figma API settings
Configure the MCP in your agent
- Cursor
- Claude Code
- Codex
Add the Figma Console MCP to your Cursor MCP configuration:Add this to your Cursor MCP settings (global or project-level
.cursor/mcp.json).Connect to Figma Desktop
The Desktop Bridge plugin provides real-time access to your Figma file data. It comes bundled with the Figma Console MCP.Install the Desktop Bridge plugin
The Desktop Bridge plugin is included in the
figma-console-mcp npm package. After running npx figma-console-mcp@latest, find the plugin at node_modules/figma-console-mcp/figma-desktop-bridge/manifest.json. In Figma Desktop, go to Plugins → Development → Import plugin from manifest… and select this file.Run the plugin
Open the Desktop Bridge plugin in your Figma file. It auto-connects via WebSocket. No special launch flags needed.
When the connection is active, your agent can read Figma file data, take screenshots, and access variables and styles.
3. Run firstrun
Thefirstrun skill is your single entry point for setting up uSpec. It asks which platform you’re using, deploys skills to the right directory, and configures your template library.
You only need to run
firstrun once per environment. It handles both skill deployment and template configuration.Get the template file
uSpec renders documentation using Figma component templates. You need to add the templates to your Figma organization before runningfirstrun.
Uber designers can skip this — the internal template library is already configured. When
firstrun asks for a library link, type “skip”.Open the Community file
Go to the uSpec Template on Figma Community.
Run the firstrun skill
Open the Desktop Bridge plugin
In Figma Desktop, open the Desktop Bridge plugin in your template library file.
Answer the prompts
The agent asks two questions:
- Which environment? — Select Cursor, Claude Code CLI, or Codex CLI. This deploys all skills to the right directory.
- Library link — Paste the link to your Figma template library (Uber designers can type “skip”).
When you see “Setup complete! You are now ready to use uSpec”, your environment and template library are configured.
Create your first spec
Before running a skill, confirm all three setup steps are complete:- Your agent host is open with the uSpec project and skills are available
- The Desktop Bridge plugin is running in Figma and the connection is active
- You’ve run
firstrun— the template library is configured (uspecs.config.jsonhas your template keys)

Example prompt
- Cursor
- Claude Code
- Codex
Available skills
| Skill | What it generates |
|---|---|
create-anatomy | Numbered markers on a component with an attribute table |
create-property | Variant axis and boolean toggle exhibits with instance previews |
create-voice | Screen reader specs for VoiceOver, TalkBack, and ARIA |
create-color | Color token annotations for all elements and states |
create-api | Property tables with values, defaults, and examples |
create-structure | Dimensional specs for spacing, padding, and sizing |
create-motion | Animation timeline and easing spec from After Effects data |
What happens when you run a skill
If a documentation frame appears in your Figma file, your setup is working correctly.
Tips for better output
- Be specific about states: Mention all states (selected, disabled, expanded) in your prompt. The agent cannot infer states that aren’t visible in the current Figma frame.
- Describe the parts: For complex components, describe the interactive elements (e.g., “This is a tooltip. The bell icon triggers it, and the bubble appears on hover and focus.”)
Best practices
Do
- Start a new agent session for every prompt. Each skill consumes significant context. A fresh session ensures the model has full capacity and avoids degraded output.
- Confirm the MCP connection before running a skill. Run the Desktop Bridge plugin in Figma and verify the connection in your agent. If the agent can’t reach Figma, the skill will fail.
- Run one agent per Figma file at a time. The MCP supports multiple connections, but all agents share one active page and file context. Finish one skill before starting the next.
Don’t
- Interact with the Figma frame while a skill is running. The agent writes to the frame in multiple steps. Clicking, selecting, or editing mid-generation can break node references and corrupt the output.
- Run multiple agents on the same file simultaneously. They override each other’s page navigation and produce corrupted specs. If you need parallel generation, use separate Figma files.
- Reuse a long chat session for multiple skills. Accumulated history reduces available context and degrades output quality. Start fresh each time.
Setup issues
Skills not loading
Skills not loading
- Cursor
- Claude Code
- Codex
- Confirm the uSpec project folder is open in Cursor (not a parent directory)
- Check that
.cursor/skills/contains the skill folders - Restart Cursor after cloning the repository
Desktop Bridge not connecting
Desktop Bridge not connecting
- Confirm Figma Desktop is running (not the web version)
- Close and reopen the Desktop Bridge plugin in Figma
- Make sure only one instance of Figma Desktop is running
- Check that your Figma access token is configured correctly in your agent’s MCP settings
For issues with skills or Figma connection, see the Troubleshooting guide.