review-shaders

Audit HLSL pixel shaders for GPU performance inefficiencies and optimizations.

1|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/cwilliams5/Alt-Tabby --skill review-shaders
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-shaders
Source: https://github.com/cwilliams5/Alt-Tabby/tree/main/.claude/skills/review-shaders
Command: npx skills add https://github.com/cwilliams5/Alt-Tabby --skill review-shaders

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies and rectifies performance bottlenecks within HLSL pixel shaders, ensuring smooth, high-frame-rate rendering by optimizing GPU instruction usage.

Core Features & Use Cases

  • Performance Auditing: Analyzes HLSL shaders for inefficient patterns like redundant transcendentals, suboptimal loops, and costly algebraic operations.
  • Optimization Recommendations: Provides specific, actionable advice on how to refactor shaders for maximum GPU efficiency.
  • Use Case: A game developer can use this Skill to audit their shader library, finding and fixing performance drains that impact in-game frame rates, especially in visually demanding scenes.

Quick Start

Audit all HLSL shaders in src/shaders/ for performance waste and suggest optimizations.

Frequently Asked Questions about review-shaders

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize HLSL pixel shaders for better GPU performance?

You can optimize HLSL pixel shaders by auditing them for redundant transcendentals, suboptimal loops, and costly algebraic operations. Refactoring these GPU instruction patterns reduces ALU bottlenecks and improves overall rendering frame rates.

What causes low frame rates in graphics programming with HLSL shaders?

Low frame rates in HLSL shaders are often caused by GPU performance inefficiencies such as costly algebraic operations, suboptimal loops, and redundant transcendentals. Auditing pixel shaders helps identify and rectify these ALU and texture bottlenecks.

How do I audit a shader library for ALU reduction and texture efficiency?

You can audit a shader library for ALU reduction and texture efficiency by analyzing HLSL pixel shaders against original GLSL sources. This process identifies math optimizations and redundant operations while ensuring visual equivalence is maintained after refactoring.

Can I optimize DXBC shaders while ensuring visual equivalence with original GLSL?

Yes, you can optimize DXBC shaders while ensuring visual equivalence with original GLSL sources. The audit compares optimized HLSL pixel shaders against the original GLSL sources to verify that visual output remains identical after algebraic simplifications.

Does this shader optimization process require specific directory structures?

The shader optimization process analyzes HLSL files located in the `src/shaders/` directory and its subdirectories. It scans this specific path structure to identify performance waste and suggest actionable GPU instruction refactoring.