A tiny command-line notes tool, used as the practice repo for Unit 4, Lesson 3 (branches and pull requests). You'll make one small change, then let Claude put it on a branch and open a pull request for you — with a description that actually explains what you did.
node notes.js add <text>— add a notenode notes.js list— list all notesnode notes.js search <term>— list notes containing a termnode notes.js delete <id>— delete a note
Layout: notes.js is the entry point, lib/store.js loads, saves, and searches notes, lib/config.js holds settings, and tests/ holds the test suite (npm test).
- Make sure you have your own copy of this repo (created from the lesson on the platform).
- Clone it locally, and run
gh auth loginso Claude can open pull requests through theghCLI. - Open Claude Code in the folder.
Goal: make a small change, then have Claude put it on a new branch and open a pull request whose description reflects what actually changed.
- Check the starting point. Run
npm test. Everything passes — that's a healthymain. - Make one small change. For example, add a
countcommand that prints how many notes you have (node notes.js count→You have 3 notes.). You can write it yourself or ask Claude to. Or make a small change of your own. - Confirm it still works. Run
npm testagain — a change worth a pull request shouldn't break the build. - Put it on a branch. Ask Claude: "Put my change on a new branch and commit it." Claude keeps
mainclean and does the work on a branch. - Open the pull request. Ask Claude: "Open a pull request for this branch." It reads your commits and writes the title and description.
- Read what Claude wrote. Open the PR on GitHub. Does the description explain what changed and why — and flag anything a reviewer should check?
- Submit the pull request link. CI runs your tests on the PR — it should come back green.