canicode: Skill for Claude Code

.claude/skills/canicode-roundtrip/SKILL.md

canicode-roundtrip is a skill for Claude Code from let-sunny/canicode. It costs 268 tokens per session (14,671 once invoked), scanned A, original, MIT.

A workflow that connects a Figma design—the visual layout and specifications for an interface—to implementation by checking design issues and recording answers in the Figma file.

In plain words
What is it for?
Use it to analyze a Figma design, write annotations through the Figma API, recheck the result, hand it to an implementation skill, and optionally connect design elements to code components.
Why use it?
It helps developers resolve design questions before coding and confirms that the answers were captured for handoff.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

This is let-sunny/canicode's own configuration. It tells Claude Code how to work on canicode itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything canicode configures →

Part of the canicode plugin — 3 skills, 3 commands, 3 hooks, 2 MCP servers shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to let-sunny/canicode. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/let-sunny/canicode/main/.claude/skills/canicode-roundtrip/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/let-sunny/canicode

Made for: Claude Code.

Or install canicode, the plugin that ships this one along with the rest of its 3 skills, 3 commands, 3 hooks, 2 MCP servers.

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 canicode-roundtrip

README.md
[![agentmods](https://agentmods.dev/badge/skills/let-sunny/canicode/canicode-roundtrip/github.svg)](https://agentmods.dev/skills/let-sunny/canicode/canicode-roundtrip)
Your own site
<a href="https://agentmods.dev/skills/let-sunny/canicode/canicode-roundtrip"><img src="https://agentmods.dev/badge/skills/let-sunny/canicode/canicode-roundtrip/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 canicode-roundtrip

Your own site · 80×15
<a href="https://agentmods.dev/skills/let-sunny/canicode/canicode-roundtrip"><img src="https://agentmods.dev/badge/skills/let-sunny/canicode/canicode-roundtrip.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 268 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 14,671 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00268 $0.14671
Opus 5 $0.00134 $0.07336
Sonnet 5 $0.00054 $0.02934
Haiku 4.5 $0.00027 $0.01467

Measured 9d ago against content hash 39e72cd6e9ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

canicode-roundtrip scanned grade A with 0 findings 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 9d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (canicode-roundtrip-helpers.d.ts, helpers-bootstrap.js, helpers-installer.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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/canicode-roundtrip/SKILL.md · 712 lines

How it starts

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

CanICode Roundtrip — True Design-to-Code Roundtrip

Channel contrast: canicode-gotchas stores answers in local .claude/skills/canicode-gotchas/SKILL.md only (memo — no Figma write). canicode-roundtrip (this skill) writes to the Figma canvas via Plugin API (use_figma). If you only need Q&A persistence, use gotchas; if you need annotations and fixes on the file, use roundtrip.

Output language (#546): Detect the user's conversation language from their messages in this session. When the user is conversing in a non-English language (e.g. Korean, Japanese, Spanish), every human-readable line you render — Step 1 design summary, Step 2 grade banner, Step 3 question / Hint: / Example: / batch shared-prompt wording, Step 4 apply summary, Step 5 wrap-up rubric, Step 6 handoff line, Step 7 prompts and wrap-up — must be rendered in that language. Identifiers stay English: ruleId, nodeId, severity label in brackets, marker glyphs (📝/✅/🌐/⏭️), the upsert-section markdown scaffolding. The full localization scope and exclusions are in Step 3's preamble below. Default to English only when the user's language is genuinely ambiguous (and ask once).

Orchestrate the full design-to-code roundtrip: analyze a Figma design for readiness, collect gotcha answers for problem areas, apply fixes directly to the Figma design via use_figma, re-analyze to verify gotchas were captured, then generate code. Success means gotchas answered and carried into annotations / writes — not a numeric grade bump (analyze still reports grade for continuity; roundtrip success is lint-first).

Prerequisites

  • Figma MCP server installed (provides get_design_context, get_screenshot, use_figma, and other Figma tools) — REQUIRED, there is no CLI fallback for use_figma. Register it with your host (e.g. Claude Code: claude mcp add -s project -t http figma https://mcp.figma.com/mcp; Cursor: add the Figma MCP entry per host docs / project .mcp.json).
  • canicode MCP (preferred): Claude Code: claude mcp add canicode -- npx --yes --package=canicode canicode-mcp — long-form flags only; short -y -p collides with claude mcp add's parser (#366); do not pass -e FIGMA_TOKEN=… here (#364). Cursor / other hosts: add canicode-mcp to MCP config — see Customization guide. The server reads FIGMA_TOKEN from ~/.canicode/config.json or the environment.
  • Without canicode MCP (fallback): Steps 1 (analyze) and 3 (gotcha-survey) shell out to npx canicode <command> --json — same JSON shape as the MCP tools. Step 4 (apply to Figma) still requires Figma MCP use_figma.
  • FIGMA_TOKEN configured for live Figma URLs
  • Figma Full seat + file edit permission (required for use_figma to modify the design)

Read the full file on GitHub · 712 lines

Files

What ships with it

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

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. 9d ago First seen · 712 lines · 268 tokens per session scan A 39e72cd6e9ad

Subscribe to this mod's changes

canicode-roundtrip is a skill published in the GitHub repository let-sunny/canicode (10 stars, last pushed 2mo ago), licensed MIT. It adds 268 tokens to every session and 14,671 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

figma-codegen

Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from scratch. Triggers whenever the user wants a…

awdr74100/figwright · 145 tokens

refero-design

Primary/default skill for UI design, product design, web design, landing pages, dashboards, product screens, redesigns, visual polish, frontend/CSS styling, design systems, components, responsive design, typography, color, spacing, motion, icons, accessibility, copywriting, conversion, and anti-AI-slop work. Use this…

referodesign/refero_skill · 191 tokens

design-token-pipeline

Figma variable'larını iOS (Swift Color/Font/Spacing), Android (colors.xml, dimens.xml, Compose Theme), ve Web (CSS, Tailwind, Sass, TS) formatlarında otomatik token dosyalarına dönüştürür. Ters yönde kod token dosyalarından Figma variable'ları da oluşturabilir. "export tokens", "token pipeline", "token'ları export…

atezer/FMCP · 149 tokens

implement-design

Figma tasarımlarını iOS (SwiftUI/UIKit), Android (Compose/XML) ve Web (React/Vue/legacy) platformlarına production-ready koda dönüştürür. Figma node ID paylaşıldığında, "implement design", "tasarımı kodla", "build this component", "bu ekranı implement et", "bu tasarımı kodla", "Figma'dan kod üret" ifadeleriyle…

atezer/FMCP · 108 tokens

code-design-mapper

Figma tasarım bileşenlerini iOS, Android ve Web platformlarındaki kod bileşenlerine eşler. Bir Figma component'i birden fazla platform implementasyonuyla eşleşebilir. Enterprise plan gerektirmez, lokal çalışır. "code connect", "connect component", "map component", "bileşen eşle", "component mapping", "hangi kod bu…

atezer/FMCP · 122 tokens

design-system-rules

Bu skill, iOS, Android ve Web platformlarına özel design system kuralları oluşturur. Her platformun kendi framework'ü, naming convention'ı ve dosya yapısı olduğu için, kurallar platform-spesifik olarak üretilir.

atezer/FMCP · 96 tokens