Back to Blog

research

Add Toon Shader Know-How to Your AI Agent

Discover the animation-shader skill that gives agents domain knowledge for implementing cel/Toon shaders across popular Unity shader libraries.

OpenAgentSkillPublished:

Where this fits

You're building an agent that helps artists or developers configure a Toon shader for a Unity project. The user wants an anime-style outline with rim lighting, but you're not sure which library (lilToon, UTS2, Poiyomi) supports what, or which properties to toggle. Without domain knowledge, your agent either guesses or produces generic advice. The animation-shader skill fills that gap—it's a reference map for feature-to-property mappings across six popular shader libraries, ready to be used during planning or spec generation.

Why agents benefit

  • Accurate feature mapping: The skill tells the agent which shader library supports a given effect (e.g., MatCap, dissolve, hatching) and which property names to set, so the agent can generate concrete configuration snippets.
  • Preset styles: Agents can reference curated style presets (e.g., retro anime, watercolor outline) instead of inventing combinations, speeding up design decisions.
  • Reduced hallucination: Instead of mixing up properties from different shaders, the agent can cross-check against the built-in mappings, improving correctness.
  • Works as a plug-in: It complements workflow skills (OpenSpec, SpecKit) or plan mode, slotting into the requirements/spec phase without adding process overhead.
  • Faster iteration: The agent can quickly propose alternatives (e.g., "lilToon vs UTS2 for this effect") by comparing the skill's feature lists, helping users choose the right tool.

Practical scenarios

Selecting a shader for a character model

A user asks: "I need a cel-shaded character with a strong outline and a toon ramp. Which library should I use?" The agent consults the skill, sees that lilToon and UTS2 both support outlines and toon ramps, but lilToon has more flexible ramp controls, and recommends lilToon with specific properties.

Configuring dissolve + emission for a boss death effect

Your agent is helping to implement a dissolve shader with an emissive burn edge. The skill provides the dissolve and emission features for each library, listing the exact property names (e.g., _DissolveAmount, _EmissionColor). The agent generates a step-by-step setup, avoiding trial-and-error.

Comparing hatching styles across libraries

A user wants a hand-drawn hatching look. The skill's feature-to-reference mapping shows that Poiyomi and SToon both have hatching, but with different blend modes. The agent summarizes the differences, guiding the user to the best fit for their art direction.

Add it to your agent workflow

Install the skill using the OpenAgentSkill CLI:

npx skills add Yuki001/game-dev-skills --skill animation-shader

Then, in your agent's prompt or plan-mode context, instruct it to load the skill when a toon/shader request appears. For example:

> Use the animation-shader skill to map the requested effect to the appropriate shader library and properties.

After that, the agent can query the skill's markdown reference to produce accurate, library-specific output. For a full overview and related alternatives, see this OpenAgentSkill profile: https://www.openagentskill.com/skills/yuki001-animation-shader.

Compare before adopting

Before committing, compare this skill with any internal shader knowledge you may have. Check if it covers the libraries you actually use (lilToon, Poiyomi, UTS2, RToon, SToon, ToonShadingCollection). Verify that the property names match current versions of those libraries—shader APIs change. Also note that the skill is a knowledge base, not a workflow, so you'll still need a structured process (e.g., OpenSpec) to drive design tasks. Evaluate maintenance freshness: the GitHub repo's commit activity and issue responses are good signals.

Why it is worth tracking

With 57 stars and a clear niche, this skill addresses a real gap: agents often lack the specialized vocabulary needed for stylized rendering. Its feature-to-reference mapping is practical and directly usable, and it's part of a repo that may evolve with new shader updates. Track it if you regularly assist with Unity rendering tasks, but re-check the repo periodically for updates or community-reported issues to ensure the information stays reliable.

Featured Skill

animation-shader

Skill by Yuki001

Add Toon Shader Know-How to Your AI Agent | OpenAgentSkill