canicode CLAUDE.md

canicode CLAUDE.md is an instructions file for Claude Code from let-sunny/canicode. It costs 2,390 tokens per session, scanned A, original, MIT.

Project instructions for CanICode, a command-line tool that checks whether a Figma design contains enough information for developers or AI to implement it accurately.

In plain words
What is it for?
Use it to analyse Figma designs, survey users about missing details, and write those answers back into Figma before using the separate implementation tool.
Why use it?
It finds missing design details and collects answers before code generation, reducing misunderstandings during implementation.

Instructions file for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: mentions subagents; mentions Claude 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.

agentmods
npx agentmods add instructions/let-sunny/canicode/claude-md
Clone the repo
git clone --depth 1 https://github.com/let-sunny/canicode

Made for: Claude Code.

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 CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/let-sunny/canicode/claude-md.svg)](https://agentmods.dev/instructions/let-sunny/canicode/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/let-sunny/canicode/claude-md"><img src="https://agentmods.dev/badge/instructions/let-sunny/canicode/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,390 This file is loaded in full into every session.
When invoked 2,390 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.02390 $0.02390
Opus 5 $0.01195 $0.01195
Sonnet 5 $0.00478 $0.00478
Haiku 4.5 $0.00239 $0.00239

Measured 5d ago against content hash d630610d2ab1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

canicode CLAUDE.md 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 5d 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.

CLAUDE.md · 202 lines

How it starts

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

CanICode

A CLI tool that analyzes Figma design structures to provide development-friendliness and AI-friendliness scores and reports.

Core Goal

Make the Figma file information-complete so figma-implement-design produces accurate code with fewer gotchas.

canicode's role is upstream of code generation: diagnose where design information is missing (analyze), elicit the missing answers from the user (gotcha-survey), and write those answers back into the Figma design (canicode-roundtrip). Once the design re-analyzes clean, the downstream code-generation step runs in Figma's official figma-implement-design skill — canicode does not own that step (see ADR-013 for the scope boundary).

The design-tree format used internally by analysis is a curated, CSS-ready representation; ablation experiments use it as a controlled measurement input. The framing information curation > information abundance still drives rule design — fewer information gaps in the source design means cleaner downstream code.

See Experiment Wiki for detailed data and methodology.

Target Environment

The primary target is teams with designers where developers (+AI) implement large Figma pages:

  • Page scale: 300+ nodes, full screens, not small component sections
  • Component-heavy: Design systems with reusable components, variants, tokens
  • AI context budget: Large pages must fit in AI context windows — componentization reduces token count via deduplication
  • Not the target: Individual developers generating simple UI with AI — they don't need Figma analysis

This means:

  • Component-related rule scores (missing-component, etc.) should NOT be lowered based on small fixture calibration
  • Token consumption is a first-class metric — designs that waste tokens on repeated structures are penalized
  • Calibration fixtures must be large-scale (270+ nodes) — experiments showed small fixtures (50-100 nodes) produce misleading results
  • no-auto-layout is the single highest-impact rule (score -10) — empirically validated via ablation experiments

Read the full file on GitHub · 202 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. 5d ago First seen · 202 lines · 2,390 tokens per session scan A d630610d2ab1

Subscribe to this mod's changes

canicode CLAUDE.md is an instructions file published in the GitHub repository let-sunny/canicode (10 stars, last pushed 2mo ago), licensed MIT. It adds 2,390 tokens to every session, about $0.0120 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.