figma-multi-env-setup

Featured

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".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 | Environment | PAT Scopes | Figma File | Cache TTL | |-------------|-----------|------------|-----------| | Development | `file_content:read` | Copy of design file | 10s (fast iteration) | | Staging | `file_content:read`, `file_comments:read` | Staging branch/file | 60s | | Production | `file_content:read`, `webhooks:write` | Production design file | 300s | ### 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, }, ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category