/ai-ready-figma:ai-ready-screensfrom ai-ready-figma
Provides rules for structuring Figma screens and user-flow files so AI tools can navigate screens, read flow graphs, and generate correct screen-level code. Covers frame naming, prototype reactions, flow entry points, screen states, and file organization.
Ships in ai-ready-figma. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Platform-neutral rules for structuring a screens / user-flow file so AI tools (Claude, MCP, Copilot, Cursor) can locate screens, read flows as a graph, and generate correct screen-level code.
Cowork: the build/audit writes (e.g.
setReactionsAsync) go throughuse_figma(write-to-canvas), a remote Figma MCP tool — so in Cowork this needs the Figma remote MCP connector enabled; the local Dev Mode desktop server doesn't exposeuse_figma.
ai-ready-design-system makes the parts (tokens, components, layers) legible.
This skill makes the assembled artifact legible: a screens file is only
AI-readable if (a) every screen is findable by name, (b) the flow between screens
exists as machine-readable prototype reactions — not just visual proximity — and
(c) screens are built from library instances, not detached copies. AI tools read
the node tree and the reaction graph; an unwired flow is invisible to them.
project CLAUDE.md > platform binding skill (flutter-m3-conventions, …) > ai-ready-design-system ≈ this skill
This skill is a sibling of ai-ready-design-system, scoped to the screens file
rather than the library. It never restates the library's token/component rules —
it references them. Language- and market-specific carve-outs (e.g. localized CMS
content vs. English node names) are resolved by the project CLAUDE.md.
| Concern | Rule | Owner |
|---|---|---|
| Screen frame name | Section — Screen Name [State], English | this skill §1 |
| Flow between screens | wired as NODE prototype reactions | this skill §2 |
| Flow entry | named flow + flow-starting-point | this skill §3 |
| Screen states | one named frame per state, not a hidden variant | this skill §4 |
| Name uniqueness | unique across the file / within section | this skill §5 |
| File organization | grouped by flow into pages/sections | this skill §6 |
| Loose layers vs instances | name loose layers, no groups, never rename instances | this skill §7 |
| Tokens, instance assembly, annotations | instances, token-bound, annotations outside bounds | this skill §8 |
Pattern: Section — Screen Name [State].
Notifications — List [Default], never
Obavijesti — Lista. Rendered copy carries the locale; node names carry
navigation. Non-English names and inconsistent casing break MCP lookups.[Default], [Filled],
[Error — short reason], [Empty], [Loading], [Success].Login — Email & Password [Error — Invalid Credentials],
Card Linking — Manual Entry [Error — Details Don't Match].Project-specific state vocabulary and any locale carve-out live in the project CLAUDE.md. This skill fixes the shape (section-prefixed, English, bracketed state), not the project's section names.
A flow is only machine-readable if it exists as prototype reactions (trigger → destination). Visual arrows drawn as lines, or frames merely placed left-to-right, tell an AI nothing.
type === 'NODE',
destinationId resolving to an existing frame. No dangling or self-referencing
destinations.via edge) needs a real, role-based name
(cta-continue, link-forgot-password), never Frame 12. When that node is a
library Button/Card instance, do NOT rename the instance (§7) — wrap it (or
the tappable row) in an auto-layout frame you own, name that cta-pay, and put
the reaction there. The edge label is only as good as that name.[Loading] screen
resolving to [Default] or [Empty] — still has to be a reaction (AFTER_TIMEOUT
or the relevant trigger), or the result frames read as orphans. Model both
Loading → Results and Loading → Empty.Handles both the modern reaction.actions[] array and the legacy single
reaction.action.
// Build { frameId: name } first so destinations resolve to readable names.
const frameMap = {};
for (const node of figma.currentPage.children) frameMap[node.id] = node.name;
const edges = [];
function walk(node, fromName, fromId) {
const reactions = node.reactions || [];
for (const r of reactions) {
const actions = r.actions || (r.action ? [r.action] : []);
for (const a of actions) {
if (a.type === 'NODE' && a.destinationId) {
edges.push({
from: fromName, fromId,
via: node.name, // trigger layer — name it well (§2)
trigger: r.trigger && r.trigger.type, // ON_CLICK, ON_DRAG, …
to: frameMap[a.destinationId] || '(off-page / unknown)',
toId: a.destinationId,
});
}
}
}
if ('children' in node) node.children.forEach(c => walk(c, fromName, fromId));
}
for (const f of figma.currentPage.children) {
if (f.type === 'FRAME' || f.type === 'SECTION') walk(f, f.name, f.id);
}
return { total: edges.length, edges };
// Tap on a named trigger layer navigates to a destination frame.
const trigger = screenFrame.findOne(n => n.name === 'cta-continue');
await trigger.setReactionsAsync([{
trigger: { type: 'ON_CLICK' },
actions: [{
type: 'NODE',
destinationId: destinationFrame.id,
navigation: 'NAVIGATE',
transition: { type: 'SMART_ANIMATE', easing: { type: 'EASE_OUT' }, duration: 0.3 },
preserveScrollPosition: false,
}],
}]);
setReactionsAsyncis the current API; thenode.reactions =setter is deprecated. Loadfigma:figma-usebefore anyuse_figmawrite call.
Registration, Card Linking). This gives the reaction
graph labeled entry nodes instead of orphan frames an AI must guess at.Default, the success path, and the
error/empty/loading states that change it) — not every permutation (value-over-completeness).findOne(name)
and MCP resolve to the first match, so duplicates make targeting non-deterministic.
Mostly a lint — the real risk is latent duplicates across a large file, not the
obvious collisions (which get caught reflexively). Verify in audit; don't belabor.Registration,
Store Locator); keep one flow's frames contiguous, don't interleave. An agent
should locate "the registration flow" by section name without scanning frames.A screen is library instances plus the loose layers you add around them. The rules differ by which one you're looking at:
Rectangle 12, Frame 8,
or Group 3 dropped on the canvas is invisible to AI and scripts — give it a
role-based name (hero-image, promo-banner) before handoff. (Same principle
as ai-ready-design-system §4, applied to the canvas rather than a component.)Button/Card instance, the fix is NOT to rename the instance — wrap it (or the
tappable row) in an auto-layout frame you own, name that frame cta-pay, and
attach the reaction to the frame. The instance stays pristine; the edge still
gets a clean label.The split matters: at the library level you name everything you build; at the screens level you name what you add and keep your hands off what you placed.
These also hold when using this skill on its own; ai-ready-design-system
covers them in more depth if it's installed.
Findability — every screen frame follows §1 naming; English node names; unique within section.
Flow graph — run the §2 extraction: every intended transition appears as an
edge; no (off-page / unknown) destinations that should be on-page; every via
node has a real name; every flow has a named start point; no orphan frames (§3).
States — each depended-on state is its own frame (§4), reachable by name.
Assembly — screens are instances, token-bound, auto-laid-out; annotations outside bounds (§8).
The real test: ask an AI tool, using only what it reads from the file, to describe the registration flow step by step. If it can't trace screen → screen, the reactions aren't wired (§2). If it names screens wrong, naming is off (§1). If it misses a state, that state isn't its own frame (§4).
| AI output | Means |
|---|---|
| "Frames appear unconnected" / can't trace the flow | Reactions not wired — §2 |
| Refers to a screen by the wrong / a non-unique name | Naming or uniqueness — §1, §5 |
| Misses an error/empty/loading screen | State not a separate frame — §4 |
| Emits hardcoded colors for a screen | Detached instance / unbound fill — §8 |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub infinum/ai --plugin ai-ready-figma2 skills in this plugin