A pipeline runs:
claude -p "List risky changes in this diff" \
--output-format json \
--json-schema "$FINDINGS_SCHEMA"Where in the JSON response does the object that matches the schema appear?
id q183e183d81
Home / Claude Certified Architect – Foundations / Objective 3.6
Domain 3: Claude Code Configuration & Workflows · 20% of the exam · Full exam outline
The -p (or --print) flag for running Claude Code in non-interactive mode in automated pipelines. --output-format json and --json-schema CLI flags for enforcing structured output in CI contexts. CLAUDE.md as the mechanism for providing project context (testing standards, fixture conventions, review criteria) to CI-invoked Claude Code. Session context isolation: why the same Claude session that generated code is less effective at reviewing its own changes compared to an independent review instance. Running Claude Code in CI with the -p flag to prevent interactive input hangs. Using --output-format json with --json-schema to produce machine-parseable structured findings for automated posting as inline PR comments. Including prior review findings in context when re-running reviews after new commits, instructing Claude to report only new or still-unaddressed issues to avoid duplicate comments. Providing existing test files in context so test generation avoids suggesting duplicate scenarios already covered by the test suite. Documenting testing standards, valuable test criteria, and available fixtures in CLAUDE.md to improve test generation quality and reduce low-value test output.
A pipeline runs:
claude -p "List risky changes in this diff" \
--output-format json \
--json-schema "$FINDINGS_SCHEMA"Where in the JSON response does the object that matches the schema appear?
id q183e183d81
A CI script runs claude --bare -p "review this diff against our standards". The team's review criteria are in the repository's root CLAUDE.md, yet the reviews ignore them. What is the cause?
id q4023991d73