[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GKHWB3QD7V939XAMBXVEWT":3,"skill-same:01M6GKHWB3QD7V939XAMBXVEWT":67},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":30,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M6GKHWB3QD7V939XAMBXVEWT","figma-ingest",null,"Use when a Figma frame URL has to become kivo-creator section specs - reading the frame through the official Figma MCP server in the main session (get_metadata for the tree, get_design_context per section, get_variable_defs for tokens, get_screenshot to look, get_code_connect_map for mapped components), writing exact or inferred values only, and stopping with connection steps when the server is missing. For HTML sources use html-ingest; for creating Code Connect mappings use code-connect.","hekivo\u002Fkivo-wise","hekivo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F278159278?v=4","01M6GKH8S3Z4CAJ9RRR607G1WJ","Hekivo","01M6GKH8XNM7HTVF4DC86MA8RG",14,"MIT","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fplugins\u002Fkivo-creator\u002Fskills\u002Ffigma-ingest\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"figma ingest","figma","ingest","do","tree","sources","missing","tokens","get","map","pixel","main","design","images","only","diff","session","environment","official","MCP","2026-11-10 10:12:30",false,"---\nname: figma-ingest\ndescription: Use when a Figma frame URL has to become kivo-creator section specs - reading the frame through the official Figma MCP server in the main session (get_metadata for the tree, get_design_context per section, get_variable_defs for tokens, get_screenshot to look, get_code_connect_map for mapped components), writing exact or inferred values only, and stopping with connection steps when the server is missing. For HTML sources use html-ingest; for creating Code Connect mappings use code-connect.\nlicense: MIT\ncompatibility: Main session only (subagents do not inherit MCP servers). Needs the official Figma MCP server; reference images for the pixel diff also need FIGMA_TOKEN in the environment. Node 20+.\n---\n\n# Figma ingest\n\nRead a Figma frame into neutral section specs. The MCP output is a reference to read, never code to copy: its arbitrary classes and literal values are not carried into the project.\n\n## When to use\n\n- A `figma.com\u002Fdesign\u002F...` (or `\u002Ffile\u002F`) link with a `node-id`, from `\u002Fcreator` or on its own.\n- Not for HTML (`html-ingest`) and not for writing Code Connect mappings (`code-connect`).\n\n## Inputs required\n\n1. The frame URL with `node-id` (a page link without it is ambiguous: ask for the frame).\n2. The Figma MCP tools in this session. Their names end in `get_metadata`, `get_design_context`, `get_variable_defs`, `get_screenshot` and `get_code_connect_map`; the prefix depends on how the server was connected.\n3. The target project root with `.roots-stack.json`, and the kivo-creator plugin root (two levels above this skill's folder).\n4. Optional: `FIGMA_TOKEN` (a Figma personal access token) exported in the shell. **Without it, reference images cannot be fetched**: the specs are still written, but the pixel diff has nothing to compare against.\n\n## Procedure\n\n1. **Check the server.** If none of the tools above is available, stop and say: the official Figma MCP server is not connected in this session; add the remote server `https:\u002F\u002Fmcp.figma.com\u002Fmcp` (HTTP transport) in the assistant's MCP settings, or enable the local server of the Figma desktop app, sign in, and start a new session. Do not fall back to screenshots, the REST API or guessing.\n2. **Metadata.** Call `get_metadata` with the file key and node id from the URL (`node-id=1-2` means `1:2`). Save the response text to `.creator\u002Ffigma-metadata.xml`, then:\n\n   ```bash\n   node \u003Ckivo-creator>\u002Fscripts\u002Ffigma-sections.mjs --url=\"\u003Cfigma URL>\" --metadata=.creator\u002Ffigma-metadata.xml --project=.\n   ```\n\n   It creates `.creator\u002F\u003Crun>\u002F` with `figma-sections.json`: one entry per top-level frame (`id`, `nodeId`, `kind` from the layer name, `chrome`, geometry).\n3. **Variables.** Call `get_variable_defs` for the frame; save the result as `.creator\u002F\u003Crun>\u002Ffigma-variables.json`.\n4. **Code Connect.** Call `get_code_connect_map` for the frame; save it as `.creator\u002F\u003Crun>\u002Ffigma-code-connect.json`. When a section's node is mapped to a block in the catalog (`node \u003Ckivo-creator>\u002Fscripts\u002Fmatch.mjs --catalog --project=.`), set `\"codeConnect\": { \"block\": \"\u003Cblock name>\", \"component\": \"\u003Ccomponent name>\" }` in that section's spec.\n5. **One spec per section.** For each non-chrome entry, call `get_design_context` with its `nodeId` (and `get_screenshot` when you need to look at it), then write `.creator\u002F\u003Crun>\u002Fspecs\u002F\u003Cid>.json` following `schemas\u002Fsection-spec.schema.json`:\n   - `source`: `{ \"kind\": \"figma\", \"ref\": \"\u003CnodeId>\", \"url\": \"\u003Cfigma URL>\" }`; `kind` from `figma-sections.json`, corrected when the content clearly says otherwise (add a note).\n   - `slots`: literal texts, image and link targets that appear in the design context are `exact`; a repeated card becomes one `list` slot named `items`. Leave out anything that is not in the design.\n   - `layout`: columns, alignment, media position and repeat count from the geometry and auto layout; mark it in `notes` as inferred.\n   - `tokens`: colours, font family, size, weight, line height and padding per role (`section`, `heading`, `text`, `link`, `button`), `exact` when the design context or a variable gives the value. Write the value as CSS (`#0a84ff`, `56px`); never copy a Tailwind class from the reference code.\n   - `refs`: leave `{}`; step 7 fills it.\n   Chrome entries get a spec with `\"chrome\": true`, empty `slots` and `tokens`, `layout` `{ \"columns\": 1, \"align\": \"left\", \"media\": \"none\", \"repeat\": 0 }` and the note \"chrome: not read\". They are never matched.\n6. **Validate**: `node \u003Ckivo-creator>\u002Fscripts\u002Fvalidate-spec.mjs .creator\u002F\u003Crun>\u002Fspecs`.\n7. **References.** The MCP screenshot reaches you, not the disk, so pixel references come from the Figma REST API and need `FIGMA_TOKEN`.\n   - With the token exported: `node \u003Ckivo-creator>\u002Fscripts\u002Ffigma-ref.mjs --run=.creator\u002F\u003Crun>` saves one PNG per section at the frame's width and records it in each spec's `refs`.\n   - Without it (exit code 2, `FIGMA_TOKEN is not set`): say plainly that reference images cannot be fetched, so the pixel diff will report \"no reference\" for every section and only the style check and lint will run. Ask the person to export a token in their shell if they want the diff.\n   - The token is read from the environment only. Never ask for it in the conversation, never pass it on a command line, never print or echo it.\n8. Hand over to `section-matching`.\n\n## Verification\n\n- `validate-spec.mjs` prints `ok` for every spec.\n- Every slot value can be found in a saved MCP response or in the design context you read.\n- No Tailwind class, `px-[…]` value or `var(--…)` fallback from the reference code appears in any spec.\n- The reply says whether reference images were saved; it never claims references exist when `figma-ref.mjs` did not run.\n\n## Failure modes\n\n| Symptom | Cause | Fix |\n|---|---|---|\n| Figma tools missing | Server not connected, or running inside a subagent | Stop with the connection steps; run in the main session |\n| `get_metadata` returns one huge frame | The link points at a page or a wrapper | Ask for the frame link, or pass the inner frame's node id |\n| Design context truncated | Very large section | Call it for the children of that section and merge the slots |\n| `FIGMA_TOKEN is not set` | No token in the environment | Reference images cannot be fetched; ask the person to export one, or accept a report without pixel diff |\n| `Figma images API answered 403` | Token expired or without access to the file | Ask for a token with read access to that file; the specs stay valid |\n| Values only in the screenshot | Raster image or flattened text | Leave them out; note that the source is a raster |\n\n## Escalation\n\nAsk when the frame has variants for several breakpoints (which one is canonical), when text is rasterised, or when a component mapped by Code Connect points at code that does not exist in the project.\n","# Figma ingest\n\nRead a Figma frame into neutral section specs. The MCP output is a reference to read, never code to copy: its arbitrary classes and literal values are not carried into the project.\n\n## When to use\n\n- A `figma.com\u002Fdesign\u002F...` (or `\u002Ffile\u002F`) link with a `node-id`, from `\u002Fcreator` or on its own.\n- Not for HTML (`html-ingest`) and not for writing Code Connect mappings (`code-connect`).\n\n## Inputs required\n\n1. The frame URL with `node-id` (a page link without it is ambiguous: ask for the frame).\n2. The Figma MCP tools in this session. Their names end in `get_metadata`, `get_design_context`, `get_variable_defs`, `get_screenshot` and `get_code_connect_map`; the prefix depends on how the server was connected.\n3. The target project root with `.roots-stack.json`, and the kivo-creator plugin root (two levels above this skill's folder).\n4. Optional: `FIGMA_TOKEN` (a Figma personal access token) exported in the shell. **Without it, reference images cannot be fetched**: the specs are still written, but the pixel diff has nothing to compare against.\n\n## Procedure\n\n1. **Check the server.** If none of the tools above is available, stop and say: the official Figma MCP server is not connected in this session; add the remote server `https:\u002F\u002Fmcp.figma.com\u002Fmcp` (HTTP transport) in the assistant's MCP settings, or enable the local server of the Figma desktop app, sign in, and start a new session. Do not fall back to screenshots, the REST API or guessing.\n2. **Metadata.** Call `get_metadata` with the file key and node id from the URL (`node-id=1-2` means `1:2`). Save the response text to `.creator\u002Ffigma-metadata.xml`, then:\n\n   ```bash\n   node \u003Ckivo-creator>\u002Fscripts\u002Ffigma-sections.mjs --url=\"\u003Cfigma URL>\" --metadata=.creator\u002Ffigma-metadata.xml --project=.\n   ```\n\n   It creates `.creator\u002F\u003Crun>\u002F` with `figma-sections.json`: one entry per top-level frame (`id`, `nodeId`, `kind` from the layer name, `chrome`, geometry).\n3. **Variables.** Call `get_variable_defs` for the frame; save the result as `.creator\u002F\u003Crun>\u002Ffigma-variables.json`.\n4. **Code Connect.** Call `get_code_connect_map` for the frame; save it as `.creator\u002F\u003Crun>\u002Ffigma-code-connect.json`. When a section's node is mapped to a block in the catalog (`node \u003Ckivo-creator>\u002Fscripts\u002Fmatch.mjs --catalog --project=.`), set `\"codeConnect\": { \"block\": \"\u003Cblock name>\", \"component\": \"\u003Ccomponent name>\" }` in that section's spec.\n5. **One spec per section.** For each non-chrome entry, call `get_design_context` with its `nodeId` (and `get_screenshot` when you need to look at it), then write `.creator\u002F\u003Crun>\u002Fspecs\u002F\u003Cid>.json` following `schemas\u002Fsection-spec.schema.json`:\n   - `source`: `{ \"kind\": \"figma\", \"ref\": \"\u003CnodeId>\", \"url\": \"\u003Cfigma URL>\" }`; `kind` from `figma-sections.json`, corrected when the content clearly says otherwise (add a note).\n   - `slots`: literal texts, image and link targets that appear in the design context are `exact`; a repeated card becomes one `list` slot named `items`. Leave out anything that is not in the design.\n   - `layout`: columns, alignment, media position and repeat count from the geometry and auto layout; mark it in `notes` as inferred.\n   - `tokens`: colours, font family, size, weight, line height and padding per role (`section`, `heading`, `text`, `link`, `button`), `exact` when the design context or a variable gives the value. Write the value as CSS (`#0a84ff`, `56px`); never copy a Tailwind class from the reference code.\n   - `refs`: leave `{}`; step 7 fills it.\n   Chrome entries get a spec with `\"chrome\": true`, empty `slots` and `tokens`, `layout` `{ \"columns\": 1, \"align\": \"left\", \"media\": \"none\", \"repeat\": 0 }` and the note \"chrome: not read\". They are never matched.\n6. **Validate**: `node \u003Ckivo-creator>\u002Fscripts\u002Fvalidate-spec.mjs .creator\u002F\u003Crun>\u002Fspecs`.\n7. **References.** The MCP screenshot reaches you, not the disk, so pixel references come from the Figma REST API and need `FIGMA_TOKEN`.\n   - With the token exported: `node \u003Ckivo-creator>\u002Fscripts\u002Ffigma-ref.mjs --run=.creator\u002F\u003Crun>` saves one PNG per section at the frame's width and records it in each spec's `refs`.\n   - Without it (exit code 2, `FIGMA_TOKEN is not set`): say plainly that reference images cannot be fetched, so the pixel diff will report \"no reference\" for every section and only the style check and lint will run. Ask the person to export a token in their shell if they want the diff.\n   - The token is read from the environment only. Never ask for it in the conversation, never pass it on a command line, never print or echo it.\n8. Hand over to `section-matching`.\n\n## Verification\n\n- `validate-spec.mjs` prints `ok` for every spec.\n- Every slot value can be found in a saved MCP response or in the design context you read.\n- No Tailwind class, `px-[…]` value or `var(--…)` fallback from the reference code appears in any spec.\n- The reply says whether reference images were saved; it never claims references exist when `figma-ref.mjs` did not run.\n\n## Failure modes\n\n| Symptom | Cause | Fix |\n|---|---|---|\n| Figma tools missing | Server not connected, or running inside a subagent | Stop with the connection steps; run in the main session |\n| `get_metadata` returns one huge frame | The link points at a page or a wrapper | Ask for the frame link, or pass the inner frame's node id |\n| Design context truncated | Very large section | Call it for the children of that section and merge the slots |\n| `FIGMA_TOKEN is not set` | No token in the environment | Reference images cannot be fetched; ask the person to export one, or accept a report without pixel diff |\n| `Figma images API answered 403` | Token expired or without access to the file | Ask for a token with read access to that file; the specs stay valid |\n| Values only in the screenshot | Raster image or flattened text | Leave them out; note that the source is a raster |\n\n## Escalation\n\nAsk when the frame has variants for several breakpoints (which one is canonical), when text is rasterised, or when a component mapped by Code Connect points at code that does not exist in the project.\n",{"name":5,"license":15,"description":7,"compatibility":44},"Main session only (subagents do not inherit MCP servers). Needs the official Figma MCP server; reference images for the pixel diff also need FIGMA_TOKEN in the environment. Node 20+.","4045a2f672c1d4c1b4a5a5712b468c5d73ca6724","plugins\u002Fkivo-creator\u002Fskills\u002Ffigma-ingest",0,"https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise","https:\u002F\u002Fhekivo.github.io\u002Fkivo-wise\u002F","https:\u002F\u002Fgithub.com\u002Fhekivo","https:\u002F\u002Fhekivo.dev","2026-11-08 06:10:39",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add hekivo\u002Fkivo-wise --skill figma-ingest",{"tool":59,"command":60},"bunx","bunx skills add hekivo\u002Fkivo-wise --skill figma-ingest",{"tool":62,"command":63},"pnpm","pnpm dlx skills add hekivo\u002Fkivo-wise --skill figma-ingest","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fplugins\u002Fkivo-creator\u002Fskills\u002Ffigma-ingest\u002FSKILL.md",true,[],[68,95,111,133,151,173],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":39},"01M6GKWJDFKQM27HTFXX20QVTP","wp-rest-api","Use when building, extending, or debugging WordPress REST API endpoints\u002Froutes: register_rest_route, WP_REST_Controller\u002Fcontroller classes, schema\u002Fargument validation, permission_callback\u002Fauthentication, response shaping, register_rest_field\u002Fregister_meta, or exposing CPTs\u002Ftaxonomies via show_in_rest.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fthird-party\u002Fwp-rest-api\u002FSKILL.md",[],[75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94],"REST","api","wp rest api","rest api","wordpress","workflows","debugging","authentication","Meta","controller","Bash","shaping","filesystem","use","schema","show","route","register","with","wp-cli",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":39},"01M6GKWEA5BMJZ2RPPEEJTCC3N","wp-abilities-api","Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, \u002Fwp-json\u002Fwp-abilities\u002Fv1\u002F*, @wordpress\u002Fabilities) including defining abilities, categories, meta, REST exposure, and permissions checks for clients.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fthird-party\u002Fwp-abilities-api\u002FSKILL.md",[],[76,102,103,79,80,104,83,75,85,105,106,87,107,88,92,108,109,93,110,94],"wp abilities api","cli","permissions","php","json","node","targets","clients","categories",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":39},"01M6GKWA4GG2BZRFXCR9E73VR7","wp-security-escaping","Use when writing or reviewing code that outputs data, handles input or checks permissions in a WordPress + Acorn project - Blade {{ }} vs {!! !!}, esc_html, esc_attr, esc_url, wp_kses_post, \"&#038; in the URL\", double escaping, sanitize_text_field, nonces, current_user_can, map_meta_cap, permission_callback, $wpdb->prepare, whereRaw, file uploads, escaping ACF values, secrets in .env. For route middleware use acorn-routes-api; for ACF validation use acf-native; for Livewire actions use acorn-livewire.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-security-escaping\u002FSKILL.md",[],[118,119,120,121,122,104,123,83,76,124,125,126,127,91,28,128,129,130,131,132],"security","wp security","wp security escaping","writing","code","actions","secrets","livewire","text","cap","project","middleware","native","URL","routes-api",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":39},"01M6GKW6VVY73BMZ3JNDMR4CWZ","wp-phpstan","Use when configuring, running or fixing PHPStan in a WordPress project that uses Acorn - phpstan.neon, baseline, szepeviktor\u002Fphpstan-wordpress stubs, larastan, level raising, \"Cannot access property on mixed\", get_field() types, paths for app\u002F. For Pint or Mago formatting use testing-wp; for runtime errors use roots-debugging.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-phpstan\u002FSKILL.md",[],[140,141,79,81,142,143,88,128,27,144,145,146,147,148,149,150],"wp phpstan","testing","baseline","access","neon","runtime","formatting","app","paths","types","errors",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":39},"01M6GKW3JRSRS9N112QFA3SEGT","wp-performance","Use when a WordPress page, query or request is slow or needs profiling - TTFB, slow or N+1 queries, Query Monitor, Server-Timing, wp profile and wp doctor, autoloaded options, Redis object cache hit rate, transients, WP_CACHE_KEY_SALT. Adds the runner and Redis notes on top of the official procedure. For Eloquent query design use acorn-data; for PHP type errors use wp-phpstan.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-performance\u002FSKILL.md",[],[158,159,31,79,160,37,161,162,163,164,165,166,167,88,168,169,170,171,172,150],"performance","wp performance","query design","notes","monitor","doctor","cache","server","redis","page","queries","runner","query","type","timing",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":39},"01M6GKVZN243XQB5QWZ5ZKMG7P","wp-hooks-lifecycle","Use when adding, moving or debugging WordPress actions and filters in an Acorn project - add_action\u002Fadd_filter priority and accepted_args, where a hook belongs (setup or filters files vs a provider boot()), load order (mu-plugins, plugins_loaded, after_setup_theme, init), when Acorn boots per profile, hooks that never fire on Acorn routes, REST or Livewire requests (template_redirect, wp_head), save_post firing twice in the block editor, the_content priorities. For ACF hooks use acf-native; for provider structure use acorn-stack.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-hooks-lifecycle\u002FSKILL.md",[],[180,181,182,79,183,184,81,123,75,185,125,88,186,187,188,189,190,128,191,192],"lifecycle","hooks","wp hooks lifecycle","init","boot","stack","never","filters","files","provider","structure","filter","theme"]