⌨️--system-prompt Flag
Also known as claude --system-prompt, --system-prompt-file
It swaps the whole default prompt for yours.
Think of it like
It is like you throw out the old rule book. Then you hand over a new one.
Example
Emma's script uses Claude to sort support tickets, not to write code. She gives it --system-prompt-file with her own rules, so none of the coding advice gets in the way.
Why it matters
For a job that is not coding, a short prompt of your own is clearer than a long one built for code.
Definition
Example code
bash
claude -p --system-prompt-file ./prompts/triage.txt "Sort these tickets"Common mistake
Key takeaways
- 1Replaces it all. Tools guide too.
- 2Text or file. -file form.
- 3Not for coding help. Use append.