agentleFS
Chinna95PChinna95P/mpv-anime-build/CLAUDE.md

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
  1. Very specific:

    Do not reset manual_override on file-loaded

    line 40
  2. Distinctive:

    Test at relevant resolutions after any modification

    line 50
  3. Distinctive:

    Wait for explicit user instruction before committing or pushing

    line 91

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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.

Critical Development Rules

Git Rules

  • NEVER commit automatically
  • NEVER push automatically
  • NEVER reset, rebase, or checkout without explicit instructions
  • Inspect git status before making changes
  • Show git diff after modifications for user review
  • The user prefers to test changes locally before committing

Core Architecture & High-Risk Components

  1. 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
  2. scripts/uosc/main.lua and scripts/uosc/lib/menus.lua (High Risk)
    • Heavily customized UOSC v5.13.0 implementation
    • Never replace with upstream blindly
    • main.lua contains custom controls, state sync, event hooks, and command bindings
    • lib/menus.lua contains 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
  3. track-selector.lua
    • Smart audio/subtitle track selection
    • Manual track overrides persist per-session across playlist navigation
    • Do not reset manual_override on file-loaded
  4. 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)
  5. 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

  1. Shipped base configuration: mpv.conf (tracked)
  2. Personal option override: mpv-<custom-name>.conf (untracked, loaded after mpv.conf, exactly one file allowed)
  3. UI remembered settings: user-<custom-name>.conf (untracked, loaded alphabetically)
  4. Keybindings: input.conf (coupled to Lua scripts)
  5. 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

KeyAction
KShow Profile / Shader Info overlay
IShow Technical Stats overlay
AAudio Mode toggle (7.1 Upmix vs Passthrough)
HHDR Mode toggle (Passthrough vs Tone Mapping)
VRTX Video Super Resolution toggle (Windows)
QMaster Upscaler toggle (NNEDI3 vs FSRCNNX)
LAnime4K Quality toggle (Fast vs HQ)
CTRL+gMaster Shader Killswitch
CTRL+pPower Saving Mode toggle
CTRL+l / CTRL+; / CTRL+'Anime Mode: Auto / On / Off
F5 / F6Window Screenshot / Clean Video-Frame Screenshot
CTRL+f / CTRL+FSubtitle Lines Search (Primary / Secondary)

Change Workflow

  1. Inspect relevant files, callers, and configuration bindings
  2. Explain the planned approach to the user
  3. Make minimal, targeted changes
  4. Validate (syntax check, local test)
  5. Present git diff and summary
  6. Wait for explicit user instruction before committing or pushing

Download now (ZIP)

  • In this repository2 other files it gives its agents.

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.