pp-figma
БесплатноБез исполняемых скриптовНе проверенEvery Figma endpoint, plus codegen-ready frame extracts, comments audit, orphans finder, tokens diff Trigger phrases: `extract a figma frame for codegen`…
от mvanhorn★ 2 170 звёзд на GitHubОб этом скилле
Figma — Printing Press CLI
Prerequisites: Install the CLI
This skill drives the figma-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:npx -y @mvanhorn/printing-press-library install figma --cli-only - Verify:
figma-pp-cli --version - Ensure the reported install directory is on
$PATHfor the agent/runtime that will invoke this skill.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:
go install github.com/mvanhorn/printing-press-library/library/productivity/figma/cmd/figma-pp-cli@latest
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
This CLI is the offline-first, agent-native Figma operator. It absorbs every REST endpoint as one Cobra command, ports GLips's compaction pipeline so frame extracts fit in an LLM context window, and adds the analytical primitives no other tool unifies: cross-file comments audit, stale-component orphans finder, semantic tokens diff between file versions, deterministic file fingerprint for CI, and webhook delivery replay.
When to Use This CLI
Use figma-pp-cli when an agent or engineer needs to reason about a Figma file as data — not pixels. It shines for codegen prompt context (frame extract, dev-mode dump), design-system ops (orphans, tokens diff, fingerprint), comment hygiene (comments audit), and webhook iteration (webhooks test). For interactive design work, the Figma desktop app is fine — figma-pp-cli covers everything Figma's REST API exposes and adds the cross-file analytical commands the dashboard hides.
Unique Capabilities
These capabilities aren't available in any other tool for this API.
Agent-native plumbing
frame extract— Extract a single frame as a compact codegen-ready payload that fuses simplified node tree, in-scope variables, dev resources, and Code Connect mappings.First call when an AI agent needs Figma frame context for code generation — returns a compact payload that fits in the context window instead of the raw 10MB file response.
figma-pp-cli frame extract abc123 --ids 1234-5678 --depth 4 --include variables,dev-resources --jsondev-mode dump— Emit a portable Markdown bundle that fuses dev-resource links, variables in scope, render permalink, and Code Connect mapping for one node.Use when an agent or engineer needs the full Dev Mode context for one frame as a single Markdown blob — no Desktop pairing required.
figma-pp-cli dev-mode dump abc123 --node 1234-5678 --format mdwebhooks test— Pull Figma's webhook request log and replay stored payloads (with original headers and HMAC) against an arbitrary target URL.Use when iterating on a new webhook handler — replay yesterday's failed deliveries against your local server without re-triggering upstream events.
figma-pp-cli webhooks test wh_abc --replay-failed --target-url https://localhost:3000/figma
Local state that compounds
comments-audit— Aggregate unresolved comments across every synced team file with age and group-by filters.Run this on Monday morning before design review — surfaces every stale unresolved thread across the team.
figma-pp-cli comments-audit --older-than 14d --group-by file,author --jsonorphans— Find published library entities (components, styles, variables) with zero usage over a window by joining team-library publish list with library-analytics usage data.First command for the quarterly design-system cleanup — returns the list of entities safe to deprecate.
figma-pp-cli orphans 12345 --kind component,style,variable --window 30d --jsontokens diff— Diff Figma variables across two file versions with mode-awareness; emits a Markdown or JSON change set.Run before merging a design-tokens PR to see what actually changed in Figma since the last release.
figma-pp-cli tokens diff abc123 --from v1.0.0 --to HEAD --format mdfingerprint— Stable hash of a Figma file's token + component + style surface; exits no
Установить pp-figma в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashFAQ
Что делает скилл pp-figma?
Every Figma endpoint, plus codegen-ready frame extracts, comments audit, orphans finder, tokens diff Trigger phrases: `extract a figma frame for codegen`, `compact figma file context for AI`, `find unresolved figma comments`, `figma stale components`, `diff figma design tokens`, `figma file fingerprint for CI`, `replay figma webhook deliveries`, `where is this figma variable used`, `use figma`, `run figma-pp-cli`.
Как установить скилл pp-figma?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pp-figma запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic