1.3 KiB
1.3 KiB
claude-playground
A tiny zero-dependency Node.js todo CLI, used as a sandbox for trying Claude Code features.
Commands
npm test— run the test suite (built-innode:test, no install needed)npm start -- add "something"/npm start -- ls— run the CLI (data intodos.json, override withTODO_FILE)
Conventions
- ES modules, Node >= 20, no third-party dependencies.
src/todo.jsholds pure functions; keep I/O inload/saveandsrc/cli.js.- Every behavior change gets a test in
test/. - Commit messages: short imperative subject line.
Workflow (required)
Never commit, merge, or push to main. Only a human (Christian) merges into main.
- Branch off an up-to-date
mainbefore any change:git switch -c <type>/<short-name>(e.g.fix/duplicate-ids,docs/readme). - Commit on that branch; run
npm testbefore pushing. - Push the branch and open a PR against
main. - Run
/code-reviewon the PR branch. - Post the result as a PR comment that starts with either Approved or Needs fixes, followed by the findings. If it needs fixes, fix them on the same branch, push, and repeat steps 4–5.
- Stop there. Do not merge the PR, even if approved — tell the human it's ready.
Remote
Gitea at code.westerkam.org — origin = git@code.westerkam.org:christian/claude-playground.git.