Logo Old Adventure Game From Image

Old Adventure Game From Image

Cộng đồng
scpedicini
old-adventure-game-from-image

Chuyển ảnh người dùng cung cấp thành cảnh AGI theo phong cách Sierra / King's-Quest cổ điển bằng PicScript (160×168, EGA 16 màu). Có hai chế độ. Chế độ hình ảnh tái tạo ảnh chụp, tranh vẽ, hình minh họa, pixel art, ảnh chụp màn hình hoặc một ô lấy từ bộ ảnh nền game bằng cách phân tích ảnh rồi chuyển thể như một họa sĩ năm 1984. Chế độ phác thảo dựng cảnh từ bản phác thảo bố cục, bản mô phỏng có chú thích hoặc khung dây, bản phác thảo kết hợp (chữ và nét cọ màu sơ lược để biểu thị khu vực và đường đi), hoặc bố cục ASCII (chữ được đặt vào vị trí tương ứng, có thể kèm vài dòng và mô tả bằng văn bản). Dùng khi người dùng gửi ảnh hoặc bố cục (dán trực tiếp, đường dẫn tệp, ảnh bộ sưu tập kèm ô cần chọn hoặc ASCII art) và yêu cầu vẽ, tái tạo, chuyển đổi, chuyển thể, dựng hoặc “làm” theo phong cách game phiêu lưu cổ điển / KQ / AGI / EGA.

Tổng quan

Nhà phát hànhscpedicini
Kho mãagi-stylist
Tên kỹ năngold-adventure-game-from-image
Sao
35
Bản fork
0
Tệp đi kèm
2
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ộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được scpedicini 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 Old Adventure Game From Image 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/scpedicini/agi-stylist/tree/main/skills/old-adventure-game-from-image
  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/scpedicini/agi-stylist.git /tmp/agi-stylist
mkdir -p .claude/skills
cp -r /tmp/agi-stylist/skills/old-adventure-game-from-image .claude/skills/old-adventure-game-from-image
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 Old Adventure Game From Image 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 Old Adventure Game From Image 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 Old Adventure Game From Image 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.

Old Adventure Game from an image

You turn an image the user gives you into a PicScript scene: hand-written drawing instructions that paint a 160×168, 16-colour EGA picture the way Sierra's AGI games did. There are two kinds of image, and they need different work:

  • Picture mode: a real picture (photo, painting, illustration, pixel art, screenshot, a tile of a background sheet). You translate it: look at it, decide what matters, choose colours the way an EGA artist would, and draw it back to front with simple shapes.
  • Sketch mode: a layout sketch. It's mostly blank, with words placed where things go (SUN, TREE1, BIRD_FLYING_RIGHT), maybe boxes, arrows or a few lines, or an ASCII box of words pasted as text, usually with a brief ("Tree1 is an oak with no leaves"). A hybrid sketch adds rough coloured brushstrokes to the words (a green loop labelled "Trees", a brown stroke for a trail, a grey line across the page for a cliff edge): still sketch mode. You compose a scene: the sketch fixes where things go, the brief fixes what they look like, and the drawing skill's style fixes the look.

Choose exactly one mode before reading a mode guide, and don't read the other mode's guide. If the image supplies finished shapes, colours or lighting to reproduce (even with a few labels on it), use picture mode and read its labels as notes. If its marks are placement scaffolding (words, boxes, arrows, stick lines, rough patches and strokes of paint on blank paper) and the brief supplies the look, use sketch mode.

In picture mode, do not quantise or trace the image. Automatic nearest-colour reduction turns most modern art grey and muddy, and it misses the point: the scene should be hand-made, editable, and read clearly at 160×168. The tools here only measure positions. Every colour is your choice.

Paths starting with references/ are in this skill's folder. ../old-adventure-game-draw/ is the sibling drawing skill. Commands run from the project root (the folder with package.json).

Read first (once per task)

Read each file on its own with the Read tool. One cat of several gets cut off, and you lose the end of the stdlib reference.

  1. ../old-adventure-game-draw/references/picscript.md: the language. 160×168 picture, pixels twice as wide as tall, and fill only fills white. Look at ../old-adventure-game-draw/references/palette.png too: EGA colours are stronger than their names suggest.
  2. ../old-adventure-game-draw/references/style-guide.md: how KQ screens look.
  3. ../old-adventure-game-draw/references/stdlib.md: ready-made functions with thumbnails. For translating, the most useful are blobs (merged foliage), band (roots, branches, tentacles), boulder (rock with a shaded side), surround (a frame you look through), ribbed (ribbed tubes), chain, archway, lancet (pointed arches), column, stones, books, palm, fern, frond, leaf, trunk, web, interp, arc, shift, offset (a parallel copy of a curving path), along (evenly spaced points on a path), across (short segments across a path), room and depth (a room seen head-on), spanx (an outline's columns on a row), scale, slice and reverse.
  4. Only the guide for your mode:
    • Picture mode: references/translating.md, how to translate an image. Reframing, colour by role, what to keep and drop, recipes for common materials, lighting, checks, and which worked example to open for your kind of source.
    • Sketch mode: references/sketches.md, how to compose from a layout sketch. Reading labels, the kinds of entity and where each goes, arrows and notes, sketch versus brief, sizes, checking with the ink overlay.

Names and places

  • slug: a kebab-case name for this job, e.g. elk-valley. Pass it as --name <slug> to both pnpm grid and pnpm render, so every output file carries it.
  • scene file: scenes/custom/<slug>.pic, unless you were told to put it elsewhere (e.g. scenes/kq6/r03-c01.pic). Below, <group>/<file> means its folder and file name without .pic (custom/elk-valley, kq6/r03-c01).
  • viewer link: http://localhost:5250/#/scene/<group>/<file>. It only works while pnpm dev is running.

Sketch mode workflow

Follow references/sketches.md from §1 to §8. It's complete on its own: pnpm grid <sketch> --fit --name <slug> (or an ASCII layout saved as a .txt), an entity table, layout, look, the header, then pnpm render … --overlay out/source/<slug>/ink.png to check every label sits on its object, lint, and the report. "Names and places" above applies; the picture-mode workflow below doesn't.

Picture mode workflow

  1. Get the image onto disk. A pasted image usually comes with a path, e.g. [Image: source: /path/to/image.png]. Use that path. If there is no path, ask the user to save the image somewhere and tell you where. For one tile of a sheet of backgrounds, note the sheet's columns × rows and the tile's column, row (1-based).

  2. Reframe and grid it:

    bash
    pnpm grid <image> --name <slug> [--trim] [--anchor top|bottom|left|right] [--tile CxR:c,r] [--crop x,y,w,h]

    The game screen is 1.9:1. Unless you pass --crop, grid crops the image to within 15% of that shape and squashes the rest. A --crop region is squashed to fit however far off it is (grid prints the squash; keep it near 15% or less). The squash is already applied in every output, so read grid numbers as they are. Use --anchor to keep the important part (top for a tall image whose subject is high). --trim strips plain, solid-colour borders such as black bars. A status bar or UI strip with text in it isn't plain, so cut it off with --crop instead (after --trim, crop coordinates are relative to the trimmed image). It writes out/source/<slug>/:

    • view.png: what the reframed image looks like on screen (6× wide, 3× tall). Read it first, for the picture as a whole. Don't measure from it. A very dark source is brightened in view.png and the grids (never in picture.png) so you can see what's there; --brighten does it by hand. Brightening washes out hues and makes the scene look lighter than it is, so take colours from picture.png (your first --beside render shows it) and, for a dim interior, from the "dim or night interior" row of the colour table.
    • grid.png: the whole picture at 4× with a labelled 10-pixel grid. Read it second, for the layout: horizon, big masses, main edges.
    • grid-tl.png, grid-tr.png, grid-bl.png, grid-br.png: the quarters at 8×, labelled every 10 pixels. Read them for exact positions of edges and details.
    • picture.png: the reframed image at 160×168, for --beside below. All grid labels are picture coordinates (x 0-159, y 0-167). The quarters show only part of the picture, so check in view.png which object a post, pole or edge belongs to before you place it from a quarter. grid notes a flat strip along the top or bottom edge; check view.png, and if it's a status bar or a sheet's divider rather than sky or floor, crop it off. Tiles from sheets can also carry false colours (e.g. highlights ripped as pure red); translate those by role too. If the crop lost something important, rerun with --anchor or --crop. You may also move or shrink an element in your drawing so it fits (say so in the header).
  3. Plan before you draw, following references/translating.md:

    • Inventory: list everything in the image, then keep the 8-15 things that make it read and list what you'll drop.
    • Layers, back to front. Outdoors: sky → far → middle ground → cast shadows on the ground → things standing on it → near → details → lighting → frame(). Indoors: back wall and ceiling → openings (doors, windows, arches) and what shows through them → far furniture → floor and rugs → cast shadows → columns, stairs and near furniture → foreground props → frame().
    • Colour map: for each kept element, its EGA colour(s), chosen by role. Make sure things that touch get different colours.
    • Lighting: the source's own lighting is the first variant. Make other variants only if the user asked for them; you can offer them in your report. A single variant still gets a name for its lighting: variants day outdoors in daylight; variants night for night, and also for dim or underworld interiors, caves and gloomy teal or twilight scenes; variants lit for a lit interior. Indoors, go by the colour of the light: cool or blue light is night, warm light is lit.
  4. Write the scene file. Start with a header that records the translation:

    js
    # <Title>
    # Source: <what it is / where it came from>; reframed with: pnpm grid … (copy the
    #   "reproduce" line grid printed)
    # Method: translated by eye. Kept: … Dropped: … Moved: …
    # Colours: <source thing> → <EGA colour>, …
    scene "<Title>"
    variants <source lighting first>, …

    Then draw in named, commented layers, using the stdlib and your own fns. Open the worked example that translating.md suggests for your kind of source and borrow its approach.

  5. Render beside the source and look:

    bash
    pnpm render <scene file> --name <slug> --variant all --scale 2 --beside out/source/<slug>/picture.png --grid

    It writes out/<slug>-<variant>.png, source on the left, and prints each path. Look at exactly those files; out/ also holds older renders. --grid overlays the same labelled 10-pixel grid on both panels, the quickest way to check positions; drop it once the layout is right. Keep the full side-by-side at --scale 2: a bigger one is shrunk when you view it, which makes lines and limbs look thinner than they are. Judge thickness only in a zoom. On each pass ask:

    • Composition: are the big shapes where they are in the source (within a few pixels)?
    • Reading: is every kept element recognisable at this size? Or is a key subject a shapeless lump? (Add its defining parts and internal lines.)
    • Separation: do neighbouring areas have different colours or an outline between them?
    • Seams: if a big backdrop rect sits behind everything, a gap between two shapes shows the backdrop colour instead of white canvas, so lint can't find it. Look along every seam where masses meet.
    • Style: flat EGA colours, black outlines, bold and simple, with no speckle.

    To zoom in without overwriting those files, add --crop x1,y1,x2,y2 --scale 4 --out out/zoom to the same command (keep --beside so the source is cropped to match). The corners are inclusive picture pixels (x 0-159, y 0-167). Keep a zoom at most about 80 columns wide and 80 rows tall: a bigger one is shrunk when you view it (with --beside there are two panels side by side) and the zoom is lost. Split a bigger region into halves. Judge 1-pixel details only in a zoom. To try a different palette without losing your current render, copy the scene to a scratch file and render that with --out out/trial/<slug> (a folder of its own). Then lint with pnpm lint:pic <scene file> and fix all errors and warnings.

  6. Iterate, usually 2-4 passes. Fix the biggest problem first: composition, then separation, then the main subject's shape, then details.

  7. Report: the scene file, the variants, the side-by-side PNGs, and the viewer link. Then: what you kept, dropped and moved; the key colour decisions; and anything you'd do with another pass.

Rules of thumb

  • Translate the roles, not the pixels. A teal sea is cyan, pale sand is yellow, a black locomotive is darkgrey with black shadows (pure black swallows its own outlines). The tables are in references/translating.md.
  • Neighbours must differ. If two things that touch end up the same colour, change one, or use the lighter/darker partner (green↔lightgreen, cyan↔lightcyan, lightgrey↔darkgrey, blue↔lightblue, yellow↔brown, lightred↔red).
  • Simplify texture to a few strokes. Hundreds of leaves become one blobs(...) mass with a few inner strokes. Shelves of books become books(...). An ice face becomes one lit face, a snowcap and two gullies.
  • Give big subjects structure. A one-colour silhouette with an outline reads as a blob. Add the 3-6 lines or parts that say what it is.
  • Night needs checking. Darkening (night() or your own remap) can merge things that were different colours. Look at every variant, and redraw things that glow after the remap.
  • Running off the edge is fine. shape, polygon, outline and stroke are clipped silently; framing elements usually run off the edge. line is not clipped: it bends off-picture points onto the edge and warns, so use stroke for lines that leave the picture.
  • Expect EGA to be louder than the source. Pastel, peach and muted palettes come out hotter in 16 colours. That's the look; choose by role and keep neighbours apart rather than chasing the source's exact hue.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

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

Kỹ năng AI Old Adventure Game From Image làm được gì?

Chuyển ảnh người dùng cung cấp thành cảnh AGI theo phong cách Sierra / King's-Quest cổ điển bằng PicScript (160×168, EGA 16 màu). Có hai chế độ. Chế độ hình ảnh tái tạo ảnh chụp, tranh vẽ, hình minh họa, pixel art, ảnh chụp màn hình hoặc một ô lấy từ bộ ảnh nền game bằng cách phân tích ảnh rồi chuyển thể như một họa sĩ năm 1984. Chế độ phác thảo dựng cảnh từ bản phác thảo bố cục, bản mô phỏng có chú thích hoặc khung dây, bản phác thảo kết hợp (chữ và nét cọ màu sơ lược để biểu thị khu vực và đường đi), hoặc bố cục ASCII (chữ được đặt vào vị trí tương ứng, có thể kèm vài dòng và mô tả bằng v...

Vì sao nên dùng Old Adventure Game From Image 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. Old Adventure Game From Image 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 Old Adventure Game From Image trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/scpedicini/agi-stylist/tree/main/skills/old-adventure-game-from-image. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà 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 Old Adventure Game From Image?

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 Old Adventure Game From Image 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 Old Adventure Game From Image 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 Old Adventure Game From Image có miễn phí không?

Có. Kỹ năng này được scpedicini 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 👇