Claude Certified Architect – Foundations Practice Question 24: Custom Subagent Files
Claude Certified Architect, Foundations · Test 3 · question 4 of 10
A team wants Claude Code to delegate security reviews to a dedicated helper that can only read and search the codebase, never edit files or run shell commands, and that follows its own review checklist. The helper must be shared with everyone through the repository. What should they do?
Show answer and explanation
Answer:
Project subagents are Markdown files in .claude/agents/ with YAML frontmatter (name, description, tools, and more) and a body that becomes the subagent's system prompt. The tools field restricts what the subagent can use, and committing the file shares it with the team.
- A is wrong: CLAUDE.md is advisory context for the main session and cannot restrict tools for a separate helper. - B is wrong: a slash command is a reusable prompt that runs in the main conversation; it does not create a separate agent with its own system prompt and tool limits. - D is wrong: deny rules would make every session read-only, not just security reviews, and provide no dedicated checklist or delegation target.
Reference: Create custom subagents