CCAR-F scenarios › Code Generation with Claude Code · Question 14 of 60
Scenario 2 · Code Generation with Claude Code
Your engineering team relies on Claude Code to generate, refactor, debug, and document code. You're responsible for fitting it into the team's workflow: custom slash commands and skills, a sensible CLAUDE.md setup, and knowing when a task calls for plan mode and when direct execution is enough.
Claude Code Configuration & Workflows
Your team's /map-dependencies skill reads dozens of files and produces several thousand lines of intermediate analysis before reaching a one-page conclusion. Developers run it mid-task, and afterwards the main session is cluttered and Claude loses track of the task they were working on. What is the most effective change to the skill?
Show answer and explanation
Answer: B — Add context: fork to the skill's frontmatter so it runs in an isolated sub-agent context and only its final result returns to the main conversation, leaving the session uncluttered.
context: fork runs the skill in an isolated sub-agent context so its verbose exploration doesn't pollute the main conversation, which fits a skill with long internal work and short useful output (task 3.2). Asking for brevity (a) works against the analysis the skill exists to do and is unreliable. allowed-tools (c) controls which tools the skill can use, not how much output reaches the main context. /compact after every run (d) is a lossy manual cleanup step that treats the symptom each time.
More from this scenario
- Two hours into exploring an unfamiliar payments codebase, Claude Code's answers start to…
- Your team is deciding which upcoming tasks should start in plan mode and which can go…
- You ask Claude Code to convert legacy log lines into a new structured format. Despite…
- Before a large refactor, Claude Code must survey around 300 files to catalog every place…
- During a long debugging session, the context has filled with verbose test-runner output…