# Shader Optimization

> Shader Optimization is an Agent Skill for testing & quality published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Shader performance optimization skill for instruction counting, GPU profiling, and rendering efficiency.

- Skill name: `shader-optimization`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/game-development/skills/shader-optimization/SKILL.md
- Repository: a5c-ai/babysitter (1,548 GitHub stars when collected)

## SKILL.md

# Shader Optimization Skill

Shader performance optimization techniques.

## Overview

This skill provides capabilities for optimizing shader performance.

## Capabilities

- Instruction counting
- ALU optimization
- Texture sample reduction
- Shader variant management
- GPU profiling

## Best Practices

1. Minimize texture samples
2. Use half precision where possible
3. Avoid branching
4. Batch similar shaders
5. Profile on target hardware

## References

- Engine-specific profiling tools

---

Source: https://www.openparable.com/skill/testing-quality/shader-optimization (OpenParable). Cite the canonical URL above.
