Logo Draw

Draw

Tổ chức
with-pebbly
draw

Vẽ sprite từ khối dáng đến pixel hoàn chỉnh theo trình tự giúp phát hiện lỗi khi còn dễ sửa: phác khối, kiểm tra dáng, đổ bóng, tạo viền và rà soát. Dùng cho phần thân chính của mọi tác vụ vẽ.

Add to TypingMind

Tổng quan

Nhà phát hànhwith-pebbly
Kho mãaseprite-ai-artist
Tên kỹ năngdraw
Sao
456
Bản fork
28
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được with-pebbly công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Draw trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/with-pebbly/aseprite-ai-artist/tree/main/skills/draw
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/with-pebbly/aseprite-ai-artist.git /tmp/aseprite-ai-artist
mkdir -p .claude/skills
cp -r /tmp/aseprite-ai-artist/skills/draw .claude/skills/draw
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Draw trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Draw ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Draw với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Draw a sprite

The order matters more than the technique. Detail added before the form is right just makes the wrongness harder to see and more expensive to fix.

Procedure

1. Look before you draw

preflight, then sprite_info. You need the real layer names, frame count and palette. Do not assume them — a wrong layer name means drawing into the user's finished art.

If aseprite:concept produced a PixelSpec, it is the plan: its landmarks and bounding boxes are where the shapes go, its palette mapping is which colour each mass gets, its deviations are what you leave out. When a reference layer exists (reference op="list"), you are drawing over it — the steps below are the same, and step 3 gains a comparison.

Then read the subject rules for what you are drawing — the table in skill://studio under Subject rules names them. A hand, a face, a horse, an isometric crate or a waterfall each has its own file with size budgets and ```grid templates. A template is a starting point you transcribe with draw op grid, mapping each legend role onto the sprite's palette; adapt it to the pose rather than inventing the shape from nothing.

2. Block in the silhouette

One flat colour, no detail. Target the base layer. Everything in one draw call.

For anything up to about 32×32, write it as a grid: one character per pixel, so you see the whole silhouette while you write it instead of finding out afterwards what a stack of ellipses and rects added up to.

draw layer="base" label="block in slime" ops=[
  { kind:"grid", x:8, y:10, legend:{ "O":"#5f574f" }, rows:[
    "....OOOO....",
    "..OOOOOOOO..",
    ".OOOOOOOOOO.",
    "OOOOOOOOOOOO",
    "OOOOOOOOOOOO",
    ".OOOOOOOOOO." ] }
]

Every row must be the same width, . is transparent, and transparent cells erase what is under them (transparent:"skip" to stamp over existing art instead). Bigger sprites: one grid per body part or per layer, each at its own x/y — long rows of identical characters are where a model miscounts, and a ragged row is refused with its row number rather than silently shifted.

Shapes are still the right tool for big regular forms — a sky gradient, a floor, a 40-pixel circle:

draw layer="base" label="block in knight" ops=[
  { kind:"ellipse", rect:{x:12,y:4,width:8,height:8}, color:"#5f574f", fill:"#5f574f" },
  { kind:"rect",    rect:{x:11,y:12,width:10,height:10}, color:"#5f574f", fill:"#5f574f" },
  …
]

Batch aggressively. One call is one undo step for the user; forty calls are forty. See rules://03-silhouette-and-form.

3. Check the silhouette immediately

look op="preview"

Ask yourself the only question that matters here: is it recognisable as one flat shape? If not, fix it now. Shading a bad silhouette is wasted work.

Watch for: symmetry that reads as a statue, tangents where an arm fuses into the torso, limbs all the same thickness.

With a reference, preview blends the half-transparent reference into the art — use look op="compare" instead: reference left, art right. Name the three to five largest mismatches (silhouette, proportion, pose, where the colour masses sit), fix only those in one draw call, compare again. Stop when what is left is a deviation the PixelSpec lists. This loop repeats after materials (step 4) and after shading (step 5): the reference is a check on every stage, not only the first.

4. Separate the materials

Replace regions of the blockout with each material's base colour — skin, metal, leather, cloth. Still flat. Still one draw call.

5. Shade

See aseprite:shade. One shadow step, look, one light step, look. Stop there unless the sprite is 32px+ and genuinely needs more.

6. Outline

Pick one style from rules://04-outlines-and-edges and apply it consistently. Selective outlining — outside only — is usually right. transform op outline does the mechanical part: side="outside" grows the shape by a pixel, side="inside" recolours its edge and keeps the size; diagonals=true fills the corner pixels for square corners, off leaves them cut and softer. Hand-place where you want it broken.

6b. Text, if the art has words

draw op kind text lays out a string from a bitmap font and draws it in the same batch as everything else. Pass measureOnly: true with only text ops first to get the ink bounds back without touching the sprite — that is how you centre a label or size a panel around it before committing to a position. See TOOLS.md for the font format.

7. Verify precisely

look op="ascii"

The text grid is where you catch the pixel one row too low and the line run of 3 in a sequence of 2s. A preview cannot show you those.

To fix what it shows, edit the grid itself: look op="ascii" layer="base" rulers=false region=… returns bare rows plus origin; change the cells that are wrong and send the rows back as draw kind grid at that origin, with the legend look gave you. Only the region you send is touched. A glyph is a palette index and means the same colour in every region you read.

8. Validate and report

validate

Fix every error. Report warnings you chose not to fix, with the reason.

Batching rules

  • Ops run in array order, so paint fills before outlines and outlines before highlights.
  • Leave paletteLock on. When the result says a colour moved with ΔE > 12, the palette has no colour for what you asked — say so rather than turning the lock off.
  • Use label to describe the intent; it becomes the user's undo entry.

Related

rules://00-core-principles, rules://02-shading-and-light, rules://03-silhouette-and-form, rules://04-outlines-and-edges, rules://10-lines-and-curves, rules://11-clusters-and-noise, and the subject files listed in skill://studio under Subject rules.

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

Kỹ năng AI Draw làm được gì?

Vẽ sprite từ khối dáng đến pixel hoàn chỉnh theo trình tự giúp phát hiện lỗi khi còn dễ sửa: phác khối, kiểm tra dáng, đổ bóng, tạo viền và rà soát. Dùng cho phần thân chính của mọi tác vụ vẽ.

Vì sao nên dùng Draw trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Draw là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Draw trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/with-pebbly/aseprite-ai-artist/tree/main/skills/draw. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Draw?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Draw với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Draw với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Draw có miễn phí không?

Có. Kỹ năng này được with-pebbly phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇