# Agent Skills in This Repository This repository manages Agent Skills with an open SKILL.md format and keeps Codex and Claude Code usage aligned. References: - Agent Skills blog: https://claude.com/blog/equipping-agents-for-the-real-world-with-agent-skills - Open specification: https://agentskills.io/specification - Claude Code skills docs: https://code.claude.com/docs/en/skills - Model/provider update judgment guide: `docs/agent-model-provider-guidelines.md` ## Layout - Canonical skill source: `skills//SKILL.md` - Codex UI metadata: `skills//agents/openai.yaml` - Claude Code runtime skill: `.claude/skills//SKILL.md` `SKILL.md` is the shared source of truth for skill behavior. Keep frontmatter minimal (`name`, `description`) and keep the body procedural. ## Current Skills - `research-chat-models` - Canonical: `skills/research-chat-models/SKILL.md` - Claude Code: `.claude/skills/research-chat-models/SKILL.md` - Codex metadata: `skills/research-chat-models/agents/openai.yaml` - `add-chat-model` - Canonical: `skills/add-chat-model/SKILL.md` - Claude Code: `.claude/skills/add-chat-model/SKILL.md` - Codex metadata: `skills/add-chat-model/agents/openai.yaml` - `add-tts-provider` - Canonical: `skills/add-tts-provider/SKILL.md` - Claude Code: `.claude/skills/add-tts-provider/SKILL.md` - Codex metadata: `skills/add-tts-provider/agents/openai.yaml` - `sync-core-after-chat-upgrade` - Canonical: `skills/sync-core-after-chat-upgrade/SKILL.md` - Claude Code: `.claude/skills/sync-core-after-chat-upgrade/SKILL.md` - Codex metadata: `skills/sync-core-after-chat-upgrade/agents/openai.yaml` - `wrap-tts-as-openai-compatible` - Canonical: `skills/wrap-tts-as-openai-compatible/SKILL.md` - Claude Code: `.claude/skills/wrap-tts-as-openai-compatible/SKILL.md` - Codex metadata: `skills/wrap-tts-as-openai-compatible/agents/openai.yaml` - `connect-colab-local-tts` - Canonical: `skills/connect-colab-local-tts/SKILL.md` - Claude Code: `.claude/skills/connect-colab-local-tts/SKILL.md` - Codex metadata: `skills/connect-colab-local-tts/agents/openai.yaml` - `connect-colab-local-llm` - Canonical: `skills/connect-colab-local-llm/SKILL.md` - Claude Code: `.claude/skills/connect-colab-local-llm/SKILL.md` - Codex metadata: `skills/connect-colab-local-llm/agents/openai.yaml` - `create-pngtuber-avatar-states` - Canonical: `skills/create-pngtuber-avatar-states/SKILL.md` - Claude Code: `.claude/skills/create-pngtuber-avatar-states/SKILL.md` - Codex metadata: `skills/create-pngtuber-avatar-states/agents/openai.yaml` Use `research-chat-models` when asked to find recent or newly API-available models for existing providers. It performs internet research and reports candidates; it does not edit code. Then use `add-chat-model` to implement selected model IDs, including constants, provider support, tests, examples, docs, and optional versioning updates. When the user already specifies the model ID and asks for implementation, use `add-chat-model` directly without a broad provider discovery sweep. Before adding or reorganizing LLM/TTS models, read `docs/agent-model-provider-guidelines.md` to classify the model or API as recommended/default, supported/explicit, deprecated compatibility, or candidate-only. Use `add-tts-provider` when adding a new voice/TTS provider to `@aituber-onair/voice`, including engine implementation, public option types, internal handler wiring, tests, docs, examples, and release prep. This also fits OpenAI-compatible TTS endpoints such as `` when they should be added as a dedicated provider. Use `sync-core-after-chat-upgrade` in separate follow-up work when asked to propagate a published Chat version into `@aituber-onair/core` and core examples. Use `wrap-tts-as-openai-compatible` when exposing a local or self-hosted TTS runtime through an OpenAI-compatible `POST /v1/audio/speech` server, including JSON request handling, browser CORS, Colab-friendly setup, upstream TTS pattern classification, and debugging of 422/500/runtime issues. This skill also includes validation guidance for consuming the wrapper from `@aituber-onair/voice`. It is optimized for practical local TTS engines rather than research-first or streaming-first systems. Use `create-pngtuber-avatar-states` when creating PNGTuber avatar state images, including 2x2 state sheets, mouth/eye open-close variants, background transparency, alignment, and validation. The image generation phase requires Codex with ImageGen or an equivalent image-generation tool. In Claude Code, use this skill only for existing image files: splitting, background transparency when appropriate, alignment, and validation. Use `connect-colab-local-tts` when driving `shinshin86/local-tts-on-google-colab` through Colab MCP Go, exposing the selected engine with `trycloudflare`, and validating the resulting OpenAI-compatible speech endpoint from `@aituber-onair/voice`. Use `connect-colab-local-llm` when launching a user-selected local LLM on Google Colab through Colab MCP Go and connecting it to a Core React sample. The skill uses vLLM for native Hugging Face generation checkpoints and llama.cpp for GGUF files. It creates a temporary connection URL and API key, checks normal and streaming responses, and verifies the result in Core. The user only copies the endpoint, model, and key into the Core sample. ### Google Colab Local LLM Quick Start Before starting: 1. Open a Google Colab notebook. 2. Select and connect a GPU runtime. The Gemma 4 example below uses L4. 3. Make sure Colab MCP Go can access the notebook so that Codex can operate it. Whether L4 is sufficient depends on the model and settings. For another model, the agent checks the connected GPU before setup. Then copy this request into Codex: ```text Use $connect-colab-local-llm to launch the verified Gemma 4 12B Q4_0 setup on the connected Google Colab L4 runtime. Connect it to the AITuber OnAir Core PNGTuber sample, verify that Japanese responses appear incrementally in the browser, and show me the three values I need to enter in Core. Keep the session running after validation so that I can try it myself. ``` The agent installs the required software, downloads and verifies the model, creates a protected temporary connection, and checks the Core sample. It then returns: - the full `/v1/chat/completions` endpoint - the exact served model name - the temporary API key Enter those values in the Core sample with Provider set to `OpenAI-Compatible`. Start with TTS Engine set to `None` when validating text generation. The URL and key expire when the temporary connection or Colab runtime stops. For generic GGUF, vLLM, automatic backend selection, and cleanup prompts, see [`skills/connect-colab-local-llm/references/request-examples.md`](../skills/connect-colab-local-llm/references/request-examples.md). ## Usage Codex prompt examples: - "Use $research-chat-models to find models released for existing providers in the last 90 days." - "Use $research-chat-models to find the latest API models from OpenAI, Anthropic, and xAI, then add the eligible ones to chat and samples." - "support model " - "add claude model" - "update supported models" - "add a TTS provider" - "support Acme TTS in voice" - "add TTS" - "wrap a TTS engine as OpenAI-compatible" - "build an OpenAI-compatible speech server in Colab" - "connect Colab local TTS to AITuber OnAir voice" - "create PNGTuber avatar state images from this character" - "generate mouth and eye open-close variants for react-pngtuber-app" - "launch local-tts-on-google-colab with Colab MCP Go" - "Use $connect-colab-local-tts to launch from local-tts-on-google-colab through Colab MCP Go, expose it with trycloudflare, and verify it from @aituber-onair/voice." - "launch vLLM on Google Colab with Colab MCP Go" - "launch a GGUF model with llama.cpp on Google Colab" - "connect a Colab local LLM to the Core PNGTuber sample" - "Use $connect-colab-local-llm to set up the verified Gemma 4 configuration on an L4 runtime and keep it running for browser testing." - "Use $connect-colab-local-llm to run on Colab, choose the appropriate backend, and verify it with react-pngtuber-app." Claude Code prompt examples: - "Use $research-chat-models to find newly API-available models for existing providers." - "Use $research-chat-models to research new models, then $add-chat-model to implement the selected IDs." - "Use $add-chat-model to add for ." - "Use $add-chat-model and wire the model through tests/docs/versioning." - "Use $sync-core-after-chat-upgrade for chat 0.15.0." ## Task Prompt Templates Use these when you want a copy-pasteable prompt for a specific workflow. ### PNGTuber Avatar Assets ```text Use $create-pngtuber-avatar-states to create four PNGTuber avatar state images from the attached character image. Requirements: - Save outputs under `outputs/pngtuber-avatar//`. - Create these files: - `mouth_close_eyes_open.png` - `mouth_open_eyes_open.png` - `mouth_close_eyes_close.png` - `mouth_open_eyes_close.png` - Preserve the character, expression direction, hairstyle, outfit, composition, and background mood as much as possible. - Change only the mouth and eyes between states. - If the source image has a meaningful background, keep it. If it has a plain white/chroma-key background intended as a cutout, remove it. - Check and correct position jitter between the four states. - Report the saved paths and validation result. ``` If the request does not include all required inputs, collect: `provider`, `model_id`, `model_const_name`, `display_name`, `supports_vision`, and optional `bump_version` (default `false`; set `true` only when release/version work is explicitly requested). Chat -> Core release order: - Core propagation requires a version of `@aituber-onair/chat` published to npm. If the Chat change is still in progress, complete its separate release first. Chat model additions cover chat's own examples; Core exports and examples are separate follow-up work. - Do not offer immediate Core sync after `$add-chat-model`. When Core propagation is requested, use `$sync-core-after-chat-upgrade` only after the Chat version is published. Keep the Core change in a separate PR. A completion report may mention this sequence without offering to start Core work. - The current `add-chat-model` skill and its Codex UI metadata still ask about an immediate Core handoff. They are unchanged on this branch and need a separate update; a Codex UI default prompt is a user prompt, so the guidance above cannot override it when that prompt is submitted. - When `$add-tts-provider` performs voice release prep, keep version/changelog changes scoped to `@aituber-onair/voice`. Do not bump `@aituber-onair/core` or `create-aituber-onair` for dependency alignment unless the user explicitly requests those package releases in the same task. - After voice release prep, ask before starting core propagation/release work; treat it as a separate follow-up unless it was explicitly requested up front. ## Update Workflow 1. Edit canonical file: `skills//SKILL.md` 2. Sync to Claude Code path: `.claude/skills//SKILL.md` 3. If needed, update Codex metadata: `skills//agents/openai.yaml` 4. Update references in `AGENTS.md` and `CLAUDE.md` if behavior changed. Recommended sync check: ```bash diff -u skills/add-chat-model/SKILL.md .claude/skills/add-chat-model/SKILL.md diff -u skills/research-chat-models/SKILL.md .claude/skills/research-chat-models/SKILL.md diff -u skills/add-tts-provider/SKILL.md .claude/skills/add-tts-provider/SKILL.md diff -u skills/sync-core-after-chat-upgrade/SKILL.md .claude/skills/sync-core-after-chat-upgrade/SKILL.md diff -u skills/wrap-tts-as-openai-compatible/SKILL.md .claude/skills/wrap-tts-as-openai-compatible/SKILL.md diff -u skills/connect-colab-local-tts/SKILL.md .claude/skills/connect-colab-local-tts/SKILL.md diff -u skills/connect-colab-local-llm/SKILL.md .claude/skills/connect-colab-local-llm/SKILL.md diff -u skills/create-pngtuber-avatar-states/SKILL.md .claude/skills/create-pngtuber-avatar-states/SKILL.md ```