[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EJDF97CN90DN3PYJEB2TR9":3,"skill-same:01M7EJDF97CN90DN3PYJEB2TR9":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7EJDF97CN90DN3PYJEB2TR9","dita-keys",null,"Manage a DITA key space — replace hardcoded strings with keyrefs (keyify), define\u002Frename\u002Fmerge\u002Finline keys, and resolve a key's value. Use when asked to keyify product names or other repeated literals, clean up duplicate or stale key definitions, or rename\u002Fretire a key across a project.","dogsbay\u002Fdogsbay-xml","dogsbay","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F15303289?v=4","01M7EJCARJ0K8B8ZV0ENKD6ZK2","01M7EJCAS22NW67CK69CDSW2Q5",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdogsbay\u002Fdogsbay-xml\u002Fblob\u002Fmain\u002Fxagent-core\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fdita-keys\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dita-keys\ndescription: Manage a DITA key space — replace hardcoded strings with keyrefs (keyify), define\u002Frename\u002Fmerge\u002Finline keys, and resolve a key's value. Use when asked to keyify product names or other repeated literals, clean up duplicate or stale key definitions, or rename\u002Fretire a key across a project.\n---\n\n# Manage the DITA key space\n\nKeys centralize values (product names, versions, URLs) and link targets so they\nchange in one place. The tools: `keyify`, `list_keys`, `resolve_key`,\n`create_keydef`, `rename_key`, `merge_keydefs`, `inline_key`.\n\n## Keyify — the judgment call\n\n`keyify` replaces a hardcoded literal with `\u003C… keyref=\"key\"\u002F>`. **What to keyify is\na judgment, not a sweep:**\n\n- **Do** keyify the literal in running prose, titles, and shortdescs.\n- **Do not** keyify inside `\u003Ccodeblock>`, `\u003Ccmdname>`, `\u003Cfilepath>`, `\u003Cuserinput>`,\n  shell commands, or example output — those are literal by design; replacing them\n  breaks copy-paste.\n- A version\u002FURL\u002Fextension is usually a key (`product-version`, `download-url`,\n  `project-extension`); a one-off proper noun usually is not.\n- Confirm the key exists first with `list_keys`; if it doesn't, `create_keydef` it\n  (a text key holds its value in `\u003Ckeyword>`).\n\nFor a repetitive keyify across many files, drive it in code mode, applying the same\n\"prose yes \u002F code no\" rule per occurrence.\n\n## Process\n\n1. **Survey** with `list_keys` — the defined keys, their values, and which are\n   undefined (dangling keyref) or unused. Fix typo'd keyrefs against the real key.\n2. **Resolve** a value with `resolve_key \u003Ckey>` (respects key-space precedence:\n   first definition in the map closure wins).\n3. **Keyify** the safe occurrences (above); leave code\u002Fpaths.\n4. **Tidy:**\n   - `merge_keydefs \u003Croot-map>` removes **shadowed duplicate** keydefs (the same key\n     defined twice in the closure — the loser is dead weight that drifts stale).\n   - `rename_key \u003Cold> \u003Cnew>` renames a key and **every** keyref\u002Fconkeyref in one\n     reference-safe pass.\n   - `inline_key \u003Ckey>` is the escape hatch — replace keyrefs with the resolved\n     literal when a key is no longer wanted.\n5. Preview destructive ops with their dry-run, then apply.\n\n## Report\n\nThe keys touched (defined\u002Frenamed\u002Fmerged\u002Finlined), the occurrences keyified vs\ndeliberately skipped (and why — code\u002Fpaths), and any dangling keyrefs fixed. Link\n[[dita-conref-reuse]] for content (not value) reuse.\n","# Manage the DITA key space\n\nKeys centralize values (product names, versions, URLs) and link targets so they\nchange in one place. The tools: `keyify`, `list_keys`, `resolve_key`,\n`create_keydef`, `rename_key`, `merge_keydefs`, `inline_key`.\n\n## Keyify — the judgment call\n\n`keyify` replaces a hardcoded literal with `\u003C… keyref=\"key\"\u002F>`. **What to keyify is\na judgment, not a sweep:**\n\n- **Do** keyify the literal in running prose, titles, and shortdescs.\n- **Do not** keyify inside `\u003Ccodeblock>`, `\u003Ccmdname>`, `\u003Cfilepath>`, `\u003Cuserinput>`,\n  shell commands, or example output — those are literal by design; replacing them\n  breaks copy-paste.\n- A version\u002FURL\u002Fextension is usually a key (`product-version`, `download-url`,\n  `project-extension`); a one-off proper noun usually is not.\n- Confirm the key exists first with `list_keys`; if it doesn't, `create_keydef` it\n  (a text key holds its value in `\u003Ckeyword>`).\n\nFor a repetitive keyify across many files, drive it in code mode, applying the same\n\"prose yes \u002F code no\" rule per occurrence.\n\n## Process\n\n1. **Survey** with `list_keys` — the defined keys, their values, and which are\n   undefined (dangling keyref) or unused. Fix typo'd keyrefs against the real key.\n2. **Resolve** a value with `resolve_key \u003Ckey>` (respects key-space precedence:\n   first definition in the map closure wins).\n3. **Keyify** the safe occurrences (above); leave code\u002Fpaths.\n4. **Tidy:**\n   - `merge_keydefs \u003Croot-map>` removes **shadowed duplicate** keydefs (the same key\n     defined twice in the closure — the loser is dead weight that drifts stale).\n   - `rename_key \u003Cold> \u003Cnew>` renames a key and **every** keyref\u002Fconkeyref in one\n     reference-safe pass.\n   - `inline_key \u003Ckey>` is the escape hatch — replace keyrefs with the resolved\n     literal when a key is no longer wanted.\n5. Preview destructive ops with their dry-run, then apply.\n\n## Report\n\nThe keys touched (defined\u002Frenamed\u002Fmerged\u002Finlined), the occurrences keyified vs\ndeliberately skipped (and why — code\u002Fpaths), and any dangling keyrefs fixed. Link\n[[dita-conref-reuse]] for content (not value) reuse.\n",{"name":5,"description":7},"main","9d490f436eab257280b114519ea447bad5626d74","xagent-core\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fdita-keys","https:\u002F\u002Fgithub.com\u002Fdogsbay\u002Fdogsbay-xml","https:\u002F\u002Fgithub.com\u002Fdogsbay","2026-10-20 06:18:01",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add dogsbay\u002Fdogsbay-xml --skill dita-keys",{"tool":35,"command":36},"bunx","bunx skills add dogsbay\u002Fdogsbay-xml --skill dita-keys",{"tool":38,"command":39},"pnpm","pnpm dlx skills add dogsbay\u002Fdogsbay-xml --skill dita-keys","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdogsbay\u002Fdogsbay-xml\u002Fblob\u002Fmain\u002Fxagent-core\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fdita-keys\u002FSKILL.md",true,[],[44,52,59,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":48,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7EJF0ZNWMH5EGRNHMGM1BH7","valid-skill","A valid test skill for unit testing.","MIT","https:\u002F\u002Fgithub.com\u002Fdogsbay\u002Fdogsbay-xml\u002Fblob\u002Fmain\u002Fxagent-core\u002Fsrc\u002Ftest\u002Fresources\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M7EJF017TT1WAB2F6QM5Y89W","wrong-name","Name does not match directory.","https:\u002F\u002Fgithub.com\u002Fdogsbay\u002Fdogsbay-xml\u002Fblob\u002Fmain\u002Fxagent-core\u002Fsrc\u002Ftest\u002Fresources\u002Ffixtures\u002Fskills\u002Fname-mismatch\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7EJEZ301QVMP9V9R7JSY33Y","missing-description","https:\u002F\u002Fgithub.com\u002Fdogsbay\u002Fdogsbay-xml\u002Fblob\u002Fmain\u002Fxagent-core\u002Fsrc\u002Ftest\u002Fresources\u002Ffixtures\u002Fskills\u002Fmissing-description\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7EJEWK86WC0CTQZ1T9RGZTJ","hidden-skill","A skill hidden from model invocation.","https:\u002F\u002Fgithub.com\u002Fdogsbay\u002Fdogsbay-xml\u002Fblob\u002Fmain\u002Fxagent-core\u002Fsrc\u002Ftest\u002Fresources\u002Ffixtures\u002Fskills\u002Fhidden-skill\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7EJEQTVC29QF1E3K1KGSTRK","dita-subject-schemes","Author or repair a DITA subjectScheme that governs conditional-processing attribute values (@platform, @audience, @product, @props, @otherprops), then validate content against it. Use when introducing controlled values, governing conditional content, or when validate_conditions reports controlled-value violations.","https:\u002F\u002Fgithub.com\u002Fdogsbay\u002Fdogsbay-xml\u002Fblob\u002Fmain\u002Fxagent-core\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fdita-subject-schemes\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EJEKED7TREFSJB2J5ZW3A6","dita-shortdesc","Write SEO-friendly DITA shortdescs and abstracts — a standalone one-sentence summary that doubles as the link preview and the HTML meta description. Use when asked to add or improve a topic's description\u002Fabstract, write shortdescs, fill missing ones, or make descriptions SEO-friendly.","https:\u002F\u002Fgithub.com\u002Fdogsbay\u002Fdogsbay-xml\u002Fblob\u002Fmain\u002Fxagent-core\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fdita-shortdesc\u002FSKILL.md",[],[]]