👋 In plain words: If your team keeps typing the same long instruction ('review this using our checklist…'), you can save it as a slash command or a skill that anyone can run. This lesson covers where to save them so the team shares them, and how a few settings keep them safe and tidy.
Custom slash commands and skills package repeatable workflows for your team. The exam checks where they live, how they are shared, and how frontmatter controls isolation, permissions and arguments (Task Statement 3.2).
🔑 Key terms
- Slash command: A saved prompt you run by typing
/name, for example/review. - Skill: A reusable workflow in a
SKILL.mdfile that Claude can run when needed, with its own settings. - Frontmatter: Settings at the top of a file, between two
---lines. - context: fork: Runs the skill in a separate side conversation, so its output doesn't clutter yours.
- allowed-tools: Limits which tools the skill may use.
📖 The story in this lesson
Ravi's team reviews every pull request against the same 10-point checklist. He turns it into a shared /review command and an 'explore-codebase' skill for new joiners.
💡 Think of it like this
A slash command is a speed-dial button: one press runs a long instruction. A skill is a trained helper with a job description, a toolbox it is allowed to use, and its own desk, so it doesn't spread papers over yours.
⌨️ Commands: project vs personal
.claude/commands/review.md— project command, committed, available to everyone who clones the repo.~/.claude/commands/— personal commands, not shared.
.claude/config.json commands array.🌍 Real-world example: One /review for the whole team
Ravi saves the checklist as .claude/commands/review.md and commits it. Every tester who pulls the repository can type /review. His personal /standup command stays in ~/.claude/commands/.
🎯 Skills and SKILL.md
---
name: explore-codebase
description: Map an unfamiliar area of the codebase and summarise entry points
context: fork
allowed-tools: Read, Grep, Glob
argument-hint: <directory or feature to explore>
---
Explore $ARGUMENTS. Return: purpose, entry points, key data flows, risks.
| Frontmatter | What it does | Use when |
|---|---|---|
context: fork | Runs the skill in an isolated sub-agent context | Verbose output (codebase analysis) or exploratory brainstorming would pollute the main session |
allowed-tools | Restricts tools during the skill | Prevent destructive actions (e.g. allow only file writes, no Bash) |
argument-hint | Prompts for required parameters | Users often invoke the skill without arguments |
🌍 Real-world example: A safe explorer for new joiners
The explore skill produces long file listings, so it runs with context: fork and keeps the main chat clean. It may only read and search, never edit or run commands. Its argument hint reminds people to say which folder to explore.
---
name: explore-codebase
context: fork
allowed-tools: Read, Grep, Glob
argument-hint: <folder or feature>
---📘 Personal variants
To customise a team skill for yourself, create a copy under a different name in ~/.claude/skills/. Editing the team skill — even locally — affects others or gets shadowed.
🌍 Real-world example: Ravi's stricter review
Ravi wants an extra security check in his own reviews. Instead of editing the team's command, he copies it to ~/.claude/skills/ under a new name, review-strict. The team version stays unchanged for everyone else.
📄 Skills vs CLAUDE.md
Skills are invoked on demand for task-specific workflows; CLAUDE.md is always loaded for universal standards. Conventions that must always apply belong in CLAUDE.md or rules, not in a skill.
🌍 Real-world example: Always-on rules vs on-demand jobs
'Never commit secrets' must apply all the time, so it goes in CLAUDE.md. 'Generate a release-notes draft' is needed once a sprint, so it is a skill that runs only when someone asks for it.
.claude/commands/.🛠️ Try it yourself (about 8 minutes)
- Create
.claude/commands/hello.mdcontaining 'Summarise the README in 3 bullet points.' - Start Claude Code in that repository.
- Type
/helloand run it. - Commit the file so teammates get it too.
✅ You are done when: /hello appears in the command list and prints a 3-bullet summary.
🧪 Exam-Style Practice Questions
Try these before opening the answers. They use the same scenario style as the real exam.
Question 1. Where does a project slash command that every developer gets on clone belong?
- A.
.claude/commands/in the repo - B. CLAUDE.md
- C.
.claude/config.json - D.
~/.claude/commands/
Show answer
Answer: A. Project-scoped and version-controlled. D is personal. B holds instructions, not commands. C doesn't exist.
Question 2. A skill should only write files and never run Bash. Which frontmatter enforces this?
- A.
context: fork - B.
paths - C.
argument-hint - D.
allowed-tools: Write, Edit(or similar, excluding Bash)
Show answer
Answer: D. It restricts the tools available during the skill. A isolates context. C prompts for arguments. B belongs to rules.
Question 3. Developers often run /migrate-schema with no arguments and get poor output. What helps?
- A. Plan mode
- B.
context: fork - C. A longer CLAUDE.md
- D.
argument-hint: <table-name> <target-version>in the skill frontmatter
Show answer
Answer: D. It prompts for the required parameters. A, B and C don't address missing arguments.
📝 Assignment
Do these tasks in order. Each one has a Done when check, so you know when it is complete. The stretch task is optional but close to what the exam expects from an architect. Keep your answers in one notes file or Git repository, and revisit them in your final week of revision together with the cheat sheet in the last lesson of this course.
- Task 1: Create .claude/commands/review.md with your team's review checklist and run it.
✅ Done when: A teammate can run /review after pulling the repository, and it follows your checklist. - Task 2: Create a skill with context: fork, allowed-tools and argument-hint, and run it with and without arguments.
✅ Done when: Running the skill without arguments shows the argument hint, and its output does not flood the main conversation. - Stretch: make a personal variant of a team skill under a different name in ~/.claude/skills/.
✅ Done when: Your personal variant has a different name, and the team skill still behaves exactly as before.
❓ Frequently Asked Questions
🤔 Where do team slash commands live?
In .claude/commands/ in the repository, so everyone gets them after cloning.
🤔 What does context: fork do?
It runs the skill in an isolated sub-agent context so its output does not crowd the main conversation.
🤔 How do I stop a skill running shell commands?
List only the tools it needs in allowed-tools, leaving out Bash.
🤔 Skill or CLAUDE.md?
Use a skill for on-demand, task-specific workflows and CLAUDE.md for standards that must always apply.
🏁 Summary
- .claude/commands = team; ~/.claude/commands = personal.
- context: fork isolates, allowed-tools restricts, argument-hint prompts.
- Personal variants get a different name at user level.
Next, continue with Claude Code Plan Mode vs Direct Execution and Iterative Refinement.
Independent study material by SQA Tools. Not affiliated with, endorsed by or sponsored by Anthropic. Claude is a trademark of Anthropic. Mock questions are original practice items, not real exam content. Exam facts checked against Anthropic's official exam guides and certification FAQ on 11 November 2026.