Put in order · Vibe coding with Claude Code course · Module 15: Advanced Claude Code

Ordering: A review with a JSON schema

Arrange the command that forces the shape of the review with a schema and prints every problem on its own line:

Items to put in order

  • --json-schema "$(cat scripts/review-schema.json)"
  • git diff --cached |
  • claude -p "Review these changes." --output-format json
  • | jq -c '.structured_output.findings[]'

You can check the correct answer by solving this task in the CodeWorlds game.