Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

GitButler 10 min read Case study mediumAdept

Figma agent vs. one button: shipping design tokens to npm

Automating a design-token release pipeline (Figma variables → DTCG JSON → Terrazzo CSS → npm) with the Figma agent worked but took six minutes per run. The agent's sandbox has no git or network, so it had to stream a 54 KB file through its own capped context into a GitHub connector. The winning setup is the existing plugin's "Push to server" button opening a PR, plus two Claude-written GitHub Actions workflows. One rebuilds CSS, infers patch/minor bumps (majors need an explicit label) and comments a token diff; the other publishes via npm trusted publishing over OIDC. The takeaway: use LLMs to write scripts and CI, not as a runtime for deterministic pipelines, and let tools move bytes by file path rather than through model context.

Assumes: GitHub Actions basicsnpm package publishingdesign tokens

Related posts

  • How Coinbase used Code Connect to guide agents and shrink token costs

    Figma easyNovice

    Coinbase's design system team mapped every Coinbase Design System component to its code counterpart with Figma Code Connect. Using Claude Code and a figma-code-connect skill, they went from partial to full coverage in about four hours. They then benchmarked design-to-code agent runs with and without Code Connect: the same form design, a deliberately vague prompt, Sonnet 4.6, and resets between runs. Across three runs, Code Connect cut tokens by 11.5%, implementation time by 22.3% and cost by 22.5%, and agents picked components like Stepper and ListCell correctly instead of rebuilding them from primitives or hallucinating icon names. The team's conclusion is that agent skills shape how code gets written, while Code Connect supplies the component context agents need when starting from designs.

  • The making of the Figma Pattern Library

    Figma mediumAdept

    Figma rebuilt its fragmented internal design system as the Figma Pattern Library (FPL) ahead of the UI3 redesign, with a small team of designers and engineers working in a paired style. Color tokens moved out of a Google Sheet into Figma variables: primitive color ramps are aliased by semantic variables that have modes for light/dark themes and for each product. A GitHub Action uses the REST API to open pull requests that sync published variable changes into code tokens. Every component must have Code Connect support before it counts as done, which maps design components to code even when their structures differ. After five months the library had 680+ tokens and 22 component sets with 670+ variants.

  • How We Built Our Design Agent

    LangChain mediumAdept

    Content Studio, LangChain's Slack-based design agent, produces on-brand videos, graphics, slide decks and UI recreations entirely as code, running on Managed Deep Agents with a per-thread LangSmith Sandbox. Quality came from encoding designers' principles, anti-slop guardrails and the reasoning behind feedback rather than from prebuilt components. A 115-component design system was largely discarded once a stronger model arrived, because rules that compensate for model weaknesses expire. Motion runs on HyperFrames (web-page video editing with GSAP) and a custom canvas engine with motion blur, both rendering deterministically by timestamp so frames can be inspected and rendered in parallel. Median request cost fell from about $8 to 50 cents, and the harness is open-sourced.

  • Automating cross-repo documentation with GitHub Agentic Workflows

    GitHub Engineering mediumAdept

    Aspire's team uses GitHub Agentic Workflows to auto-draft documentation pull requests in a separate docs repo whenever a product pull request merges, with the shipping engineer assigned as reviewer. The agent gets read-only access and emits intent, while a narrowly scoped safe-outputs handler with a two-repo GitHub App token, branch allow-lists, protected files and draft-only PRs performs the writes. A deterministic bash resolver maps milestones to docs release branches before the agent runs. Over 30 days, 396 runs produced 82 docs PRs, all merged, at a median 44.8 hours, after the prompt was tightened with negative examples to cut an initial ~13% false-positive rate.

  • Shipping huggingface_hub every week with AI, open tools, and a human in the loop

    Hugging Face mediumAdept

    huggingface_hub moved from releases every 4-6 weeks to weekly releases driven by a single GitHub Actions workflow that automates versioning, tagging, PyPI publishing, downstream test branches, post-release bumps and Slack reporting, with an open-weights model (GLM via HF Inference Providers, run through OpenCode) drafting release notes and announcements. The key pattern wraps the model in deterministic guardrails: a script extracts PR numbers from squash-merge commits as a manifest, diffs it against PRs referenced in the draft, and re-prompts the agent to fix missing or extra entries. The model is grounded with docs diffs from each PR, and a human edits the draft before promoting the RC. Publishing uses PyPI Trusted Publishing with OIDC and Sigstore attestations plus a checksum-pinned agent runtime, and each release costs about $0.25 in inference.

The quest for software engineering knowledge.

Look:
Layout: