CCA Prep Studio
—

CCA-F study guide · Domain 3: Claude Code Configuration & Workflows (20%)

Task 3.6: 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-26-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.

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

Start with the free 10-question check to see where you stand across all five domains. In CCA Prep Studio, 56 practice items cover this task, 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.