CCAR-F - Claude Code Configuration & Workflows - Section 3.2

Create and configure custom slash commands and skills.

Project-scoped commands are shared through version control; user-scoped commands stay personal. Skills carry frontmatter including context, allowed-tools and argument-hint. The fork context option runs a skill in an isolated subagent so verbose output never pollutes the main conversation. Candidates should restrict tool access during skill execution, prompt for missing parameters through argument-hint, and choose between an on-demand skill and always-loaded CLAUDE.md standards.

project-scoped slash commandsSKILL.md frontmattercontext fork isolationallowed-tools restrictionargument-hint

Practice question for this objective

Free sampleClaude Code Configuration & Workflowsmedium

The Halyard team wrote a project slash command called audit-deps, expecting it to run its dependency audit away from whatever else is in the session. An engineer invokes it 60 turns into a long debugging conversation about a caching bug, and the resulting audit cites files that were read during that debugging thread and repeats a conclusion reached there. The command body itself mentions none of those files. What explains the outcome?

  • AThe command frontmatter omitted Grep from its allowed tools, so the model fell back on files that had already been read earlier in the conversation.
  • BCommand bodies are cached per session after their first use, so this invocation replayed output that was captured during the earlier debugging work.
  • CA slash command body is expanded into the current conversation, so the audit runs with everything already in that context rather than starting from a clean one. Correct
  • DSubagent dispatch and slash command invocation share a single context window by design, so no configuration can give the audit a context of its own.
Slash commands expand into the running conversation and inherit its context; reach for a subagent when the work needs isolation. A slash command is a stored prompt, not a separate execution environment. Invoking it inserts the command body into the ongoing conversation, so prior turns, prior file reads and prior conclusions all remain in scope and can be drawn on. Isolation comes from dispatching a subagent with the Task tool, which is given a fresh context and receives only what the dispatching prompt states.

Why A is wrong: Tempting because a narrowed tool list can genuinely change how a command gathers evidence, but a missing search tool would explain thin coverage, not the presence of a prior conclusion that no tool call produced.

Why B is wrong: Tempting because caching is a real mechanism elsewhere on the platform, but command bodies are not replayed from earlier output, and this was the first invocation of the command in the session.

Why C is correct: Correct: invoking a command substitutes its body as a prompt in the running session, so every file and conclusion already present remains visible to the model handling the audit.

Why D is wrong: Tempting because it describes the command half accurately, but it is wrong about subagents: one dispatched with the Task tool does get its own context, which is the mechanism to reach for when isolation is the requirement.

See more CCAR-F practice questions, answers explained.

More in this domain

Back to all Claude Code Configuration & Workflows objectives, or the CCAR-F cert hub.

Examworthy is not affiliated with or endorsed by Anthropic. Original, blueprint-aligned practice material only.