Old Adventure Game Drawのロゴ

Old Adventure Game Draw

コミュニティ
scpedicini
old-adventure-game-draw

PicScriptのベクター描画指示を使って、Sierra / King's-Quest風のレトロなアドベンチャーゲームのシーン(AGI、160×168、16色EGA)を描き、PNGにレンダリングしてkq-styles viewerに追加します。昼・夜・夕暮れのバリエーションを含む、昔のアドベンチャーゲームのシーン、背景、画面、部屋の描画・デザイン・再現を頼まれたときや、PicScript(.pic)ファイルの作成・デバッグを頼まれたときに使用してください。ユーザーが画像の再現を依頼した場合、またはレイアウトスケッチ、ハイブリッドスケッチ(言葉と色付きのブラシストローク)、ASCIIレイアウト(配置を示す言葉)を提示した場合は、代わりにold-adventure-game-from-imageを使用してください。

概要

公開者scpedicini
リポジトリagi-stylist
スキル名old-adventure-game-draw
スター
35
フォーク
0
同梱ファイル
86
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 86個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    scpediciniがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Old Adventure Game Draw」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/scpedicini/agi-stylist/tree/main/skills/old-adventure-game-draw
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをその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-draw .claude/skills/old-adventure-game-draw
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでOld Adventure Game Drawを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にOld Adventure Game Drawを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Old Adventure Game Drawは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

ほかに26個のファイルがあります。

よくある質問

AIスキル「Old Adventure Game Draw」では何ができますか?

PicScriptのベクター描画指示を使って、Sierra / King's-Quest風のレトロなアドベンチャーゲームのシーン(AGI、160×168、16色EGA)を描き、PNGにレンダリングしてkq-styles viewerに追加します。昼・夜・夕暮れのバリエーションを含む、昔のアドベンチャーゲームのシーン、背景、画面、部屋の描画・デザイン・再現を頼まれたときや、PicScript(.pic)ファイルの作成・デバッグを頼まれたときに使用してください。ユーザーが画像の再現を依頼した場合、またはレイアウトスケッチ、ハイブリッドスケッチ(言葉と色付きのブラシストローク)、ASCIIレイアウト(配置を示す言葉)を提示した場合は、代わりにold-adventure-game-from-imageを使用してください。

TypingMindでOld Adventure Game Drawを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Old Adventure Game Drawはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにOld Adventure Game Drawをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/scpedicini/agi-stylist/tree/main/skills/old-adventure-game-drawを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Old Adventure Game Drawを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Old Adventure Game Drawで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもOld Adventure Game Drawを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Old Adventure Game Draw」は無料ですか?

はい。scpediciniがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇