Agent skill Frontend
Cc Figma Tokens
Connect design references and design tools to frontend implementation.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add nvillapiano/component-contracts-figma --skill cc-figma-tokens --agent claude-code --yesCheck this file in your project.claude/skills/cc-figma-tokens/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add nvillapiano/component-contracts-figma --skill cc-figma-tokensSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Local .component-contracts settings, primitive and semantic contract token files, the approved editable Figma file and the figma-use and figma-generate-library companions.
View operation manualWhat this skill helps with
- Connect design references and design tools to frontend implementation.
Good for
- Design handoff
- Task
- Prepare the two native variable collections for component contracts
- Requirements
- Local .component-contracts settings, primitive and semantic contract token files, the approved editable Figma file and the figma-use and figma-generate-library companions.
- Deliverable
- Verified Primitives and Semantic collections with a Value mode, real aliases, scopes and web code syntax.
- Skill name
cc-figma-tokens- Repository
nvillapiano/component-contracts-figma
Make the design workflow verifiable
An underspecified brief
Copy color values into both Figma collections.
Values belong in Primitives. Semantic roles use native aliases, including ordered chains when the source defines them.
A result you can check
- Determine counts, alias dependencies and whether the collections already exist.
- Primitives come first, then Semantic variables with resolved targets.
- Verify collections, modes and links separately from visual evidence.
CC Figma Tokens operation manual
Verified Primitives and Semantic collections with a Value mode, real aliases, scopes and web code syntax.
Local .component-contracts settings, primitive and semantic contract token files, the approved editable Figma file and the figma-use and figma-generate-library companions.
Inspect the complete source and destination
Determine counts, alias dependencies and whether the collections already exist.
Prompt · Step 1Use Component Contracts’s installed cc-figma-tokens Skill and read its SKILL.md first. Read the configured token directory from .component-contracts and [approved editable Figma target]. Keep access credentials out of the response. With the two companion Skills loaded, compare all local primitive and semantic token definitions to the existing Figma variables in a read-only pass. Report counts, broken references and collisions, and present the exact write and any explicit mode assignment scope for approval.Apply approved collections in dependency order
Primitives come first, then Semantic variables with resolved targets.
Prompt · Step 2Use Component Contracts’s installed cc-figma-tokens Skill and read its SKILL.md first. Run [approved token plan] in the authorized file. Create or update Primitives first and Semantic second. Keep the Value mode, preserve existing IDs where updating, use native aliases in source dependency order, set suitable scopes and the documented WEB var(--ds-…) names. Apply explicit mode assignments only in the approved scope.Read actual variable values and alias IDs
Verify collections, modes and links separately from visual evidence.
- Primitives and Semantic each have the expected Value mode, scopes and syntax.
- At least one alias chain resolves to the expected native variable ID and raw value.
Prompt · Step 3Use Component Contracts’s installed cc-figma-tokens Skill and read its SKILL.md first. Read back [updated collections] through the Figma variables API. Compare counts, actual mode values, scope lists and WEB syntax. Resolve one chained alias back to its primitive and check a representative token on an authorized test frame if available. Report any missing variables or unverified canvas behavior.
Look up this workflow decision
Read the relevant section in the installed Skill.
A semantic token references another semantic tokenSKILL.md
- Command or reference
Figma Variable Architecture- Examples
- Resolve the target first, then keep the declared chain as native aliases.
Troubleshooting
Does a screenshot prove token parity?
Use variables API readback for actual values, scopes, code syntax and target IDs. A screenshot can confirm representative rendered use.