[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JGD6QNNV9FT6NJNT4N2TSS":3,"skill-same:01M6JGD6QNNV9FT6NJNT4N2TSS":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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M6JGD6QNNV9FT6NJNT4N2TSS","d2-diagrams",null,"How a d2 diagram in this repo is drawn and rendered. Use when editing a `.d2` file, `docs\u002Fassets\u002Fdiagrams\u002F_palette.d2`, or `docs\u002Fassets\u002Fdiagrams\u002Frender.sh`.","muratovv\u002Fai-hats","muratovv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7502801?v=4","01M6JGCBN4KEJX012GPJVSH04T","Fedor Muratov","01M6JGCBSNMN7CW3RGTPPE0MN2",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fai-hats-dev\u002Fskills\u002Fd2-diagrams\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"diagrams","d2 diagrams","d2","docs","diagram","file","how","assets","editing","repo","use","d2 diagram","palette","render","2026-11-10 10:12:30",false,"---\nname: d2-diagrams\ndescription: >-\n  How a d2 diagram in this repo is drawn and rendered. Use when editing a\n  `.d2` file, `docs\u002Fassets\u002Fdiagrams\u002F_palette.d2`, or\n  `docs\u002Fassets\u002Fdiagrams\u002Frender.sh`.\nlicense: MIT\n---\n\n# d2 diagrams\n\n## When to Use\n\nEditing or adding a file under `docs\u002Fassets\u002Fdiagrams\u002F`. Not mermaid, and not\nthe release checklist — that stays on the maintainer role.\n\n## Diagrams (d2)\n\nSources live at `docs\u002Fassets\u002Fdiagrams\u002F*.d2`; the brand-light palette is\nshared via `docs\u002Fassets\u002Fdiagrams\u002F_palette.d2` (imported in every diagram\nas `vars: @.\u002F_palette`). Render with `bash docs\u002Fassets\u002Fdiagrams\u002Frender.sh\n[\u003Cstem>]` — the script auto-extracts Source Code Pro Medium \u002F SemiBold \u002F\nMedium-Italic statics to `$TMPDIR\u002Fai-hats-fonts\u002F` on first run. Commit\nboth `.d2` source and `.svg` artifact; do NOT commit `.png`. Full\ntoolchain + shape conventions: `CONTRIBUTING.md#diagrams`.\n\n**Multiline labels.** Inside default or double-quoted label strings,\n`\\n` works for plain nodes:\n\n    node: First line\\nSecond line\n    node2: \"First line\\nSecond line\"\n\nSingle-quoted strings do NOT interpret escapes — `'foo\\nbar'` renders the\nliteral `\\n` characters. The `|md ... |` block syntax is reliable for\n`shape: callout` but fragile on plain nodes in sketch mode (labels often\ncollapse to a single line) — prefer `\\n` for plain nodes.\n\n**Theme overrides.** `vars.d2-config.theme-overrides` applies to both\nlight and dark `theme-id` standalone. The separate `dark-theme-overrides`\nfield applies only when a light theme is the default and a dark theme is\nset as an alternate — using it for `theme-id: 200` alone silently leaves\nthe Catppuccin Mocha base in place on the first attempt.\n\n**Palette slot map** (16 slots from `_palette.d2`): `N1`–`N7` neutrals\n(text → cream background `#faf2e6`), `B1`–`B6` navy spectrum (box fills,\narrow strokes), `AA2\u002FAA4\u002FAA5` brand-orange variants (`AA4 = #e8632b`,\nused for cylinder\u002Foval storage shapes), `AB4\u002FAB5` cream\u002Fbeige (soft\naccent parallelograms).\n\n**Containers + nested direction.** `direction: \u003Cinner>` inside a container\ncan be silently ignored by the ELK layout engine when it conflicts with\nthe outer direction. The backlog FSMs were once attempted as one diagram\nwith three containers → unreadable; resolved by splitting into 3 separate\n`.d2` files. Prefer **separate files** for independent diagrams when more\nthan ~10 nodes are involved.\n\n## Validation scenario\n\nRED: asked to add a second line to a plain node, the agent writes\n`'foo\\nbar'`. The render shows the characters `\\n`. The fix is a default\nor double-quoted label, where `\\n` is a newline.\n\n## Completion\n\n- The diagram uses the shared palette and renders with `render.sh`.\n- A multiline plain-node label is not single-quoted.\n- Both the `.d2` source and the `.svg` are committed. No `.png`.\n\n## Anti-Patterns\n\n- Single-quoted `\\n` — the escape is drawn literally.\n- `dark-theme-overrides` on a standalone dark `theme-id` — the Mocha base stays.\n- One file of independent diagrams — ELK drops a nested `direction`.\n","# d2 diagrams\n\n## When to Use\n\nEditing or adding a file under `docs\u002Fassets\u002Fdiagrams\u002F`. Not mermaid, and not\nthe release checklist — that stays on the maintainer role.\n\n## Diagrams (d2)\n\nSources live at `docs\u002Fassets\u002Fdiagrams\u002F*.d2`; the brand-light palette is\nshared via `docs\u002Fassets\u002Fdiagrams\u002F_palette.d2` (imported in every diagram\nas `vars: @.\u002F_palette`). Render with `bash docs\u002Fassets\u002Fdiagrams\u002Frender.sh\n[\u003Cstem>]` — the script auto-extracts Source Code Pro Medium \u002F SemiBold \u002F\nMedium-Italic statics to `$TMPDIR\u002Fai-hats-fonts\u002F` on first run. Commit\nboth `.d2` source and `.svg` artifact; do NOT commit `.png`. Full\ntoolchain + shape conventions: `CONTRIBUTING.md#diagrams`.\n\n**Multiline labels.** Inside default or double-quoted label strings,\n`\\n` works for plain nodes:\n\n    node: First line\\nSecond line\n    node2: \"First line\\nSecond line\"\n\nSingle-quoted strings do NOT interpret escapes — `'foo\\nbar'` renders the\nliteral `\\n` characters. The `|md ... |` block syntax is reliable for\n`shape: callout` but fragile on plain nodes in sketch mode (labels often\ncollapse to a single line) — prefer `\\n` for plain nodes.\n\n**Theme overrides.** `vars.d2-config.theme-overrides` applies to both\nlight and dark `theme-id` standalone. The separate `dark-theme-overrides`\nfield applies only when a light theme is the default and a dark theme is\nset as an alternate — using it for `theme-id: 200` alone silently leaves\nthe Catppuccin Mocha base in place on the first attempt.\n\n**Palette slot map** (16 slots from `_palette.d2`): `N1`–`N7` neutrals\n(text → cream background `#faf2e6`), `B1`–`B6` navy spectrum (box fills,\narrow strokes), `AA2\u002FAA4\u002FAA5` brand-orange variants (`AA4 = #e8632b`,\nused for cylinder\u002Foval storage shapes), `AB4\u002FAB5` cream\u002Fbeige (soft\naccent parallelograms).\n\n**Containers + nested direction.** `direction: \u003Cinner>` inside a container\ncan be silently ignored by the ELK layout engine when it conflicts with\nthe outer direction. The backlog FSMs were once attempted as one diagram\nwith three containers → unreadable; resolved by splitting into 3 separate\n`.d2` files. Prefer **separate files** for independent diagrams when more\nthan ~10 nodes are involved.\n\n## Validation scenario\n\nRED: asked to add a second line to a plain node, the agent writes\n`'foo\\nbar'`. The render shows the characters `\\n`. The fix is a default\nor double-quoted label, where `\\n` is a newline.\n\n## Completion\n\n- The diagram uses the shared palette and renders with `render.sh`.\n- A multiline plain-node label is not single-quoted.\n- Both the `.d2` source and the `.svg` are committed. No `.png`.\n\n## Anti-Patterns\n\n- Single-quoted `\\n` — the escape is drawn literally.\n- `dark-theme-overrides` on a standalone dark `theme-id` — the Mocha base stays.\n- One file of independent diagrams — ELK drops a nested `direction`.\n",{"name":5,"license":15,"description":7},"master","b4819add93efbaf4d80627118ec34680406b309b","packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fai-hats-dev\u002Fskills\u002Fd2-diagrams",1,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats","https:\u002F\u002Fgithub.com\u002Fmuratovv","2026-11-05 20:59:10",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add muratovv\u002Fai-hats --skill d2-diagrams",{"tool":51,"command":52},"bunx","bunx skills add muratovv\u002Fai-hats --skill d2-diagrams",{"tool":54,"command":55},"pnpm","pnpm dlx skills add muratovv\u002Fai-hats --skill d2-diagrams","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fai-hats-dev\u002Fskills\u002Fd2-diagrams\u002FSKILL.md",true,[],[60,86,111,134,158,172],{"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":33},"01M6PVFB1SM738R2SRSRSF7CY6","tool-evaluation-protocol","Time-bounded protocol for evaluating new tools, libraries, or methodologies before adoption. Use when evaluating a candidate dependency for the project, researching a methodology (e.g. ML\u002FLLM frameworks, testing approaches), or following up on a hype-driven recommendation.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Ftool-evaluation-protocol\u002FSKILL.md",[],[67,68,69,70,71,72,73,74,75,76,29,77,78,79,80,81,82,83,84,85],"protocol","Evaluation","tool","tool evaluation protocol","testing","ml","libraries","adoption","methodology","Tools","dependency","up","frameworks","time","project","recommendation","for","bounded","candidate",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":33},"01M6PVF7HATBEX1G7N50E2QT57","systematic-debugging","4-phase bug-fix protocol (evidence, pattern, hypothesis, verify). Use when investigating any error, failure, or unexpected behavior, handling bug reports from users or monitoring, or diagnosing test failures with non-obvious causes.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[93,94,95,96,67,97,98,99,100,101,29,102,103,104,105,106,107,108,109,110],"systematic debugging","debugging","systematic","test","monitoring","hypothesis","verify","behavior","fix","evidence","bug","reports","pattern","users","error","with","bug-fix","phase",{"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":122,"publishedAt":33},"01M6PVF3MTQN3RPF73AN34856J","skill-template","Canonical template and validation guide for ai-hats skills. Use when creating a new skill, reviewing an existing one for structural compliance, or deciding which pattern fits a new behavior.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-template\u002FSKILL.md",[117],{"categoryNo":118,"categoryName":119,"taxonomyType":120,"taxonomyTypeDesc":121},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[123,124,125,126,127,100,128,29,129,105,130,131,132,83,133],"template","skill template","validation","compliance","hats","guide","new skill","structural","canonical","which","Existing",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":141,"publishedAt":33},"01M6PVF06SCV28QARM5MQPANC9","skill-optimization","Audit and refactor library components to eliminate redundancy and staleness. Use during periodic library maintenance, after adding multiple new skills or rules, when a role's token budget is too high, or after retrospectives identify component issues.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-optimization\u002FSKILL.md",[140],{"categoryNo":118,"categoryName":119,"taxonomyType":120,"taxonomyTypeDesc":121},[142,143,144,145,146,147,148,149,150,151,29,152,153,154,155,156,157],"Optimization","skill optimization","components","component","issues","library","audit","refactor","Budget","Rules","periodic","maintenance","token","token budget","role","high",{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":33},"01M6PVEXM9717016T9MW82HDCT","silent-fallback-gate","PreToolUse hook — refuses an Edit or Write that adds an inert broad except. Use when a Python edit was blocked for a silent fallback.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsilent-fallback-gate\u002FSKILL.md",[],[165,166,167,168,169,170,29,171,83],"gate","fallback","silent fallback gate","python","write","edit","hook",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":179,"publishedAt":33},"01M6PVESM49C5NT7SB7N3F76VS","retro-to-framework","Convert an observation about agent behavior — from a retrospective or from a single incident — into a framework-level change (hook, rule, skill, skill update). Use after a retrospective identifies problems that are not project-specific, after an incident where an agent misapplied a component it had read, when CLAUDE.md band-aids accumulate (more than 3 per-project rules that could be generic), or when the same problem recurs across multiple projects.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fretro-to-framework\u002FSKILL.md",[178],{"categoryNo":118,"categoryName":119,"taxonomyType":120,"taxonomyTypeDesc":121},[180,181,182,183,145,184,185,186,151,100,29,187,188,81,189,190,191,192,193,194],"framework","retro","retro to framework","change","retrospective","projects","convert","incident","across","problem","about","more","skill update","single","generic"]