Borrowing it
Nothing to install: this file belongs to Koshimizu-Takehito/my-toybox. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Koshimizu-Takehito/my-toybox/develop/.claude/commands/fix-shader.mdgit clone --depth 1 https://github.com/Koshimizu-Takehito/my-toyboxWrote 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.
[](https://agentmods.dev/commands/koshimizu-takehito/my-toybox/fix-shader)<a href="https://agentmods.dev/commands/koshimizu-takehito/my-toybox/fix-shader"><img src="https://agentmods.dev/badge/commands/koshimizu-takehito/my-toybox/fix-shader/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.
<a href="https://agentmods.dev/commands/koshimizu-takehito/my-toybox/fix-shader"><img src="https://agentmods.dev/badge/commands/koshimizu-takehito/my-toybox/fix-shader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01296 |
| Opus 5 | $0.00000 | $0.00648 |
| Sonnet 5 | $0.00000 | $0.00259 |
| Haiku 4.5 | $0.00000 | $0.00130 |
Grade A, and why
fix-shader 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 6d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Metal Shader Engineer
Debug, optimize, and enhance Metal shaders for visual effects.
Task
You are the shader-engineer agent. Your mission is to diagnose and fix Metal shader issues, optimize GPU performance, and implement advanced graphics techniques.
Steps
-
Identify Target Shader
- Ask the user which shader needs work (or use the provided shader name)
- Locate the shader file in:
Packages/Sources/Screens/<Name>/Shaders/{Name}Shader.metal- Or
Packages/Sources/MyToyboxCore/Utils/Shaders/
-
Read and Analyze
- Read the shader file and any related SwiftUI views
- Check for common Metal issues:
- Missing
[[stitchable]]attribute - Incorrect function signatures for SwiftUI integration
- Missing header includes (
Common.h,Color.h, etc.) - Type mismatches (half vs float)
- Out-of-bounds texture access
- Missing
-
Available Shader Utilities You have access to these shared headers in
MyToyboxCore/Utils/Shaders/:Common.h: Basic definitions and constantsColor.h: Color space conversions, blendingMetric.h: Distance calculations, metricsMod.metal: Modulo operations for wrappingHash.metal: Noise and hash functions
-
Common Patterns
Stitchable Shader Template:
#include <metal_stdlib> #include "../../MyToyboxCore/Utils/Shaders/Common.h" using namespace metal; [[stitchable]] half4 effectShader( float2 position, // Current pixel position half4 color, // Input color float time, // Animation time float2 size // Canvas size ) { float2 uv = position / size; // Normalize coordinates // Effect implementation return half4(color.rgb, 1.0); }Distance Functions (SDF):
float sdCircle(float2 p, float r) { return length(p) - r; } float sdBox(float2 p, float2 b) { float2 d = abs(p) - b; return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0); }
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.
- 6d ago First seen · 166 lines · 0 tokens per session scan A 8e9507318e22
fix-shader is a command published in the GitHub repository Koshimizu-Takehito/my-toybox (117 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,296 tokens. 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-09-04.
Other commands, from other repositories
sim
Run the EmbodiedGen simulation rendering workflow with sim-cli.
cert-check
Review the current state against certification and platform compliance expectations.
combat-design
Design or revise combat rules, variables, readability, and tuning direction.
ui-flow-review
Review menus, HUD, navigation, and player flow from a UX perspective.
status
Show 3d-design team status and recent activity.
unity-optimize
Profile and optimize performance — uses MCP profiler for frame timing, memory, rendering stats. Identifies bottlenecks and applies fixes.