[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BR9TM5N30Q5QGST6MHCX4F":3,"skill-same:01M7BR9TM5N30Q5QGST6MHCX4F":59},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7BR9TM5N30Q5QGST6MHCX4F","token-map",null,"Map an extracted Figma \u002F source-code token bag onto the active OD design system, producing a deterministic mapping the generate stage can consume.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Design-设计资源\u002FYYC3-Design-设计资源-open-design\u002Fplugins\u002F_official\u002Fatoms\u002Ftoken-map\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: token-map\ndescription: Map an extracted Figma \u002F source-code token bag onto the active OD design system, producing a deterministic mapping the generate stage can consume.\nod:\n  scenario: figma-migration\n  mode: token-map\n---\n\n# Token map\n\nSpec §10 \u002F §21.3.1: every figma-migration \u002F code-migration run\ncrosses the same boundary — \"the source has its own tokens; the\ntarget uses the active OD design system; we need a deterministic\nmapping\". This atom produces that mapping.\n\n## Inputs\n\n- `figma\u002Ftokens.json` from `figma-extract` (figma-migration), OR\n- `code\u002Ftokens.json` from `design-extract` (code-migration).\n- The active design system DESIGN.md (already injected into the\n  prompt; the atom reads from the staged design-system context).\n\n## Output\n\n```text\nproject-cwd\u002F\n└── token-map\u002F\n    ├── colors.json     # { source: '#hex' | 'tokenName', target: '--ds-token' }[]\n    ├── typography.json # font + size + weight pairings\n    ├── spacing.json    # spacing scale crosswalk\n    ├── unmatched.json  # { source: ..., reason: 'no-target-equivalent' }[]\n    └── meta.json       # { sourceKind: 'figma' | 'code', generatedAt, atomDigest }\n```\n\n`unmatched.json` is the audit list a human reviews; the agent must\nnot invent target tokens silently.\n\n## Semantic token inference\n\nFigma often exports anonymous source names such as `color-3`,\n`paint\u002F17`, or raw `#5B8DEF`. Do not ask the user to rename those\nbefore mapping. First infer the semantic role from usage evidence:\n\n- Node path, component name, instance overrides, variant\u002Fstate labels,\n  frame name, layer name, and nearby text such as `Primary`,\n  `Selected`, `Link`, `Error`, `Focus`, `Nav`, `Button`, or `CTA`.\n- CSS-like position in the rendered tree: background fill, foreground\n  text\u002Ficon, border, divider, overlay, shadow tint, focus ring, status\n  badge, chart series, or brand\u002Faccent treatment.\n- Contrast relationships: a color paired repeatedly with the main\n  canvas is likely foreground; one paired with foreground inside CTA\n  components is likely primary\u002Faccent background; a thin outline around\n  interactive elements is likely border or focus-ring.\n- Reuse topology: a value that appears across primary buttons,\n  selected tabs, and active nav items is stronger evidence for\n  `--ds-color-primary` than a value that appears once in an illustration.\n\nUse that role evidence to choose among existing active design-system\ntokens and to decide whether an anonymous token should be renamed or\nleft unmatched before the executable mapping pass. Keep the on-disk\ntoken-map contract unchanged: the atom still writes the existing bucket\nfiles, `unmatched.json`, and `meta.json` only.\n\nFor example, this is a useful reasoning note for deciding whether\n`color-3` should map to the active primary token:\n\n```jsonc\n{\n  \"source\": \"color-3\",\n  \"value\": \"#5B8DEF\",\n  \"role\": \"primary\",\n  \"targetCandidates\": [\"--ds-color-primary\", \"--ds-color-link\"],\n  \"evidence\": [\n    \"Button\u002FPrimary fill\",\n    \"Selected tab indicator\",\n    \"Link text in Settings frame\"\n  ]\n}\n```\n\nThen map to an active design-system token only when the evidence is\nrole-based, not value-only. If the top candidates are too close to\ncall, or if the evidence points to conflicting roles (`primary` vs\n`link` vs `focus-ring`), leave the source token unmatched using the\nexisting `no-target-equivalent` reason and include the competing\ncandidates in the hint. This keeps automation useful for common\nanonymous-token cases while preserving human review for ambiguous\nbrand decisions.\n\n### Before \u002F after expectation\n\nWithout semantic inference, an anonymous Figma token can only produce\nan uncertain value-level mapping:\n\n```jsonc\n{\n  \"source\": \"color-3\",\n  \"value\": \"#5B8DEF\",\n  \"target\": null,\n  \"reason\": \"no-target-equivalent\"\n}\n```\n\nWith semantic inference, the same token should carry role evidence\nbefore it is accepted:\n\n```jsonc\n{\n  \"source\": \"color-3\",\n  \"value\": \"#5B8DEF\",\n  \"target\": \"--ds-color-primary\",\n  \"via\": \"name\"\n}\n```\n\nThis deterministic v1 atom does not claim a measured accuracy lift by\nitself. Treat the expected improvement as coverage of previously\nmanual anonymous-token cases when the Figma tree contains enough role\nevidence. Real accuracy numbers require a fixture suite with known\nsource tokens, expected semantic roles, and a before\u002Fafter agent run.\nSee `examples\u002Fsemantic-inference-before-after.json` for a deterministic\nsame-token-batch simulation that compares the old value-level output\nwith the semantic inference output.\n\n## Convergence\n\nThe atom completes when every input token is either mapped or\nexplicitly recorded under `unmatched.json` with a non-empty\n`reason`. The `until` evaluator reads `tokens.unmatched.length === 0`\non strict mode; default is \"soft converge\" (proceed with\n`unmatched.json` populated).\n\n## Anti-patterns the prompt fragment forbids\n\n- Injecting a new token into DESIGN.md without explicit user\n  approval (use a `confirmation` GenUI surface for that).\n- Mapping hex colours by visual proximity alone; perceptual ΔE\n  thresholds belong in the visual-diff evaluator (Phase 7).\n- Collapsing distinct source tokens onto the same target token\n  silently; record collisions in `unmatched.json` with reason\n  `target-collision`.\n\n## Status\n\nImplemented by the daemon runner in\n`apps\u002Fdaemon\u002Fsrc\u002Fplugins\u002Fatoms\u002Ftoken-map.ts`. It parses design-system tokens,\nperforms deterministic mapping, and writes the mapped and unmatched outputs.\n","# Token map\n\nSpec §10 \u002F §21.3.1: every figma-migration \u002F code-migration run\ncrosses the same boundary — \"the source has its own tokens; the\ntarget uses the active OD design system; we need a deterministic\nmapping\". This atom produces that mapping.\n\n## Inputs\n\n- `figma\u002Ftokens.json` from `figma-extract` (figma-migration), OR\n- `code\u002Ftokens.json` from `design-extract` (code-migration).\n- The active design system DESIGN.md (already injected into the\n  prompt; the atom reads from the staged design-system context).\n\n## Output\n\n```text\nproject-cwd\u002F\n└── token-map\u002F\n    ├── colors.json     # { source: '#hex' | 'tokenName', target: '--ds-token' }[]\n    ├── typography.json # font + size + weight pairings\n    ├── spacing.json    # spacing scale crosswalk\n    ├── unmatched.json  # { source: ..., reason: 'no-target-equivalent' }[]\n    └── meta.json       # { sourceKind: 'figma' | 'code', generatedAt, atomDigest }\n```\n\n`unmatched.json` is the audit list a human reviews; the agent must\nnot invent target tokens silently.\n\n## Semantic token inference\n\nFigma often exports anonymous source names such as `color-3`,\n`paint\u002F17`, or raw `#5B8DEF`. Do not ask the user to rename those\nbefore mapping. First infer the semantic role from usage evidence:\n\n- Node path, component name, instance overrides, variant\u002Fstate labels,\n  frame name, layer name, and nearby text such as `Primary`,\n  `Selected`, `Link`, `Error`, `Focus`, `Nav`, `Button`, or `CTA`.\n- CSS-like position in the rendered tree: background fill, foreground\n  text\u002Ficon, border, divider, overlay, shadow tint, focus ring, status\n  badge, chart series, or brand\u002Faccent treatment.\n- Contrast relationships: a color paired repeatedly with the main\n  canvas is likely foreground; one paired with foreground inside CTA\n  components is likely primary\u002Faccent background; a thin outline around\n  interactive elements is likely border or focus-ring.\n- Reuse topology: a value that appears across primary buttons,\n  selected tabs, and active nav items is stronger evidence for\n  `--ds-color-primary` than a value that appears once in an illustration.\n\nUse that role evidence to choose among existing active design-system\ntokens and to decide whether an anonymous token should be renamed or\nleft unmatched before the executable mapping pass. Keep the on-disk\ntoken-map contract unchanged: the atom still writes the existing bucket\nfiles, `unmatched.json`, and `meta.json` only.\n\nFor example, this is a useful reasoning note for deciding whether\n`color-3` should map to the active primary token:\n\n```jsonc\n{\n  \"source\": \"color-3\",\n  \"value\": \"#5B8DEF\",\n  \"role\": \"primary\",\n  \"targetCandidates\": [\"--ds-color-primary\", \"--ds-color-link\"],\n  \"evidence\": [\n    \"Button\u002FPrimary fill\",\n    \"Selected tab indicator\",\n    \"Link text in Settings frame\"\n  ]\n}\n```\n\nThen map to an active design-system token only when the evidence is\nrole-based, not value-only. If the top candidates are too close to\ncall, or if the evidence points to conflicting roles (`primary` vs\n`link` vs `focus-ring`), leave the source token unmatched using the\nexisting `no-target-equivalent` reason and include the competing\ncandidates in the hint. This keeps automation useful for common\nanonymous-token cases while preserving human review for ambiguous\nbrand decisions.\n\n### Before \u002F after expectation\n\nWithout semantic inference, an anonymous Figma token can only produce\nan uncertain value-level mapping:\n\n```jsonc\n{\n  \"source\": \"color-3\",\n  \"value\": \"#5B8DEF\",\n  \"target\": null,\n  \"reason\": \"no-target-equivalent\"\n}\n```\n\nWith semantic inference, the same token should carry role evidence\nbefore it is accepted:\n\n```jsonc\n{\n  \"source\": \"color-3\",\n  \"value\": \"#5B8DEF\",\n  \"target\": \"--ds-color-primary\",\n  \"via\": \"name\"\n}\n```\n\nThis deterministic v1 atom does not claim a measured accuracy lift by\nitself. Treat the expected improvement as coverage of previously\nmanual anonymous-token cases when the Figma tree contains enough role\nevidence. Real accuracy numbers require a fixture suite with known\nsource tokens, expected semantic roles, and a before\u002Fafter agent run.\nSee `examples\u002Fsemantic-inference-before-after.json` for a deterministic\nsame-token-batch simulation that compares the old value-level output\nwith the semantic inference output.\n\n## Convergence\n\nThe atom completes when every input token is either mapped or\nexplicitly recorded under `unmatched.json` with a non-empty\n`reason`. The `until` evaluator reads `tokens.unmatched.length === 0`\non strict mode; default is \"soft converge\" (proceed with\n`unmatched.json` populated).\n\n## Anti-patterns the prompt fragment forbids\n\n- Injecting a new token into DESIGN.md without explicit user\n  approval (use a `confirmation` GenUI surface for that).\n- Mapping hex colours by visual proximity alone; perceptual ΔE\n  thresholds belong in the visual-diff evaluator (Phase 7).\n- Collapsing distinct source tokens onto the same target token\n  silently; record collisions in `unmatched.json` with reason\n  `target-collision`.\n\n## Status\n\nImplemented by the daemon runner in\n`apps\u002Fdaemon\u002Fsrc\u002Fplugins\u002Fatoms\u002Ftoken-map.ts`. It parses design-system tokens,\nperforms deterministic mapping, and writes the mapped and unmatched outputs.\n",{"od":24,"name":5,"description":7},{"mode":5,"scenario":25},"figma-migration","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Design-设计资源\u002FYYC3-Design-设计资源-open-design\u002Fplugins\u002F_official\u002Fatoms\u002Ftoken-map",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill token-map",{"tool":41,"command":42},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill token-map",{"tool":44,"command":45},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill token-map","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Design-设计资源\u002FYYC3-Design-设计资源-open-design\u002Fplugins\u002F_official\u002Fatoms\u002Ftoken-map\u002FSKILL.md",true,[49,55],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"examples\u002Fsemantic-inference-before-after.json","REFERENCE","参考文档",4821,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Design-设计资源\u002FYYC3-Design-设计资源-open-design\u002Fplugins\u002F_official\u002Fatoms\u002Ftoken-map\u002Fexamples\u002Fsemantic-inference-before-after.json",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"open-design.json",875,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Design-设计资源\u002FYYC3-Design-设计资源-open-design\u002Fplugins\u002F_official\u002Fatoms\u002Ftoken-map\u002Fopen-design.json",[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"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":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]