/ interactive_tutorials / hamiltonian_systems
Sign in
interactive_tutorials / hamiltonian_systems
hamiltonian_systems / CLAUDE.md
30 lines · 1.4 KBPreviewCodeBlameHistoryRaw
1# Recipe-driven interactive tutorial
3The human writes `recipe.md`; Claude builds the app in `app/` from it. The goal is to show the content was crafted by a human.
5## Recipe
7- The recipe is the source of truth. On "update the app", diff `recipe.md` and apply exactly those changes.
8- Don't edit the recipe unless asked, and then keep the edit minimal.
9- Never invent tutorial content (text, explanations, equations). If something is missing, say so.
10- Small unspecified details (labels, spacing) are your call. Mention the choice briefly.
11- The recipe's notes set app-wide conventions. Apply them to every page.
12- Flag mistakes, typos and inconsistencies in the recipe, but leave the rewording to the human.
14## Style
16Keep replies short and conversational.
18## App
20- Static `index.html`, `style.css` and `main.js`, with no build step. Load CDN libraries at pinned versions.
21- `npm run dev` serves the app.
22- Use theme-aware CSS variables, and make the layout work on phones.
23- Use accurate (symplectic) integrators for physical animations.
24- After each change, run `node --check`, confirm the element IDs exist, and say what wasn't checked in a browser.
26## Provenance
28- The arewehuman extension records keystrokes to `.arewehuman/<file>/<workspace>.awh.jsonl`. Never edit or ignore those files.
29- `npm run crafted-link` refreshes the title page's "Crafted by a human" link. Run it before committing.
30- Commit only when asked, and include everything.
↑↓ move↵openescclose