[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M757B198DMB4WZSENZ06MA03":3,"skill-same:01M757B198DMB4WZSENZ06MA03":45},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M757B198DMB4WZSENZ06MA03","style-presets",null,"Style presets for structure figures — three token dictionaries (academic default \u002F web \u002F tech). Same geometry and content declaration, swap skins with zero figure-code changes. Includes a worked GPU-pipeline example that regenerates all three finishes.","rakaarwaky\u002Fagents-arwaky","rakaarwaky","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F245127434?v=4","01M7574QFJB21S6PPNCK78WX68","Raka Arwaky","01M7574QG54PRT44Q4KMQFXY6B",0,"MIT","https:\u002F\u002Fgithub.com\u002Frakaarwaky\u002Fagents-arwaky\u002Fblob\u002Fmain\u002Fskills\u002Ffigcraft\u002Ffigure-skills\u002Fstyle-presets\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: style-presets\ndescription: Style presets for structure figures — three token dictionaries (academic default \u002F web \u002F tech). Same geometry and content declaration, swap skins with zero figure-code changes. Includes a worked GPU-pipeline example that regenerates all three finishes.\n---\n\n# Style presets (academic \u002F web \u002F tech)\n\nOne figure, multiple finishes: a paper-grade default, a screen-friendly web look, and a dark \"tech\" skin — all from the same declared geometry and content. Style lives in token dictionaries; the figure script never hardcodes a color.\n\n## When to use\n\n- The same structural figure must ship in several looks (paper, slide deck, promo screen) and you do not want to re-draw it per style.\n- Works with any route that declares style separately: [`parametric-diagram`](..\u002Fparametric-diagram\u002FSKILL.md), [`declarative-engine`](..\u002Fdeclarative-engine\u002FSKILL.md), hand-written SVG with a shared style block.\n\n## The three presets\n\n| Preset | key | Visual language | Use for |\n|---|---|---|---|\n| **Academic (default)** | `academic` | White ground, restrained three-color accents, no shadows or gradients, thin strokes, small radii, Times + CJK serif\u002Fhei pairing | Papers, theses, formal documents |\n| Web | `web` | Dark header band, white rounded cards, soft shadows, pill chips, YaHei\u002FSegoe | Work reports, projected decks |\n| Tech | `tech` | Deep-space ground with dot grid, cyan neon accents, glow on accent elements, mono labels | Demos, large screens, product pages |\n\n## Usage\n\n```python\nimport sys\nsys.path.insert(0, str(Path(__file__).resolve().parent.parent))  # folder containing style_presets.py\nfrom style_presets import get_style, names\n\nS = get_style(\"academic\")   # default when called with no argument; returns a copy you may tweak\n# every color \u002F font \u002F radius \u002F effect in the figure script reads S[\"...\"] — no hex literals\n```\n\nCLI: `--style academic|web|tech|all` (default `academic`; `all` emits every finish in one run). See `examples\u002Fmake_gpu_flow_fig.py`, which regenerates the three GPU-pipeline figures in `examples\u002Ffig-gpu-flow-*.svg` from one declaration.\n\n## Token contract\n\n`get_style()` asserts a fixed key set (see `REQUIRED_KEYS` in `style_presets.py`): canvas\u002Fheader (`page_bg`, `head`, `head_bg`, `head_rule`, `head_bar`, `date_style`, …), text\u002Fline (`ink`, `muted`, `faint`, `line`, `text_mid`), cards (`card`, `card_edge`, `card_r`, `fx` = none|soft|glow, `badge_bg`\u002F`badge_fg`), accent semantics (`gpu_*` — your figure's primary accent), neutral semantics (`cpu_*`), fittings (`off_fill`\u002F`off_dash`, `env_fill`\u002F`env_fg`, `table_head`, `arrow`, `note_*`), and typography\u002Fradius (`font_title`, `font_body`, `font_mono`, `chip_r`). Adding a preset = adding one dict; the figure script never changes.\n\nFonts use fallback lists for Latin\u002FCJK splitting: academic pairs `Times New Roman, SimHei` (titles) with `Times New Roman, SimSun` (small notes).\n\n## Discipline\n\n1. **Style and geometry\u002Fcontent are separate declarations.** Changing a skin must not touch coordinates or text; hex literals are banned from the figure script.\n2. **≤3 accents + neutrals still holds inside every preset** — orange only marks the accent semantics in `academic`, cyan only in `tech`.\n3. **Effects are tiered**: `academic` = `fx: none`; `web` = `soft` (low-opacity dark shadow); `tech` = `glow` (accent-colored, accent elements only).\n4. **Dark skins: verify contrast on the render, not the hex math.** 1.2 px hairlines lose ~60 % of theoretical contrast to antialiasing — pick `line`\u002F`note_line`\u002Ftext tokens so the exported PNG shows ≥40 gray levels against the real background (see [`visual-acceptance`](..\u002Fvisual-acceptance\u002FSKILL.md), dark-theme contrast check).\n","# Style presets (academic \u002F web \u002F tech)\n\nOne figure, multiple finishes: a paper-grade default, a screen-friendly web look, and a dark \"tech\" skin — all from the same declared geometry and content. Style lives in token dictionaries; the figure script never hardcodes a color.\n\n## When to use\n\n- The same structural figure must ship in several looks (paper, slide deck, promo screen) and you do not want to re-draw it per style.\n- Works with any route that declares style separately: [`parametric-diagram`](..\u002Fparametric-diagram\u002FSKILL.md), [`declarative-engine`](..\u002Fdeclarative-engine\u002FSKILL.md), hand-written SVG with a shared style block.\n\n## The three presets\n\n| Preset | key | Visual language | Use for |\n|---|---|---|---|\n| **Academic (default)** | `academic` | White ground, restrained three-color accents, no shadows or gradients, thin strokes, small radii, Times + CJK serif\u002Fhei pairing | Papers, theses, formal documents |\n| Web | `web` | Dark header band, white rounded cards, soft shadows, pill chips, YaHei\u002FSegoe | Work reports, projected decks |\n| Tech | `tech` | Deep-space ground with dot grid, cyan neon accents, glow on accent elements, mono labels | Demos, large screens, product pages |\n\n## Usage\n\n```python\nimport sys\nsys.path.insert(0, str(Path(__file__).resolve().parent.parent))  # folder containing style_presets.py\nfrom style_presets import get_style, names\n\nS = get_style(\"academic\")   # default when called with no argument; returns a copy you may tweak\n# every color \u002F font \u002F radius \u002F effect in the figure script reads S[\"...\"] — no hex literals\n```\n\nCLI: `--style academic|web|tech|all` (default `academic`; `all` emits every finish in one run). See `examples\u002Fmake_gpu_flow_fig.py`, which regenerates the three GPU-pipeline figures in `examples\u002Ffig-gpu-flow-*.svg` from one declaration.\n\n## Token contract\n\n`get_style()` asserts a fixed key set (see `REQUIRED_KEYS` in `style_presets.py`): canvas\u002Fheader (`page_bg`, `head`, `head_bg`, `head_rule`, `head_bar`, `date_style`, …), text\u002Fline (`ink`, `muted`, `faint`, `line`, `text_mid`), cards (`card`, `card_edge`, `card_r`, `fx` = none|soft|glow, `badge_bg`\u002F`badge_fg`), accent semantics (`gpu_*` — your figure's primary accent), neutral semantics (`cpu_*`), fittings (`off_fill`\u002F`off_dash`, `env_fill`\u002F`env_fg`, `table_head`, `arrow`, `note_*`), and typography\u002Fradius (`font_title`, `font_body`, `font_mono`, `chip_r`). Adding a preset = adding one dict; the figure script never changes.\n\nFonts use fallback lists for Latin\u002FCJK splitting: academic pairs `Times New Roman, SimHei` (titles) with `Times New Roman, SimSun` (small notes).\n\n## Discipline\n\n1. **Style and geometry\u002Fcontent are separate declarations.** Changing a skin must not touch coordinates or text; hex literals are banned from the figure script.\n2. **≤3 accents + neutrals still holds inside every preset** — orange only marks the accent semantics in `academic`, cyan only in `tech`.\n3. **Effects are tiered**: `academic` = `fx: none`; `web` = `soft` (low-opacity dark shadow); `tech` = `glow` (accent-colored, accent elements only).\n4. **Dark skins: verify contrast on the render, not the hex math.** 1.2 px hairlines lose ~60 % of theoretical contrast to antialiasing — pick `line`\u002F`note_line`\u002Ftext tokens so the exported PNG shows ≥40 gray levels against the real background (see [`visual-acceptance`](..\u002Fvisual-acceptance\u002FSKILL.md), dark-theme contrast check).\n",{"name":5,"description":7},"main","e0708985ab2d620bc6e8fe741eaa4ec1960269e3","skills\u002Ffigcraft\u002Ffigure-skills\u002Fstyle-presets","https:\u002F\u002Fgithub.com\u002Frakaarwaky\u002Fagents-arwaky","https:\u002F\u002Fgithub.com\u002Frakaarwaky","https:\u002F\u002Fbuymeacoffee.com\u002Frakaarwaky","2026-11-15 04:28:37",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add rakaarwaky\u002Fagents-arwaky --skill style-presets",{"tool":37,"command":38},"bunx","bunx skills add rakaarwaky\u002Fagents-arwaky --skill style-presets",{"tool":40,"command":41},"pnpm","pnpm dlx skills add rakaarwaky\u002Fagents-arwaky --skill style-presets","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frakaarwaky\u002Fagents-arwaky\u002Fblob\u002Fmain\u002Fskills\u002Ffigcraft\u002Ffigure-skills\u002Fstyle-presets\u002FSKILL.md",true,[],[46,54,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":53},"01M78SFXSH86CW16Z5FEXMSJXH","github-workflow","Umbrella for GitHub auth, repo management, issues, PRs, Mergify, and releases. Subsumes github-auth and repo-manager.","https:\u002F\u002Fgithub.com\u002Frakaarwaky\u002Fagents-arwaky\u002Fblob\u002Fmain\u002Fskills\u002Fgit\u002Fgithub-workflow\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":53},"01M78SF81R7NVSCXAT8YQ255HM","brave-automation","baa CLI: Brave profiles, Google sessions, credentials.","https:\u002F\u002Fgithub.com\u002Frakaarwaky\u002Fagents-arwaky\u002Fblob\u002Fmain\u002Fskills\u002Fbrave-automation\u002Fbrave-automation\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":53},"01M78SEY7TS908JM8KVPBM6HBN","aes","AES docs, layers, rule fixes, and legacy migration.","https:\u002F\u002Fgithub.com\u002Frakaarwaky\u002Fagents-arwaky\u002Fblob\u002Fmain\u002Fskills\u002Farchitechture\u002Faes\u002FSKILL.md",[],[],{"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":19},"01M757HBGFCMTJTQB45JQFXCC0","pretext","Build creative browser demos with DOM-free text layout.","https:\u002F\u002Fgithub.com\u002Frakaarwaky\u002Fagents-arwaky\u002Fblob\u002Fmain\u002Fskills\u002Fweb-design\u002Fpretext\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M757H8K38ETN8F4ANBBRWY4G","popular-web-designs","54 real design systems (Stripe, Linear, Vercel) as HTML\u002FCSS.","https:\u002F\u002Fgithub.com\u002Frakaarwaky\u002Fagents-arwaky\u002Fblob\u002Fmain\u002Fskills\u002Fweb-design\u002Fpopular-web-designs\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M757H5DM7QPN9H391572NH5B","p5js","p5.js sketches: gen art, shaders, interactive, 3D.","https:\u002F\u002Fgithub.com\u002Frakaarwaky\u002Fagents-arwaky\u002Fblob\u002Fmain\u002Fskills\u002Fweb-design\u002Fp5js\u002FSKILL.md",[],[]]