사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/southleft/skills-for-figma --skill library-variables-figma시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
library-variables-figma — discover & import team-library variables
Browse the variables published by libraries the current file subscribes to, then import the ones you need. Imported variables get a local id that behaves like any local variable (bind it, read it, reference it).
Skill boundaries
- `use_figma` rules — load the official `figma-use` skill first; it is the full Figma Plugin API reference. Essentials these scripts rely on: plain JS with top-level
await+return(no IIFE, nofigma.closePlugin();console.logis not returned), inputs inlined asconstat the top of each script, colors in 0–1 range, load fonts before any text op,await figma.getNodeByIdAsync(...), and atomic errors (a failed script applies nothing — read the error, fix, retry). - Local (non-library) variables →
export-tokens-figma,manage-variables-figma.
Workflow
- Discover. Run `scripts/list-library-variables.js` via
use_figma (skillNames: "library-variables-figma"). Optionally set the LIBRARY_NAME / COLLECTION_NAME / TYPE filters. It returns each subscribed collection and the key of every variable in it.
- Import. Put the variable
key(s) into
`scripts/import-library-variable.js` and run it. It returns the new localId for each. Re-importing is idempotent (same local id).
- Use. Bind the imported variable to node properties or reference it from local semantic tokens
(see figma-use / manage-variables-figma for binding).
Notes
- Only subscribed libraries appear. If a collection is missing, enable the library in the file's
library settings first (a manual Figma step).
getVariablesInLibraryCollectionAsynctakes the collection key, not its id.- Library variables are read-only references to the source — edit values in the library file, not
here.


