[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M757ARYZ1FW7NNV2N9BS7VQE":3,"skill-same:01M757ARYZ1FW7NNV2N9BS7VQE":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},"01M757ARYZ1FW7NNV2N9BS7VQE","hand-svg-structure-figure",null,"Replicate a bitmap\u002Fscreenshot structure diagram (block diagram, flowchart, network, schematic) as a hand-authored static SVG — programmatic geometry\u002Fcolor probing, live-page export, full pitfall list.","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\u002Fhand-svg-structure\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: hand-svg-structure-figure\ndescription: Replicate a bitmap\u002Fscreenshot structure diagram (block diagram, flowchart, network, schematic) as a hand-authored static SVG — programmatic geometry\u002Fcolor probing, live-page export, full pitfall list.\n---\n\n# Hand-authored SVG structure-figure replication\n\n## When to use\n\nThe reference is a **bitmap** (paper screenshot, scan, slide export) showing a *structure* figure — block diagram \u002F flowchart \u002F network \u002F schematic — and you need an editable, print-quality vector replica. Do **not** use this route for data plots (see `data-figures-rerender`).\n\n## Workflow (five steps)\n\n1. **Probe, don't eyeball.** Use `probe_geometry.py` (this folder) to extract exact pixel values from the reference bitmap: box bounds via fill-color connected components, circle centers\u002Fdiameters via ring scans, text-row baselines, connector endpoints, dash\u002Ffill\u002Fborder colors. Build the first draft **in the reference's coordinate system** — it lands ~80% right with zero guessing.\n2. **Copy text verbatim.** Every string checked against the reference. Sub\u002Fsuperscripts via `tspan dy` (math letters in italic serif; **upright digit subscripts need explicit `font-style=\"normal\"`** — tspans inherit italics).\n3. **Hand-write the SVG.** Styles centralized in a `\u003Cstyle>` block + semantic color constants (see repo-root `METHOD.md`); structural comments per region; default ink color inherited from a wrapping `\u003Cg fill=\"...\">`.\n4. **Export PNG.** `prepare_export_pages.py` builds inline-HTML pages → set the browser viewport to the *exact* content size → plain screenshot (**never fullPage** — it triggers the tiling bug); for content taller than ~2160 px, capture top\u002Fbottom halves and stitch with PIL.\n5. **Acceptance.** Live-page screenshot + an independent vision-model judge comparing replica vs reference (criteria: every string, arrow source→target topology, no overflow\u002Foverlap; intentional style upgrades are not defects). On FAIL, fix root causes using the judge's pixel evidence.\n\n## Hard-won pitfalls (all real)\n\n- **SVG `\u003Cstyle>` overrides presentation attributes**: `text{fill:…}` beats `fill=\"\"` on elements → colored titles render near-black. Keep `fill` out of CSS; inherit defaults from a wrapping `\u003Cg fill>` and set colors per-element.\n- **Never export via `\u003Cimg src=\"*.svg\">`**: renders wrong (italic leakage, cascade anomalies); standalone SVG documents screenshot as scaled tiles. Inline HTML is the only reliable channel.\n- **Signature style of fully-connected network figures**: incoming edges converge on the target circle's **left pole**, arrowheads stacked in a cluster — radial rim distribution reads as \"wrong\".\n- Judge \"likeness\" at the structural-semantic level: the reference is a semantic target, not a pixel template.\n\n## Examples (`examples\u002F`)\n\n- `fig-prefix-classifier` — two-section pipeline figure (blue\u002Forange dashed groups, feedback loop), replicated from a bitmap in the reference coordinate system (`ecg_reference.png` is the source bitmap).\n- `fig1-1_roadmap` — four-stage research roadmap redrawn from a matplotlib source script (coordinates mapped 1:1).\n","# Hand-authored SVG structure-figure replication\n\n## When to use\n\nThe reference is a **bitmap** (paper screenshot, scan, slide export) showing a *structure* figure — block diagram \u002F flowchart \u002F network \u002F schematic — and you need an editable, print-quality vector replica. Do **not** use this route for data plots (see `data-figures-rerender`).\n\n## Workflow (five steps)\n\n1. **Probe, don't eyeball.** Use `probe_geometry.py` (this folder) to extract exact pixel values from the reference bitmap: box bounds via fill-color connected components, circle centers\u002Fdiameters via ring scans, text-row baselines, connector endpoints, dash\u002Ffill\u002Fborder colors. Build the first draft **in the reference's coordinate system** — it lands ~80% right with zero guessing.\n2. **Copy text verbatim.** Every string checked against the reference. Sub\u002Fsuperscripts via `tspan dy` (math letters in italic serif; **upright digit subscripts need explicit `font-style=\"normal\"`** — tspans inherit italics).\n3. **Hand-write the SVG.** Styles centralized in a `\u003Cstyle>` block + semantic color constants (see repo-root `METHOD.md`); structural comments per region; default ink color inherited from a wrapping `\u003Cg fill=\"...\">`.\n4. **Export PNG.** `prepare_export_pages.py` builds inline-HTML pages → set the browser viewport to the *exact* content size → plain screenshot (**never fullPage** — it triggers the tiling bug); for content taller than ~2160 px, capture top\u002Fbottom halves and stitch with PIL.\n5. **Acceptance.** Live-page screenshot + an independent vision-model judge comparing replica vs reference (criteria: every string, arrow source→target topology, no overflow\u002Foverlap; intentional style upgrades are not defects). On FAIL, fix root causes using the judge's pixel evidence.\n\n## Hard-won pitfalls (all real)\n\n- **SVG `\u003Cstyle>` overrides presentation attributes**: `text{fill:…}` beats `fill=\"\"` on elements → colored titles render near-black. Keep `fill` out of CSS; inherit defaults from a wrapping `\u003Cg fill>` and set colors per-element.\n- **Never export via `\u003Cimg src=\"*.svg\">`**: renders wrong (italic leakage, cascade anomalies); standalone SVG documents screenshot as scaled tiles. Inline HTML is the only reliable channel.\n- **Signature style of fully-connected network figures**: incoming edges converge on the target circle's **left pole**, arrowheads stacked in a cluster — radial rim distribution reads as \"wrong\".\n- Judge \"likeness\" at the structural-semantic level: the reference is a semantic target, not a pixel template.\n\n## Examples (`examples\u002F`)\n\n- `fig-prefix-classifier` — two-section pipeline figure (blue\u002Forange dashed groups, feedback loop), replicated from a bitmap in the reference coordinate system (`ecg_reference.png` is the source bitmap).\n- `fig1-1_roadmap` — four-stage research roadmap redrawn from a matplotlib source script (coordinates mapped 1:1).\n",{"name":5,"description":7},"main","e0708985ab2d620bc6e8fe741eaa4ec1960269e3","skills\u002Ffigcraft\u002Ffigure-skills\u002Fhand-svg-structure","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 hand-svg-structure-figure",{"tool":37,"command":38},"bunx","bunx skills add rakaarwaky\u002Fagents-arwaky --skill hand-svg-structure-figure",{"tool":40,"command":41},"pnpm","pnpm dlx skills add rakaarwaky\u002Fagents-arwaky --skill hand-svg-structure-figure","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frakaarwaky\u002Fagents-arwaky\u002Fblob\u002Fmain\u002Fskills\u002Ffigcraft\u002Ffigure-skills\u002Fhand-svg-structure\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",[],[]]