CCA Prep Studio
—

Task 3.6 · Domain 3: Claude Code Configuration & Workflows

CI/CD integration

In a pipeline there is no human to answer prompts, so Claude Code must run non-interactively and return output a script can parse. The project's CLAUDE.md supplies the standards the job should follow, and reviews are most effective when the reviewing instance is independent of whatever generated the code.

Updated 10-20-2026 · Official guide §6, Task 3.6

Key points

  • The -p (or --print) flag runs Claude Code non-interactively: it processes the prompt, prints, and exits.
  • --output-format json with --json-schema produces structured output a pipeline can parse, for example to post inline PR comments.
  • CLAUDE.md is how CI-invoked Claude Code learns testing standards, fixture conventions and review criteria.
  • Session context isolation: the session that generated code is a weaker reviewer of it than an independent instance.
  • Re-running a review after new commits should include the prior findings so only new or unaddressed issues are reported.
  • Test generation needs the existing test files in context to avoid duplicating covered scenarios.

Skills the exam expects

  • Run Claude Code in CI with -p so the job never hangs waiting for input.
  • Produce machine-parseable findings with --output-format json and --json-schema.
  • Feed prior review findings into re-reviews to avoid duplicate comments.
  • Provide existing tests and document testing standards, valuable-test criteria and fixtures in CLAUDE.md to improve generated tests.

Common misconceptions

  • "The interactive command works the same in CI." Without -p it waits for input that never comes.
  • "A script can reliably parse prose findings." Wording shifts; a JSON schema does not.
  • "The session that wrote the code knows it best, so it reviews best." It also carries the reasoning that produced the bugs.

Watch for

  • Workarounds such as feeding stdin or environment variables that do not exist instead of -p.
  • Review threads that double on every push because resolved findings are reposted.
  • Generated tests that repeat what the suite already covers.

Practice task 3.6

56 practice items cover this task in CCA Prep Studio: flashcards, matching, scenario questions and explain-it-back exercises, each tracked toward your mastery score.

CCA Prep Studio is an independent study product. It is not made, endorsed or sponsored by Anthropic. Claude is a trademark of Anthropic, PBC, and is used here only to name the exam and the technology it covers. Content is written in our own words and cites the official exam guide; no exam questions are reproduced. © 2026 NovaLinQs AI, LLC.