Loading...
Loading...
Analyze a Figma file via the Figma REST API and generate an interactive design knowledge graph (pages, screens, components, component sets, instances, design tokens) with a kind:"design" dashboard.
npx skill4agent add egonex-ai/understand-anything understand-figmaFIGMA_TOKENSet a Figma token first: create one at figma.com/settings, then.export FIGMA_TOKEN=<token>
Security: the token is read only from the environment and travels only in therequest header. Never write it to the graph,X-Figma-Token, logs, or intermediate files. This skill makes outbound calls tometa.json— unlikeapi.figma.com, it is not fully offline. Tell the user this once./understand
$ARGUMENTS--language <lang>PROJECT_ROOT$UA_DIRUA_DIR="$PROJECT_ROOT/$([ -d "$PROJECT_ROOT/.understand-anything" ] && echo .understand-anything || echo .ua)".understand-anything/.ua/$UA_DIR$PROJECT_ROOTPLUGIN_ROOT/understandpackages/core/dist/figma/index.jscd "$PLUGIN_ROOT" && (pnpm install --frozen-lockfile 2>/dev/null || pnpm install) && pnpm --filter @understand-anything/core buildmkdir -p $UA_DIR/intermediate<SKILL_DIR>FIGMA_TOKEN="$FIGMA_TOKEN" node <SKILL_DIR>/figma-scan.mjs "$PROJECT_ROOT" "<url-or-key>"$UA_DIR/intermediate/scan-manifest.jsonIf the scan prints, report "Design graph is already up to date for this Figma file version" and STOP. To force a full rebuild, re-run withUP_TO_DATEset in the environment.UNDERSTAND_FIGMA_FORCE=1
scan-manifest.jsondesign-analyzeragents/design-analyzer.mdidtypenamefigmaMeta$INTERMEDIATE_DIR = $UA_DIR/intermediateanalysis-batch-<N>.json$LANGUAGE_DIRECTIVE--language/understandnode <SKILL_DIR>/figma-merge.mjs "$PROJECT_ROOT"scan-manifest.jsonanalysis-batch-*.jsonmergeDesignGraphkind:"design"knowledge-graph.jsonmeta.jsonauto-correctedscan-manifest.jsonINTER="$UA_DIR/intermediate"
find "$INTER" -mindepth 1 -maxdepth 1 -not -name 'scan-manifest.json' -exec rm -rf {} +$UA_DIR/knowledge-graph.json/understand-dashboard