Chuyển đến nội dung
Skillpedia
Thương hiệu260k · #463

draw-your-font

Skill này làm gì

Skill chuyển ảnh chữ cái viết tay thành một font bạn có thể cài trên máy tính. Phù hợp với người muốn có font giống chính nét chữ của mình.

Khi nào nên dùng

  • ✓Khi bạn có ảnh chữ viết tay và muốn biến thành font.
  • ✓Khi bạn muốn in một mẫu, viết chữ lên đó rồi chụp ảnh lại.
  • ✓Khi bạn cần một font riêng để dùng cho tài liệu hoặc thiết kế.

Liên kết skill

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/creative/draw-your-font/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/creative/draw-your-font/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Biến ảnh chữ cái viết tay của tôi thành một font mà tôi có thể cài trên máy tính.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tìm và gắn nhãn từng chữ cái trong ảnh rồi kiểm tra chất lượng. Một công cụ dòng lệnh chạy trên máy sẽ dựng hình các chữ và tạo file font, nên nét chữ của bạn không rời khỏi máy.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

draw-your-font

Photo of handwritten letters in → installable font out. You do the seeing (find and label letters, judge quality); the CLI does all geometry (trace, metrics, font assembly). Never edit SVG paths or coordinates yourself.

Setup in Hermes (once per session)

The CLI is the pinned npm package draw-your-font@0.1.0 — run it via npx (Node ≥ 18 required, no global install needed):

npx -y draw-your-font@0.1.0 --help

Wherever 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.

Photos 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).

Do the visual steps (contact sheets, previews, glyph sheets) by loading the PNGs with vision_analyze.

Decide the flow

  • User has no photo yet → offer the template: print, write, photograph.
  • User shares photo(s) of handwriting → main flow below.
  • User pasted an image but there is no file path → you can see it, but the CLI needs a file. Ask them to drag the image file into the terminal (that inserts its path) or give the path directly. Do not proceed from memory.
  • User wants changes to a font built this session → Refine section.

Template flow (best quality)

$DYF template -o template.pdf --charset minimal   # or: spanish

Tell the user: print it, write one character per box with a dark pen (0.5 mm+), keep the letter sitting on the solid line, then photograph each page from above in good light and share the file paths. The grid prints in light grey and vanishes during processing - only their ink survives.

Main flow: photo(s) → font

1. Segment. Works for template pages and freeform photos alike:

$DYF segment photo1.jpg photo2.jpg -d work

2. Look, then label. Load work/contact-1.png with vision_analyze (one per photo): every detected blob is numbered. This is the step where your eyes matter - check:

  • Did every written character get exactly one box? A letter drawn with separate strokes may appear as two boxes (relabel handles it: give the main box the character and mark the fragment ""), and two touching letters may share one box (ask the user to re-shoot just those, or accept the gap).
  • Junk boxes (shadows, ruled lines, smudges, page edges) → label them "".

Then write work/labels.json mapping blob id → character, e.g. {"0": "A", "1": "B", "7": "", "8": "a"}:

  • Template page: order is the charset order printed on the template - verify against the sheet instead of trusting it blindly. minimal order: A–Z, a–z, 0–9, then .,;:!?'"-()@#&+/$; spanish appends ÑñÁÉÍÓÚáéíóúü¿¡.
  • Freeform: identify each letter from the contact sheet. Uppercase vs lowercase for shape-twins (S/s, O/o, C/c, X/x…) is decided by relative size and position - compare against neighbors you're sure of.
  • The user told you what they wrote (e.g. "ABC then abc")? Trust it, map in reading order (top row first, left to right), and verify visually.
  • Same letter appears twice → label the better-drawn one, "" the other.

3. Build.

$DYF build -d work --labels work/labels.json --name "Dan's Hand"

Name the font after the user (ask if unclear - one short question max).

4. Judge before delivering. Load work/preview.png and work/glyphs.png with vision_analyze and critique like an art director:

  • Broken or blotchy letters (bad trace) → often a faint pen stroke; try --weight 1, or ask for a re-shoot of just that letter.
  • Everything too thin/thick → rebuild with --weight 1 / --weight -1.
  • Jagged edges → rebuild with --smooth 1.5 (up to 2).
  • A letter placed wrong (e.g. a g not descending) → usually a mislabel; fix labels.json and rebuild.
  • Filled-in bowls (b, o, g look solid): should never happen - if it does, the crop is smudged; ask for a re-shoot.

Rebuilds are cheap and safe to iterate. Fix what you can yourself first; only bother the user for re-shoots when the source ink is the problem.

5. Deliver. The font lands at <workdir>/<NameWithoutSpaces>.ttf (the build output prints the exact path). Give that path and how to install: macOS - double-click → "Install Fon

Câu hỏi thường gặp

Chữ viết tay của tôi có bị tải lên không?

Không. Skill nói rằng mọi việc đều chạy cục bộ và chữ viết tay không bao giờ rời khỏi máy.

Tôi có cần mẫu đặc biệt không?

Không bắt buộc, nhưng skill có thể đưa ra một mẫu để bạn in ra, viết lên rồi chụp ảnh.

Agent cần gì từ tôi?

Đường dẫn đến file ảnh thật, vì công cụ dòng lệnh không dùng được ảnh chỉ hiển thị trong khung chat.

Chi tiết

Mô tả gốc của tác giả

Turn a handwriting photo into an installable TTF font.

repo: NousResearch/hermes-agent

Độ phổ biến

Sao GitHub
260k
Vị trí xếp hạng
#463
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự