design-annotations
Skill10 starsChanged 33 days agoMITView on GitHub
Use when dev notes need adding, placing, or rewriting next to Figma design screens, using a note component from the design system or a default template. Triggers include "place my dev notes by their screens", "add dev notes to these screens", "improve the copy on these notes", "update the dev notes", or a Figma section link plus a request about notes.
In this repository5 other files it gives its agents.
- design-first-draftSkill
- design-organizeSkill
- design-researchSkill
- dev-handoffSkill
- research-synthesisSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Add, reposition, or improve dev note components next to design screens in Figma.
- Distinctive: line 33
Stop on repeated failure: If the same operation fails twice, STOP and read back children before retrying.
- Very specific: line 57
Use a single use_figma call to find the correct page and classify all children:
- Very specific: line 63
Scan page-level TEXT: Check figma.currentPage.children for TEXT nodes within the section's absoluteBoundingBox.
- Distinctive: line 65
Validation: If design-organize was used (expect labels) but 0 labels found — you're on the wrong page.
- Distinctive: line 73
Ask the user to save a named version in Figma before proceeding.
- Very specific: line 81
Component path: Search design system → import → list all variants, ask user which one (don't auto-pick default).
- Very specific: line 93
Verify with get_screenshot that gaps are visible.
- Very specific: line 99
Component notes: Import chosen variant, createInstance() per screen, append to container.
- Very specific: line 101
Default template notes: Create template frame (400px wide, auto-height, vertical layout, "Dev Note" name, Inter fonts, warm fill {1, 0.98, …
- Very specific: line 107
Read all existing notes via use_figma — walk each note's children to extract text nodes with their IDs and content
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Design Annotations
Add, reposition, or improve dev note components next to design screens in Figma. Works with design system components or a default note template. Chains from design-organize but also works standalone.
Validation principle: Every
use_figmawrite step must be followed by aget_screenshotcheck. Do not stack writes without visual verification.
Quick Reference
| Step | What |
| 0 | Prerequisites — Figma MCP required |
| 1 | Ask preferences: which screens, format, content |
| 2 | Read container, classify children, find existing labels |
| 3 | Version safety |
| 4 | Determine note width → reposition screens/labels → place notes |
| 5 | Validate and present result |
Step 0: Prerequisites
- Figma MCP server — check if
mcp__figma__use_figmatool is available. If not, tell the user to install it and restart. - figma-use skill — load
figma:figma-usevia the Skill tool before anyuse_figmacall. - Figma Section gotchas — these are critical and cause silent failures:
- Page discovery:
getNodeById()works cross-page — it will find nodes on ANY loaded page, giving false positives. Usefigma.currentPage.findOne(n => n.id === "<nodeId>")instead, which only returns nodes that actually live on the current page. - Page-level TEXT: Figma stores TEXT nodes placed inside SECTIONs as page-level children — they won't appear in
section.children. Scanfigma.currentPage.childrenfor TEXT nodes whoseabsoluteBoundingBoxfalls within the section bounds. These are existing labels. Their x/y are canvas-absolute — usesection.absoluteBoundingBoxto convert. - Overlapping children: SECTION nodes may silently discard children that overlap existing frames between script executions. Position new nodes to avoid overlaps.
- Stop on repeated failure: If the same operation fails twice, STOP and read back children before retrying.
- Page discovery:
Step 1: Ask Preferences
Extract fileKey and nodeId from the user's Figma URL (convert - to : in nodeId).
Detect intent from the message — "add dev notes" vs "improve copy" vs ambiguous. Then always confirm preferences before proceeding (skip only what the user already specified):
Which screens get dev notes?
- A) All screens
- B) Let me pick (I'll list them)
Format:
- A) Use a design system component (I'll search for it)
- B) Use a default note template
Content:
- A) Pre-fill with AI-generated descriptions
- B) Leave empty for manual editing
For "improve copy" intent, skip format/screen questions — go straight to Step 2 → Path C.
Step 2: Read Container and Classify Children
Use a single use_figma call to find the correct page and classify all children:
- Page discovery: Iterate all pages, switch to each, use
figma.currentPage.findOne(n => n.id === "<nodeId>")to find the page that owns the node. Do NOT usegetNodeById()— it returns nodes cross-page. Mention which page you found (e.g., "Working on page [page name]") so the user can catch wrong-page issues early. - Classify section children: screens (everything visible that isn't a label or note), labels (
TEXTnodes), notes (INSTANCE≤ 450px orFRAMEnamed "Dev Note" ≤ 450px). - Scan page-level TEXT: Check
figma.currentPage.childrenfor TEXT nodes within the section'sabsoluteBoundingBox. Flag these aspageLevel: true(canvas-absolute coords). - Validation: If design-organize was used (expect labels) but 0 labels found — you're on the wrong page. Re-run discovery.
- If user chose "let me pick": List screens with names and dimensions for selection.
Store one FRAME screen ID as <childId> for subsequent page-switch preambles.
Step 3: Version Safety
Ask the user to save a named version in Figma before proceeding. Wait for confirmation.
Step 4: Determine Width → Reposition → Place Notes
This is the core step. The order is critical — reposition BEFORE placing notes to prevent overlaps.
4a: Determine note width
- Component path: Search design system → import → list all variants, ask user which one (don't auto-pick default). Create ONE test instance, confirm dimensions. Record
noteWidth. - Default template:
noteWidth = 400px. - Improve copy (Path C): Skip to 4d.
4b: Reposition screens and labels
Widen gaps between screens to fit notes. For each screen left-to-right:
- Screens WITH notes: gap =
screen.width + 50 (noteGap) + noteWidth + 200 (nextScreenGap) - Screens WITHOUT notes: gap =
screen.width + 200 (standard gap)
Move each screen's label to follow it. Page-level labels need canvas-absolute coordinates: sectionAbsBounds.x + screenRelativeX.
Verify with get_screenshot that gaps are visible.
4c: Place notes
For each selected screen, place a note at screen.x + screen.width + 50, screen.y.
Component notes: Import chosen variant, createInstance() per screen, append to container.
Default template notes: Create template frame (400px wide, auto-height, vertical layout, "Dev Note" name, Inter fonts, warm fill {1, 0.98, 0.94}), clone per screen, remove template. Must run in a single use_figma call (template reference doesn't persist).
Verify with get_screenshot.
4d: Improve existing copy (Path C)
- Read all existing notes via
use_figma— walk each note's children to extract text nodes with their IDs and content - Match notes to screens by x-proximity (note.x near screen.x + screen.width)
- Screenshot each screen for visual context
- Generate improved copy — focus on what devs need: component behavior, state, data sources, interactions
- Present suggestions in a table for confirmation:
Screen Current Suggested Dashboard "Add notes here..." "Main dashboard. Stats row: real-time metrics..."
- Bulk-update confirmed notes in one
use_figmacall — load each text node's exact font before changing.characters
Step 5: Validate and Present
Screenshot the section. Verify notes are positioned correctly, not overlapping, readable.
Done. Added/updated X dev notes across Y screens.
Want to adjust anything?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

