generating-code-connect

generating-code-connect is a skill for Claude Code, Codex from bitovi/superconnect. It costs 67 tokens per session (2,326 once invoked), scanned A, original, MIT.

A workflow for connecting Figma designs to React or Angular components through Code Connect files. Figma is a collaborative design tool, while React and Angular are tools for building web interfaces.

In plain words
What is it for?
Use it to create or validate Code Connect files, configure the Figma project, map selected components, and optionally publish the mappings.
Why use it?
It helps map design components to their code equivalents and checks the mappings before they are published. This reduces ambiguity between the design file and the component repository.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or validate Code Connect files, configure the Figma project, map selected components, and optionally publish the mappings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bitovi/superconnect/generating-code-connect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bitovi/superconnect --skill generating-code-connect
Clone the repo
git clone --depth 1 https://github.com/bitovi/superconnect

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generating-code-connect

README.md
[![agentmods](https://agentmods.dev/badge/skills/bitovi/superconnect/generating-code-connect/github.svg)](https://agentmods.dev/skills/bitovi/superconnect/generating-code-connect)
Your own site
<a href="https://agentmods.dev/skills/bitovi/superconnect/generating-code-connect"><img src="https://agentmods.dev/badge/skills/bitovi/superconnect/generating-code-connect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generating-code-connect

Your own site · 80×15
<a href="https://agentmods.dev/skills/bitovi/superconnect/generating-code-connect"><img src="https://agentmods.dev/badge/skills/bitovi/superconnect/generating-code-connect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,326 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.02326
Opus 5.5 $0.00027 $0.00930
Sonnet 5.5 $0.00013 $0.00465
Haiku 4.5 $0.00007 $0.00233

Measured 3mo ago against content hash ca21101529a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generating-code-connect scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/check_figma_cli.sh, scripts/colors.js, scripts/figma-scan.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `curl -s -o /dev/null -w "%{http_code}\n" -H "X-Figma-Token: $FIGMA_ACCESS_TOKEN" https://api.figma.com/v1/files/<fileKey>`
skill/generating-code-connect/SKILL.md · 238 lines

How it starts

The opening of the file, as written. The whole thing — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generating Code Connect

Scope

Create Code Connect files, write figma.config.json, validate mappings, and optionally publish

Command line first

  • Prefer rg, jq, and ast-grep over manual inspection
  • Use CLI tools or tiny scripts to validate and inspect outputs before editing by hand
  • When extracting or transforming JSON, use jq instead of ad-hoc parsing

Inputs to collect

  • Repo path, default current working directory
  • Figma file URL
  • Framework, auto-detect or ask React vs Angular
  • Component scope, comma-separated list or Enter for all
  • Output directory, default codeConnect
  • Permission to install @figma/code-connect locally if missing

Default behaviors

  • Generate all components when the user hits Enter on scope
  • Prefer local @figma/code-connect over global installs
  • Do not overwrite existing Code Connect files unless the user agrees

Workflow

  1. Pre-flight checks
  • Parse the file key from the Figma URL
  • Validate the token against the target file without printing it:
    • curl -s -o /dev/null -w "%{http_code}\n" -H "X-Figma-Token: $FIGMA_ACCESS_TOKEN" https://api.figma.com/v1/files/<fileKey>
  • Check for @figma/code-connect with scripts/check_figma_cli.sh
  • If the token check returns 403 but the user says it is valid:
    • Locate the token source without printing it: rg -l -g '.env*' -g 'superconnect.toml' "FIGMA_ACCESS_TOKEN|figma_access_token"
    • Ask the user to set the token in the current shell and re-run the check
    • Confirm the token is non-empty without printing it: echo ${#FIGMA_ACCESS_TOKEN}
    • Do not echo or paste the token value in any command or response
  1. Detect framework
  • Read package.json and look for react or @angular/core
  • If ambiguous, ask the user to choose
  1. Extract Figma data with figma-scan.js
  • Use the bundled script for reliable extraction:
    node scripts/figma-scan.js <figmaFileUrl> \
      --token $FIGMA_ACCESS_TOKEN \
      --output codeConnect/.figma-evidence \
      --index codeConnect/.figma-evidence/figma-components-index.json
    
  • The script handles all Figma API complexity including:
    • Fetching componentPropertyDefinitions via /v1/files/:key/nodes endpoint
    • Parsing variant properties from component names
    • Extracting text layers for figma.textContent()
    • Extracting slot layers for figma.children()
    • Normalizing property names to camelCase
  • Do NOT use raw curl + jq for extraction - the API has edge cases the script handles
  • See references/figma-extraction-spec.md for output format details

Read the full file on GitHub · 238 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 238 lines · 67 tokens per session scan A ca21101529a7

Subscribe to this mod's changes

generating-code-connect is a skill published in the GitHub repository bitovi/superconnect (24 stars, last pushed 10mo ago), licensed MIT. It adds 67 tokens to every session and 2,326 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

generating-code-connect compared with skills from other repositories

generating-code-connect next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generating-code-connectbitovi/superconnectSkill2410mo agoMITA67Claude Code, Codex
chakra-ui-builderchakra-ui/chakra-uiSkill41kyesterdayMITA214Claude Code, Codex
tamagui-v6-configtamagui/tamaguiSkill14ktodayMITA76Claude Code, Codex
tamagui-theme-generatortamagui/tamaguiSkill14ktodayMITA48Claude Code, Codex
cobejsMengTo/SkillsSkill9.1ktodayMITA31Claude Code, Codex
frontend-ui-dark-tsmicrosoft/skillsSkill3.3kyesterdayMITA48Claude Code
stitch::react-componentsgoogle-labs-code/stitch-skillsSkill16kyesterdayApache-2.0A43Claude Code