code

code is a skill for Claude Code from byjunyoung/claude-product-skills. It costs 103 tokens per session (2,343 once invoked), scanned A, original, MIT.

A guide for turning Figma designs into changes in an existing frontend codebase. Figma is a design tool used to describe screens, components, and their states.

In plain words
What is it for?
Use it to implement changed designs, add screens or state variants, and update frontend code from Figma specifications.
Why use it?
It helps match the design to the repository's existing names, visual settings, and state-handling patterns while limiting unnecessary edits.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; mentions AGENTS.md.

Part of the fig plugin — 14 skills, 1 hook shipped together

Good fit Use it to implement changed designs, add screens or state variants, and update frontend code from Figma specifications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/byjunyoung/claude-product-skills/code
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 byjunyoung/claude-product-skills --skill code
Clone the repo
git clone --depth 1 https://github.com/byjunyoung/claude-product-skills

Made for: Claude Code.

Or install fig, the plugin that ships this one along with the rest of its 14 skills, 1 hook.

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 code

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/byjunyoung/claude-product-skills/code"><img src="https://agentmods.dev/badge/skills/byjunyoung/claude-product-skills/code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,343 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.00103 $0.02343
Opus 5.5 $0.00041 $0.00937
Sonnet 5.5 $0.00021 $0.00469
Haiku 4.5 $0.00010 $0.00234

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

Security

Grade A, and why

code 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 1mo 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.

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.

plugins/fig/skills/code/SKILL.md · 142 lines

How it starts

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

fig:code — Figma design → frontend repo code

Moves what is drawn in the design into the code of a running app. The target is a frontend repo with a build system, and the deliverable is a branch and a PR in that repo.

The premise — the design and the repo are each canonical for different things.

Canonical in the design Canonical in the repo
Numbers, colours, spacing, copy, placement, state variants File structure, naming conventions, state management, token reference paths

Cross that line and something breaks. Tearing up the repo's conventions to match the design, and rounding the design's numbers off because the code prefers it, are the same failure. When the call is unclear, do not apply it — ask.

When to invoke

  • "apply the design change to the code", "make it match Figma", "implement this screen"
  • Building a screen or a state variant that exists in the design and not in the code
  • An explicit "/fig:code"

When NOT to invoke

  • A build-less single-HTML behavioural prototype → /fig:proto
  • Just listing frames or reading structure → /fig:read
  • Auditing the design's own structure, flow, and naming → /fig:lint
  • Looking at what changed between two versions of a design → Dev Mode's Compare changes in Figma — it needs a Dev Mode seat, and compares a frame with its own version history, not two separate frames
  • Applying into the canonical Figma page rather than into code → /fig:sync
  • The reverse direction, a screen up into Figma → /fig:draw, which places it against this file's own canonical page and patterns before handing the assembly to figma:figma-generate-design

Inputs

  • figma_url (required): figma.com/design/:fileKey/...?node-id=... — the target frame. Ask if it is missing.
  • repo (required): the target repo path. Defaults to the current working directory; ask explicitly if it is elsewhere.
  • Mode (settled in step 1): apply changes or implement new. If both are in play at once, split them and go in order.

Read the full file on GitHub · 142 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. 1mo ago Changed · -30 tokens per session 689a46aae1ae
  2. 2mo ago Changed 7b8a27a13a11
  3. 3mo ago First seen · 142 lines · 133 tokens per session scan A a55438373782

Subscribe to this mod's changes

code is a skill published in the GitHub repository byjunyoung/claude-product-skills (5 stars, last pushed today), licensed MIT. It adds 103 tokens to every session and 2,343 once invoked, about $0.0004 per session on Opus 5.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

code compared with skills from other repositories

code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codebyjunyoung/claude-product-skillsSkill5todayMITA103Claude Code
accessibility-per-componentmurphytrueman/design-system-opsSkill2292mo agoMITA68Claude Code
figma-variable-auditmurphytrueman/design-system-opsSkill2292mo agoMITA63Claude Code
metadata-schema-generatormurphytrueman/design-system-opsSkill2292mo agoMITA62Claude Code
theme-auditmurphytrueman/design-system-opsSkill2292mo agoMITA57Claude Code
token-auditmurphytrueman/design-system-opsSkill2292mo agoMITA72Claude Code
token-compliancemurphytrueman/design-system-opsSkill2292mo agoMITA62Claude Code