pet-forge

pet-forge is a skill for Claude Code, Codex from rullerzhou-afk/pet-forge. It costs 88 tokens per session (5,399 once invoked), scanned A, original, MIT.

A toolkit for creating self-contained animated desktop pets as SVG or APNG files. It covers templates, animation patterns, character states, and generation steps.

In plain words
What is it for?
Use it to make or repair a desktop pet, create idle and agent-state animations, choose between SVG and APNG, and convert a reference image into an animated character.
Why use it?
It gives you a defined process for turning a character idea or reference into a desktop pet, without having to invent the file structure and animation rules yourself.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Codex.

Good fit Use it to make or repair a desktop pet, create idle and agent-state animations, choose between SVG and APNG, and convert a reference image into an animated character.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rullerzhou-afk/pet-forge/pet-forge
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rullerzhou-afk/pet-forge --skill pet-forge
Clone the repo
git clone --depth 1 https://github.com/rullerzhou-afk/pet-forge

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pet-forge

README.md
[![agentmods](https://agentmods.dev/badge/skills/rullerzhou-afk/pet-forge/pet-forge/github.svg)](https://agentmods.dev/skills/rullerzhou-afk/pet-forge/pet-forge)
Your own site
<a href="https://agentmods.dev/skills/rullerzhou-afk/pet-forge/pet-forge"><img src="https://agentmods.dev/badge/skills/rullerzhou-afk/pet-forge/pet-forge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pet-forge

Your own site · 80×15
<a href="https://agentmods.dev/skills/rullerzhou-afk/pet-forge/pet-forge"><img src="https://agentmods.dev/badge/skills/rullerzhou-afk/pet-forge/pet-forge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,399 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.05399
Opus 5.5 $0.00035 $0.02160
Sonnet 5.5 $0.00018 $0.01080
Haiku 4.5 $0.00009 $0.00540

Measured 27d ago against content hash dbacb9843b10, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pet-forge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

SKILL.md · 295 lines

How it starts

The opening of the file, as written. The whole thing — 295 lines — stays where its author put it; the contents beside it link to each section on GitHub.

pet-forge skill —— 触发条件 + 调用流程

给 AI coding agent 看的 skill 接入文档。当用户说"我想做桌宠"时,agent 应该按本文件的指引响应。


触发条件

当用户消息中出现以下信号时,激活 pet-forge skill:

强信号(必触发)

  • "我想做(自己的 / 一个)桌宠"
  • "做个 SVG 桌宠 / APNG 桌宠"
  • "帮我做一个 idle 动画"
  • "怎么做桌宠"
  • "桌宠 [角色名],[风格]"

弱信号(询问后再决定)

  • "我喜欢某个现有桌宠案例"(可能想要 fork 而不是做新的)
  • "想做个动画"(可能不是桌宠,可能是其他动画)
  • "做个角色"(可能是设计需求,不是动画)

弱信号且上下文仍无法判断时,用一句简短问题确认目标;已经能从上下文判断时直接继续。

反触发(不要触发)

  • 现有项目中的任务与桌宠造型、动画素材、状态衔接、后期或运行时验证无关
  • 用户只是在问某个现有桌宠是什么,而不是动手做

第一轮响应

先从用户已经给出的内容中提取角色、拓扑、审美方向、运行时目标和路线倾向。只询问会实质影响下一步、且上下文里尚未说明的信息;不要把固定问卷当作开工门槛,也不要重复询问已经确定的内容。

当用户还没有表达清楚时,可以围绕这些维度补问:

  • 角色是什么:已有设定、参考图,还是从概念开始;
  • 角色拓扑:主体、脸部、肢体、附属物、道具和支撑关系;
  • 审美方向:风格、材质、描边、色板与参考作品;
  • 运行时与路线:目标尺寸、贴边/悬浮方式,以及 SVG、APNG 或混合路线。

路线选择决策树

用户回答"想要..."
   │
   ├─ "循环完美 / 不付费 / 可热改" → 推荐 SVG 路线
   ├─ "快出成品 / 不在乎钱 / 风格化强" → 推荐 APNG 路线
   ├─ "不会写代码" → 推荐 APNG 路线(prompt 工程门槛低于前端动画)
   ├─ "想要精致圆润矢量感" → SVG 路线 + apple-precise preset
   ├─ "想要像素感" → SVG 路线 + pixel-art preset
   ├─ "自然人物动作 + 精确文字/粒子/符号" → APNG 人物层 + SVG 效果层
   └─ "都想试试" → 先 SVG(启动门槛低),跑通再考虑 APNG

SVG 路线工作流(skill 引导)

第 0 步:角色拓扑盘点

先不要默认角色一定有完整头、身体、手脚和嘴巴。问清:

  • 主体形态:只有头、头+身体、一团主体、道具/物件,还是其他轮廓;
  • 脸部结构:有没有眼睛、嘴巴、腮红、表情符号;
  • 附属结构:有没有手、脚、耳朵、尾巴、触角、翅膀、道具;
  • 支撑关系:站地、悬浮、贴边、挂载,还是靠道具支撑;
  • 目标动作:转头、抬低头、眼睛跟随、表情、走路、挥手、弹跳、漂浮。

根据拓扑决定后续读哪些文档:

  • 有脸部方向需求 → routes/svg/conventions/head-motion-axis.md
  • 有主体 / 身体转向需求 → routes/svg/conventions/body-motion-axis.md
  • 有手脚、尾巴、触角、道具等附属结构 → routes/svg/conventions/limb-rig-points.md
  • 有嘴巴或多表情系统 → routes/svg/conventions/expression-mouth-system.md
  • 没有手脚、尾巴、触角或道具时,不要强行套附属结构 rig;退化为主体轮廓、重心 / 悬浮基准和呼吸即可
  • 没有嘴巴时,不要强行套 mouth rig;用眼睛、眉毛、腮红、表情符号或整体形变表达情绪

第 1 步:确定角色基础造型

从零生图、外部 API 和已有图片共用的选图与交接方法见 shared/image-generation.md。

根据用户现有素材选择来源:

  • 已有 PNG → 直接用;
  • 想让 AI 生成或编辑 → 当前 Codex 有内置生图能力且用户未指定渠道时可直接使用;用户指定图像 API 时走对应服务并保存本地成品;
  • 自己画 → Figma / Procreate / 其他绘图工具。

用户说“去生图”“再画一版”或指定若干方案时,已经授权了这一批图像生成。按请求的范围执行,不额外设置固定张数,也不静默扩大批次。编辑已有角色前先查看输入图片,只修改用户指定的结构或姿势,保留其余识别特征。

Read the full file on GitHub · 295 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 27d ago Changed · +10 lines · -1 tokens per session dbacb9843b10
  2. 1mo ago Changed · +17 lines · +8 tokens per session 99e60fd5635f
  3. 1mo ago Changed · +3 lines 32366937b30b
  4. 1mo ago First seen · 265 lines · 81 tokens per session scan A 141dba07f0a0

Subscribe to this mod's changes

pet-forge is a skill published in the GitHub repository rullerzhou-afk/pet-forge (65 stars, last pushed 27d ago), licensed MIT. It adds 88 tokens to every session and 5,399 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Optimize the meaningful UI available immediately from a Next.js route on an initial load (hard navigation) or named client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route and entry point at a time; the shipped test then guards…

vercel/next.js · 123 tokens