agentleFS
GoodnessmbakaraGoodnessmbakara/codex-skills/skills/large-figma-feature/SKILL.md

large-figma-feature

Skill1 starsChanged 3 months agoMITView on GitHub

Progressively inventory and analyze large Figma sections without loading raw document trees into context. Use for bulky Figma features, multi-screen flows, design-to-code planning, product specifications, UI/API contract audits, or repository gap analysis where a full get_document/get_node response would be excessive.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 3 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Call list_files, then get_metadata.

    line 12
  2. Very specific:

    Call get_selection. If nothing relevant is selected, use metadata and a shallow design context to identify the target section.

    line 13
  3. Very specific:

    Call get_design_context with depth: 1.

    line 14
  4. Very specific:

    Use get_screenshot only for visually ambiguous nodes.

    line 17
  5. Very specific:

    Never call get_document for a large page or get_node for the whole feature section when a shallow context can enumerate its children.

    line 24
  6. Distinctive:

    Keep each detailed batch to at most 8 top-level nodes or approximately 30,000 compacted characters.

    line 25
  7. Distinctive:

    Stop deepening a screen after its user-visible copy, states, actions, and data needs are understood.

    line 26
  8. Very specific:

    Keep raw responses out of conversation output.

    line 29
  9. Distinctive:

    Use this precedence unless the user states otherwise:

    line 33
  10. Very specific:

    Read references/figma-bridge.md when choosing bridge calls, batching, or screenshots.

    line 45
  11. Very specific:

    Read references/output-schemas.md when producing a feature brief, state model, contract matrix, or gap audit.

    line 46

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Large Figma Feature

Extract a large feature breadth-first, then deepen only where evidence is needed. Preserve node IDs in every artifact so findings remain traceable.

Workflow

  1. Call list_files, then get_metadata. Require an explicit fileKey whenever multiple files are connected.
  2. Call get_selection. If nothing relevant is selected, use metadata and a shallow design context to identify the target section; do not fetch the full document tree.
  3. Call get_design_context with depth: 1. Treat this as the feature inventory. Record top-level node ID, name, type, bounds, and child count.
  4. Classify top-level nodes into entry, configuration, transient state, live state, result, modal, and supporting screen groups. Flag duplicate names and ambiguous variants.
  5. Fetch individual top-level nodes with get_node, in small batches. Compact each response before showing it: retain node identity, bounds, meaningful component/layer names, unique visible text, state cues, and interaction clues. Discard repetitive vector geometry and duplicated styles.
  6. Use get_screenshot only for visually ambiguous nodes. Prefer targeted screenshots over exporting the entire section. Use save_screenshots only when local image artifacts are an explicit deliverable.
  7. Inspect the repository after the design inventory. Map screens and actions to routes, components, types, APIs, persistence, realtime events, and tests.
  8. Reconcile Figma, user-provided notes, existing behavior, and code. Never silently choose between conflicting sources; report the conflict and its implementation consequence.
  9. Produce only the requested artifact. Use the schemas in references/output-schemas.md for comprehensive analysis.

Context limits

  • Never call get_document for a large page or get_node for the whole feature section when a shallow context can enumerate its children.
  • Keep each detailed batch to at most 8 top-level nodes or approximately 30,000 compacted characters.
  • Stop deepening a screen after its user-visible copy, states, actions, and data needs are understood.
  • Deduplicate text while preserving first-seen order. Normalize whitespace but do not rewrite product copy.
  • Summarize colors, typography, and spacing as tokens/patterns; do not repeat identical style objects per child.
  • Keep raw responses out of conversation output. If a raw response must be processed outside the tool call, pass it through scripts/compact_figma_tree.py.

Evidence hierarchy

Use this precedence unless the user states otherwise:

  1. Explicit user decisions
  2. Approved meeting/product notes
  3. Current Figma behavior and copy
  4. Existing production contracts
  5. Current implementation details

Distinguish confirmed requirements, reasonable inferences, and unresolved decisions.

References

  • Read references/figma-bridge.md when choosing bridge calls, batching, or screenshots.
  • Read references/output-schemas.md when producing a feature brief, state model, contract matrix, or gap audit.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.