Figma Make Guidelines
Goal
Produce one deterministic output file that Figma Make can execute without repository inspection:
Trigger Terms
Use this skill when requests include one or more of:
- "Figma Make guidelines"
- "one canonical guidelines file"
- "
guidelines/Guidelines.md"
- "tokenized design rules"
- "direct token values"
- "rewrite or fix guideline rules"
Do not use this skill as primary workflow when the user asks for UI implementation, code refactors, or multi-file guideline architecture.
Scope Gate (Run First)
- If the user asks for a single-file guidelines workflow, use this skill.
- If the user explicitly asks for multi-file guideline architecture (
guidelines/components/*, design-tokens/*), do not force single-file output. State that this skill is single-file by design and ask whether to continue in single-file mode.
- If the user asks for non-guideline deliverables (for example: direct component implementation or code refactor), do not use this skill as the primary workflow.
Decision outcomes:
single-file request -> proceed
multi-file request -> ask one confirmation to switch to single-file mode
non-guideline request -> route to a better-matched skill
Hard Constraints
- Create or update exactly one file:
guidelines/Guidelines.md.
- Do not create
guidelines/components/*.md or any additional guideline files.
- Do not instruct Figma Make to read repository files, code paths, or external docs.
- Do not use instructions such as "see
src/...", "read tokens from ...", or "follow project config".
- Put all required values directly in
Guidelines.md:
- color tokens with concrete values
- typography scale (size/line-height/weight)
- spacing scale
- radius/elevation/focus tokens
- interaction states
- component usage rules
- Keep language concise, imperative, and implementation-ready.
Minimal Inputs to Collect
Ask only for missing essentials:
- Product context + target surface (dashboard, marketing site, app shell, mobile web).
- Visual direction (minimal, bold, enterprise, playful, etc.).
- Theme mode (light, dark, both).
- Existing token values (if already defined).
- Component inventory + required states.
- Optional stack constraints for handoff wording (Angular, React, Tailwind, CSS Modules, etc.).
If details are missing, proceed with defaults and list assumptions briefly.
Input discipline:
- Ask at most one compact clarification message that covers all missing essentials.
- If user is non-responsive or asks to proceed immediately, continue with defaults and explicit assumptions.
Default Baseline (When User Values Are Missing)
Use this baseline only when the user did not provide values:
- Palette: neutral-first + one primary accent + one focus color.
- Spacing scale:
4, 8, 12, 16, 20, 24, 32, 40, 48.
- Typography minimum:
- Display
32/40 600
- H2
24/32 600
- H3
20/28 600
- Body
16/24 400
- Caption
12/16 400
- Radius:
Sm 6, Md 10, Lg 14, Pill 999.
- Elevation:
Level 0 none, Level 1 subtle, Level 2 stronger.
- Focus style: visible
2px ring + soft outer glow.
Rules to Always Encode in Guidelines.md
1) Tokens are source of truth
- Define semantic token names and concrete values in the document.
- Include semantic names plus explicit values (hex/rgba and typography numbers).
- Use semantic tokens in component rules.
- Do not introduce off-scale spacing, colors, radii, or shadows.
2) Layout mapping is explicit
- Map Auto Layout to
flex, flex-col, items-*, justify-*, gap-*.
- Keep spacing tokenized.
- Avoid absolute positioning except overlays/decorative layers.
3) Component reuse first
- Reuse existing components before introducing new patterns.
- If missing, use the closest existing pattern and request confirmation before adding a new component.
4) Variants and states are mandatory
- Required states:
default, hover, pressed/active, focus, disabled.
- Preferred prop schema:
variant, size, tone, iconLeft, iconRight, loading, disabled.
- Require visible
focus-visible behavior.
5) Stack wording discipline
- If stack is specified, keep handoff stack-aware.
- If stack is unknown, keep guidance stack-neutral.
- Use one consistent icon family; no ad-hoc icon drawing.
Generation Workflow (Deterministic)
- Confirm scope gate and single-file requirement.
- Collect only missing minimal inputs in one compact clarification step.
- Resolve values using precedence:
- user-provided values (highest)
- existing canonical values already present in user text/context
- default baseline values in this skill (lowest)
- Write assumptions as a short bullet list.
- Produce only
guidelines/Guidelines.md using the required section order.
- Run self-check and fix issues before returning.
- Return only paste-ready file content; do not prepend planning notes.
Output contract:
- Default output is raw Markdown content, directly pasteable into
guidelines/Guidelines.md.
- Use fenced code blocks only when user explicitly asks for fenced output.
- Do not emit JSON wrappers, metadata envelopes, or extra files.
Self-Check (Required)
Fail output if any item is false:
- No contradictions across sections.
- All required values are present directly in the file.
- No references to local paths, folders, or "read from project" instructions.
- Rules are executable without extra repository context.
- Required footer line exists exactly once.
Required footer line:
_Open Code -> guidelines -> Guidelines.md in Figma Make._
Uniqueness checks:
- Footer line appears exactly once.
- Section headers
## 1) through ## 9) each appear exactly once and in order.
Output Structure (Required Order)
Use this exact order in guidelines/Guidelines.md:
- Purpose & scope
- General guidelines
- Implementation rules
- Design tokens (source of truth)
- Layout & spacing
- Component usage
- Accessibility
- Developer handoff
- Extending guidelines
Copy-Ready Template
# Figma Make Guidelines
## 1) Purpose & scope
- Define what this guideline controls (UI structure, tokens, component behavior, handoff).
- State supported themes and platforms.
## 2) General guidelines
- Use Auto Layout and responsive constraints by default.
- Use the defined spacing scale consistently.
- Prefer components + variants over detached duplicates.
- Keep hierarchy clear and accents intentional.
## 3) Implementation rules
- If Angular + Tailwind is used:
- Reuse existing components before writing new markup.
- Prefer utility classes in templates.
- Keep class pass-through on reusable components.
- If another stack is used:
- Mirror these same principles with equivalent conventions.
- Icons:
- Use one consistent icon family only.
- Do not draw ad-hoc icons.
## 4) Design tokens (source of truth)
- Provide explicit token tables directly in this section.
- Include:
- Base colors (neutral + brand)
- Semantic background/text/border/accent/focus tokens
- Typography tokens with size, line-height, and weight
- Spacing scale values
- Radius values
- Elevation/focus effect values
- Example format:
- `Semantic/Bg/Canvas: #0B0F14`
- `Semantic/Text/Primary: #F8FAFC`
- `Type/Body: 16px / 24px / 400`
- `Radius/Md: 10`
## 5) Layout & spacing
- Auto Layout to Tailwind mapping:
- `Horizontal` -> `flex items-center`
- `Vertical` -> `flex flex-col`
- `Gap` -> `gap-*`
- `Align/Justify` -> `items-*` / `justify-*`
- Use spacing scale only.
- Avoid absolute positioning except overlays/decorative layers.
## 6) Component usage
- Reuse existing components first.
- Required states: `default`, `hover`, `pressed`, `focus`, `disabled`.
- Preferred prop schema: `variant`, `size`, `tone`, `iconLeft`, `iconRight`, `loading`, `disabled`.
- For each component, provide direct rules for:
- Purpose
- Variants
- Visual tokens used
- State behavior
- Sizing and spacing
- Minimum components to define when not specified:
- `Button`
- `Input/Text field`
- `Card/Panel`
- `Navigation`
- `Badge/Chip`
- `Modal/Dialog`
- If no matching component exists, use the closest existing one and request approval before adding a new component.
## 7) Accessibility
- Require visible `focus-visible` states.
- Meet WCAG contrast requirements.
- Do not convey meaning with color alone.
- Ensure keyboard operability for interactive elements.
## 8) Developer handoff
- Map each Figma element to:
1. Existing component
2. Styling utilities or classes
3. Semantic tokens used
- Include variant/state mapping in handoff notes.
- Do not reference repository paths as required context.
## 9) Extending guidelines
- Add new rules in this same `Guidelines.md` file.
- Keep rules concise, imperative, and non-duplicative.
- Add component-specific guidance as subsections under `## 6) Component usage`.
_Open Code -> guidelines -> Guidelines.md in Figma Make._
Response Discipline
- Return content that is immediately pasteable.
- Keep output concise; avoid long theory sections.
- Enforce semantic tokens, component reuse, and variant-driven states.
- Prefer direct values over references to external sources.
- Keep
Guidelines.md as the single canonical guidelines file.
- Do not emit additional files, JSON wrappers, or fenced-code-only placeholders unless user explicitly asks for fenced output.
Failure Handling
- If required scope is ambiguous, ask exactly one compact clarification question.
- If user declines clarification or asks to proceed, continue with defaults and explicit assumptions.
- If user insists on multi-file output, state that this skill cannot satisfy that requirement as-is and propose switching to a multi-file-capable skill.
1---2name: figma-make-guidelines3description: Generate, rewrite, or repair exactly one copy-ready `guidelines/Guidelines.md` for Figma Make, with self-contained rules and explicit token values. Use when users ask to create/standardize/fix Figma Make guidelines, request one canonical guideline file, request tokenized design rules with direct values (color/type/spacing/states), or ask to replace repository-path references with inline values.4---5
6# Figma Make Guidelines
7
8## Goal
9
10Produce one deterministic output file that Figma Make can execute without repository inspection:
11- `guidelines/Guidelines.md`
12
13## Trigger Terms
14
15Use this skill when requests include one or more of:
16- "Figma Make guidelines"
17- "one canonical guidelines file"
18- "`guidelines/Guidelines.md`"
19- "tokenized design rules"
20- "direct token values"
21- "rewrite or fix guideline rules"
22
23Do not use this skill as primary workflow when the user asks for UI implementation, code refactors, or multi-file guideline architecture.
24
25## Scope Gate (Run First)
26
271. If the user asks for a single-file guidelines workflow, use this skill.
282. If the user explicitly asks for multi-file guideline architecture (`guidelines/components/*`, `design-tokens/*`), do not force single-file output. State that this skill is single-file by design and ask whether to continue in single-file mode.
293. If the user asks for non-guideline deliverables (for example: direct component implementation or code refactor), do not use this skill as the primary workflow.
30
31Decision outcomes:
32- `single-file request` -> proceed
33- `multi-file request` -> ask one confirmation to switch to single-file mode
34- `non-guideline request` -> route to a better-matched skill
35
36## Hard Constraints
37
38- Create or update exactly one file: `guidelines/Guidelines.md`.
39- Do not create `guidelines/components/*.md` or any additional guideline files.
40- Do not instruct Figma Make to read repository files, code paths, or external docs.
41- Do not use instructions such as "see `src/...`", "read tokens from ...", or "follow project config".
42- Put all required values directly in `Guidelines.md`:
43 - color tokens with concrete values
44 - typography scale (size/line-height/weight)
45 - spacing scale
46 - radius/elevation/focus tokens
47 - interaction states
48 - component usage rules
49- Keep language concise, imperative, and implementation-ready.
50
51## Minimal Inputs to Collect
52
53Ask only for missing essentials:
541. Product context + target surface (dashboard, marketing site, app shell, mobile web).
552. Visual direction (minimal, bold, enterprise, playful, etc.).
563. Theme mode (light, dark, both).
574. Existing token values (if already defined).
585. Component inventory + required states.
596. Optional stack constraints for handoff wording (Angular, React, Tailwind, CSS Modules, etc.).
60
61If details are missing, proceed with defaults and list assumptions briefly.
62
63Input discipline:
64- Ask at most one compact clarification message that covers all missing essentials.
65- If user is non-responsive or asks to proceed immediately, continue with defaults and explicit assumptions.
66
67## Default Baseline (When User Values Are Missing)
68
69Use this baseline only when the user did not provide values:
70- Palette: neutral-first + one primary accent + one focus color.
71- Spacing scale: `4, 8, 12, 16, 20, 24, 32, 40, 48`.
72- Typography minimum:
73 - Display `32/40 600`
74 - H2 `24/32 600`
75 - H3 `20/28 600`
76 - Body `16/24 400`
77 - Caption `12/16 400`
78- Radius: `Sm 6`, `Md 10`, `Lg 14`, `Pill 999`.
79- Elevation: `Level 0 none`, `Level 1 subtle`, `Level 2 stronger`.
80- Focus style: visible `2px` ring + soft outer glow.
81
82## Rules to Always Encode in `Guidelines.md`
83
84### 1) Tokens are source of truth
85- Define semantic token names and concrete values in the document.
86- Include semantic names plus explicit values (hex/rgba and typography numbers).
87- Use semantic tokens in component rules.
88- Do not introduce off-scale spacing, colors, radii, or shadows.
89
90### 2) Layout mapping is explicit
91- Map Auto Layout to `flex`, `flex-col`, `items-*`, `justify-*`, `gap-*`.
92- Keep spacing tokenized.
93- Avoid absolute positioning except overlays/decorative layers.
94
95### 3) Component reuse first
96- Reuse existing components before introducing new patterns.
97- If missing, use the closest existing pattern and request confirmation before adding a new component.
98
99### 4) Variants and states are mandatory
100- Required states: `default`, `hover`, `pressed`/`active`, `focus`, `disabled`.
101- Preferred prop schema: `variant`, `size`, `tone`, `iconLeft`, `iconRight`, `loading`, `disabled`.
102- Require visible `focus-visible` behavior.
103
104### 5) Stack wording discipline
105- If stack is specified, keep handoff stack-aware.
106- If stack is unknown, keep guidance stack-neutral.
107- Use one consistent icon family; no ad-hoc icon drawing.
108
109## Generation Workflow (Deterministic)
110
1111. Confirm scope gate and single-file requirement.
1122. Collect only missing minimal inputs in one compact clarification step.
1133. Resolve values using precedence:
114 - user-provided values (highest)
115 - existing canonical values already present in user text/context
116 - default baseline values in this skill (lowest)
1174. Write assumptions as a short bullet list.
1185. Produce only `guidelines/Guidelines.md` using the required section order.
1196. Run self-check and fix issues before returning.
1207. Return only paste-ready file content; do not prepend planning notes.
121
122Output contract:
123- Default output is raw Markdown content, directly pasteable into `guidelines/Guidelines.md`.
124- Use fenced code blocks only when user explicitly asks for fenced output.
125- Do not emit JSON wrappers, metadata envelopes, or extra files.
126
127## Self-Check (Required)
128
129Fail output if any item is false:
130- No contradictions across sections.
131- All required values are present directly in the file.
132- No references to local paths, folders, or "read from project" instructions.
133- Rules are executable without extra repository context.
134- Required footer line exists exactly once.
135
136Required footer line:
137- `_Open Code -> guidelines -> Guidelines.md in Figma Make._`
138
139Uniqueness checks:
140- Footer line appears exactly once.
141- Section headers `## 1)` through `## 9)` each appear exactly once and in order.
142
143## Output Structure (Required Order)
144
145Use this exact order in `guidelines/Guidelines.md`:
1461. Purpose & scope
1472. General guidelines
1483. Implementation rules
1494. Design tokens (source of truth)
1505. Layout & spacing
1516. Component usage
1527. Accessibility
1538. Developer handoff
1549. Extending guidelines
155
156## Copy-Ready Template
157
158```md
159# Figma Make Guidelines
160
161## 1) Purpose & scope
162- Define what this guideline controls (UI structure, tokens, component behavior, handoff).
163- State supported themes and platforms.
164
165## 2) General guidelines
166- Use Auto Layout and responsive constraints by default.
167- Use the defined spacing scale consistently.
168- Prefer components + variants over detached duplicates.
169- Keep hierarchy clear and accents intentional.
170
171## 3) Implementation rules
172- If Angular + Tailwind is used:
173 - Reuse existing components before writing new markup.
174 - Prefer utility classes in templates.
175 - Keep class pass-through on reusable components.
176- If another stack is used:
177 - Mirror these same principles with equivalent conventions.
178- Icons:
179 - Use one consistent icon family only.
180 - Do not draw ad-hoc icons.
181
182## 4) Design tokens (source of truth)
183- Provide explicit token tables directly in this section.
184- Include:
185 - Base colors (neutral + brand)
186 - Semantic background/text/border/accent/focus tokens
187 - Typography tokens with size, line-height, and weight
188 - Spacing scale values
189 - Radius values
190 - Elevation/focus effect values
191- Example format:
192 - `Semantic/Bg/Canvas: #0B0F14`
193 - `Semantic/Text/Primary: #F8FAFC`
194 - `Type/Body: 16px / 24px / 400`
195 - `Radius/Md: 10`
196
197## 5) Layout & spacing
198- Auto Layout to Tailwind mapping:
199 - `Horizontal` -> `flex items-center`
200 - `Vertical` -> `flex flex-col`
201 - `Gap` -> `gap-*`
202 - `Align/Justify` -> `items-*` / `justify-*`
203- Use spacing scale only.
204- Avoid absolute positioning except overlays/decorative layers.
205
206## 6) Component usage
207- Reuse existing components first.
208- Required states: `default`, `hover`, `pressed`, `focus`, `disabled`.
209- Preferred prop schema: `variant`, `size`, `tone`, `iconLeft`, `iconRight`, `loading`, `disabled`.
210- For each component, provide direct rules for:
211 - Purpose
212 - Variants
213 - Visual tokens used
214 - State behavior
215 - Sizing and spacing
216- Minimum components to define when not specified:
217 - `Button`
218 - `Input/Text field`
219 - `Card/Panel`
220 - `Navigation`
221 - `Badge/Chip`
222 - `Modal/Dialog`
223- If no matching component exists, use the closest existing one and request approval before adding a new component.
224
225## 7) Accessibility
226- Require visible `focus-visible` states.
227- Meet WCAG contrast requirements.
228- Do not convey meaning with color alone.
229- Ensure keyboard operability for interactive elements.
230
231## 8) Developer handoff
232- Map each Figma element to:
233 1. Existing component
234 2. Styling utilities or classes
235 3. Semantic tokens used
236- Include variant/state mapping in handoff notes.
237- Do not reference repository paths as required context.
238
239## 9) Extending guidelines
240- Add new rules in this same `Guidelines.md` file.
241- Keep rules concise, imperative, and non-duplicative.
242- Add component-specific guidance as subsections under `## 6) Component usage`.
243
244_Open Code -> guidelines -> Guidelines.md in Figma Make._
245```
246
247## Response Discipline
248
249- Return content that is immediately pasteable.
250- Keep output concise; avoid long theory sections.
251- Enforce semantic tokens, component reuse, and variant-driven states.
252- Prefer direct values over references to external sources.
253- Keep `Guidelines.md` as the single canonical guidelines file.
254- Do not emit additional files, JSON wrappers, or fenced-code-only placeholders unless user explicitly asks for fenced output.
255
256## Failure Handling
257
258- If required scope is ambiguous, ask exactly one compact clarification question.
259- If user declines clarification or asks to proceed, continue with defaults and explicit assumptions.
260- If user insists on multi-file output, state that this skill cannot satisfy that requirement as-is and propose switching to a multi-file-capable skill.