---
name: shader-retire-2e71369c1d74
description: Retire a shader by moving its files to legacy/shaders_retired
user-invocable: true
disable-model-invocation: true
---

# /shader-retire — Retire a Shader

Move a shader out of the active set into `legacy/shaders_retired/` by display name, disk name, or filename.

## Invocation

- `/shader-retire Matrix Rain`
- `/shader-retire matrix_rain`
- `/shader-retire matrix_rain.json`

## Steps

### 1. Resolve the Shader

The argument can be:
- **Display name** (e.g., `Matrix Rain`) — scan `src/shaders/**/*.json` (including `mouse/` and `selection/` subdirs), match on the `"name"` field (case-insensitive)
- **Disk name** (e.g., `matrix_rain`) — look for `src/shaders/matrix_rain.json`, `src/shaders/mouse/matrix_rain.json`, or `src/shaders/selection/matrix_rain.json`
- **Filename** (e.g., `matrix_rain.json` or `matrix_rain.hlsl`) — strip extension, use as disk name

If no match found, list available shaders and stop.

### 2. Read Metadata

Read the matched `.json` file to discover iChannel texture files referenced in `"iChannels"` and the shader's directory.

### 3. Move Source Files

Create `legacy/shaders_retired/` if it doesn't exist, then move all files belonging to the shader from its directory (`src/shaders/`, `src/shaders/mouse/`, or `src/shaders/selection/`) into it:
- `{name}.glsl`
- `{name}.hlsl`
- `{name}.json`
- Any iChannel textures listed in the metadata (e.g., `{name}_i0.png`)

Only move files that exist — don't error on missing `.glsl` (some shaders may not have the original).

### 4. Regenerate Bundles

```
powershell -File tools/shader_bundle.ps1
```

This regenerates `src/gui/shader_bundle.ahk` and `src/gui/shader_resources.ahk`, and cleans stale textures from `resources/img/shaders/`.

### 5. Run Tests

```
.\tests\test.ps1
```

### 6. Report

Summarize what was retired (list each moved file).


---
Source attribution: cwilliams5
Original project: https://github.com/cwilliams5/Alt-Tabby/blob/6e941fe6d8344facc4f24c373f41999ff6da4c04/.claude/skills/shader-retire/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2025 Cody Williams

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: cwilliams5
Original project: https://github.com/cwilliams5/Alt-Tabby/blob/6e941fe6d8344facc4f24c373f41999ff6da4c04/.claude/skills/shader-retire/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering
Roles: Backend Developer, DevOps / SRE, Frontend Developer
Specialties: Backend
Tools: Tool not specified
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 69d3318059af9168f5b9d68f8ef3c55eba8a0ec39c14cc5dd9b00860d3868051
