agentleFS
digdirdigdir/designsystemet/.claude/skills/figma/SKILL.md

figma

Skill221 starsChanged 6 days agoMITView on GitHub

Rules for the Figma plugin and the Figma UI kit, and for changes that show up in Figma. Use when changing anything in figma/ or packages/cli/src/figma, when writing a figma-plugin or figma-ui-kit changeset, or when a CLI or CSS change alters Figma variables or which variables components use.

66 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use captions-overlay, motion-doctrine and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ElyzeSolutionsSkill

    captions-overlay

    Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

    Also in 4 projects that use this

  • ElyzeSolutionsSkill

    motion-doctrine

    GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

    Also in 4 projects that use this

  • hoodiniSkill

    analytics-metrics

    Build data visualization and analytics dashboards. Use when creating charts, KPI displays, metrics dashboards, or data visualization components. Triggers on analytics, dashboard, charts, metrics, KPI, data visualization, Recharts.

    Also in 3 projects that use this

  • hoodiniSkill

    aws-account-management

    Manage AWS accounts, organizations, IAM, and billing. Use when setting up AWS Organizations, managing IAM policies, controlling costs, or implementing multi-account strategies. Triggers on AWS Organizations, AWS IAM, AWS billing, Cost Explorer, SCPs, multi-account, AWS SSO, Identity Center.

    Also in 3 projects that use this

  • jaron-goh-centrSkill

    talking-head-recut

    Package an existing talking-head / interview / podcast video with timed, designed GRAPHIC OVERLAY cards — kinetic titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript, on a 16:9 / 9:16 / 4:5 canvas of your choice; the clip plays untouched underneath. Trigger on "graphic overlays", "on-screen graphics", "package / dress up my video". Not plain subtitles (/embedded-captions). Unclear → /hyperframes.

    Also in 8 projects that use this

  • MaikozortSkill

    reverse-any-video

    Rebuild any video file as an editable HyperFrames project - motion graphics, talking heads, live action or AI-generated footage - checked against the original frame by frame. Use to reverse, recreate, remake, replicate or copy a video, or 「复刻这个视频」「照着这个视频做一个」.

    Also in 4 projects that use this

  • +3 more from ElyzeSolutions
  • +3 more from hoodini

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 57 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Use only the async Figma getters, e.g.

    line 18
  2. Very specific:

    Add every new message to the FigmaMessages union in figma/plugin/src/types.ts.

    line 27
  3. Distinctive:

    Write it for designers: use Figma's words (variables, modes), and say what they must do in their own copy of the UI kit, if anything.

    line 39
  4. Very specific:

    If one text works for both developers and designers, add figma-ui-kit to the code changeset instead of writing a second one.

    line 40
  5. Very specific:

    If you have a connector for Figma, ask for a link to the Figma file, and check that a figma-ui-kit changeset matches what is changed there: …

    line 41

“Common” is measured: kept by at least 6 in 10 of the 57 edited versions of this file we could read. “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

Working with Figma: the plugin and the UI kit

Building, loading and testing the plugin is described in figma/plugin/README.md, and versioning and publishing of the UI kit in figma/README.md. This file has what they do not say.

The UI kit itself is a Figma file, not code. In this repo, figma/ui-kit/ only holds its version, its changelog and the starter theme it uses.

Before you start on the plugin

  • The plugin uses the CLI's built dist. pnpm build:plugin builds the CLI too, but pnpm watch:plugin does not. After a change in packages/cli, run pnpm build:cli again.

Code that runs in Figma (figma/plugin/src/plugin)

  • Use only the async Figma getters, e.g. getLocalVariablesAsync. The manifest has documentAccess: dynamic-page, so the sync ones throw.
  • A long loop must call the pause from figma/plugin/src/plugin/import/pause.ts, so Figma can repaint and does not freeze.
  • A new import step needs an onStep() call and a higher IMPORT_STEPS in figma/plugin/src/plugin/import/import-to-figma.ts. The progress bar is counted from it.
  • Mark everything the import creates with the helpers in figma/plugin/src/plugin/import/ownership.ts. A later import only deletes what is marked, so the user's own variables and styles are kept. Add fields to the stored data; never rename them.
  • Find collections with FIGMA_COLLECTION from the CLI, not with the names written out.
  • The plugin has no network access (networkAccess: none).

Messages between the UI and the plugin

  • Add every new message to the FigmaMessages union in figma/plugin/src/types.ts.
  • Messages to the UI are type checked. Messages from the UI are not: postToPlugin takes any payload, so check its fields against the type by hand.

Testing the plugin

  • Unit tests fake the figma global with vi.stubGlobal; see figma/plugin/src/plugin/import/variable-sync.test.ts.
  • Then go through "Testing in Figma" in figma/plugin/README.md. The tests do not cover what Figma itself does.

Changesets for Figma

  • A change to the plugin needs a figma-plugin changeset.
  • A CLI or CSS change that alters variables, their values, or which variables the components use, also needs a figma-ui-kit changeset in the same pull request. CI reminds you with a comment, and requires it when the pull request has the 🎨 figma label.
  • Write it for designers: use Figma's words (variables, modes), and say what they must do in their own copy of the UI kit, if anything.
  • If one text works for both developers and designers, add figma-ui-kit to the code changeset instead of writing a second one. The change is then listed once in the changelog.
  • If you have a connector for Figma, ask for a link to the Figma file, and check that a figma-ui-kit changeset matches what is changed there: the components, variables and values it names.
  • How to write and publish them is in figma/README.md.

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.