跳到正文
cccskills
免费在 GitHub 公开

figma-navigator

Provides context about the regelrecht Figma design system and helps with Figma-related tasks like component lookups and design comparisons. Use this skill proactively when: implementing UI components, looking up Figma node IDs, comparing code with Figma designs, downloading Figma assets, or working with design tokens. Activate automatically when user mentions Figma, design system, component styling, or asks about RR-Components.

中文简介正在准备中。当前显示原文说明。

集成工具Figma
查看安装方法

包含的文件(2)

  • SKILL.md4.2 KB
  • reference.md5.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Figma Navigator

This skill provides quick access to the RegelRecht (RR) Figma design system structure and helps with Figma-related tasks.

Figma File Info

Quick Lookup

For component IDs and structure, read the reference file:

.claude/skills/figma-navigator/reference.md

This contains all component node IDs, pages, variants, and implementation details.

Workflows

1. Find a Component's Figma ID

  1. Check reference.md for the component
  2. Use the node ID directly with the Figma MCP tool

Example:

mcp__figma-with-token__get_figma_data(fileKey: "5DyHMXUNVxbgH7ZjhQxPZe", nodeId: "20-27")

2. Get Component Details

When you need current properties, variants, or layout info:

mcp__figma-with-token__get_figma_data(
  fileKey: "5DyHMXUNVxbgH7ZjhQxPZe",
  nodeId: "<component-node-id>"
)

The MCP tool returns:

  • Component variants and their node IDs
  • Layout properties (padding, gap, sizing)
  • Text styles and colors
  • Border radius and strokes

3. Compare Figma vs Implementation

  1. Get component specs from Figma using node ID from reference.md
  2. Read the nldd-* component the frontend uses for it
  3. Compare:
    • Token usage (should match Figma variables)
    • Sizing (min-height, padding, gap)
    • Variants (all Figma variants should be implemented)
    • States (disabled, focused, hover)

4. Download Component Images

For pixel comparison or assets:

mcp__figma-with-token__download_figma_images(
  fileKey: "5DyHMXUNVxbgH7ZjhQxPZe",
  nodes: [
    { nodeId: "<node-id>", fileName: "component-name.png" }
  ],
  localPath: "/path/to/save"
)

5. Find Specific Variant

Each component set contains multiple variants. The variant node IDs follow patterns:

  • Button variants: Inside component set 20:27
    • Specific variant: style=accent-filled, size=m = 20:28
    • Pattern: style={style}, size={size}, is-disabled={bool}

Use get_figma_data on the component set to see all variants.

Rate Limits

The Figma MCP can hit rate limits. If you get errors:

  1. Wait 60-120 seconds
  2. Use cached info from reference.md when possible
  3. Open Figma in browser as fallback

Token Hierarchy

The design system uses three token layers:

Primitives (--primitives-*)  → base values (colors, space, opacity)
Semantics (--semantics-*)    → meaningful tokens (buttons, controls, focus)
Components (--components-*)  → component-specific tokens

Always use semantic tokens when available. Only use primitives when no semantic exists.

Key Design Tokens

Controls (sizing)

  • --semantics-controls-xs-min-size: 24px
  • --semantics-controls-s-min-size: 32px
  • --semantics-controls-m-min-size: 44px

Focus Ring

  • --semantics-focus-ring-thickness: 2px
  • --semantics-focus-ring-color: #0f172a

Disabled State

  • Use calc(var(--primitives-opacity-disabled, 38) / 100) for opacity

Tips

  1. Start with reference.md - Don't search Figma from scratch
  2. Use node IDs with colons - Format is 123:456 or 123-456 (both work)
  3. Component sets vs components - Component sets (like 20:27) contain multiple variant components
  4. Check asymmetric padding - Figma sometimes uses different top/bottom padding

Design system components

UI is built with the NLDD web components (nldd-*, from @nldd/design-system). The rules are in AGENTS.md under "Frontend / UI Components"; the nesting and layout patterns are in the storybook-component-hierarchy skill. Check an attribute against the package's own .d.ts before using it.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Check if a RIG preview deployment is actually running and healthy. Verifies CI triggered, images exist, pods started, and services respond. Use when a PR deployment seems broken or after pushing code.

中文简介正在准备中。当前显示原文说明。

NederlandseDigitaleDienst/regelrecht262026年10月23日 更新

Performs critical code reviews using REVIEW.md guidelines. Evaluates code quality, architecture, testing, and domain-specific concerns (legal faithfulness, cross-law references, engine safety). Use after completing significant code changes or before merging.

中文简介正在准备中。当前显示原文说明。

NederlandseDigitaleDienst/regelrecht262026年10月23日 更新

Processes all open Dependabot PRs sequentially — rebases if needed, analyzes for breaking changes and security issues, then merges or requests changes. Use when you want to handle pending Dependabot dependency updates.

中文简介正在准备中。当前显示原文说明。

NederlandseDigitaleDienst/regelrecht262026年10月23日 更新

Writing rules for the regelrecht docs site (docs/). Use when writing or editing prose under docs/ — RFCs, guides, component docs, concept pages, and the NL/EN landing copy. Keeps docs prose free of AI-generated tells and consistent with the site's government-technical register. Not for code, commit messages, or PR descriptions.

中文简介正在准备中。当前显示原文说明。

NederlandseDigitaleDienst/regelrecht262026年10月23日 更新

Downloads Dutch official legal publications including national laws, local regulations, and implementation policies from government sources (wetten.overheid.nl, lokaleregelgeving.overheid.nl). Use this skill proactively when: user mentions downloading, fetching, or importing a Dutch law by name or BWB/CVDR identifier, when a source.regulation reference points to a law not in the corpus, or when user provides a wetten.overheid.nl URL. Activate automatically when user mentions a specific Dutch law name, BWB identifier (BWBR...), or CVDR identifier.

中文简介正在准备中。当前显示原文说明。

NederlandseDigitaleDienst/regelrecht262026年10月23日 更新

Generates machine_readable execution logic for Dutch law YAML files: writes the machine_readable sections, validates against the schema, and (when a shell is available) runs the BDD suites until the model is correct. Use this skill proactively when: editing or creating machine_readable sections in law YAML files, working with corpus regulation files, or when user mentions 'generate', 'machine_readable', or wants to make a law executable. Activate automatically when user discusses law YAML files that need executable logic.

中文简介正在准备中。当前显示原文说明。

NederlandseDigitaleDienst/regelrecht262026年10月23日 更新

查看 NederlandseDigitaleDienst 的全部技能

报告此技能的问题