create-anatomy
Generate a visual anatomy annotation in Figma showing numbered markers on a component…
Configure uSpec's Figma template library. Verifies your MCP connection, then extracts template component keys from your Figma library and writes them to uspecs.config.json. Run after `npx uspec-skills init` has set up the platform and config file. Use when the user mentions
$ npx -y skills add redongreen/uSpec --skill firstrun --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/firstrunContext preview
The summary Claude sees to decide when to auto-load this skill.
Configure uSpec's Figma template library. Verifies your MCP connection, then extracts template component keys from your Figma library and writes them to uspecs.config.json. Run after `npx uspec-skills init` has set up the platform and config file. Use when the user mentions
name: firstrun description: Configure uSpec's Figma template library. Verifies your MCP connection, then extracts template component keys from your Figma library and writes them to uspecs.config.json. Run after `npx uspec-skills init` has set up the platform and config file. Use when the user mentions "firstrun", "first run", "setup library", "configure templates", or "link templates".
Configure your Figma template library for uSpec. This skill verifies your MCP connection, navigates your Figma template library, extracts template component keys, detects the font family, and writes everything to `uspecs.config.json`.
`uspecs.config.json` must already exist with `mcpProvider` and `environment` set. These are written by `npx uspec-skills init`. If the config is missing, abort with:
> Run `npx uspec-skills init` first to install uSpec and choose your platform. Then run this skill to configure your Figma template library.
Read `mcpProvider` and `environment` from `uspecs.config.json` and use those values throughout this skill instead of asking the user.
This skill collects inputs interactively — do not require them up front.
Copy this checklist and update as you progress:
Task Progress: - [ ] Step 1: Read MCP provider from uspecs.config.json - [ ] Step 1b: Verify MCP connection - [ ] Step 4: Ask "Uber employee?" — Yes (use internal library) or No (paste link) - [ ] Step 4a (Yes only): Write Uber template keys + fontFamily to config, then jump to Step 9 - [ ] Step 5 (No only): Navigate to the library file / extract fileKey - [ ] Step 6 (No only): Search for template components - [ ] Step 7 (No only): Extract component keys - [ ] Step 7b (No only): Detect font family from template - [ ] Step 8 (No only): Write config to uspecs.config.json - [ ] Step 9: Display success message
Read `mcpProvider` from `uspecs.config.json`. It will be one of `figma-console` or `figma-mcp`. Save this value as `MCP_PROVIDER` for use in later steps.
If `mcpProvider` is missing, abort and tell the user to re-run `npx uspec-skills init`.
Verify the selected MCP is connected before continuing — catching a broken connection early avoids wasting time on setup that will fail later.
**If `MCP_PROVIDER` = `figma-console`:**
If connection fails: > Please open Figma Desktop and run the Desktop Bridge plugin. Then try again.
**If `MCP_PROVIDER` = `figma-mcp`:**
If the MCP itself is not reachable (tool not found, server error): > The native Figma MCP is not responding. Please check your MCP configuration and ensure the Figma MCP server is running.
If the call returns a file-not-found error, that's fine — it means the MCP is connected. Proceed.
Ask the user exactly this:
> **Are you a Uber employee?** > - **Yes** — uSpec will use the built-in Uber template library (no link needed). > - **No** — paste the link to your Figma template library file.
Wait for the user's answer.
When the user answers Yes in Step 4, the agent already has the correct template keys and font family for the Uber-internal library. Write them to `uspecs.config.json`, preserving every existing field (`mcpProvider`, `environment`, `cliVersion`, and any other unknown fields). The merged file should look like:
{
"mcpProvider": "...preserved...",
"environment": "...preserved...",
"cliVersion": "...preserved...",
"fontFamily": "Uber Move",
"templateKeys": {
"screenReader": "6351e6a91a6785702ffa57f7e7ae085fe9f83f57",
"colorAnnotation": "0b939a05e7b403b481d5221b08f33c97dc4acd39",
"anatomyOverview": "a552bd211756add2661ed757a5aeafba24bd59a9",
"apiOverview": "a182560cbe538de07f49f0aed5fadeea7d418e1c",
"propertyOverview": "401fa98128d882dc93c3d5987ed094b1ec66b9f3",
"structureSpec": "9f5f7bdc834004ea47e59bb1502aab66348f1c99",
"motionSpec": "31bc00ff1f47b602cb7129b24b1f3271e7c7b5dd"
}
}Then **jump directly to Step 9** (Success Message). Do not run Steps 5, 6, 7, 7b, or 8 — no MCP calls or library navigation are needed for Uber employees.
**If `MCP_PROVIDER` = `figma-console`:**
**If `MCP_PROVIDER` = `figma-mcp`:**
Required template names (case-insensitive search): 1. "Screen reader" 2. "Color Annotation" 3. "Anatomy" 4. "API" 5. "Property" 6. "Structure" 7. "Motio
Generate design system documentation for your UI components, directly from your AI agent. Describe a component to your agent.
Repo: redongreen/uSpec
Generate a visual anatomy annotation in Figma showing numbered markers on a component…
Generate API overview specifications documenting component properties, values, defaults, and…
Generate color annotation specifications mapping UI elements to design tokens. Use when the…
Generate a canonical JSON contract and a self-contained implementation Markdown specification…
Generate motion specification annotations from After Effects timeline data. Use when the user…
Generate a visual property annotation in Figma showing each configurable property axis with…