Deployed Lab

Module 4 · Claude Code configuration and workflows · Chapter 14

Slash commands and skills: share workflows with the whole team

17 min1 clickable picture1 sorting exercise1 hands-on lab1 predict, 2 quick quizzes, 5-question final quiz5-min video review
In 30 seconds

The picture: commands are buttons a person presses. Skills are tools on a belt Claude reaches for. CLAUDE.md is the rulebook pinned to the wall.

Exam objective: Task statement 3.2

Domain 3, Claude Code Configuration and Workflows (20 percent of the exam). Create and use custom commands and skills. You should be able to:

The cold open

Harbor & Pine Outfitters is a made-up company. On the harbor-web team, only Kavish can run the release checklist. The steps live in his head and in old chat threads nobody else can see.

The knowledge was never the problem. It had no shared home. This chapter gives it one.

The plan for this chapter
  1. Pick the right home: CLAUDE.md, command or skill.
  2. Anatomy of a command: frontmatter, arguments, body.
  3. Anatomy of a skill: files, loading and forked context.
  4. Worked example: the pull-request checklist as a command.
  5. Lab: write your own command or skill for harbor-web.

Step 1: Pick the right home first

Why this step: most exam questions here are really one question: where does this belong?

Think of a kitchen. CLAUDE.md is the hygiene rules on the wall. A command is a recipe card a cook picks up on purpose. A skill is knife technique the cook uses whenever a task needs it.

Where the picture breaks down:

Commands, skills and CLAUDE.md A person types a slash command and Claude runs it. When a task matches, Claude loads a skill on its own. CLAUDE.md rules apply in every session. Persontypes /pr-check Command file.claude/commands/ A task appearsmatches a skill Skill package.claude/skills/ CLAUDE.md rules Claudedoes the work
  1. The developer types /pr-check 482. Nothing runs until someone asks. That control is the point.
  2. A strange invoice PDF arrives. Claude sees the match and loads the skill itself. Nobody typed a command.
  3. Commands and skills both guide Claude. They differ only in who decides to use them.
  4. CLAUDE.md rules, like test placement, hold in every session, whichever route brought Claude here.
PersonShared filesTaskAlways-on rulesClaude

Quick check: where does an always-on rule belong?

Next: inside a command file, line by line in spirit.

Step 2: Anatomy of a slash command

Why this step: a command is just a Markdown file, but two small parts do the heavy lifting.

Keep the body tight. A command is a checklist, not an essay. If a step must always happen in a fixed order, number it.

Do this: predict before you reveal.

A release is a deliberate act a person starts. That is command territory. A skill depends on Claude noticing the match, which is the wrong trigger for a step nobody may skip.

Next: skills, the package Claude reaches for alone.

Step 3: Anatomy of a skill

Why this step: skills carry more than a prompt, and that is why they exist.

A skill is like a specialist folder on a shared drive: a one-page brief on top, with the forms and examples behind it, picked up only for the right job.

Where the picture breaks down:

Quick check: command or skill?

Next: the worked example, turning tribal knowledge into a file.

Step 4: Worked example, the pull-request checklist as a command

Why this step: this is the cold open, fixed. Owen's PR checklist lived in review comments. Kavish writes it once, as .claude/commands/pr-check.md (illustrative):

---
argument-hint: [pull-request number]
allowed-tools: Read, Grep, Bash
description: Run the harbor-web PR checklist
---

Run the harbor-web pull-request checklist for PR $ARGUMENTS.

1. Read the changed files. List what changed in one line each.
2. Check that each new component has a test file beside it,
   like Button.test.tsx beside Button.tsx.
3. Grep for migration files. If any changed, stop and flag
   that a human must review them.
4. Run the test suite with Bash and report pass or fail counts.
5. End with a short verdict: ready, or not ready and why.

Made-up time saving: say 6 developers each run 4 PR checks a week, and the command saves a made-up 10 minutes per check versus retyping the checklist.

6 × 4 = 24 checks a week. 24 × 10 minutes = 240 minutes, or 4 hours a week, about 200 hours a year. All numbers here are made-up, but the shape is real: small savings multiply across a team.

Commit the file to the repo and every clone gets it. Fix the checklist once, in review, and the fix reaches everyone. That is the whole point.

Next: the lab, where you write one yourself.

Step 5: Hands-on lab

Why this exercise: the exam tests the judgment call, and judgment sticks when your own hands make it once.

Part A: build it locally

Pick one harbor-web workflow: the release checklist, a bug triage, or the weekly dependency update. Write a /triage command, or a skill if Claude should start it alone. Starter files, illustrative:

Lab: Steps 2 and 3 give the anatomy. This lab runs in your browser and needs JavaScript enabled.

Part B: on-page check, sort the workflows

Click an item, then click its box: CLAUDE.md, command or skill.

What to notice

Next: the mix-ups that cost exam marks.

Mix-ups to avoid

Field note, November 2026

Teams that share prompts as repo files tend to argue about them once, in review, instead of a little on every task. That is a practice observation, not a measured statistic. The habit that matters: treat a command like code, with an owner and a change history.

Review this chapter in 5 minutes

Watch the whole chapter recapped: who starts it decides the home, command anatomy, skill anatomy, and the pr-check checklist the whole team shares.

Decision rule: ask who starts it. Always on means CLAUDE.md. A person typing means a command. Claude noticing the task means a skill.

Independent exam preparation. Not affiliated with or endorsed by Anthropic.

Chapter quiz

Five questions. Score 70% or more to mark this chapter complete.

Review

Glossary

Slash command
A saved prompt a person runs by typing its name. Example: /pr-check 482.
Command file
A Markdown file in .claude/commands/. Its name becomes the command name.
Frontmatter
Settings at the top of a command or skill file. Example: allowed-tools: Read, Grep.
argument-hint
Frontmatter text showing what input to type. Example: [pull-request number].
allowed-tools
A frontmatter list limiting which tools a command or skill may use.
Skill
A package in .claude/skills/ that Claude loads when a task matches. Example: invoice format know-how with sample files.
Supporting files
Extra files inside a skill folder, loaded as needed. Example: a field map for supplier invoices.
context: fork
Skill frontmatter that runs the skill in its own context, apart from the main conversation.
CLAUDE.md
The always-on project instructions file from chapter 13. Example: "Tests sit beside the code."

Next: "Plan mode, direct execution and iterative refinement: choose by risk, then tighten the loop".