Agent skill

Figma Multi Env Setup

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Configure Figma API access across dev, staging, and production environments.

MITAuto-check: notesBackend & APIs

Install Figma Multi Env Setup

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill figma-multi-env-setup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace figma-multi-env-setup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/figma-multi-env-setup .claude/skills/figma-multi-env-setup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
figma-multi-env-setup
GitHub stars
2.8k
Token cost
~1.6k tokens
SKILL.md length
230 words
Files
6 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Configure Figma API access across dev, staging, and production environments.

  • Works in 5 steps: Environment Strategy → Configuration by Environment → Environment Files → …
  • Setting up per-environment tokens
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 4 more sections
  • Calls gcloud, gh and node; reaches api.figma.com; needs FIGMA_FILE_KEY

What it does

Figma Multi Env Setup is an agent skill from jeremylongshore/tons-of-skills-marketplace. Configure Figma API access across dev, staging, and production environments. Use when setting up per-environment tokens, managing multiple Figma files, or isolating development from production Figma resources. Trigger with phrases like "figma environments", "figma staging", "figma dev prod", "figma environment config".

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/configuration-by-environment.md`, `references/environment-files.md` and `references/environment-guards.md`). Compatibility notes: Designed for Claude Code

It sits in Backend & APIs. It works with Figma. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Setting up per-environment tokens
  • Managing multiple Figma files
  • Isolating development from production Figma resources
  • With phrases like figma environments

Example prompts

  • “figma environments”
  • “figma staging”
  • “figma dev prod”
  • “/figma-multi-env-setup”

Requirements

  • A credential in FIGMA_FILE_KEY
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(gcloud:*), Bash(vault:*)

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Environment Strategy
  2. Configuration by Environment
  3. Environment Files
  4. Secret Management
  5. Environment Guards

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(gcloud:*)
    • Bash(vault:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gcloud
    • gh
    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.figma.com

    Also links to:

    • developers.figma.com
    • 12factor.net
    • docs.github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • FIGMA_FILE_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Figma Multi Env Setup loads about 1.6k tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 86 tokens; SKILL.md has 230 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~86
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:93
    # .env.development
  • NoteMentions a .env fileSKILL.md:97
    # .env.staging
  • NoteMentions a .env fileSKILL.md:101
    # .env.production (stored in secret manager, not in repo)
  • NoteMentions a .env fileSKILL.md:180
    # .env.development

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 230 words, ~1,556 tokens.

Download SKILL.mdSave it as .claude/skills/figma-multi-env-setup/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
figma-multi-env-setup
description
Configure Figma API access across dev, staging, and production environments. Use when setting up per-environment tokens, managing multiple Figma files, or isolating development from production Figma resources. Trigger with phrases like "figma environments", "figma staging", "figma dev prod", "figma environment config".
allowed-tools
Read, Write, Edit, Bash(gcloud:*), Bash(vault:*)
compatibility
Designed for Claude Code
version
1.6.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, figma

Figma Multi-Environment Setup

Overview

Configure separate Figma API credentials and file targets per environment. Use different PATs with minimal scopes, point to different Figma files, and prevent accidental production operations from dev.

Prerequisites

  • Separate Figma PATs for each environment
  • Secret management solution
  • Environment detection in application

Instructions

Step 1: Environment Strategy
EnvironmentPAT ScopesFigma FileCache TTL
Developmentfile_content:readCopy of design file10s (fast iteration)
Stagingfile_content:read, file_comments:readStaging branch/file60s
Productionfile_content:read, webhooks:writeProduction design file300s
Step 2: Configuration by Environment
typescript
// src/config/figma.ts
interface FigmaEnvConfig {
  token: string;
  fileKey: string;
  cacheTTL: number;
  webhookPasscode?: string;
  maxConcurrency: number;
}

function getFigmaConfig(): FigmaEnvConfig {
  const env = process.env.NODE_ENV || 'development';

  const configs: Record<string, Partial<FigmaEnvConfig>> = {
    development: {
      token: process.env.FIGMA_PAT_DEV!,
      fileKey: process.env.FIGMA_FILE_KEY_DEV!,
      cacheTTL: 10_000,
      maxConcurrency: 1,
    },
    staging: {
      token: process.env.FIGMA_PAT_STAGING!,
      fileKey: process.env.FIGMA_FILE_KEY_STAGING!,
      cacheTTL: 60_000,
      maxConcurrency: 3,
    },
    production: {
      token: process.env.FIGMA_PAT_PROD!,
      fileKey: process.env.FIGMA_FILE_KEY_PROD!,
      cacheTTL: 300_000,
      maxConcurrency: 5,
      webhookPasscode: process.env.FIGMA_WEBHOOK_PASSCODE,
    },
  };

  const config = configs[env];
  if (!config?.token) throw new Error(`Figma token not configured for env: ${env}`);
  if (!config?.fileKey) throw new Error(`Figma file key not configured for env: ${env}`);

  return config as FigmaEnvConfig;
}
Step 3: Environment Files
bash
# .env.development
FIGMA_PAT_DEV="figd_dev-token-read-only"
FIGMA_FILE_KEY_DEV="devFileKey123"

# .env.staging
FIGMA_PAT_STAGING="figd_staging-token"
FIGMA_FILE_KEY_STAGING="stagingFileKey456"

# .env.production (stored in secret manager, not in repo)
FIGMA_PAT_PROD="figd_prod-token"
FIGMA_FILE_KEY_PROD="prodFileKey789"
FIGMA_WEBHOOK_PASSCODE="webhook-secret"

# .env.example (committed to repo as template)
FIGMA_PAT_DEV=
FIGMA_FILE_KEY_DEV=
Step 4: Secret Management
bash
# GitHub Actions -- use environment-scoped secrets
gh secret set FIGMA_PAT_PROD --env production --body "figd_..."
gh secret set FIGMA_PAT_STAGING --env staging --body "figd_..."

# Google Cloud Secret Manager
echo -n "figd_prod-token" | gcloud secrets create figma-pat-prod --data-file=-
echo -n "figd_staging-token" | gcloud secrets create figma-pat-staging --data-file=-

# Load in Cloud Run
gcloud run deploy my-service \
  --set-secrets="FIGMA_PAT_PROD=figma-pat-prod:latest"
Step 5: Environment Guards
typescript
// Prevent production-specific operations in non-production
function requireProduction(operation: string) {
  if (process.env.NODE_ENV !== 'production') {
    throw new Error(
      `${operation} is only allowed in production. ` +
      `Current env: ${process.env.NODE_ENV}`
    );
  }
}

// Prevent destructive operations in production
function blockInProduction(operation: string) {
  if (process.env.NODE_ENV === 'production') {
    throw new Error(`${operation} is blocked in production for safety`);
  }
}

// Usage
async function createWebhook(config: any) {
  requireProduction('createWebhook'); // Only in prod
  return fetch('https://api.figma.com/v2/webhooks', { ... });
}

async function deleteAllCachedData() {
  blockInProduction('deleteAllCachedData'); // Never in prod
  await cache.clear();
}

Output

  • Per-environment Figma configuration
  • Secrets stored in appropriate secret managers
  • Environment guards preventing cross-env mistakes
  • Template env files for team onboarding

Error Handling

IssueCauseSolution
Wrong file in devUsing prod file keyVerify FIGMA_FILE_KEY_DEV
PAT expired in CI90-day expirySet rotation reminder per environment
Staging webhook pointing to prodWrong endpoint URLVerify webhook endpoint per env
Config not loadingMissing NODE_ENVSet NODE_ENV in deployment config

Examples

Point the same integration at a staging file locally and the production file in CI using the Step 2 config loader:

bash
# .env.development
FIGMA_ENV=development
FIGMA_FILE_KEY=stgAbC123fileKey
FIGMA_WEBHOOK_ENDPOINT=https://dev.example.com/figma/webhook

# CI (production) — secrets injected, never committed
FIGMA_ENV=production
FIGMA_FILE_KEY=prodXyZ789fileKey

Verify the guard refuses a cross-environment mistake before any API call is made:

bash
FIGMA_ENV=production FIGMA_FILE_KEY=stgAbC123fileKey node sync-tokens.js
# Error: production run pointed at a non-production file key — aborting

Environment strategy and per-env webhook registration (POST /v2/webhooks per environment): references/configuration-by-environment.md and references/environment-guards.md.

Resources

Next Steps

For observability setup, see figma-observability.

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in skills/.curated/figma-multi-env-setup of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/configuration-by-environment.md
  • references/environment-files.md
  • references/environment-guards.md
  • references/errors.md
  • references/secret-management.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Figma Multi Env Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Figma Multi Env Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Figma Multi Env Setup this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.6kAutomated safety check: NotesMIT
Io Figmagridaco/grida2.7k—~2.2kAutomated safety check: NotesApache-2.0
SetupWellApp-ai/Well345—~1kAutomated safety check: NotesMIT
Figma Explorebitovi/ai-enablement-prompts121—~1.1kAutomated safety check: NotesMIT
Figma Comment Fix Loophashgraph-online/awesome-codex-plugins1.3k—~4.8kAutomated safety check: PassMIT
Pp Figmamvanhorn/printing-press-library2.1k—~4.3kAutomated safety check: NotesApache-2.0

Similar skills

  • Io Figma

    gridaco/grida

    Guides work on the Figma I/O package (@grida/io-figma, packages/grida-canvas-io-figma/).

    2.7k GitHub stars~2.2k tokensUpdated yesterday
    Backend & APIsAuto-check: notes
  • Setup

    WellApp-ai/Well

    One-time environment setup for new team members. An agent skill from WellApp-ai/Well.

    345 GitHub stars~1k tokensUpdated 3 days ago
    DevOps & CloudAuto-check: notes
  • Figma Explore

    bitovi/ai-enablement-prompts

    Explore a Figma file to discover all pages, components, and component sets using the Figma REST API.

    121 GitHub stars~1.1k tokensUpdated 1 mo ago
    Backend & APIsAuto-check: notes
  • Figma Comment Fix Loop

    hashgraph-online/awesome-codex-plugins

    Comment-to-fix pipeline for Figma. An agent skill from hashgraph-online/awesome-codex-plugins.

    1.3k GitHub stars~4.8k tokensUpdated today
    Backend & APIsAuto-check passed
  • Pp Figma

    mvanhorn/printing-press-library

    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…

    2.1k GitHub stars~4.3k tokensUpdated yesterday
    Backend & APIsAuto-check: notes
  • Official

    A skill your agent uses when the operator wants a hero or meta image for a Prisma blog post; asks to create or generate a blog hero, cover, social card, Open Graph, or YouTube image; mentions cover…

    1.1k GitHub stars~6.9k tokensUpdated today
    DatabasesAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated yesterday
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Figma Multi Env Setup

What does Figma Multi Env Setup do?

Configure Figma API access across dev, staging, and production environments. Figma Multi Env Setup is an agent skill from jeremylongshore/tons-of-skills-marketplace. Configure Figma API access across dev, staging, and production environments.

When should I use Figma Multi Env Setup?

Figma Multi Env Setup fits situations like: setting up per-environment tokens; managing multiple Figma files; isolating development from production Figma resources; with phrases like figma environments.

How do I install Figma Multi Env Setup in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill figma-multi-env-setup -a claude-code`. Or copy the skill folder (skills/.curated/figma-multi-env-setup in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/figma-multi-env-setup in your project. Claude Code loads it when a task matches its description.

How do I install Figma Multi Env Setup in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill figma-multi-env-setup -a codex`. Or copy the skill folder (skills/.curated/figma-multi-env-setup in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/figma-multi-env-setup in your project. Codex loads it when a task matches its description.

Can I use Figma Multi Env Setup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill figma-multi-env-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/figma-multi-env-setup, .gemini/skills/figma-multi-env-setup, .github/skills/figma-multi-env-setup and .opencode/skills/figma-multi-env-setup in your project.

What does Figma Multi Env Setup need to run?

Going by SKILL.md and its folder, Figma Multi Env Setup needs the command-line tools its instructions call (gcloud, gh and node) and credentials named FIGMA_FILE_KEY. Our summary lists: A credential in FIGMA_FILE_KEY. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(gcloud:*), Bash(vault:*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Figma Multi Env Setup access the network?

SKILL.md names 4 domains. In commands or code: api.figma.com; the agent is likely to contact it when it follows the instructions. As links in the text: developers.figma.com, 12factor.net and docs.github.com. This is read from the text; nothing was executed.

Is Figma Multi Env Setup safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Figma Multi Env Setup use?

Figma Multi Env Setup is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Figma Multi Env Setup use?

About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.2k tokens, read only when the agent opens those files.

What are the alternatives to Figma Multi Env Setup?

Skills that share tags, products or a category with Figma Multi Env Setup: Io Figma (gridaco/grida, 2.7k stars), Setup (WellApp-ai/Well, 345 stars), Figma Explore (bitovi/ai-enablement-prompts, 121 stars) and Figma Comment Fix Loop (hashgraph-online/awesome-codex-plugins, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Figma Multi Env Setup?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.