Skip to main content
This page covers everything you need to go from zero to your first generated spec.

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:
  1. AI agent host: the coding environment that runs uSpec skills (Cursor, Claude Code, or Codex)
  2. Figma Console MCP: the bridge that connects your agent to Figma files
  3. 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 is an AI code editor. All uSpec skills run inside Cursor’s chat.
1

Download Cursor

Go to cursor.com and download the app for your platform.
2

Clone the uSpec repository

Clone the repository to your local machine.
git clone https://github.com/redongreen/uSpec.git
3

Open the project in Cursor

Open the uSpec folder in Cursor. The agent skills in .cursor/skills/ load automatically.
4

Select the right model

uSpec skills are token-intensive and require a model with high context capacity. In Cursor’s chat, select Claude 4.6 Opus (Thinking) or higher as your model.
Lower-capacity models may truncate instructions mid-skill, producing incomplete or broken specs. Claude 4.6 Opus (Thinking) is the minimum recommended model.
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

1

Go to the Figma API settings

2

Create a token

Click “Get personal access token”, enter a description like Figma Console MCP, and copy the token. It starts with figd_.
Copy the token immediately. You won’t be able to see it again after closing the dialog.

Configure the MCP in your agent

Add the Figma Console MCP to your Cursor MCP configuration:
{
  "mcpServers": {
    "figma-console": {
      "command": "npx",
      "args": ["-y", "figma-console-mcp@latest"],
      "env": {
        "FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE"
      }
    }
  }
}
Add this to your Cursor MCP settings (global or project-level .cursor/mcp.json).
This uses the NPX setup, which gives you all 59+ tools including design creation and variable management. For alternative installation methods, troubleshooting, and the latest configuration options, see the Figma Console MCP documentation.

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.
1

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.
2

Run the plugin

Open the Desktop Bridge plugin in your Figma file. It auto-connects via WebSocket. No special launch flags needed.
3

Verify the connection

In your agent, type: “Check Figma status”The agent should confirm an active connection.
When the connection is active, your agent can read Figma file data, take screenshots, and access variables and styles.

3. Run firstrun

The firstrun 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 running firstrun.
Uber designers can skip this — the internal template library is already configured. When firstrun asks for a library link, type “skip”.
1

Open the Community file

Go to the uSpec Template on Figma Community.
2

Duplicate to your drafts

Click Open in Figma to add a copy to your drafts.
3

Publish as a library

Move the file to your team or organization project, then publish it as a library:
  1. Open the file in Figma
  2. Go to the Assets panel
  3. Click the book icon and select Publish library
  4. Confirm the publish
This makes the templates available for uSpec to import.
If you’re working solo or testing, you can skip publishing and use the file directly. The firstrun skill will still work as long as you have the file open.

Run the firstrun skill

1

Open the Desktop Bridge plugin

In Figma Desktop, open the Desktop Bridge plugin in your template library file.
2

Run firstrun

In Cursor’s chat, type:
@firstrun
3

Answer the prompts

The agent asks two questions:
  1. Which environment? — Select Cursor, Claude Code CLI, or Codex CLI. This deploys all skills to the right directory.
  2. Library link — Paste the link to your Figma template library (Uber designers can type “skip”).
4

Wait for confirmation

The agent extracts component keys from your templates and writes the configuration automatically.
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:
  1. Your agent host is open with the uSpec project and skills are available
  2. The Desktop Bridge plugin is running in Figma and the connection is active
  3. You’ve run firstrun — the template library is configured (uspecs.config.json has your template keys)
Every prompt follows the same format:
Prompt format showing skill name, Figma component link, and additional context
Reference a skill, paste a Figma link, and describe anything the agent can’t infer from the design: states, variants, behavior, or interaction details.

Example prompt

@create-voice https://www.figma.com/design/abc123/Components?node-id=100:200

This is a primary action button with enabled, hover, pressed, and disabled states.
The button has a text label and an optional leading icon.

Available skills

SkillWhat it generates
create-anatomyNumbered markers on a component with an attribute table
create-propertyVariant axis and boolean toggle exhibits with instance previews
create-voiceScreen reader specs for VoiceOver, TalkBack, and ARIA
create-colorColor token annotations for all elements and states
create-apiProperty tables with values, defaults, and examples
create-structureDimensional specs for spacing, padding, and sizing
create-motionAnimation timeline and easing spec from After Effects data

What happens when you run a skill

1

Template import

The agent imports the documentation template into your current Figma page.
2

Content population

Component name, guidelines, properties, and tables are filled in automatically.
3

Section cloning

Sections are cloned for each variant, state, or property in your component.
4

Validation

A screenshot is captured and verified. Issues are fixed automatically.
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

  • 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
  • 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.