the ultimate vocal synthesizer - sing, speak, beatbox, and more
Rust
CONTRIBUTING.md and a PR template: start from the vision, show the change works, top-down PR bodies with agent attribution
Jameson Hodged26986c59094
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdnew file mode 100644index 0000000..87be438--- /dev/null+++ b/.github/pull_request_template.md@@ -0,0 +1,29 @@+<!--+Read CONTRIBUTING.md. Write top-down: the first screen says what changed, why, how you+know it works and what could break. Details go below. Keep prose short.+Title: the area and what changed, in searchable words.+-->++## Summary++<!-- Two to four sentences: what changes, and why. A small visual if it helps+(a diff of a call tree or file tree, a spectrogram, a screenshot). -->++## Evidence++<!-- Before and after. Sound: audio or spectrograms of the same phrase. UI: screenshots,+including phone width. Bug: the test that failed before and passes now.+Say what you couldn't check. -->++## Risk++<!-- Easy to undo or hard to undo (a wire format, saved songs, a public API)?+What else could break: the goldens, the plugin, phones, other languages? -->++## Details++<!-- Design choices, what you ruled out, the checks you ran with their numbers. -->++<!-- Last line: the model and harness that wrote the code, and the reviewer's model if+you used one. Example: Written by Claude Opus 5.5 in Claude Code; reviewed by GPT-5 in Codex.+Or: No agent. -->diff --git a/AGENTS.md b/AGENTS.mdindex fbf886e..efacd92 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -13,6 +13,8 @@ and the CLI) under a React UI. See the README.- Commit small. The subject names what changed and the trap, in searchable words; the body givesthe why, what you ruled out, what you ran (with numbers) and what you didn't test.- Keep each fixed bug's reproduction as a test.+- PRs follow `CONTRIBUTING.md`: the body is written top-down, with evidence, and ends with the+ model and harness that wrote it.- Code outranks this file: fix the file when they disagree. When something breaks unnoticed, adda rule here, with a check.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdnew file mode 100644index 0000000..2839938--- /dev/null+++ b/CONTRIBUTING.md@@ -0,0 +1,60 @@+# Contributing++PRs are welcome, and most of them here are written with coding agents. This page is for you and+your agent; [AGENTS.md](AGENTS.md) holds the rules for the code itself.++## Start from the vision++[README → Vision & scope](README.md#vision--scope) decides what gets merged. Work outside it is+declined however well it's built: a new mode that isn't the voice, an export pipeline, tooling for+one person's workflow, a sequencer. If you're unsure whether an idea fits, open an issue or a draft+PR and ask before you build much.++Solve one problem per PR. Split unrelated fixes, and leave drive-by refactors for their own PR.++## Use a strong model, and review the work++- Use the most capable model you have, at high reasoning effort.+- Before you open the PR, have a fresh agent review the diff and fix what it finds (or say in the+ PR why you didn't). A reviewer from a different model family tends to catch more; we recommend+ one but don't require it.+- Follow [AGENTS.md](AGENTS.md): the engine's contract, the golden tests, and the checks to run for+ the files you touched.++## Show the change works++Put the evidence in the PR, not in git.++- **Sound**: before/after audio of the same phrase, or before/after spectrograms+ (`bun tools/spectrogram.ts`). Re-bless the goldens, and check by ear that the robotic voice+ people like is still there (vision item 3). Voice tuning follows+ [docs/hill-climb/](docs/hill-climb/README.md).+- **UI**: before/after screenshots, including at phone width; a short recording when motion or+ timing matters.+- **Bug fix**: the reproduction, kept as a test that fails before the fix and passes after.+- **Language**: a native speaker's check, and English unchanged+ ([docs/language-front-ends.md](docs/language-front-ends.md)).+- Say what you couldn't check.++## Write the PR top-down++Someone who reads only the first screen should know what changed, why, how you know it works, and+what could break. Details go below. Use the sections in the+[PR template](.github/pull_request_template.md), and keep prose short.++- **Title**: the area and what changed, in searchable words, for example+ `Play: grabbing the face before any audio starts it`.+- **Summary**: two to four sentences. Add a small visual if it makes the point faster: a diff of a+ call tree or file tree, a spectrogram, a screenshot.+- **Evidence**: before and after, as above.+- **Risk**: is this easy to undo (a two-way door) or hard to undo (one-way: a wire format, saved+ songs, a public API)? What else could it break: the goldens, the plugin, phones, other languages?+- **Details**: design choices, what you ruled out, the checks you ran with their numbers.+- **Attribution**, last line: the model and harness that wrote the code, and the reviewer's model if+ you used one, for example `Written by Claude Opus 5.5 in Claude Code; reviewed by GPT-5 in Codex.`+ Write `No agent` if you wrote it yourself.++## Nothing copyrighted++No copyrighted audio, lyrics or scores in git, and nothing derived from them. Contributions are+under the [MIT license](LICENSE).diff --git a/README.md b/README.mdindex fcfe2c4..c6762c0 100644--- a/README.md+++ b/README.md@@ -78,7 +78,7 @@ bun tools/musicxml-to-notes.ts score.mxl P1 --out p1.json # a score's part →- [docs/hill-climb/](docs/hill-climb/): the rules and log for tuning the voice one measuredstep at a time.-Agents: see [AGENTS.md](AGENTS.md).+Contributing: see [CONTRIBUTING.md](CONTRIBUTING.md). Agents: see [AGENTS.md](AGENTS.md).## License