Custom commands and prompt files
For engineers
Turning recurring agent requests into reusable slash commands and prompt files with arguments and limited tools
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
What makes a slash command different from a skill?
Check yourself · 2 of 5
What is the purpose of an argument placeholder such as $ARGUMENTS or {{args}} in a command file?
Check yourself · 3 of 5
Which is the best way to choose commands for a team?
Check yourself · 4 of 5
Why is a command containing 'git checkout $ARGUMENTS' inside a shell line risky?
Check yourself · 5 of 5
A rule such as 'run pnpm test before saying you are done' should apply to every task. Where does it belong?
Topics
- User-invoked commands versus model-invoked skills4 min read · Slash commands and prompt files run when you call them; skills load when the agent decides; when each fits
- Writing a reusable command with arguments5 min read · Argument placeholders, front matter for allowed tools and model, and pulling in shell output or files
- Commands for recurring team workflows4 min read · Review, fix-issue, release-note and handoff commands that make team output consistent
- Keeping powerful commands safe and reviewed5 min read · Commands that push, deploy or run shell need narrow tools, safe argument handling and code review
Start here
- Custom commands (Gemini CLI docs) (opens in a new tab)DocsFree
Shows TOML command files, the args placeholder, and shell and file injection with escaping.
- Use prompt files in VS Code (opens in a new tab)DocsFree
Reusable prompt files with front matter for description, agent mode, model and tools.
- Custom prompts (Codex docs) (opens in a new tab)DocsFree
How Codex stores reusable prompts as Markdown files and passes arguments into them.
Helps to know first
110 questions · last verified 2026-12