Logotipo de Ai Reference Gallery

Ai Reference Gallery

Comunidad
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.

Descripción general

Editorvculjp
Repositorioai-reference-gallery
Nombre de la habilidadai-reference-gallery
Estrellas
27
Forks
14
Archivos incluidos
10
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 10

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por vculjp en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Ai Reference Gallery en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/vculjp/ai-reference-gallery/tree/main/.agents/skills/ai-reference-gallery
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Ai Reference Gallery en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Ai Reference Gallery automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Ai Reference Gallery no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Ai Reference Gallery en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Ai Reference Gallery está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Ai Reference Gallery en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/vculjp/ai-reference-gallery/tree/main/.agents/skills/ai-reference-gallery. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Ai Reference Gallery?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Ai Reference Gallery?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Ai Reference Gallery con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Ai Reference Gallery?

Sí. vculjp la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇