figma-install-auth
Skill by jeremylongshore
Sets up authentication for the Figma REST API using personal access tokens or OAuth 2.0. Aimed at developers connecting scripts or user-facing apps to Figma.
Install figma-install-auth
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/figma-install-auth ~/.claude/skills/figma-install-authRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/figma-install-auth ~/.gemini/antigravity-cli/skills/figma-install-authAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill walks through setting up authentication for the Figma REST API. It covers two methods: personal access tokens for scripts and server-side tools, and OAuth 2.0 for apps that act on behalf of Figma users. It explains how to generate a token and choose scopes, store credentials in a .env file, and verify the connection by calling the /v1/me endpoint. All requests go to api.figma.com.
For OAuth, the skill shows how to build the authorization URL, exchange an authorization code for an access token, and refresh expired tokens. It also includes a small reusable client wrapper that adds the X-Figma-Token header to requests. The skill is aimed at developers connecting Figma to their own scripts or user-facing apps, and it recommends running figma-hello-world after auth succeeds.
Written from the project's SKILL.md and checked against it.
What it can do
- Generate personal access tokenWalks through creating a Figma personal access token and assigning scopes in settings.
- Store credentialsShows how to keep the token and file key in a .env file excluded from git.
- Verify connectionCalls the /v1/me endpoint with curl or TypeScript to confirm the token works.
- OAuth 2.0 flowBuilds the Figma authorization URL and exchanges the code for an access token.
- Refresh tokensShows how to request a new access token using a refresh token.
- Reusable client wrapperProvides a fetch helper that adds the Figma token header to API requests.
What you need
- Figma account (Free, Professional, or Enterprise)
- Node.js 18+ for JS/TS integrations
- Figma file key
- Figma OAuth client ID and client secret for the OAuth flow
Try asking
- Set up my Figma personal access token and verify it works
- Build an OAuth 2.0 flow so Figma users can sign in to my app
- Create a reusable Figma API client that adds my token to requests
Good to know
- Personal access tokens expire after a maximum of 90 days.
- OAuth authorization codes must be exchanged within 30 seconds.
- A personal access token is shown only once when generated.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/figma-install-auth/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBash(npm:*)Bash(curl:*)Grep
-
SKILL.md6 KB -
references/errors.md852 B -
references/examples.md832 B -
references/generate-a-personal-access-token.md1 KB -
references/oauth-2-0-for-user-facing-apps.md2 KB
Show all 7 files
-
references/store-credentials-securely.md498 B -
references/verify-connection.md800 B
Alternatives to figma-install-auth
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
figma-install-auth: common questions
How long does a Figma personal access token last?
The source says PATs expire after a maximum of 90 days. An expired or revoked token returns an Invalid token error, and a new one must be generated.
Which scopes can a Figma token have?
The source lists scopes for file content, file comments, dev resources, variables, and webhooks. Each scope is set to read or write access as listed in the table.
When should I use OAuth instead of a personal access token?
The source says OAuth 2.0 is for apps that need to act on behalf of other Figma users. Scripts and server-side tools use personal access tokens.
How do I install figma-install-auth?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is figma-install-auth free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is figma-install-auth safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to figma-install-auth?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
