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.
npx agentmods add skills/bitovi/superconnect/generating-code-connectnpx skills add bitovi/superconnect --skill generating-code-connectgit clone --depth 1 https://github.com/bitovi/superconnectWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00067 | $0.02326 |
| Opus 5 | $0.00034 | $0.01163 |
| Sonnet 5 | $0.00013 | $0.00465 |
| Haiku 4.5 | $0.00007 | $0.00233 |
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 2d ago.
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>` 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, andast-grepover manual inspection - Use CLI tools or tiny scripts to validate and inspect outputs before editing by hand
- When extracting or transforming JSON, use
jqinstead 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
- 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
- Locate the token source without printing it:
- Detect framework
- Read package.json and look for react or @angular/core
- If ambiguous, ask the user to choose
- 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
What ships with it
13 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/code-connect-format.md 4.1 KB
- references/figma-code-connect-common-issues.md 977 B
- references/figma-code-connect-config-file.md 1.9 KB
- references/figma-code-connect-html.md 1.1 KB
- references/figma-code-connect-overview.md 826 B
- references/figma-code-connect-react.md 1.4 KB
- references/figma-code-connect-understand-files.md 1.7 KB
- references/figma-extraction-spec.md 5.1 KB
- references/mapping-spec.md 4.8 KB
- scripts/check_figma_cli.sh 522 B runs code
- scripts/colors.js 595 B runs code
- scripts/figma-scan.js 23 KB runs code
- scripts/validate_code_connect.js 15 KB runs code
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.
- 2d ago First seen · 238 lines · 67 tokens per session scan A ca21101529a7
generating-code-connect is a skill published in the GitHub repository bitovi/superconnect (24 stars, last pushed 7mo ago), licensed MIT. It adds 67 tokens to every session and 2,326 once invoked, about $0.0003 per session on Opus 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…