[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75N9SE5TMT74ABYKX80THGP":3,"skill-same:01M75N9SE5TMT74ABYKX80THGP":115},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M75N9SE5TMT74ABYKX80THGP","figma-generate-library",null,"Build or update a professional-grade design system in Figma from a codebase. Use when the user wants to create variables\u002Ftokens, build component libraries, create individual components with proper variant sets and variable bindings, set up theming (light\u002Fdark modes), document foundations, or reconcile gaps between code and Figma. Also use when the user asks to create or generate any component in Figma — even a single one — since components require proper variable foundations, variant states, and design token bindings to be production-quality. This skill teaches WHAT to build and in WHAT ORDER — it complements the `figma-use` skill which teaches HOW to call the Plugin API. Both skills should be loaded together.","Kushal9889\u002Fclaude-plugins","Kushal9889","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F234108364?v=4","01M75N3MJASY98ADCZ0RNAC66K","Kushal Gaddamwar","01M75N3MK1VKFXDPK7H6DV9Y2Z",2,"MIT","https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: figma-generate-library\ndescription: \"Build or update a professional-grade design system in Figma from a codebase. Use when the user wants to create variables\u002Ftokens, build component libraries, create individual components with proper variant sets and variable bindings, set up theming (light\u002Fdark modes), document foundations, or reconcile gaps between code and Figma. Also use when the user asks to create or generate any component in Figma — even a single one — since components require proper variable foundations, variant states, and design token bindings to be production-quality. This skill teaches WHAT to build and in WHAT ORDER — it complements the `figma-use` skill which teaches HOW to call the Plugin API. Both skills should be loaded together.\"\ndisable-model-invocation: false\n---\n\n# Design System Builder — Figma MCP Skill\n\nBuild professional-grade design systems in Figma that match code. This skill orchestrates multi-phase workflows across 20–100+ `use_figma` calls, enforcing quality patterns from real-world design systems (Material 3, Polaris, Figma UI3, Simple DS).\n\n**Prerequisites**: The `figma-use` skill MUST also be loaded for every `use_figma` call. It provides Plugin API syntax rules (return pattern, page reset, ID return, font loading, color range). This skill provides design system domain knowledge and workflow orchestration.\n\n**Always include `figma-generate-library` in the comma-separated `skillNames` parameter when calling `use_figma` as part of this skill. If this skill was loaded via an MCP resource, you MUST prefix the name with `resource:` (e.g. `resource:figma-generate-library`).** This is a logging parameter — it does not affect execution.\n\n---\n\n## 1. The One Rule That Matters Most\n\n**This is NEVER a one-shot task.** Building a design system requires 20–100+ `use_figma` calls across multiple phases, with mandatory user checkpoints between them. Any attempt to create everything in one call WILL produce broken, incomplete, or unrecoverable results. Break every operation to the smallest useful unit, validate, get feedback, proceed.\n\n---\n\n## 2. Mandatory Workflow\n\nEvery design system build follows this phase order. Skipping or reordering phases causes structural failures that are expensive to undo.\n\n```\nPhase 0: DISCOVERY (always first — no use_figma writes yet)\n  0a. Analyze codebase → extract tokens, components, naming conventions\n  0b. Inspect Figma file → pages, variables, components, styles, existing conventions\n  0c. Search subscribed libraries → use search_design_system for reusable assets\n  0d. Lock v1 scope → agree on exact token set + component list before any creation\n  0e. Map code → Figma → resolve conflicts (code and Figma disagree = ask user)\n  ✋ USER CHECKPOINT: present full plan, await explicit approval\n\nPhase 1: FOUNDATIONS (tokens first — always before components)\n  1a. Create variable collections and modes\n  1b. Create primitive variables (raw values, 1 mode)\n  1c. Create semantic variables (aliased to primitives, mode-aware)\n  1d. Set scopes on ALL variables\n  1e. Set code syntax on ALL variables\n  1f. Create effect styles (shadows) and text styles (typography)\n  → Exit criteria: every token from the agreed plan exists, all scopes set, all code syntax set\n  ✋ USER CHECKPOINT: show variable summary, await approval\n\nPhase 2: FILE STRUCTURE (before components)\n  2a. Create page skeleton: Cover → Getting Started → Foundations → --- → Components → --- → Utilities\n  2b. Create foundations documentation pages (color swatches, type specimens, spacing bars)\n  → Exit criteria: all planned pages exist, foundations docs are navigable\n  ✋ USER CHECKPOINT: show page list + screenshot, await approval\n\nPhase 3: COMPONENTS (one at a time — never batch)\n  For EACH component (in dependency order: atoms before molecules):\n    3a. Create dedicated page\n    3b. Build base component with auto-layout + full variable bindings\n    3c. Create all variant combinations (combineAsVariants + grid layout)\n    3d. Add component properties (TEXT, BOOLEAN, INSTANCE_SWAP)\n    3e. Link properties to child nodes\n    3f. Add page documentation (title, description, usage notes)\n    3g. Validate: get_metadata (structure) + get_screenshot (visual)\n    3h. Optional: lightweight Code Connect mapping while context is fresh\n    → Exit criteria: variant count correct, all bindings verified, screenshot looks right\n    ✋ USER CHECKPOINT per component: show screenshot, await approval before next component\n\nPhase 4: INTEGRATION + QA (final pass)\n  4a. Finalize all Code Connect mappings\n  4b. Accessibility audit (contrast, min touch targets, focus visibility)\n  4c. Naming audit (no duplicates, no unnamed nodes, consistent casing)\n  4d. Unresolved bindings audit (no hardcoded fills\u002Fstrokes remaining)\n  4e. Final review screenshots of every page\n  ✋ USER CHECKPOINT: complete sign-off\n```\n\n---\n\n## 3. Critical Rules\n\n**Plugin API basics** (from use_figma skill — enforced here too):\n- Use `return` to send data back (auto-serialized). Do NOT wrap in IIFE or call closePlugin.\n- Return ALL created\u002Fmutated node IDs in every return value\n- Page context resets each call — always `await figma.setCurrentPageAsync(page)` at start. **Call it at most once per script**: each component or doc page is its own `use_figma` call. Never loop over `figma.root.children` and switch pages inside a mutating script — split that work into one focused call per target page (see [figma-use → gotchas.md → Set current page once per `use_figma` call](..\u002Ffigma-use\u002Freferences\u002Fgotchas.md#set-current-page-once-per-use_figma-call--split-multi-page-work-across-calls))\n- `figma.notify()` throws — never use it\n- Colors are 0–1 range, not 0–255\n- Font MUST be loaded before any text write: `await figma.loadFontAsync({family, style})`. Use `await figma.listAvailableFontsAsync()` to discover available fonts and verify exact style strings — if a load fails, query available fonts to find the correct name or a fallback.\n\n**Design system rules**:\n1. **Variables BEFORE components** — components bind to variables. No token = no component.\n2. **Inspect before creating** — run read-only `use_figma` to discover existing conventions. Match them.\n3. **One page per component** *(default)* — exception: tightly related families (e.g., Input + helpers) may share a page with clear section separation.\n4. **Bind visual properties to variables** *(default)* — fills, strokes, padding, radius, gap. Exceptions: intentionally fixed geometry (icon pixel-grid sizes, static dividers).\n5. **Scopes on every variable** — NEVER leave as `ALL_SCOPES`. Background: `FRAME_FILL, SHAPE_FILL`. Text: `TEXT_FILL`. Border: `STROKE_COLOR`. Spacing: `GAP`. Radii: `CORNER_RADIUS`. Primitives: `[]` (hidden).\n6. **Code syntax on every variable** — WEB syntax MUST use the `var()` wrapper: `var(--color-bg-primary)`, not `--color-bg-primary`. Use the actual CSS variable name from the codebase. ANDROID\u002FiOS do NOT use a wrapper.\n7. **Alias semantics to primitives** — `{ type: 'VARIABLE_ALIAS', id: primitiveVar.id }`. Never duplicate raw values in semantic layer.\n8. **Position variants after combineAsVariants** — they stack at (0,0). Manually grid-layout + resize.\n9. **INSTANCE_SWAP for icons** — never create a variant per icon. Cap variant matrices: if Size × Style × State > 30 combinations, split into sub-component.\n10. **Deterministic naming** — use consistent, unique node names for idempotent cleanup and resumability. Track created node IDs via return values and the state ledger.\n11. **No destructive cleanup** — cleanup scripts identify nodes by name convention or returned IDs, not by guessing.\n12. **Validate before proceeding** — never build on unvalidated work. `get_metadata` after every create, `get_screenshot` after each component.\n13. **NEVER parallelize `use_figma` calls** — Figma state mutations must be strictly sequential. Even if your tool supports parallel calls, never run two use_figma calls simultaneously.\n14. **Never hallucinate Node IDs** — always read IDs from the state ledger returned by previous calls. Never reconstruct or guess an ID from memory.\n15. **Use the helper scripts** — embed scripts from `scripts\u002F` into your use_figma calls. Don't write 200-line inline scripts from scratch.\n16. **Explicit phase approval** — at each checkpoint, name the next phase explicitly. \"looks good\" is not approval to proceed to Phase 3 if you asked about Phase 1.\n\n---\n\n## 4. State Management (Required for Long Workflows)\n\n> **`getPluginData()` \u002F `setPluginData()` are NOT supported in `use_figma`.** Use `getSharedPluginData()` \u002F `setSharedPluginData()` instead (these ARE supported), or use name-based lookups and the state ledger (returned IDs).\n\n| Entity type | Idempotency key | How to check existence |\n|-------------|----------------|----------------------|\n| Scene nodes (pages, frames, components) | `setSharedPluginData('dsb', 'key', value)` or unique name | `node.getSharedPluginData('dsb', 'key')` or `page.findOne(n => n.name === 'Button')` |\n| Variables | Name within collection | `(await figma.variables.getLocalVariablesAsync()).find(v => v.name === name && v.variableCollectionId === collId)` |\n| Styles | Name | `getLocalTextStyles().find(s => s.name === name)` |\n\nTag every created **scene node** immediately after creation:\n```javascript\nnode.setSharedPluginData('dsb', 'run_id', RUN_ID);        \u002F\u002F identifies this build run\nnode.setSharedPluginData('dsb', 'phase', 'phase3');        \u002F\u002F which phase created it\nnode.setSharedPluginData('dsb', 'key', 'component\u002Fbutton');\u002F\u002F unique logical key\n```\n\n**State persistence**: Do NOT rely solely on conversation context for the state ledger. Write it to disk:\n```\n\u002Ftmp\u002Fdsb-state-{RUN_ID}.json\n```\nRe-read this file at the start of every turn. In long workflows, conversation context will be truncated — the file is the source of truth.\n\nMaintain a state ledger tracking:\n```json\n{\n  \"runId\": \"ds-build-2024-001\",\n  \"phase\": \"phase3\",\n  \"step\": \"component-button\",\n  \"entities\": {\n    \"collections\": { \"primitives\": \"id:...\", \"color\": \"id:...\" },\n    \"variables\": { \"color\u002Fbg\u002Fprimary\": \"id:...\", \"spacing\u002Fsm\": \"id:...\" },\n    \"pages\": { \"Cover\": \"id:...\", \"Button\": \"id:...\" },\n    \"components\": { \"Button\": \"id:...\" }\n  },\n  \"pendingValidations\": [\"Button:screenshot\"],\n  \"completedSteps\": [\"phase0\", \"phase1\", \"phase2\", \"component-avatar\"]\n}\n```\n\n**Idempotency check** before every create: query by name + state ledger ID. If exists, skip or update — never duplicate.\n\n**Resume protocol**: at session start or after context truncation, run a read-only `use_figma` to scan all pages, components, variables, and styles by name to reconstruct the `{key → id}` map. Then re-read the state file from disk if available.\n\n**Continuation prompt** (give this to the user when resuming in a new chat):\n> \"I'm continuing a design system build. Run ID: {RUN_ID}. Load the figma-generate-library skill and resume from the last completed step.\"\n\n---\n\n## 5. Library Discovery and search_design_system — Reuse Decision Matrix\n\nSearch FIRST in Phase 0, then again immediately before each component creation.\n\n**Start with `get_libraries`** to understand what libraries are available before searching blindly:\n\n```\n\u002F\u002F Discover all libraries accessible to the file\nget_libraries({ fileKey })\n\u002F\u002F Returns:\n\u002F\u002F   libraries_added_to_file: [{ name, libraryKey, description, source }, ...]\n\u002F\u002F   libraries_available_to_add: [{ name, libraryKey, description, source }, ...]\n\u002F\u002F   libraries_available_to_add_next_offset: number | null\n```\n\nUse the returned `libraryKey` values to scope searches to specific libraries via `includeLibraryKeys`. This avoids noisy results when many libraries are available.\n\nIf `libraries_available_to_add_next_offset` is non-null, more org libraries are available — call `get_libraries` again with `offset` set to that value. Org libraries page in batches of 20; community UI kits only appear on the first page.\n\n```\n\u002F\u002F Search across all libraries (default)\nsearch_design_system({ query, fileKey, includeComponents: true, includeVariables: true, includeStyles: true })\n\n\u002F\u002F Search within a specific library only\nsearch_design_system({ query, fileKey, includeLibraryKeys: [\"lk-abc123...\"], includeComponents: true })\n```\n\n**Reuse if** all of these are true:\n- Component property API matches your needs (same variant axes, compatible types)\n- Token binding model is compatible (uses same or aliasable variables)\n- Naming conventions match the target file\n- Component is editable (not locked in a remote library you don't own)\n\n**Rebuild if** any of these:\n- API incompatibility (different property names, wrong variant model)\n- Token model incompatible (hardcoded values, different variable schema)\n- Ownership issue (can't modify the library)\n\n**Wrap if** visual match but API incompatible:\n- Import the library component as a nested instance inside a new wrapper component\n- Expose a clean API on the wrapper\n\n**Three-way priority**: local existing → subscribed library import → create new.\n\n---\n\n## 6. User Checkpoints\n\nMandatory. Design decisions require human judgment.\n\n| After | Required artifacts | Ask |\n|-------|-------------------|-----|\n| Discovery + scope lock | Token list, component list, gap analysis | \"Here's my plan. Approve before I create anything?\" |\n| Foundations | Variable summary (N collections, M vars, K modes), style list | \"All tokens created. Review before file structure?\" |\n| File structure | Page list + screenshot | \"Pages set up. Review before components?\" |\n| Each component | get_screenshot of component page | \"Here's [Component] with N variants. Correct?\" |\n| Each conflict (code ≠ Figma) | Show both versions | \"Code says X, Figma has Y. Which wins?\" |\n| Final QA | Per-page screenshots + audit report | \"Complete. Sign off?\" |\n\n**If user rejects**: fix before moving on. Never build on rejected work.\n\n---\n\n## 7. Naming Conventions\n\nMatch existing file conventions. If starting fresh:\n\n**Variables** (slash-separated):\n```\ncolor\u002Fbg\u002Fprimary     color\u002Ftext\u002Fsecondary    color\u002Fborder\u002Fdefault\nspacing\u002Fxs  spacing\u002Fsm  spacing\u002Fmd  spacing\u002Flg  spacing\u002Fxl  spacing\u002F2xl\nradius\u002Fnone  radius\u002Fsm  radius\u002Fmd  radius\u002Flg  radius\u002Ffull\ntypography\u002Fbody\u002Ffont-size    typography\u002Fheading\u002Fline-height\n```\n\n**Primitives**: `blue\u002F50` → `blue\u002F900`, `gray\u002F50` → `gray\u002F900`\n\n**Component names**: `Button`, `Input`, `Card`, `Avatar`, `Badge`, `Checkbox`, `Toggle`\n\n**Variant names**: `Property=Value, Property=Value` — e.g., `Size=Medium, Style=Primary, State=Default`\n\n**Page separators**: `---` (most common) or `——— COMPONENTS ———`\n\n> Full naming reference: [naming-conventions.md](references\u002Fnaming-conventions.md)\n\n---\n\n## 8. Token Architecture\n\n| Complexity | Pattern |\n|-----------|---------|\n| \u003C 50 tokens | Single collection, 2 modes (Light\u002FDark) |\n| 50–200 tokens | **Standard**: Primitives (1 mode) + Color semantic (Light\u002FDark) + Spacing (1 mode) + Typography (1 mode) |\n| 200+ tokens | **Advanced**: Multiple semantic collections, 4–8 modes (Light\u002FDark × Contrast × Brand). See M3 pattern in [token-creation.md](references\u002Ftoken-creation.md) |\n\nStandard pattern (recommended starting point):\n```\nCollection: \"Primitives\"    modes: [\"Value\"]\n  blue\u002F500 = #3B82F6, gray\u002F900 = #111827, ...\n\nCollection: \"Color\"         modes: [\"Light\", \"Dark\"]\n  color\u002Fbg\u002Fprimary → Light: alias Primitives\u002Fwhite, Dark: alias Primitives\u002Fgray-900\n  color\u002Ftext\u002Fprimary → Light: alias Primitives\u002Fgray-900, Dark: alias Primitives\u002Fwhite\n\nCollection: \"Spacing\"       modes: [\"Value\"]\n  spacing\u002Fxs = 4, spacing\u002Fsm = 8, spacing\u002Fmd = 16, ...\n```\n\n---\n\n## 9. Per-Phase Anti-Patterns\n\n**Phase 0 anti-patterns:**\n- ❌ Starting to create anything before scope is locked with user\n- ❌ Ignoring existing file conventions and imposing new ones\n- ❌ Skipping `search_design_system` before planning component creation\n\n**Phase 1 anti-patterns:**\n- ❌ Using `ALL_SCOPES` on any variable\n- ❌ Duplicating raw values in semantic layer instead of aliasing\n- ❌ Not setting code syntax (breaks Dev Mode and round-tripping)\n- ❌ Creating component tokens before agreeing on token taxonomy\n\n**Phase 2 anti-patterns:**\n- ❌ Skipping the cover page or foundations docs\n- ❌ Putting multiple unrelated components on one page\n\n**Phase 3 anti-patterns:**\n- ❌ Creating components before foundations exist\n- ❌ Hardcoding any fill\u002Fstroke\u002Fspacing\u002Fradius value in a component\n- ❌ Creating a variant per icon (use INSTANCE_SWAP instead)\n- ❌ Not positioning variants after combineAsVariants (they all stack at 0,0)\n- ❌ Building variant matrix > 30 without splitting (variant explosion)\n- ❌ Importing remote components then immediately detaching them\n\n**General anti-patterns:**\n- ❌ Retrying a failed script without understanding the error first\n- ❌ Using name-prefix matching for cleanup (deletes user-owned nodes)\n- ❌ Building on unvalidated work from the previous step\n- ❌ Skipping user checkpoints to \"save time\"\n- ❌ Parallelizing use_figma calls (always sequential)\n- ❌ Guessing\u002Fhallucinating node IDs from memory (always read from state ledger)\n- ❌ Writing massive inline scripts instead of using the provided helper scripts\n- ❌ Starting Phase 3 because the user said \"build the button\" without completing Phases 0-2\n\n---\n\n## 10. Reference Docs\n\nLoad on demand — each reference is authoritative for its phase:\n\nUse your file reading tool to read these docs when needed. Do not assume their contents from the filename.\n\n| Doc | Phase | Required \u002F Optional | Load when |\n|-----|-------|---------------------|-----------|\n| [discovery-phase.md](references\u002Fdiscovery-phase.md) | 0 | **Required** | Starting any build — codebase analysis + Figma inspection |\n| [token-creation.md](references\u002Ftoken-creation.md) | 1 | **Required** | Creating variables, collections, modes, styles |\n| [documentation-creation.md](references\u002Fdocumentation-creation.md) | 2 | Required | Creating cover page, foundations docs, swatches |\n| [component-creation.md](references\u002Fcomponent-creation.md) | 3 | **Required** | Creating any component or variant |\n| [code-connect-setup.md](references\u002Fcode-connect-setup.md) | 3–4 | Required | Setting up Code Connect or variable code syntax |\n| [naming-conventions.md](references\u002Fnaming-conventions.md) | Any | Optional | Naming anything — variables, pages, variants, styles |\n| [error-recovery.md](references\u002Ferror-recovery.md) | Any | **Required on error** | Script fails, multi-step workflow recovery, cleanup of abandoned workflow state |\n\n---\n\n## 11. Scripts\n\nReusable Plugin API helper functions. Embed in `use_figma` calls:\n\n| Script | Purpose |\n|--------|---------|\n| [inspectFileStructure.js](scripts\u002FinspectFileStructure.js) | Discover all pages, components, variables, styles; returns full inventory |\n| [createVariableCollection.js](scripts\u002FcreateVariableCollection.js) | Create a named collection with modes; returns `{collectionId, modeIds}` |\n| [createSemanticTokens.js](scripts\u002FcreateSemanticTokens.js) | Create aliased semantic variables from a token map |\n| [createComponentWithVariants.js](scripts\u002FcreateComponentWithVariants.js) | Build a component set from a variant matrix; handles grid layout |\n| [bindVariablesToComponent.js](scripts\u002FbindVariablesToComponent.js) | Bind design tokens to all component visual properties |\n| [createDocumentationPage.js](scripts\u002FcreateDocumentationPage.js) | Create a page with title + description + section structure |\n| [validateCreation.js](scripts\u002FvalidateCreation.js) | Verify created nodes match expected counts, names, structure |\n| [cleanupOrphans.js](scripts\u002FcleanupOrphans.js) | Remove orphaned nodes by name convention or state ledger IDs |\n| [rehydrateState.js](scripts\u002FrehydrateState.js) | Scan file for all pages, components, variables by name; returns full `{key → nodeId}` map for state reconstruction |\n","# Design System Builder — Figma MCP Skill\n\nBuild professional-grade design systems in Figma that match code. This skill orchestrates multi-phase workflows across 20–100+ `use_figma` calls, enforcing quality patterns from real-world design systems (Material 3, Polaris, Figma UI3, Simple DS).\n\n**Prerequisites**: The `figma-use` skill MUST also be loaded for every `use_figma` call. It provides Plugin API syntax rules (return pattern, page reset, ID return, font loading, color range). This skill provides design system domain knowledge and workflow orchestration.\n\n**Always include `figma-generate-library` in the comma-separated `skillNames` parameter when calling `use_figma` as part of this skill. If this skill was loaded via an MCP resource, you MUST prefix the name with `resource:` (e.g. `resource:figma-generate-library`).** This is a logging parameter — it does not affect execution.\n\n---\n\n## 1. The One Rule That Matters Most\n\n**This is NEVER a one-shot task.** Building a design system requires 20–100+ `use_figma` calls across multiple phases, with mandatory user checkpoints between them. Any attempt to create everything in one call WILL produce broken, incomplete, or unrecoverable results. Break every operation to the smallest useful unit, validate, get feedback, proceed.\n\n---\n\n## 2. Mandatory Workflow\n\nEvery design system build follows this phase order. Skipping or reordering phases causes structural failures that are expensive to undo.\n\n```\nPhase 0: DISCOVERY (always first — no use_figma writes yet)\n  0a. Analyze codebase → extract tokens, components, naming conventions\n  0b. Inspect Figma file → pages, variables, components, styles, existing conventions\n  0c. Search subscribed libraries → use search_design_system for reusable assets\n  0d. Lock v1 scope → agree on exact token set + component list before any creation\n  0e. Map code → Figma → resolve conflicts (code and Figma disagree = ask user)\n  ✋ USER CHECKPOINT: present full plan, await explicit approval\n\nPhase 1: FOUNDATIONS (tokens first — always before components)\n  1a. Create variable collections and modes\n  1b. Create primitive variables (raw values, 1 mode)\n  1c. Create semantic variables (aliased to primitives, mode-aware)\n  1d. Set scopes on ALL variables\n  1e. Set code syntax on ALL variables\n  1f. Create effect styles (shadows) and text styles (typography)\n  → Exit criteria: every token from the agreed plan exists, all scopes set, all code syntax set\n  ✋ USER CHECKPOINT: show variable summary, await approval\n\nPhase 2: FILE STRUCTURE (before components)\n  2a. Create page skeleton: Cover → Getting Started → Foundations → --- → Components → --- → Utilities\n  2b. Create foundations documentation pages (color swatches, type specimens, spacing bars)\n  → Exit criteria: all planned pages exist, foundations docs are navigable\n  ✋ USER CHECKPOINT: show page list + screenshot, await approval\n\nPhase 3: COMPONENTS (one at a time — never batch)\n  For EACH component (in dependency order: atoms before molecules):\n    3a. Create dedicated page\n    3b. Build base component with auto-layout + full variable bindings\n    3c. Create all variant combinations (combineAsVariants + grid layout)\n    3d. Add component properties (TEXT, BOOLEAN, INSTANCE_SWAP)\n    3e. Link properties to child nodes\n    3f. Add page documentation (title, description, usage notes)\n    3g. Validate: get_metadata (structure) + get_screenshot (visual)\n    3h. Optional: lightweight Code Connect mapping while context is fresh\n    → Exit criteria: variant count correct, all bindings verified, screenshot looks right\n    ✋ USER CHECKPOINT per component: show screenshot, await approval before next component\n\nPhase 4: INTEGRATION + QA (final pass)\n  4a. Finalize all Code Connect mappings\n  4b. Accessibility audit (contrast, min touch targets, focus visibility)\n  4c. Naming audit (no duplicates, no unnamed nodes, consistent casing)\n  4d. Unresolved bindings audit (no hardcoded fills\u002Fstrokes remaining)\n  4e. Final review screenshots of every page\n  ✋ USER CHECKPOINT: complete sign-off\n```\n\n---\n\n## 3. Critical Rules\n\n**Plugin API basics** (from use_figma skill — enforced here too):\n- Use `return` to send data back (auto-serialized). Do NOT wrap in IIFE or call closePlugin.\n- Return ALL created\u002Fmutated node IDs in every return value\n- Page context resets each call — always `await figma.setCurrentPageAsync(page)` at start. **Call it at most once per script**: each component or doc page is its own `use_figma` call. Never loop over `figma.root.children` and switch pages inside a mutating script — split that work into one focused call per target page (see [figma-use → gotchas.md → Set current page once per `use_figma` call](..\u002Ffigma-use\u002Freferences\u002Fgotchas.md#set-current-page-once-per-use_figma-call--split-multi-page-work-across-calls))\n- `figma.notify()` throws — never use it\n- Colors are 0–1 range, not 0–255\n- Font MUST be loaded before any text write: `await figma.loadFontAsync({family, style})`. Use `await figma.listAvailableFontsAsync()` to discover available fonts and verify exact style strings — if a load fails, query available fonts to find the correct name or a fallback.\n\n**Design system rules**:\n1. **Variables BEFORE components** — components bind to variables. No token = no component.\n2. **Inspect before creating** — run read-only `use_figma` to discover existing conventions. Match them.\n3. **One page per component** *(default)* — exception: tightly related families (e.g., Input + helpers) may share a page with clear section separation.\n4. **Bind visual properties to variables** *(default)* — fills, strokes, padding, radius, gap. Exceptions: intentionally fixed geometry (icon pixel-grid sizes, static dividers).\n5. **Scopes on every variable** — NEVER leave as `ALL_SCOPES`. Background: `FRAME_FILL, SHAPE_FILL`. Text: `TEXT_FILL`. Border: `STROKE_COLOR`. Spacing: `GAP`. Radii: `CORNER_RADIUS`. Primitives: `[]` (hidden).\n6. **Code syntax on every variable** — WEB syntax MUST use the `var()` wrapper: `var(--color-bg-primary)`, not `--color-bg-primary`. Use the actual CSS variable name from the codebase. ANDROID\u002FiOS do NOT use a wrapper.\n7. **Alias semantics to primitives** — `{ type: 'VARIABLE_ALIAS', id: primitiveVar.id }`. Never duplicate raw values in semantic layer.\n8. **Position variants after combineAsVariants** — they stack at (0,0). Manually grid-layout + resize.\n9. **INSTANCE_SWAP for icons** — never create a variant per icon. Cap variant matrices: if Size × Style × State > 30 combinations, split into sub-component.\n10. **Deterministic naming** — use consistent, unique node names for idempotent cleanup and resumability. Track created node IDs via return values and the state ledger.\n11. **No destructive cleanup** — cleanup scripts identify nodes by name convention or returned IDs, not by guessing.\n12. **Validate before proceeding** — never build on unvalidated work. `get_metadata` after every create, `get_screenshot` after each component.\n13. **NEVER parallelize `use_figma` calls** — Figma state mutations must be strictly sequential. Even if your tool supports parallel calls, never run two use_figma calls simultaneously.\n14. **Never hallucinate Node IDs** — always read IDs from the state ledger returned by previous calls. Never reconstruct or guess an ID from memory.\n15. **Use the helper scripts** — embed scripts from `scripts\u002F` into your use_figma calls. Don't write 200-line inline scripts from scratch.\n16. **Explicit phase approval** — at each checkpoint, name the next phase explicitly. \"looks good\" is not approval to proceed to Phase 3 if you asked about Phase 1.\n\n---\n\n## 4. State Management (Required for Long Workflows)\n\n> **`getPluginData()` \u002F `setPluginData()` are NOT supported in `use_figma`.** Use `getSharedPluginData()` \u002F `setSharedPluginData()` instead (these ARE supported), or use name-based lookups and the state ledger (returned IDs).\n\n| Entity type | Idempotency key | How to check existence |\n|-------------|----------------|----------------------|\n| Scene nodes (pages, frames, components) | `setSharedPluginData('dsb', 'key', value)` or unique name | `node.getSharedPluginData('dsb', 'key')` or `page.findOne(n => n.name === 'Button')` |\n| Variables | Name within collection | `(await figma.variables.getLocalVariablesAsync()).find(v => v.name === name && v.variableCollectionId === collId)` |\n| Styles | Name | `getLocalTextStyles().find(s => s.name === name)` |\n\nTag every created **scene node** immediately after creation:\n```javascript\nnode.setSharedPluginData('dsb', 'run_id', RUN_ID);        \u002F\u002F identifies this build run\nnode.setSharedPluginData('dsb', 'phase', 'phase3');        \u002F\u002F which phase created it\nnode.setSharedPluginData('dsb', 'key', 'component\u002Fbutton');\u002F\u002F unique logical key\n```\n\n**State persistence**: Do NOT rely solely on conversation context for the state ledger. Write it to disk:\n```\n\u002Ftmp\u002Fdsb-state-{RUN_ID}.json\n```\nRe-read this file at the start of every turn. In long workflows, conversation context will be truncated — the file is the source of truth.\n\nMaintain a state ledger tracking:\n```json\n{\n  \"runId\": \"ds-build-2024-001\",\n  \"phase\": \"phase3\",\n  \"step\": \"component-button\",\n  \"entities\": {\n    \"collections\": { \"primitives\": \"id:...\", \"color\": \"id:...\" },\n    \"variables\": { \"color\u002Fbg\u002Fprimary\": \"id:...\", \"spacing\u002Fsm\": \"id:...\" },\n    \"pages\": { \"Cover\": \"id:...\", \"Button\": \"id:...\" },\n    \"components\": { \"Button\": \"id:...\" }\n  },\n  \"pendingValidations\": [\"Button:screenshot\"],\n  \"completedSteps\": [\"phase0\", \"phase1\", \"phase2\", \"component-avatar\"]\n}\n```\n\n**Idempotency check** before every create: query by name + state ledger ID. If exists, skip or update — never duplicate.\n\n**Resume protocol**: at session start or after context truncation, run a read-only `use_figma` to scan all pages, components, variables, and styles by name to reconstruct the `{key → id}` map. Then re-read the state file from disk if available.\n\n**Continuation prompt** (give this to the user when resuming in a new chat):\n> \"I'm continuing a design system build. Run ID: {RUN_ID}. Load the figma-generate-library skill and resume from the last completed step.\"\n\n---\n\n## 5. Library Discovery and search_design_system — Reuse Decision Matrix\n\nSearch FIRST in Phase 0, then again immediately before each component creation.\n\n**Start with `get_libraries`** to understand what libraries are available before searching blindly:\n\n```\n\u002F\u002F Discover all libraries accessible to the file\nget_libraries({ fileKey })\n\u002F\u002F Returns:\n\u002F\u002F   libraries_added_to_file: [{ name, libraryKey, description, source }, ...]\n\u002F\u002F   libraries_available_to_add: [{ name, libraryKey, description, source }, ...]\n\u002F\u002F   libraries_available_to_add_next_offset: number | null\n```\n\nUse the returned `libraryKey` values to scope searches to specific libraries via `includeLibraryKeys`. This avoids noisy results when many libraries are available.\n\nIf `libraries_available_to_add_next_offset` is non-null, more org libraries are available — call `get_libraries` again with `offset` set to that value. Org libraries page in batches of 20; community UI kits only appear on the first page.\n\n```\n\u002F\u002F Search across all libraries (default)\nsearch_design_system({ query, fileKey, includeComponents: true, includeVariables: true, includeStyles: true })\n\n\u002F\u002F Search within a specific library only\nsearch_design_system({ query, fileKey, includeLibraryKeys: [\"lk-abc123...\"], includeComponents: true })\n```\n\n**Reuse if** all of these are true:\n- Component property API matches your needs (same variant axes, compatible types)\n- Token binding model is compatible (uses same or aliasable variables)\n- Naming conventions match the target file\n- Component is editable (not locked in a remote library you don't own)\n\n**Rebuild if** any of these:\n- API incompatibility (different property names, wrong variant model)\n- Token model incompatible (hardcoded values, different variable schema)\n- Ownership issue (can't modify the library)\n\n**Wrap if** visual match but API incompatible:\n- Import the library component as a nested instance inside a new wrapper component\n- Expose a clean API on the wrapper\n\n**Three-way priority**: local existing → subscribed library import → create new.\n\n---\n\n## 6. User Checkpoints\n\nMandatory. Design decisions require human judgment.\n\n| After | Required artifacts | Ask |\n|-------|-------------------|-----|\n| Discovery + scope lock | Token list, component list, gap analysis | \"Here's my plan. Approve before I create anything?\" |\n| Foundations | Variable summary (N collections, M vars, K modes), style list | \"All tokens created. Review before file structure?\" |\n| File structure | Page list + screenshot | \"Pages set up. Review before components?\" |\n| Each component | get_screenshot of component page | \"Here's [Component] with N variants. Correct?\" |\n| Each conflict (code ≠ Figma) | Show both versions | \"Code says X, Figma has Y. Which wins?\" |\n| Final QA | Per-page screenshots + audit report | \"Complete. Sign off?\" |\n\n**If user rejects**: fix before moving on. Never build on rejected work.\n\n---\n\n## 7. Naming Conventions\n\nMatch existing file conventions. If starting fresh:\n\n**Variables** (slash-separated):\n```\ncolor\u002Fbg\u002Fprimary     color\u002Ftext\u002Fsecondary    color\u002Fborder\u002Fdefault\nspacing\u002Fxs  spacing\u002Fsm  spacing\u002Fmd  spacing\u002Flg  spacing\u002Fxl  spacing\u002F2xl\nradius\u002Fnone  radius\u002Fsm  radius\u002Fmd  radius\u002Flg  radius\u002Ffull\ntypography\u002Fbody\u002Ffont-size    typography\u002Fheading\u002Fline-height\n```\n\n**Primitives**: `blue\u002F50` → `blue\u002F900`, `gray\u002F50` → `gray\u002F900`\n\n**Component names**: `Button`, `Input`, `Card`, `Avatar`, `Badge`, `Checkbox`, `Toggle`\n\n**Variant names**: `Property=Value, Property=Value` — e.g., `Size=Medium, Style=Primary, State=Default`\n\n**Page separators**: `---` (most common) or `——— COMPONENTS ———`\n\n> Full naming reference: [naming-conventions.md](references\u002Fnaming-conventions.md)\n\n---\n\n## 8. Token Architecture\n\n| Complexity | Pattern |\n|-----------|---------|\n| \u003C 50 tokens | Single collection, 2 modes (Light\u002FDark) |\n| 50–200 tokens | **Standard**: Primitives (1 mode) + Color semantic (Light\u002FDark) + Spacing (1 mode) + Typography (1 mode) |\n| 200+ tokens | **Advanced**: Multiple semantic collections, 4–8 modes (Light\u002FDark × Contrast × Brand). See M3 pattern in [token-creation.md](references\u002Ftoken-creation.md) |\n\nStandard pattern (recommended starting point):\n```\nCollection: \"Primitives\"    modes: [\"Value\"]\n  blue\u002F500 = #3B82F6, gray\u002F900 = #111827, ...\n\nCollection: \"Color\"         modes: [\"Light\", \"Dark\"]\n  color\u002Fbg\u002Fprimary → Light: alias Primitives\u002Fwhite, Dark: alias Primitives\u002Fgray-900\n  color\u002Ftext\u002Fprimary → Light: alias Primitives\u002Fgray-900, Dark: alias Primitives\u002Fwhite\n\nCollection: \"Spacing\"       modes: [\"Value\"]\n  spacing\u002Fxs = 4, spacing\u002Fsm = 8, spacing\u002Fmd = 16, ...\n```\n\n---\n\n## 9. Per-Phase Anti-Patterns\n\n**Phase 0 anti-patterns:**\n- ❌ Starting to create anything before scope is locked with user\n- ❌ Ignoring existing file conventions and imposing new ones\n- ❌ Skipping `search_design_system` before planning component creation\n\n**Phase 1 anti-patterns:**\n- ❌ Using `ALL_SCOPES` on any variable\n- ❌ Duplicating raw values in semantic layer instead of aliasing\n- ❌ Not setting code syntax (breaks Dev Mode and round-tripping)\n- ❌ Creating component tokens before agreeing on token taxonomy\n\n**Phase 2 anti-patterns:**\n- ❌ Skipping the cover page or foundations docs\n- ❌ Putting multiple unrelated components on one page\n\n**Phase 3 anti-patterns:**\n- ❌ Creating components before foundations exist\n- ❌ Hardcoding any fill\u002Fstroke\u002Fspacing\u002Fradius value in a component\n- ❌ Creating a variant per icon (use INSTANCE_SWAP instead)\n- ❌ Not positioning variants after combineAsVariants (they all stack at 0,0)\n- ❌ Building variant matrix > 30 without splitting (variant explosion)\n- ❌ Importing remote components then immediately detaching them\n\n**General anti-patterns:**\n- ❌ Retrying a failed script without understanding the error first\n- ❌ Using name-prefix matching for cleanup (deletes user-owned nodes)\n- ❌ Building on unvalidated work from the previous step\n- ❌ Skipping user checkpoints to \"save time\"\n- ❌ Parallelizing use_figma calls (always sequential)\n- ❌ Guessing\u002Fhallucinating node IDs from memory (always read from state ledger)\n- ❌ Writing massive inline scripts instead of using the provided helper scripts\n- ❌ Starting Phase 3 because the user said \"build the button\" without completing Phases 0-2\n\n---\n\n## 10. Reference Docs\n\nLoad on demand — each reference is authoritative for its phase:\n\nUse your file reading tool to read these docs when needed. Do not assume their contents from the filename.\n\n| Doc | Phase | Required \u002F Optional | Load when |\n|-----|-------|---------------------|-----------|\n| [discovery-phase.md](references\u002Fdiscovery-phase.md) | 0 | **Required** | Starting any build — codebase analysis + Figma inspection |\n| [token-creation.md](references\u002Ftoken-creation.md) | 1 | **Required** | Creating variables, collections, modes, styles |\n| [documentation-creation.md](references\u002Fdocumentation-creation.md) | 2 | Required | Creating cover page, foundations docs, swatches |\n| [component-creation.md](references\u002Fcomponent-creation.md) | 3 | **Required** | Creating any component or variant |\n| [code-connect-setup.md](references\u002Fcode-connect-setup.md) | 3–4 | Required | Setting up Code Connect or variable code syntax |\n| [naming-conventions.md](references\u002Fnaming-conventions.md) | Any | Optional | Naming anything — variables, pages, variants, styles |\n| [error-recovery.md](references\u002Ferror-recovery.md) | Any | **Required on error** | Script fails, multi-step workflow recovery, cleanup of abandoned workflow state |\n\n---\n\n## 11. Scripts\n\nReusable Plugin API helper functions. Embed in `use_figma` calls:\n\n| Script | Purpose |\n|--------|---------|\n| [inspectFileStructure.js](scripts\u002FinspectFileStructure.js) | Discover all pages, components, variables, styles; returns full inventory |\n| [createVariableCollection.js](scripts\u002FcreateVariableCollection.js) | Create a named collection with modes; returns `{collectionId, modeIds}` |\n| [createSemanticTokens.js](scripts\u002FcreateSemanticTokens.js) | Create aliased semantic variables from a token map |\n| [createComponentWithVariants.js](scripts\u002FcreateComponentWithVariants.js) | Build a component set from a variant matrix; handles grid layout |\n| [bindVariablesToComponent.js](scripts\u002FbindVariablesToComponent.js) | Bind design tokens to all component visual properties |\n| [createDocumentationPage.js](scripts\u002FcreateDocumentationPage.js) | Create a page with title + description + section structure |\n| [validateCreation.js](scripts\u002FvalidateCreation.js) | Verify created nodes match expected counts, names, structure |\n| [cleanupOrphans.js](scripts\u002FcleanupOrphans.js) | Remove orphaned nodes by name convention or state ledger IDs |\n| [rehydrateState.js](scripts\u002FrehydrateState.js) | Scan file for all pages, components, variables by name; returns full `{key → nodeId}` map for state reconstruction |\n",{"name":5,"description":7,"disable-model-invocation":20},"main","e49a897c0789a26d4e8cf16b3e0322b9032f584a","figma\u002Fskills\u002Ffigma-generate-library",0,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins","https:\u002F\u002Fgithub.com\u002FKushal9889","https:\u002F\u002Fkushal-portfolio-223.netlify.app","AI Engineer · MSCS @ BU · Open PRs: vLLM #56846, LlamaIndex #23053 · Reported deepagents #4846 (maintainer fix #4925)","2026-11-13 01:03:25",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Kushal9889\u002Fclaude-plugins --skill figma-generate-library",{"tool":39,"command":40},"bunx","bunx skills add Kushal9889\u002Fclaude-plugins --skill figma-generate-library",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Kushal9889\u002Fclaude-plugins --skill figma-generate-library","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002FSKILL.md",true,[47,53,57,61,65,69,73,77,83,87,91,95,99,103,107,111],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fcode-connect-setup.md","REFERENCE","参考文档",12456,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Freferences\u002Fcode-connect-setup.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fcomponent-creation.md",40574,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Freferences\u002Fcomponent-creation.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fdiscovery-phase.md",21558,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Freferences\u002Fdiscovery-phase.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fdocumentation-creation.md",29037,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Freferences\u002Fdocumentation-creation.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Ferror-recovery.md",23228,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Freferences\u002Ferror-recovery.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fnaming-conventions.md",19003,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Freferences\u002Fnaming-conventions.md",{"path":74,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Ftoken-creation.md",35140,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Freferences\u002Ftoken-creation.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002FbindVariablesToComponent.js","SCRIPT","脚本",4026,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Fscripts\u002FbindVariablesToComponent.js",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002FcleanupOrphans.js",4385,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Fscripts\u002FcleanupOrphans.js",{"path":88,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002FcreateComponentWithVariants.js",4943,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Fscripts\u002FcreateComponentWithVariants.js",{"path":92,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":93,"sourceHtmlUrl":94},"scripts\u002FcreateDocumentationPage.js",5230,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Fscripts\u002FcreateDocumentationPage.js",{"path":96,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":97,"sourceHtmlUrl":98},"scripts\u002FcreateSemanticTokens.js",3891,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Fscripts\u002FcreateSemanticTokens.js",{"path":100,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":101,"sourceHtmlUrl":102},"scripts\u002FcreateVariableCollection.js",1785,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Fscripts\u002FcreateVariableCollection.js",{"path":104,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002FinspectFileStructure.js",3910,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Fscripts\u002FinspectFileStructure.js",{"path":108,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002FrehydrateState.js",3482,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Fscripts\u002FrehydrateState.js",{"path":112,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":113,"sourceHtmlUrl":114},"scripts\u002FvalidateCreation.js",2718,"https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ffigma\u002Fskills\u002Ffigma-generate-library\u002Fscripts\u002FvalidateCreation.js",[116,123,129,135,142,149],{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":122},"01M78TAEHR7PW92YHTBFTJRMYP","higgsfield-skills","https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Finstalled\u002Fhiggsfield-skills\u002Fskills\u002Fhiggsfield-skills\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":124,"name":125,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":122},"01M78TAB9MCR7QH3NZJKH5PJFJ","cutaway","https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Finstalled\u002Fcutaway\u002Fskills\u002Fcutaway\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":122},"01M78TA9YK7YE80960SFP5QJ6D","cracked","https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Finstalled\u002Fcracked\u002Fskills\u002Fcracked\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":19},"01M75NWKDRSD7GPTBD80S8P5KW","spec","Create, amend, or backprop bugs into SPEC.md at repo root. Sole mutator\nof the project spec. Triggers when the user asks to write a spec, start\na new spec, distill a spec from existing code, add invariants, amend\nsections (§G, §C, §I, §V, §T, §B), or record a bug via backprop.\nCommon phrasings: \"write the spec for...\", \"new spec\", \"bug: ...\",\n\"amend §V.3\", \"distill spec from code\", \"spec this idea\". Reads and\nfollows FORMAT.md for the caveman encoding rules and pipe-table shape\nof §T and §B.","https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fworkflow\u002Fskills\u002Fspec\u002FSKILL.md",[],[],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":19},"01M75NWFNN2NFMPZY5X9Q2DTBT","check","Read-only drift detector. Diffs SPEC.md against current code and reports\nviolations grouped by severity. Writes nothing — suggests remedies via\nthe spec or build skills but never invokes them. Triggers when the user\nasks to check drift, audit the spec, verify invariants, or ask whether\ncode still matches the spec. Phrasings: \"check drift\", \"audit the spec\",\n\"does the code still match §V\", \"check invariants\", \"spec vs code\".","https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fworkflow\u002Fskills\u002Fcheck\u002FSKILL.md",[],[],{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":19},"01M75NWCP6RRA3PFBPN8B94FYE","backprop","Bug → spec protocol. When a bug is found or a test fails, trace the cause,\ndecide whether a new §V invariant would catch recurrence, append to §B.\nThis is the one non-obvious thing SDD does that plan-then-execute doesn't.\nTriggers on test failure, bug report, post-mortem, or explicit user ask.","https:\u002F\u002Fgithub.com\u002FKushal9889\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fworkflow\u002Fskills\u002Fbackprop\u002FSKILL.md",[],[]]