mpv-anime-build
CLAUDE.md225 starsChanged 10 months agoMITView on GitHub
MPV Anime Build is an advanced, context-aware MPV media player configuration featuring AI upscaling, dynamic power management, universal HDR support, intelligent audio processing, and a heavily customized UOSC interface.
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
Do not reset manual_override on file-loaded
- Distinctive: line 50
Test at relevant resolutions after any modification
- Distinctive: line 91
Wait for explicit user instruction before committing or pushing
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MPV Anime Build - Development & Architecture Guide
Project Overview
MPV Anime Build is an advanced, context-aware MPV media player configuration featuring AI upscaling, dynamic power management, universal HDR support, intelligent audio processing, and a heavily customized UOSC interface.
- Author: Chinna95P
- Current Version: v5.4 (source of truth:
script-opts/build_info.conf) - Repository: https://github.com/Chinna95P/mpv-anime-build
- Local Path:
/var/mnt/Games/MPV/mpv-anime-build/
Critical Development Rules
Git Rules
- NEVER commit automatically
- NEVER push automatically
- NEVER reset, rebase, or checkout without explicit instructions
- Inspect
git statusbefore making changes - Show
git diffafter modifications for user review - The user prefers to test changes locally before committing
Core Architecture & High-Risk Components
anime_profile_controller.lua(High Risk)- Controls anime vs live-action detection, resolution tiers, shader chains, profile switching, and UOSC state sync
- Understand state flow and all callers before modifying
- Preserve public script-message interfaces and state keys
scripts/uosc/main.luaandscripts/uosc/lib/menus.lua(High Risk)- Heavily customized UOSC v5.13.0 implementation
- Never replace with upstream blindly
main.luacontains custom controls, state sync, event hooks, and command bindingslib/menus.luacontains customized menu builders, subtitle downloader/search behavior, and OpenSubtitles query handling- Preserve history, denoise, shader controls, HDR controls, audio-only, download integration, chapter highlighting, subtitle downloader behavior, and state synchronization
- Upgrades require a careful three-way merge
track-selector.lua- Smart audio/subtitle track selection
- Manual track overrides persist per-session across playlist navigation
- Do not reset
manual_overrideonfile-loaded
power_manager.lua- Cross-platform battery monitoring (PowerShell/CIM on Windows, sysfs on Linux)
- Switches to low-end profile on battery, restores previous decoder on AC power
- Safe desktop fallback (manual toggle only)
- Shaders (
shaders/)- Preserve filenames, ordering, and directory layout
- Resolution-specific shader chains (SD, HD, FHD, 4K, 8K)
- Test at relevant resolutions after any modification
Configuration Hierarchy
- Shipped base configuration:
mpv.conf(tracked) - Personal option override:
mpv-<custom-name>.conf(untracked, loaded aftermpv.conf, exactly one file allowed) - UI remembered settings:
user-<custom-name>.conf(untracked, loaded alphabetically) - Keybindings:
input.conf(coupled to Lua scripts) - Script settings:
script-opts/*.conf
Skip Intro & Chapter Colors (v5.3 Palette)
- Intro:
#FF00FF(Magenta) | ASS BGR:FF00FF - OP:
#00FF00(Green) | ASS BGR:00FF00 - PV:
#FF9900(Orange) | ASS BGR:0099FF - ED:
#0080FF(Blue) | ASS BGR:FF8000
Key Keybindings
| Key | Action |
K | Show Profile / Shader Info overlay |
I | Show Technical Stats overlay |
A | Audio Mode toggle (7.1 Upmix vs Passthrough) |
H | HDR Mode toggle (Passthrough vs Tone Mapping) |
V | RTX Video Super Resolution toggle (Windows) |
Q | Master Upscaler toggle (NNEDI3 vs FSRCNNX) |
L | Anime4K Quality toggle (Fast vs HQ) |
CTRL+g | Master Shader Killswitch |
CTRL+p | Power Saving Mode toggle |
CTRL+l / CTRL+; / CTRL+' | Anime Mode: Auto / On / Off |
F5 / F6 | Window Screenshot / Clean Video-Frame Screenshot |
CTRL+f / CTRL+F | Subtitle Lines Search (Primary / Secondary) |
Change Workflow
- Inspect relevant files, callers, and configuration bindings
- Explain the planned approach to the user
- Make minimal, targeted changes
- Validate (syntax check, local test)
- Present
git diffand summary - Wait for explicit user instruction before committing or pushing
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

