跳到正文
Skillpedia
图片与图标28k · #9856

hatch-pet

它能做什么

这项技能根据角色构想、品牌或公司线索,或参考图片,为 Codex 创建一个小型动画宠物角色。适合想要与 Codex 兼容的定制动画宠物的人。

适用场景

  • ✓当你想根据自己描述的角色,为 Codex 制作定制动画宠物的时候。
  • ✓当你希望宠物的风格参照某个公司或品牌吉祥物的时候。
  • ✓当你手上有参考图片,并希望把它们变成动画宠物精灵图的时候。

技能链接

https://github.com/openai/skills/blob/main/skills/.curated/hatch-pet/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openai/skills/blob/main/skills/.curated/hatch-pet/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我制作一个 Codex 动画宠物,角色是一只小型橙色狐狸,参考我分享的这些图片。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体通过图像生成技能生成基础形象,制作动画帧行,对精灵图进行视觉检查,然后为 Codex 打包结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Hatch Pet

Overview

Create a Codex-compatible animated pet from a concept, brand cue, company/prospect name, one or more reference images, or any combination of those inputs. This workflow keeps the deterministic hatch-pet pipeline for atlas geometry, validation, visual QA, and packaging, while using concise state-specific prompts and allowing any pet-safe visual style.

User-facing inputs are optional. If the user omits a pet name, infer one from the concept, brand, company, or reference filenames; if that is not possible, choose a short friendly name. If the user omits a description, infer one from the concept or references. If the user omits reference images, generate the base pet from text first, then use that base as the canonical reference for every animation row.

Generation Delegation

Use $imagegen for all normal visual generation.

Before generating base art, row strips, or repair rows, load and follow the installed image generation skill:

${CODEX_HOME:-$HOME/.codex}/skills/.system/imagegen/SKILL.md

Do not call the Image API, image CLI, or any other image-generation path directly. Let $imagegen choose its own built-in-first path and fallback rules. If $imagegen says a fallback requires confirmation, ask the user before continuing.

When invoking $imagegen, pass the generated pet prompt as the authoritative visual spec. Pet prompts should stay concise, state-specific, sprite-production oriented, and grounded in the listed input images. Keep longer policy and QA rules in this skill and the deterministic review scripts rather than expanding them into every image prompt. Do not wrap prompts in the generic $imagegen shared prompt schema.

Use this skill's scripts for deterministic image work only: preparing layout guides and prompts, mirroring approved running-left, extracting frames, validating rows, composing the final atlas, and creating contact-sheet plus motion-preview QA media. Parent-owned shell/jq steps handle manifest updates, packaging, and cleanup.

Storage Controls

The built-in $imagegen path stores generated PNG bytes in the rollout that invokes it, even when it also writes a file under ${CODEX_HOME:-$HOME/.codex}/generated_images. Deleting files later reduces filesystem use, but it does not shrink an already-written rollout. Keep image generation isolated and bounded:

  • Use one lightweight generation worker per visual job. Do not batch multiple base/row jobs into the same worker.
  • Workers must return only selected_source=... and qa_note=...; they must not include Markdown image previews, base64, or extra visual attachments in their final response.
  • The parent must not open every generated PNG visually. Use worker QA for each job and inspect only the final contact sheet.
  • After copying the selected generated output into decoded/, remove the selected original from ${CODEX_HOME:-$HOME/.codex}/generated_images when it lives there, then remove its now-empty generation directory if possible.
  • For storage-sensitive full runs, ask the user whether to use the $imagegen CLI fallback when available. That path requires local API credentials and explicit user confirmation, but it can avoid built-in image payloads being embedded in rollout events.

Brand Discovery

If the user provides a brand, company, product, or prospect name rather than a concrete avatar description or reference image, run a lightweight discovery subagent before preparing the pet run. The discovery worker must use web search and prefer official sources such as the brand site, product pages, docs, about pages, press pages, or brand pages. Use reputable secondary sources only when official pages are too thin. Keep the search narrow: enough to extract visual and personality cues, not a market-research brief.

Skip discovery when the user already provides a concrete mascot/avatar description or reference images, unless the user explicitly asks for brand research.

Discovery worker responsibilities:

  • search the web for 2-4 relevant sources, preferring official pages
  • write an adaptive markdown brief rather than a rigid field dump
  • cover identity/category, audience/use context, visual system, personality/tone, product/domain motifs, mascot translation cues, avoidances, and evidence/confidence
  • mark mascot guidance that is inferred from sources as inference
  • avoid copying logos, readable marks, UI screenshots, slogans, or text
  • end with a compact Generation handoff section cont
常见问题

我需要参考图片吗?

不需要。如果你没有提供,智能体会先根据你的文字描述生成基础宠物。

它会使用图像生成工具吗?

会。该技能会把所有常规图像生成工作交给 imagegen 技能。

最终输出是什么样子?

是一个完整的动画宠物图集,未使用的格子保持透明,并附带一个经过验证的安装包。

详情

作者的原始描述

Create, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect brand cues, or visual references. Use when a user wants a lightweight-worker Codex pet workflow, a non-pixel custom pet style, a prospect or company mascot pet, or a full 8x9 animated pet atlas with transparent unused cells, QA contact sheets, and pet.json packaging. This skill composes the installed $imagegen system skill for visual generation and uses bundled scripts for deterministic spritesheet assembly.

repo: openai/skills

热度

GitHub 星标
28k
排名
#9856
许可证
—
更新时间
2026/10/28

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能