pianoize
CLAUDE.md4 starsChanged 44 days agoMITView on GitHub
Project-specific instructions for pianoize. The global ~/.claude/CLAUDE.md still applies; this only adds project rules. The rules in the README apply. The reasons for those and for the rules below are in docs/decisions.md.
In this repository6 other files it gives its agents.
- arrange-coverSkill
- arrange-transcriptionSkill
- arrange-vocalSkill
- make-videoSkill
- polish-coverSkill
- prepare-songSkill
The file
Files
CLAUDE.md
Project-specific instructions for pianoize. The global ~/.claude/CLAUDE.md still applies; this only adds project rules.
Documentation map
- README.md: what pianoize is and the quick start, direction, the rules, layout, dev commands
- docs/decisions.md: the design decisions in force, the reason for each, and the license records
- docs/evaluation.md: the evaluation tooling and the checkpoint file format
- docs/polishing.md: the polishing commands, the candidate and correction-spec formats, the refined-timeline rules
- docs/preparing.md:
pianoize setupandprepare, and what they install and write - docs/arranging.md: the score format, the arranging commands and the check's limits
- docs/rendering.md: the arrangement JSON, the viewer and the video commands
- chordotomy's timeline-json.md: the chord timeline pianoize reads (schema 11)
- CLAUDE.md (this file): rules to follow while working
Rules
The rules in the README apply. The reasons for those and for the rules below are in docs/decisions.md.
- Don't change chordotomy. pianoize reads its timeline JSON, checks
schema_version, and runs its CLI as a separately installed tool. It doesn't import chordotomy or share its environment. - No analysis is the answer key. chordotomy's timeline, web chord charts and tsumugi's transcription are evidence to weigh, not truth. Where they disagree, check the notes before calling anything a mistake.
- No GPL/AGPL code in the repo or its dependencies. That covers vendored code and anything imported or bundled, Python or npm; Neothesia and YourMT3+ are out. LGPL is allowed, and so is GPL code under a linking exception, such as the GCC runtime libraries a scipy wheel bundles. A tool the user installs separately and pianoize runs as a subprocess is allowed whatever its license.
- Check the license before adding a dependency, model or sample library. Weights included. Record the date and the source in docs/decisions.md. Weights with non-commercial terms are allowed. They are installed once into the user's cache (
~/.cache/pianoize, with Hugging Face weights in~/.cache/huggingface), never intowork/or the repository, with their terms shown. - docs/decisions.md holds the decisions in force, each with its reason. When a decision changes, edit its entry in place rather than adding a dated section; git keeps the history. Run logs, results tables and measurements don't go there, beyond the one line a decision's reason may need.
- The CLI never calls an LLM. An agent session writes the correction spec or the score into
work/. Code validates it and applies it to the cover, or builds it into MIDI, deterministically: the same inputs give byte-identical output. - Arrangements are playable, or full by mode. From M3 the arrangement is written for two hands, and
pianoize check-arrangementverifies notes per hand, hand span, jumps and no crossed hands; a score or a correction must keep it passing. A full arrangement, for listening, drops those four limits (check-arrangement --full) and keeps the rest.arrange-vocal, the default for a sung song, writes a full right hand over a left hand that passes the four limits on its own (check-arrangement --fullfor the whole, then without--fullfor the left hand). One from a cover is playable unless the user asks for a full one; an instrumental's, from the transcription alone, is full unless they ask for a playable one. - Models with conflicting dependencies run in their own environments, not in the core package.
- Tests synthesize their audio. The default suite runs no model and downloads nothing.
- The version lives only in
pyproject.toml; code reads it throughimportlib.metadata. - The arrangement JSON's schema is in docs/rendering.md; changes to it are breaking.
- The viewer is plain HTML, CSS and ES modules, with no bundler. Its only npm dependency is playwright-core. npm keeps its default cache (
~/.npm). - Commit to
mainand push. Work done on a separate branch is merged intomainand pushed once it's finished. Commit messages are conventional commits (feat(scope): …,chore: …).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

