[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77TJQFD38CSTJTCAHP1D8P9":3,"skill-same:01M77TJQFD38CSTJTCAHP1D8P9":58},{"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":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M77TJQFD38CSTJTCAHP1D8P9","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.","hiktan44\u002Fopen-design-app","hiktan44","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F140920746?v=4","01M77SNV7J2RH7G3TQVS2FXMW9","hikmet tanriverdi","01M77SNV87GR8D3BJ9WJHFMZ9Y",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhiktan44\u002Fopen-design-app\u002Fblob\u002Fmain\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","f403d5b733fab92eab16d13e9baf3ac951afed55","plugins\u002F_official\u002Fatoms\u002Ftoken-map","https:\u002F\u002Fgithub.com\u002Fhiktan44\u002Fopen-design-app","https:\u002F\u002Fgithub.com\u002Fhiktan44","fasheone.com","Hikmet Tanrıverdi\r\nSTRATEJI DANIŞMANLIK, 2008-2018 İHKİB İSTANBUL HAZIR GİYİM BŞK, İTO MECLİS ÜYESİ, TEXMART DIŞ TİCARET YK STRATEGY CONSULTING, 2008-2018 PRESI","2026-10-11 23:59:08",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add hiktan44\u002Fopen-design-app --skill token-map",{"tool":40,"command":41},"bunx","bunx skills add hiktan44\u002Fopen-design-app --skill token-map",{"tool":43,"command":44},"pnpm","pnpm dlx skills add hiktan44\u002Fopen-design-app --skill token-map","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhiktan44\u002Fopen-design-app\u002Fblob\u002Fmain\u002Fplugins\u002F_official\u002Fatoms\u002Ftoken-map\u002FSKILL.md",true,[48,54],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"examples\u002Fsemantic-inference-before-after.json","REFERENCE","参考文档",4821,"https:\u002F\u002Fgithub.com\u002Fhiktan44\u002Fopen-design-app\u002Fblob\u002Fmain\u002Fplugins\u002F_official\u002Fatoms\u002Ftoken-map\u002Fexamples\u002Fsemantic-inference-before-after.json",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"open-design.json",874,"https:\u002F\u002Fgithub.com\u002Fhiktan44\u002Fopen-design-app\u002Fblob\u002Fmain\u002Fplugins\u002F_official\u002Fatoms\u002Ftoken-map\u002Fopen-design.json",[59,66,73,80,87,96],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M77WGV99HNV3Q6JN3H8Z70JE","Beta Skill","Instruction-only fixture skill.","https:\u002F\u002Fgithub.com\u002Fhiktan44\u002Fopen-design-app\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ftests\u002Ffixtures\u002Fcatalog\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M77WGRXNRGHT9J1K929BPV5H","Alpha Skill","First fixture skill with a runnable demo.","https:\u002F\u002Fgithub.com\u002Fhiktan44\u002Fopen-design-app\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ftests\u002Ffixtures\u002Fcatalog\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M77WGQK7F7R1W6RBFZFEZ53M","Deck One","A small deck template fixture.","https:\u002F\u002Fgithub.com\u002Fhiktan44\u002Fopen-design-app\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ftests\u002Ffixtures\u002Fcatalog\u002Fdesign-templates\u002Fdeck-one\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M77WGNPEGTDWMKDX659FS5DT","youtube-clipper","YouTube clip generation and editing with automated workflows — pull source video, slice highlights, add captions, and export.","https:\u002F\u002Fgithub.com\u002Fhiktan44\u002Fopen-design-app\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":91,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M77WGJ9KKT6Q4P10GAV3KC48","writing-guidelines","Review docs\u002Fprose for Writing Guidelines compliance. Use when asked to \"review my docs\", \"check writing style\", \"audit prose\", \"review docs voice and tone\", or \"check this page against the writing handbook\".","MIT","https:\u002F\u002Fgithub.com\u002Fhiktan44\u002Fopen-design-app\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-guidelines\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhiktan44\u002Fopen-design-app\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-guidelines\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M77WGF9P0WT4XBXMM0B9WRGR","wpds","WordPress Design System. Apply WordPress's official design tokens, typography, and component patterns to themes and sites.","https:\u002F\u002Fgithub.com\u002Fhiktan44\u002Fopen-design-app\u002Fblob\u002Fmain\u002Fskills\u002Fwpds\u002FSKILL.md",[],[]]