[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C3N7XD3STMB5CJE3T1NJXQ":3,"skill-same:01M7C3N7XD3STMB5CJE3T1NJXQ":70},{"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":45,"commitSha":46,"skillDirectory":47,"forksCount":13,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":63},"01M7C3N7XD3STMB5CJE3T1NJXQ","draw-your-font",null,"Turn a handwriting photo into an installable TTF font.","fengwhang\u002Fmercury","fengwhang","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F325040254?v=4","01M7C3K54Y41KVGPHEMKEP9X70","01M7C3K55NTZ4B36YP2JY1NMJ0",0,"MIT","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fcreative\u002Fdraw-your-font\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: draw-your-font\ndescription: \"Turn a handwriting photo into an installable TTF font.\"\nversion: 0.1.0\nauthor: Danilo Znamerovszkij (https:\u002F\u002Fgithub.com\u002Fdanilo-znamerovszkij\u002Fdraw-your-font), ported by Hermes Agent\nlicense: MIT\nplatforms: [linux, macos, windows]\nrequired_commands: [node, npx]\nmetadata:\n  mercury:\n    tags: [font, handwriting, typography, ttf, woff, vision, creative]\n    category: creative\n    homepage: https:\u002F\u002Fgithub.com\u002Fdanilo-znamerovszkij\u002Fdraw-your-font\n    related_skills: [pixel-art]\n---\n\n# draw-your-font\n\nPhoto of handwritten letters in → installable font out. You do the seeing\n(find and label letters, judge quality); the CLI does all geometry (trace,\nmetrics, font assembly). Never edit SVG paths or coordinates yourself.\n\n## Setup in Hermes (once per session)\n\nThe CLI is the pinned npm package `draw-your-font@0.1.0` — run it via npx (Node ≥ 18 required, no global install needed):\n\n```bash\nnpx -y draw-your-font@0.1.0 --help\n```\n\nWherever the examples below show `$DYF`, use `npx -y draw-your-font@0.1.0`. Shell variables do not persist between tool calls, so paste the full command each time. Everything runs locally; the user's handwriting never leaves the machine.\n\nPhotos arrive in Hermes either as a file path in the message or via the gateway image cache — use the actual file path with the CLI. When a photo lands in the conversation with no path, ask the user for the file (the CLI needs a real file, not your memory of the image).\n\nDo the visual steps (contact sheets, previews, glyph sheets) by loading the PNGs with `vision_analyze`.\n\n## Decide the flow\n\n- **User has no photo yet** → offer the template: print, write, photograph.\n- **User shares photo(s) of handwriting** → main flow below.\n- **User pasted an image but there is no file path** → you can see it, but the\n  CLI needs a file. Ask them to drag the image file into the terminal (that\n  inserts its path) or give the path directly. Do not proceed from memory.\n- **User wants changes to a font built this session** → Refine section.\n\n## Template flow (best quality)\n\n```bash\n$DYF template -o template.pdf --charset minimal   # or: spanish\n```\n\nTell the user: print it, write one character per box with a dark pen\n(0.5 mm+), keep the letter sitting on the solid line, then photograph each\npage from above in good light and share the file paths. The grid prints in\nlight grey and vanishes during processing - only their ink survives.\n\n## Main flow: photo(s) → font\n\n**1. Segment.** Works for template pages and freeform photos alike:\n\n```bash\n$DYF segment photo1.jpg photo2.jpg -d work\n```\n\n**2. Look, then label.** Load `work\u002Fcontact-1.png` with `vision_analyze` (one per photo): every\ndetected blob is numbered. This is the step where your eyes matter - check:\n\n- Did every written character get exactly one box? A letter drawn with\n  separate strokes may appear as two boxes (relabel handles it: give the main\n  box the character and mark the fragment `\"\"`), and two touching letters may\n  share one box (ask the user to re-shoot just those, or accept the gap).\n- Junk boxes (shadows, ruled lines, smudges, page edges) → label them `\"\"`.\n\nThen write `work\u002Flabels.json` mapping blob id → character, e.g.\n`{\"0\": \"A\", \"1\": \"B\", \"7\": \"\", \"8\": \"a\"}`:\n\n- Template page: order is the charset order printed on the template - verify\n  against the sheet instead of trusting it blindly. minimal order: A–Z, a–z,\n  0–9, then `.,;:!?'\"-()@#&+\u002F$`; spanish appends `ÑñÁÉÍÓÚáéíóúü¿¡`.\n- Freeform: identify each letter from the contact sheet. Uppercase vs\n  lowercase for shape-twins (S\u002Fs, O\u002Fo, C\u002Fc, X\u002Fx…) is decided by relative size\n  and position - compare against neighbors you're sure of.\n- The user told you what they wrote (e.g. \"ABC then abc\")? Trust it, map in\n  reading order (top row first, left to right), and verify visually.\n- Same letter appears twice → label the better-drawn one, `\"\"` the other.\n\n**3. Build.**\n\n```bash\n$DYF build -d work --labels work\u002Flabels.json --name \"Dan's Hand\"\n```\n\nName the font after the user (ask if unclear - one short question max).\n\n**4. Judge before delivering.** Load `work\u002Fpreview.png` and `work\u002Fglyphs.png` with `vision_analyze`\nand critique like an art director:\n\n- Broken or blotchy letters (bad trace) → often a faint pen stroke; try\n  `--weight 1`, or ask for a re-shoot of just that letter.\n- Everything too thin\u002Fthick → rebuild with `--weight 1` \u002F `--weight -1`.\n- Jagged edges → rebuild with `--smooth 1.5` (up to 2).\n- A letter placed wrong (e.g. a `g` not descending) → usually a mislabel;\n  fix labels.json and rebuild.\n- Filled-in bowls (b, o, g look solid): should never happen - if it does,\n  the crop is smudged; ask for a re-shoot.\n\nRebuilds are cheap and safe to iterate. Fix what you can yourself first;\nonly bother the user for re-shoots when the source ink is the problem.\n\n**5. Deliver.** The font lands at `\u003Cworkdir>\u002F\u003CNameWithoutSpaces>.ttf` (the\nbuild output prints the exact path). Give that path and how to install:\nmacOS - double-click → \"Install Font\"; Windows - right-click → \"Install\".\nMention what's missing (the build prints uncovered letters) and offer,\nwithout pushing:\n\n- Web formats + CSS: rebuild with `--formats ttf,woff,woff2,css`.\n- A legibility read (below).\n- Their next photo to fill missing characters: re-run segment with ALL\n  photos (old and new) into a fresh workdir - `$DYF segment p1.jpg p2.jpg -d\n  work2` - then relabel from the new contact sheets (blob ids renumber; the\n  old labels.json does not carry over) and build from the new workdir.\n\n## Refine (conversational iteration)\n\n| User says | Do |\n|---|---|\n| \"smoother \u002F rounder\" | `build … --smooth 1.5` (max 2) |\n| \"thicker \u002F bolder\" | `build … --weight 1` (max 2) |\n| \"thinner \u002F lighter\" | `build … --weight=-1` (negative needs the `=` form) |\n| \"the g looks bad\" | show them `work\u002Fcrops\u002F\u003Cid>.png` for that letter; offer re-shoot or smooth |\n| \"wrong letter\" \u002F swap | edit labels.json, rebuild |\n| \"give me woff2 \u002F web\" | `build … --formats ttf,woff,woff2,css` |\n| custom preview text | `$DYF preview -d work --text \"…\"` (after a build) |\n\nAll refine commands rebuild from the stored crops - no re-photographing\nneeded unless the ink itself is the problem.\n\n## Legibility report (offer after delivering)\n\n```bash\n$DYF preview -d work --text \"minimum mill rn m cl d I l 1 O 0 quick brown fox\" -o work\u002Flegibility.png\n```\n\nRead it and give an honest, kind read: a score out of 10 for body-text use,\nthe 2–3 letter pairs most likely to confuse (rn→m, cl→d, I\u002Fl\u002F1, O\u002F0), and one\nor two concrete fixes (rewrite those letters larger, more spacing). Note that\ndisplay use (headings, notes) is more forgiving than paragraphs. Never gate\ndelivery on this - it's advice, not a blocker.\n\n## Troubleshooting\n\nSegmentation found far too many \u002F too few blobs, grey guide lines surviving,\nshadow blobs, faint ballpoint strokes → see\n`references\u002Ftroubleshooting.md`.\n","# draw-your-font\n\nPhoto of handwritten letters in → installable font out. You do the seeing\n(find and label letters, judge quality); the CLI does all geometry (trace,\nmetrics, font assembly). Never edit SVG paths or coordinates yourself.\n\n## Setup in Hermes (once per session)\n\nThe CLI is the pinned npm package `draw-your-font@0.1.0` — run it via npx (Node ≥ 18 required, no global install needed):\n\n```bash\nnpx -y draw-your-font@0.1.0 --help\n```\n\nWherever the examples below show `$DYF`, use `npx -y draw-your-font@0.1.0`. Shell variables do not persist between tool calls, so paste the full command each time. Everything runs locally; the user's handwriting never leaves the machine.\n\nPhotos arrive in Hermes either as a file path in the message or via the gateway image cache — use the actual file path with the CLI. When a photo lands in the conversation with no path, ask the user for the file (the CLI needs a real file, not your memory of the image).\n\nDo the visual steps (contact sheets, previews, glyph sheets) by loading the PNGs with `vision_analyze`.\n\n## Decide the flow\n\n- **User has no photo yet** → offer the template: print, write, photograph.\n- **User shares photo(s) of handwriting** → main flow below.\n- **User pasted an image but there is no file path** → you can see it, but the\n  CLI needs a file. Ask them to drag the image file into the terminal (that\n  inserts its path) or give the path directly. Do not proceed from memory.\n- **User wants changes to a font built this session** → Refine section.\n\n## Template flow (best quality)\n\n```bash\n$DYF template -o template.pdf --charset minimal   # or: spanish\n```\n\nTell the user: print it, write one character per box with a dark pen\n(0.5 mm+), keep the letter sitting on the solid line, then photograph each\npage from above in good light and share the file paths. The grid prints in\nlight grey and vanishes during processing - only their ink survives.\n\n## Main flow: photo(s) → font\n\n**1. Segment.** Works for template pages and freeform photos alike:\n\n```bash\n$DYF segment photo1.jpg photo2.jpg -d work\n```\n\n**2. Look, then label.** Load `work\u002Fcontact-1.png` with `vision_analyze` (one per photo): every\ndetected blob is numbered. This is the step where your eyes matter - check:\n\n- Did every written character get exactly one box? A letter drawn with\n  separate strokes may appear as two boxes (relabel handles it: give the main\n  box the character and mark the fragment `\"\"`), and two touching letters may\n  share one box (ask the user to re-shoot just those, or accept the gap).\n- Junk boxes (shadows, ruled lines, smudges, page edges) → label them `\"\"`.\n\nThen write `work\u002Flabels.json` mapping blob id → character, e.g.\n`{\"0\": \"A\", \"1\": \"B\", \"7\": \"\", \"8\": \"a\"}`:\n\n- Template page: order is the charset order printed on the template - verify\n  against the sheet instead of trusting it blindly. minimal order: A–Z, a–z,\n  0–9, then `.,;:!?'\"-()@#&+\u002F$`; spanish appends `ÑñÁÉÍÓÚáéíóúü¿¡`.\n- Freeform: identify each letter from the contact sheet. Uppercase vs\n  lowercase for shape-twins (S\u002Fs, O\u002Fo, C\u002Fc, X\u002Fx…) is decided by relative size\n  and position - compare against neighbors you're sure of.\n- The user told you what they wrote (e.g. \"ABC then abc\")? Trust it, map in\n  reading order (top row first, left to right), and verify visually.\n- Same letter appears twice → label the better-drawn one, `\"\"` the other.\n\n**3. Build.**\n\n```bash\n$DYF build -d work --labels work\u002Flabels.json --name \"Dan's Hand\"\n```\n\nName the font after the user (ask if unclear - one short question max).\n\n**4. Judge before delivering.** Load `work\u002Fpreview.png` and `work\u002Fglyphs.png` with `vision_analyze`\nand critique like an art director:\n\n- Broken or blotchy letters (bad trace) → often a faint pen stroke; try\n  `--weight 1`, or ask for a re-shoot of just that letter.\n- Everything too thin\u002Fthick → rebuild with `--weight 1` \u002F `--weight -1`.\n- Jagged edges → rebuild with `--smooth 1.5` (up to 2).\n- A letter placed wrong (e.g. a `g` not descending) → usually a mislabel;\n  fix labels.json and rebuild.\n- Filled-in bowls (b, o, g look solid): should never happen - if it does,\n  the crop is smudged; ask for a re-shoot.\n\nRebuilds are cheap and safe to iterate. Fix what you can yourself first;\nonly bother the user for re-shoots when the source ink is the problem.\n\n**5. Deliver.** The font lands at `\u003Cworkdir>\u002F\u003CNameWithoutSpaces>.ttf` (the\nbuild output prints the exact path). Give that path and how to install:\nmacOS - double-click → \"Install Font\"; Windows - right-click → \"Install\".\nMention what's missing (the build prints uncovered letters) and offer,\nwithout pushing:\n\n- Web formats + CSS: rebuild with `--formats ttf,woff,woff2,css`.\n- A legibility read (below).\n- Their next photo to fill missing characters: re-run segment with ALL\n  photos (old and new) into a fresh workdir - `$DYF segment p1.jpg p2.jpg -d\n  work2` - then relabel from the new contact sheets (blob ids renumber; the\n  old labels.json does not carry over) and build from the new workdir.\n\n## Refine (conversational iteration)\n\n| User says | Do |\n|---|---|\n| \"smoother \u002F rounder\" | `build … --smooth 1.5` (max 2) |\n| \"thicker \u002F bolder\" | `build … --weight 1` (max 2) |\n| \"thinner \u002F lighter\" | `build … --weight=-1` (negative needs the `=` form) |\n| \"the g looks bad\" | show them `work\u002Fcrops\u002F\u003Cid>.png` for that letter; offer re-shoot or smooth |\n| \"wrong letter\" \u002F swap | edit labels.json, rebuild |\n| \"give me woff2 \u002F web\" | `build … --formats ttf,woff,woff2,css` |\n| custom preview text | `$DYF preview -d work --text \"…\"` (after a build) |\n\nAll refine commands rebuild from the stored crops - no re-photographing\nneeded unless the ink itself is the problem.\n\n## Legibility report (offer after delivering)\n\n```bash\n$DYF preview -d work --text \"minimum mill rn m cl d I l 1 O 0 quick brown fox\" -o work\u002Flegibility.png\n```\n\nRead it and give an honest, kind read: a score out of 10 for body-text use,\nthe 2–3 letter pairs most likely to confuse (rn→m, cl→d, I\u002Fl\u002F1, O\u002F0), and one\nor two concrete fixes (rewrite those letters larger, more spacing). Note that\ndisplay use (headings, notes) is more forgiving than paragraphs. Never gate\ndelivery on this - it's advice, not a blocker.\n\n## Troubleshooting\n\nSegmentation found far too many \u002F too few blobs, grey guide lines surviving,\nshadow blobs, faint ballpoint strokes → see\n`references\u002Ftroubleshooting.md`.\n",{"name":5,"author":23,"license":14,"version":24,"metadata":25,"platforms":38,"description":7,"required_commands":42},"Danilo Znamerovszkij (https:\u002F\u002Fgithub.com\u002Fdanilo-znamerovszkij\u002Fdraw-your-font), ported by Hermes Agent","0.1.0",{"mercury":26},{"tags":27,"category":34,"homepage":35,"related_skills":36},[28,29,30,31,32,33,34],"font","handwriting","typography","ttf","woff","vision","creative","https:\u002F\u002Fgithub.com\u002Fdanilo-znamerovszkij\u002Fdraw-your-font",[37],"pixel-art",[39,40,41],"linux","macos","windows",[43,44],"node","npx","main","94a12cab2ce32e2020d179b5d579d0cbcbd0f206","hermes\u002Foptional-skills\u002Fcreative\u002Fdraw-your-font","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury","https:\u002F\u002Fgithub.com\u002Ffengwhang","2026-10-09 08:26:42",{"source":8,"skillName":5,"commands":52,"prompt":61,"zipAvailable":62},[53,55,58],{"tool":44,"command":54},"npx skills add fengwhang\u002Fmercury --skill draw-your-font",{"tool":56,"command":57},"bunx","bunx skills add fengwhang\u002Fmercury --skill draw-your-font",{"tool":59,"command":60},"pnpm","pnpm dlx skills add fengwhang\u002Fmercury --skill draw-your-font","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fcreative\u002Fdraw-your-font\u002FSKILL.md",true,[64],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Ftroubleshooting.md","REFERENCE","参考文档",2398,"https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fcreative\u002Fdraw-your-font\u002Freferences\u002Ftroubleshooting.md",[71,78,85,92,98,105],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7C4BTY3ND38CN200ZCTH6NV","greet","A greeting skill for testing","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Fmarketplace\u002Ffixtures\u002Fvalid-marketplace\u002Fplugins\u002Fhello-plugin\u002Fskills\u002Fgreet\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7C4BSNZTPW8JR5NGCQXGSEZ","valid-skill","A valid skill for testing purposes.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7C4BRA7J8C06KSVW100F1W1","unknown-field","A skill with an unknown frontmatter field.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Funknown-field\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"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":95,"categories":96,"keywords":97,"publishedAt":18},"01M7C4BNB04KQGCJ835JE8AR13","no-frontmatter","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":18},"01M7C4BM38TZFYT1AJ6SKHPZZ2","child-skill","A nested skill in a subdirectory.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fnested\u002Fchild-skill\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":18},"01M7C4BJDN7RFFCM28CGX15Q97","different-name","A skill with a name that doesn't match the directory.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fname-mismatch\u002FSKILL.md",[],[]]