/ interactive_tutorials / hardening_softening
Sign in
interactive_tutorials / hardening_softening
hardening_softening / CLAUDE.md
31 lines · 1.8 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 ES modules (`main.js` sets up the slides; reusable components in `app/js/`), with no build step. Root `package.json` has `"type": "module"` so `node --check` parses them as modules. Bundle libraries locally (pinned versions, under `app/vendor/`) so it works offline.
21- `npm run dev` serves the app.
22- The deck ends with experimental lab slides for exploring, outside the recipe; `lab.md` describes them. Keep it up to date when they change.
23- Use theme-aware CSS variables, and make the layout work on phones.
24- Use accurate (symplectic) integrators for physical animations.
25- After each change, run `node --check`, confirm the element IDs exist, and say what wasn't checked in a browser.
27## Provenance
29- The arewehuman extension records keystrokes to `.arewehuman/<file>/<workspace>.awh.jsonl`. Never edit or ignore those files.
30- `npm run crafted-link` refreshes the title page's "Crafted by a human" link. Run it before committing.
31- Commit only when asked, and include everything.
↑↓ move↵openescclose