Question · Vibe coding with Claude Code course · Module 15: Advanced Claude Code
Quiz: An injected list of files in a skill
Why does the /pre-commit skill have a line with an exclamation mark and the command git diff --cached --name-only in backticks?
Answer options
- It is a comment for a human, Claude skips it
- Claude will run this command only after the tests finish
- The command runs before Claude reads the skill, and the list of files goes into the text; a reviewer with Read, Grep and Glob will not run git itself
- The exclamation mark tells Claude to ignore git errors
You can check the correct answer by solving this task in the CodeWorlds game.