1.0 KiB
1.0 KiB
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Commands
just lint # run luacheck on scripts/
just fmt # format with stylua
just fmt-check # verify formatting without modifying
just check # fmt-check + lint (pre-commit gate)
Architecture
This repository holds standalone Lua scripts for mpv (0.36+, bundled Lua 5.2). Each script in scripts/ is self-contained with no external Lua dependencies.
Script structure convention:
- Header comment block explaining features, requirements, and configuration
configtable immediately after header with user-tunable options- Note indicating no edits are needed below the config block
- Implementation code
Code Style
- 2-space indentation, 100-column width, double quotes preferred (enforced by stylua)
- Lua 5.2 std;
mpandmpvare allowed globals (luacheck config) - Run
styluathenluacheckbefore committing - Use Conventional Commits (
feat:,fix:,chore:, etc.)