Teach the project
what a careful edit means.
By Alvin
A useful next step is recovering from an ordinary mistake. Give Idea Shelf an Undo action for its most recent deletion, and make that action feel dependable.
1 / Keep the agreement close
CLAUDE.md is a plain-text project instruction file that Claude Code reads. Put it beside index.html and describe how to open the app and check its behavior. The first line below names the file. Some configurations also read AGENTS.md; check which instructions your session loaded. [23]
CLAUDE.md Keep the current offline single-file app. Preserve labels and keyboard focus. Run the app’s existing checks. Explain any check you could not run.
2 / Describe the reader’s moment
3 / Give Claude a check to run
Anthropic’s guidance emphasizes concrete instructions and verifiable results. Turn “make deletion safer” into a visible state transition: a card disappears, an Undo action is offered, and the card can return exactly once. [24]
This exercise adds a bounded undo record. Whole-app history is a separate product decision. Documentation checked November 13, 2026.