Put in order · Vibe coding with Claude Code course · Module 15: Advanced Claude Code
Ordering: Writing through a temporary file
Arrange the call from generate-docs.sh that replaces docs/API.md only after a successful run:
Items to put in order
- mv docs/API.md.tmp docs/API.md
- claude -p "Describe the routes in app/api. $ONLY"
- &&
- > docs/API.md.tmp
You can check the correct answer by solving this task in the CodeWorlds game.