ship-studio

Plugin Figma — Data skill for Claude Code

Data community

Figma plugin that extracts design data and generates structured markdown briefs for Claude Code.

How to install Plugin Figma

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ship-studio/plugin-figma and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Plugin Figma does

Figma plugin that extracts design data and generates structured markdown briefs for Claude Code.

Alternatives in Data

  • Privacy & Data Handling — This repository contains: - a plugin package (plugins/compound-engineering) made of markdown/config content 10.8k ★
  • Web Agent — 🔥 Open-source web data agent optimized for structured web research 1.2k ★
  • Local News Site — Publish a local news article as a standalone Elementor page, with Google News-grade structured data and image 648 ★

README

Ship Studio Figma Plugin

A Figma plugin that extracts design data from Figma files and generates structured markdown briefs for Claude Code.

Paste a Figma URL, and the plugin walks the design tree to produce a layout-aware, token-rich brief that an AI coding agent can use to build faithful UI implementations.

How It Works

  1. URL input — User pastes a Figma file/frame/page URL into the plugin UI
  2. Layout extraction — The Figma REST API tree is fetched and normalized into a CSS-flexbox-oriented layout tree
  3. Token collection — Colors, typography, spacing, borders, shadows, and gradients are deduplicated into a design token inventory
  4. Asset detection — Layers prefixed with @S- are identified as exportable assets; format (PNG vs SVG) is auto-determined from descendant content
  5. Asset export — A 2x preview PNG plus all detected assets are rendered via the Figma API and downloaded to .shipstudio/assets/
  6. Brief generation — All extracted data is assembled into a single structured markdown document (brief.md)

Quick Start

# Install dependencies
npm install

# Dev mode (watches for changes)
npm run dev

# Production build
npm run build

# Run tests
npm test

The built plugin is loaded into the Ship Studio desktop app, which provides the shell, storage, and Figma API token context.

Project Structure

src/
  index.tsx              # Plugin entry point
  types.ts               # Shared types (Shell, Storage, PluginContext)
  figma-api.ts           # Figma REST API client (fetch files, render images)
  url-parser.ts          # Figma URL → fileKey + nodeId parser
  context.ts             # React context for plugin host APIs
  styles.ts              # Shared CSS styles

  views/
    MainView.tsx          # Primary plugin UI (URL input, progress, results)
    SettingsView.tsx      # Settings panel
    SetupView.tsx         # First-run setup

  layout/
    extract.ts            # Orchestrates Figma API fetch → nor