問題 1
You are building developer productivity tools using the Claude Agent SDK. The agent helps engineers explore unfamiliar codebases, understand legacy systems, generate boilerplate code, and automate repetitive tasks. It uses the built-in tools (Read, Write, Bash, Grep, Glob) and integrates with Model Context Protocol (MCP) servers.
Your code review assistant needs to analyze pull requests and provide feedback on three aspects: code style compliance, potential security issues, and documentation completeness. Each aspect requires reading files, running analysis tools, and generating a report section. The review process follows the same three-step workflow for every PR.
Which task decomposition pattern is most appropriate for this workflow?
Your code review assistant needs to analyze pull requests and provide feedback on three aspects: code style compliance, potential security issues, and documentation completeness. Each aspect requires reading files, running analysis tools, and generating a report section. The review process follows the same three-step workflow for every PR.
Which task decomposition pattern is most appropriate for this workflow?
正解と解説を表示
正解
B
解説
This PR review has a fixed, repeatable three-step workflow (style, security, docs) where each step reads files/runs tools and then contributes to a final report. Prompt chaining fits best: run each analysis step sequentially with clear intermediate outputs, then synthesize into one response. Orchestrator-workers is better when subtasks are dynamically discovered, and routing is for choosing among different pipelines rather than executing a known sequence.