Ai Reference Gallery logo

Ai Reference Gallery

Community
vculjp
ai-reference-gallery

Standalone pose, depth, outfit and face reference Skill. Supports matched Depth maps, catalog face selection, natural-language selection, caching, reference boards, and 4/9-panel grids. No full gallery download or API key required.

Overview

Publishervculjp
Repositoryai-reference-gallery
Skill nameai-reference-gallery
Stars
27
Forks
14
Bundled files
10
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.

  • 10 bundled files

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

  • Open source

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

Installation

Install the Ai Reference Gallery 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/vculjp/ai-reference-gallery/tree/main/.agents/skills/ai-reference-gallery
  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/vculjp/ai-reference-gallery.git /tmp/ai-reference-gallery
mkdir -p .claude/skills
cp -r /tmp/ai-reference-gallery/.agents/skills/ai-reference-gallery .claude/skills/ai-reference-gallery
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ai Reference Gallery 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 Ai Reference Gallery 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 Ai Reference Gallery 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.

AI Reference Gallery

Standalone after installation. The skill contains a versioned Catalog v1 manifest (data/catalog-v1.json.gz) plus compressed Canvas/i18n runtime (data/runtime.json.gz); it runs from ANY working directory, including E:\codex or an unrelated project. Only selected original images are fetched over HTTPS and cached for later use. Never require cloning the full gallery or copying catalog.js. This tool composes reference boards, not finished AI artwork.

Workflow

  1. Find this installed SKILL.md and run its sibling scripts/gallery.cjs with an absolute path (for example node "C:\Users\YOUR_NAME\.codex\skills\ai-reference-gallery\scripts\gallery.cjs" ...). The current directory controls where output files are written; it need not contain a gallery or any images.
  2. Run doctor first when a user's environment is unknown or exports fail. It checks Node.js, Chrome/Edge, bundled runtime, cache write permissions and output directory offline.
  3. Use --describe "春季自然站姿,不要性感风格" for explainable rule-based selection, or explicit category/ID filters. The selection JSON field lists matched and unsupported constraints. Never claim to understand unsupported styles (e.g. 日系) visually or semantically. search and categories work offline; never invent IDs.
  4. Run compose for separate two/three-image PNGs; use grid --size 4|9 --grid-mode pairs for 4/9 paired reference boards in one PNG (default), or grid --size 4|9 --grid-mode single --grid-source pose|outfit for a single-image grid where each cell contains one independent image. Single-image grids support --aspect square|portrait. If no fixed ID is requested, grids require distinct matching assets and fail clearly rather than silently repeating.
  5. The Skill downloads only the selected originals (static site, then GitHub fallback) and retains an SHA-256-checked local cache. Internet is needed only for uncached images. Read the returned JSON; output .png, .txt and .json paths accurately.

Commands

bash
# Run these from the installed Skill directory, OR invoke gallery.cjs by absolute path.
# On a Windows global Codex install, see the PowerShell example below.
# Explore available categories or catalog records (JSON output).
node scripts/gallery.cjs categories --type pose
node scripts/gallery.cjs catalog --type outfit --category spring --limit 10
node scripts/gallery.cjs catalog --format manifest
node scripts/gallery.cjs search --type pose --query "站姿" --limit 8
node scripts/gallery.cjs search --type depth --query "站姿" --limit 8
node scripts/gallery.cjs search --type outfit --category spring --query "white"
node scripts/gallery.cjs search --type portrait --category short --limit 10
node scripts/gallery.cjs catalog --type portrait --id f71f980dde3
node scripts/gallery.cjs doctor
node scripts/gallery.cjs search --type outfit --describe "春季穿搭不要性感风格" --limit 8

# Reproducible random combinations; no need to start a browser for searching.
node scripts/gallery.cjs compose --pose-category 站姿 --outfit-category spring --count 5 --seed street-01 --out-dir output/street

# Explicit pose and clothing image; optional third, user-owned person photo.
node scripts/gallery.cjs compose --pose-id full_sexy_P001_front --outfit-id SPR-0001 --person "C:/Photos/person.png" --out output/my-reference.png

# Select a real face from the portrait catalog instead of uploading a local photo.
node scripts/gallery.cjs compose --pose-id full_sexy_P001_front --outfit-id SPR-0001 --portrait-id f71f980dde3 --out output/face-reference.png
node scripts/gallery.cjs compose --pose-id full_sexy_P001_front --outfit-id SPR-0001 --use-depth --out output/depth-outfit.png
node scripts/gallery.cjs compose --pose-id full_sexy_P001_front --outfit-id SPR-0001 --depth-file "C:/Photos/depth.png" --out output/custom-depth.png
node scripts/gallery.cjs grid --size 9 --use-depth --out output/depth-grid.png
node scripts/gallery.cjs grid --size 9 --grid-mode single --grid-source depth --pose-category 站姿 --out output/depth-sheet.png
node scripts/gallery.cjs grid --size 4 --portrait-hair long --portrait-section face --out output/one-character-grid.png

# Custom outfit photo in slot two, without a catalog outfit.
node scripts/gallery.cjs compose --pose-id full_sexy_P001_front --outfit-image "C:/Photos/outfit.webp" --background soft --labels false --out output/custom.png

# Four-panel comparison grid: one PNG, four different looks (2 columns × 2 rows).
node scripts/gallery.cjs grid --size 4 --pose-category 站姿 --outfit-category spring --seed four-demo --out output/four-grid.png

# Nine-panel comparison grid: nine poses against the SAME outfit (3 × 3).
node scripts/gallery.cjs grid --size 9 --outfit-id SPR-0001 --seed nine-demo --out output/nine-grid.png

# One image in each cell: 3x3 pose sheet, or portrait 2x2 clothing sheet.
node scripts/gallery.cjs grid --size 9 --grid-mode single --grid-source pose --pose-category 站姿 --out output/poses.png
node scripts/gallery.cjs grid --size 4 --grid-mode single --grid-source outfit --aspect portrait --out output/outfits.png

# Natural-language constraints, seed makes the selection repeatable.
node scripts/gallery.cjs grid --size 9 --describe "日系春季穿搭,动作自然站姿,不要性感风格" --seed demo --out output/natural.png

# Four/nine variations of the SAME character with a user-provided third reference:
node scripts/gallery.cjs grid --size 4 --person "C:/Photos/person.png" --out output/my-character-grid.png

PowerShell from any folder, after installing the Skill through Codex:

powershell
$skill = "$env:USERPROFILE\.codex\skills\ai-reference-gallery\scripts\gallery.cjs"
node $skill search --type pose --query "站姿" --limit 5
node $skill grid --size 4 --pose-category 站姿 --outfit-category spring --out output/four-grid.png
node $skill grid --size 9 --grid-mode single --grid-source outfit --describe "春季服装" --out output/spring.png
node $skill doctor

Every standard reference board uses fixed left-to-right order: pose OR depth → outfit → optional person. With --use-depth, Depth replaces the pose instead of adding a third panel. In paired grids, each left-hand pose is replaced by its matched Depth. The grid command arranges boards in a numbered 2×2 or 3×3 matrix. The grid's .txt contains prompts for every cell. Only catalog images show catalog IDs. Images are contained without cropping. --person and --outfit-image accept local JPG, PNG or WebP up to 50 MB; --depth-file requires a local PNG. User photos stay local. Defaults are output/skill-compositions for compose and output/skill-grids/grid-4.png or grid-9.png for grid, relative to the caller's working directory.

--lang zh-CN|en|ja controls catalog labels and prompts. Random selection defaults to single-person poses; use --include-duo for two-person poses. compose --count ranges from 1 to 20; grid uses --size 4|9. Explicit --pose-id / --outfit-id locks an asset across cells. Otherwise grid outputs enforce distinct references. --describe uses local catalog rules, NOT AI image recognition; unsupported style terms are reported. Existing files are never overwritten without --overwrite.

PNG generation requires Node.js 22+ and installed Chrome or Edge. Set CHROME_PATH if auto-detection fails. No npm packages or remote API keys are required. Original downloads go into ~/.cache/ai-reference-gallery/img/ (override with AI_REFERENCE_CACHE_DIR); cached files get SHA-256 sidecars and are re-fetched if changed or corrupted. Downloader prints progress to stderr while keeping JSON output on stdout. AI_REFERENCE_ASSET_BASE can point to a trusted HTTPS static mirror. doctor, search and categories work without image downloads.

Faces come from AI Portrait Gallery by あぎ. Use --portrait-id, or --portrait-hair short|medium|semi-long|long with --portrait-section face|styling and --portrait-query. One selected face is shared across a batch or paired grid. --person FILE and catalog-face options are mutually exclusive. Original faces are downloaded and cached only when selected.

See usage and troubleshooting for search semantics and error recovery.

Guardrails

  • This is reference-board composition, not final image synthesis or automatic face replacement.
  • Do not upload local photos to external services or copy source images into the skill folder.
  • Catalog assets retain their original restrictions: read ASSETS.md before redistributing or commercializing materials. The code's MIT license does not grant blanket rights to the images.
  • If a category/keyword has no matches, report that and use search to find supported alternatives rather than silently changing the request.

Bundled files

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

Frequently asked questions

What does the Ai Reference Gallery AI skill do?

Standalone pose, depth, outfit and face reference Skill. Supports matched Depth maps, catalog face selection, natural-language selection, caching, reference boards, and 4/9-panel grids. No full gallery download or API key required.

Why use Ai Reference Gallery on TypingMind?

Because you install it once and use it with any model. Ai Reference Gallery 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 Ai Reference Gallery in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vculjp/ai-reference-gallery/tree/main/.agents/skills/ai-reference-gallery. 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 Ai Reference Gallery?

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 Ai Reference Gallery?

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

Is the Ai Reference Gallery AI skill free?

Yes. It is published on GitHub by vculjp 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 👇