講座 › 分野2 アプリケーションと統合
2.4 ソフトウェアエンジニアリングの基礎
配点 7.4%Software Engineering Foundations
Claude APIはJSONでやり取りするREST API。SDKはヘッダーや再試行を肩代わりする。Claude Codeでは、git、テスト、レビューの基本どおりに進める。
未読
REST APIとJSON 読了

Claude APIへのリクエストには、認証のヘッダー、APIの版を示す anthropic-version、そして content-type: application/json を付けます。公式のSDKを使うと、認証・版・content-type のヘッダーは自動で付きます。
出典:API overview
the SDK sends the authentication, version, and content-type headers automaticallyhttps://platform.claude.com/docs/en/api/overview.md(取得 2026-11-17)
出典:Versioning
When making API requests, you must send an `anthropic-version` request header.https://platform.claude.com/docs/en/api/versioning.md(取得 2026-11-17)
非同期プログラミング 読了

Python SDKには、同期と非同期の両方のクライアントがあります。多くのリクエストを並行して送るアプリでは、非同期のクライアントを使うと、待ち時間の間にほかの処理を進められます。
出典:Python SDK
It supports both synchronous and asynchronous operations, streaminghttps://platform.claude.com/docs/en/cli-sdks-libraries/sdks/python.md(取得 2026-11-17)
バージョン管理と並行作業 読了

Claude Codeで複数の作業を同時に進めるときは、gitのワークツリーを使います。ワークツリーは、ブランチごとに別のチェックアウトを持つ仕組みで、同時の編集がぶつかりません。
出典:Common workflows
Each git worktree is a separate checkout on its own branchhttps://code.claude.com/docs/en/common-workflows.md(取得 2026-11-17)
出典:Common workflows
Work on a feature in one terminal while Claude fixes a bug in another, without the edits colliding.https://code.claude.com/docs/en/common-workflows.md(取得 2026-11-17)
SDLCへの統合とコードレビュー 読了

Claudeに頼むときは、症状、調べる場所、確かめ方を具体的に伝えます。例えば、不具合を再現する失敗するテストを先に書かせてから直させると、直ったことを確かめられます。プルリクエストのレビューでは、複数のエージェントが変更を読み、論理の誤りや脆弱性を探して、検証した上で行ごとにコメントします。レビューはプルリクエストを承認も拒否もしません。
出典:Claude Code best practices
write a failing test that reproduces it, then fix ithttps://code.claude.com/docs/en/best-practices.md(取得 2026-11-17)
出典:Code review
Several agents read each change alongside the surrounding code, looking for issues such as logic errors, security vulnerabilities, or broken edge cases.https://code.claude.com/docs/en/code-review.md(取得 2026-11-17)
出典:Code review
A review never approves or blocks the pull requesthttps://code.claude.com/docs/en/code-review.md(取得 2026-11-17)
小規模・大規模なリファクタリング 読了

Claude Codeの公式の手順集には、コードの調査、不具合の修正、リファクタリング、テスト、プルリクエストの作成といった日常の作業の頼み方がまとめられています。大きな変更ほど、テストで挙動が変わっていないことを確かめながら進めます。
出典:Common workflows
Step-by-step guides for exploring codebases, fixing bugs, refactoring, testing, and other everyday tasks with Claude Code.https://code.claude.com/docs/en/common-workflows.md(取得 2026-11-17)
試験のポイント
- SDKを使えばヘッダーは自動。生のHTTPで呼ぶなら anthropic-version を忘れない。
出典:Versioning
If you are using the client SDK, it sets this header for you
https://platform.claude.com/docs/en/api/versioning.md(取得 2026-11-17) - 同時に複数の作業を進めるならワークツリー。直す前に失敗するテストで再現させる。
出典:Common workflows
Run the same command with a different name in a second terminal to start an isolated parallel session.
https://code.claude.com/docs/en/common-workflows.md(取得 2026-11-17)