Old Adventure Game Draw logo

Old Adventure Game Draw

Community
scpedicini
old-adventure-game-draw

Draw retro Sierra / King's-Quest-style adventure game scenes (AGI, 160×168, 16-colour EGA) as vector drawing instructions in PicScript, render them to PNG, and add them to the kq-styles viewer. Use when asked to draw, paint, design or recreate an old adventure game scene, background, screen or room - including day/night/dusk variants - or to write or debug PicScript (.pic) files. When the user supplies an image to recreate, or a layout sketch, hybrid sketch (words plus coloured brushstrokes) or ASCII layout (words placed where things go), use old-adventure-game-from-image instead.

Overview

Publisherscpedicini
Repositoryagi-stylist
Skill nameold-adventure-game-draw
Stars
35
Forks
0
Bundled files
86
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 86 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by scpedicini on GitHub. Read the source before you install it.

Installation

Install the Old Adventure Game Draw AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/scpedicini/agi-stylist/tree/main/skills/old-adventure-game-draw
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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-draw .claude/skills/old-adventure-game-draw
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Old Adventure Game Draw in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Old Adventure Game Draw on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Old Adventure Game Draw is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Old Adventure Game draw

You write PicScript: a small, Logo-flavoured drawing language that compiles to the same kind of instructions Sierra's AGI engine used to paint King's Quest I screens (colour, lines, flood fills, brush plots). Scenes are text files. The app replays them stroke by stroke in the browser, and a CLI renders them to PNG so you can look at your own work.

Paths starting with references/ or examples/ are inside this skill's folder (skills/old-adventure-game-draw/). All other paths and commands are relative to the project root (the directory with package.json).

Read first (once per task)

  1. references/picscript.md: the language, the canvas (160×168, pixels twice as wide as tall) and the one rule that matters: fill only fills white pixels.
  2. references/style-guide.md: how KQ1 screens are composed and coloured, including the stage (up the screen is further away: sizes and ground paths shrink towards the horizon).
  3. references/stdlib.md: ready-made functions (horizon, sky, hills, ground, tree, pine, bush, rock, pond, river, path, cloud, fence, stonewall, flowers, fruit, sparkle, night()…). Each has a thumbnail PNG you can Read. There are also seed sheets (tree-seeds.png, rock-seeds.png, …) for choosing shapes.

Worked examples: examples/*.pic in this skill are small and focused:

  • minimal
  • outline-then-fill
  • turtle-tree
  • day-night-cottage
  • feature-object (a glowing golden apple)

scenes/handmade/lakeside.pic is a full recreation of a KQ1 screen.

Workflow

  1. Plan the scene as layers, back to front: sky → distant hills → far treeline → ground → far objects → near objects → small details → lighting (variants) → frame().
    • Decide the horizon row (KQ1 median: sky to ~row 14, hills to ~25, grass below ~30). horizon(y) paints that whole standard backdrop in one call with no gaps.
    • Decide where the big framing element goes and keep the walkable middle open.
    • Size things by depth: groundscale(base_y, horizon); paths, roads and rivers on the ground with trail(...), stands of trees with forest(...).
    • List the variants the user asked for (e.g. variants day, night).
  2. Write scenes/custom/<slug>.pic (kebab-case slug). Start with scene "<Title>" and variants …. Use stdlib functions for standard motifs. Write your own fns for anything specific to the request (a golden apple, a signpost, a well). Use polygon / rect / ellipse / shape() for shapes painted over other things. Use line for thin details in a contrasting partner colour.
  3. Render every variant and look at them:
    bash
    pnpm render scenes/custom/<slug>.pic --variant all --scale 3
    This writes out/<slug>-<variant>.png. Open each PNG with the Read tool and check it against the request and the style guide:
    • Is every requested element present and recognisable at this resolution?
    • Any white specks or bands (unpainted canvas)? Any leaked fills?
    • Do the colours follow KQ1 conventions? Are outlines visible against their background?
    • Does each variant read correctly (night is dark, lights stand out, …)? Add --steps 6 to see the painting order if layering looks wrong. Small details are hard to judge at full size, so zoom in with pnpm render <scene> --crop x1,y1,x2,y2 --scale 8.
  4. Lint:
    bash
    pnpm lint:pic scenes/custom/<slug>.pic
    Fix every error and warning. A fill that floods more than 40% of the picture is flagged as a possible leak. If a big background fill is intended, end its line with # lint: ok. Notes about never-painted canvas usually mean a gap: extend a band or add a backdrop rect.
  5. Iterate on steps 2-4 until it looks right. Usually 2-4 rounds. Small details (fruit, windows, flowers) are only a pixel or two, so make important ones at least 2×2.
  6. Report: the file path, the variants, the PNGs in out/, and the viewer link. Any .pic under scenes/ appears in the viewer automatically, at http://localhost:5250/#/scene/custom/<slug>?variant=<name>. The link only works while pnpm dev is running; say so instead of starting a server if you were asked not to. Mention anything you approximated.

Rules of thumb

  • Paint back to front. Solid shapes (rect, polygon, ellipse, stdlib) cover anything below them. fill only works on a white canvas, so use it for big areas painted first or in outline-then-fill sections.
  • The 2:1 pixel aspect: round things need rx ≈ ry / 2.
  • Use seed: arguments to get a different but repeatable shape for each tree or rock. Pick seeds from the seed sheets rather than guessing.
  • Make things that must be noticed (a golden apple, a key, a door) bigger than their neighbours, outline them in black, and give them a highlight pixel. examples/feature-object.pic shows how.
  • stars paint over anything, so keep their bottom above the mountain peaks.
  • Put variant-specific drawing after the shared scene. Call night() / dusk() (or your own remap) before drawing the moon, stars, lit windows and anything that should glow, so those keep their colours. night() darkens every colour at once (see its entry in stdlib.md).
  • Things may run off the picture: shape, polygon, outline and stroke are clipped at the edge. line bends off-picture points onto the edge and warns, so use stroke for lines that leave the picture.
  • Finish with frame(), the black 1-pixel border every KQ1 screen has.
  • Keep it bold and simple. Ten strong shapes beat a hundred specks.

Working from someone else's picture or layout

If the user gives you an image to recreate (a photo, painting, illustration, screenshot, or a tile from a sheet of game backgrounds), use the sibling skill ../old-adventure-game-from-image/SKILL.md. It reframes the image, grids it for measuring, and explains how to translate colours and simplify detail by eye. Don't convert it automatically.

The same skill handles layout sketches: an image or an ASCII box of words placed where things go (SUN top right, TREE1 bottom left), usually with a description of each, and hybrids that add rough coloured brushstrokes for areas and paths. Its sketch mode turns the layout into measured picture positions (exact ones for ASCII) and checks the result with an overlay.

Matching a KQ1 reference screen

To match a reference image (e.g. one of reference/kq1/*.png), add # @reference kq1/rRR-cCC to the scene header. Then:

  • pnpm render <scene> --compare --confusion prints the % match and the biggest "wanted X, got Y" mismatches.
  • pnpm regions kq1/rRR-cCC lists the major colour regions as polygons.
  • pnpm regions kq1/rRR-cCC --lines black extracts line art as polylines.

Troubleshooting

symptomcause / fix
fill did nothingseed pixel was already painted. Use polygon/rect, or fill before painting over
everything turned one coloura fill leaked through a gap in its outline. Close it, or use polygon
a parenthesised value can't contain ','write calls as tree(80, 120) or tree 80, 120, not tree (80, 120)
line 10 -5 drew the wrong thinga spaced minus starts a new argument. Write 10 - 5 or use commas
'variant' is built invariants are chosen at render time. Use if variant == "night" { … }
a detail disappearedit's the same colour as its background, or a later layer covered it

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

and 26 more files.

Frequently asked questions

What does the Old Adventure Game Draw AI skill do?

Draw retro Sierra / King's-Quest-style adventure game scenes (AGI, 160×168, 16-colour EGA) as vector drawing instructions in PicScript, render them to PNG, and add them to the kq-styles viewer. Use when asked to draw, paint, design or recreate an old adventure game scene, background, screen or room - including day/night/dusk variants - or to write or debug PicScript (.pic) files. When the user supplies an image to recreate, or a layout sketch, hybrid sketch (words plus coloured brushstrokes) or ASCII layout (words placed where things go), use old-adventure-game-from-image instead.

Why use Old Adventure Game Draw on TypingMind?

Because you install it once and use it with any model. Old Adventure Game Draw is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Old Adventure Game Draw in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/scpedicini/agi-stylist/tree/main/skills/old-adventure-game-draw. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Old Adventure Game Draw?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Old Adventure Game Draw?

As many as you like. As long as a model supports skills, you can use Old Adventure Game Draw with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Old Adventure Game Draw AI skill free?

Yes. It is published on GitHub by scpedicini under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇