Claude API 사용법 — 마이그레이션 스킬로 모델 전환하기
Sonnet 5.5로의 마이그레이션과 프롬프트 조정 방법, Access Transparency log 검증 절차까지 함께 다룹니다.
TL;DR
Claude API 공식 문서에 Claude Sonnet 5 시스템 프롬프트 공개, Claude Sonnet 5.5 마이그레이션 스킬과 프롬프트 가이드, Access Transparency log 검증 방법이 새로 올라왔습니다. Claude API를 쓰는 개발자와 조직 관리자가 참고할 내용입니다.
Claude Sonnet 5
새로 공개된 Claude Sonnet 5 시스템 프롬프트 페이지는 현재 모델들의 model string을 보여줍니다. 가장 최근 모델은 Claude Opus 4.8, Claude Sonnet 5, Claude Haiku 4.5이며, 각각 model string은 claude-opus-4-8, claude-sonnet-5, claude-haiku-4-5-20251001입니다.
이 model string 중 하나를 사용하면 API나 Claude Platform에서 원하는 모델을 선택해 호출할 수 있습니다.
아래 코드는 Claude의 proactivity 방침을 보여줍니다. 정보를 검색하거나 확인할 수 있는 도구가 있으면 사용자에게 묻지 않고 바로 사용하되, 이메일 전송이나 일정 생성처럼 사용자를 대신해 보내거나 수정하거나 삭제하는 동작은 실행 전에 확인한다고 설명합니다.
<proactivity>
When tools are available that can retrieve or verify information relevant to the request — searching the web, reading attached content, running code, generating visuals, or querying connected services — Claude uses them to gather what it needs rather than asking the user to supply the information or answering from memory. Read-only and information-gathering tools are ready to use without asking; Claude does not suggest the user enable a tool that is already available. For actions that send, modify, or delete on the user's behalf (sending email, creating events, editing external documents), Claude continues to confirm before acting. Claude prefers gathering context and delivering a complete result over deferring work back to the user.
When a request is ambiguous or underspecified, Claude picks the most reasonable interpretation, states the assumption briefly, and proceeds with a complete answer. Ambiguity or missing detail is a reason to choose a sensible default and attempt the task, not a reason to decline it. Claude asks a clarifying question only when proceeding would clearly waste effort or go in an entirely wrong direction — and even then, at most one question while still attempting what it can. Migration guide
Claude Code에 포함된 Claude API skill을 사용하면 프로젝트를 최신 모델로 마이그레이션할 수 있습니다. 스킬은 model ID 교체는 물론 필요하면 breaking parameter 변경, prefill 교체, effort 보정까지 코드베이스 전체에 적용합니다.
사용법은 먼저 Claude Code에서 /claude-api migrate 명령으로 스킬을 호출하는 것입니다. 아래 코드처럼 목표 모델까지 함께 지정해 입력합니다.
다음으로 스킬은 파일을 고치기 전에 마이그레이션 범위를 물어보므로, 전체 작업 디렉터리인지 하위 디렉터리인지 특정 파일 목록인지 확인해 답해야 합니다. 마지막으로 스킬이 적용을 마치면 남기는 체크리스트를 보고 수동으로 점검할 항목을 확인합니다.
스킬은 Amazon Bedrock과 Claude Platform on AWS 클라이언트도 감지해 그에 맞게 model ID 형식과 기능 차이를 조정합니다.
/claude-api migrate this project to claude-sonnet-5-5 Prompting Claude Sonnet 5.5
새 가이드는 Claude Sonnet 5.5에 특화된 프롬프트 패턴을 안내합니다. 기존 Claude Sonnet 5 프롬프트는 변경 없이도 잘 동작하며, 가장 어려운 장기 작업에는 Opus 모델이 더 나은 선택이라고 설명합니다.
가이드는 겪고 있는 증상에 맞는 절부터 읽으라고 안내합니다. 먼저 effort 수준을 정하기 어렵거나 턴 길이가 달라졌다면 Calibrate effort 절을 읽습니다. 다음으로 코딩 작업이 끝나기 전에 확인을 요청하거나 요청보다 더 많은 일을 한다면 Steer initiative and scope 절을 읽습니다. 마지막으로 통합이 thinking을 끈 채로 동작한다면 Running without up-front thinking 절을 읽습니다.
아래 코드는 그 중 initiative 조정에 쓰는 문구 예시로, 사용자가 요청한 작업이 끝나고 검증까지 마치면 멈추고 보고하며 요청하지 않은 기능이나 테스트, 파일, 문서, 리팩터는 추가하지 않는다고 명시합니다.
Keep working until everything the user asked for is done, and only stop to ask when you can't go on without the user or before a risky step.
When the work the user asked for is done and checked, stop and report. Don't add features, tests, files, docs or refactors that weren't asked for. If you think one would help, mention it at the end instead of doing it. Transparency log (beta)
Access Transparency가 활성화된 조직은 transparency log로 이벤트가 이후에 삭제되거나 바뀌지 않았음을 암호학적으로 검증할 수 있습니다. 로그는 Activity Feed와 같은 key와 scope로 Compliance API를 통해 읽습니다.
사용법은 먼저 ANTHROPIC_COMPLIANCE_ACCESS_KEY를 x-api-key 헤더에 담아 https://api.anthropic.com/v1/compliance/transparency_log/checkpoint 엔드포인트를 호출하는 것입니다(아래 코드 참고). 다음으로 같은 헤더로 https://api.anthropic.com/v1/compliance/transparency_log/keys 엔드포인트를 호출해 서명 키 목록을 받습니다. 마지막으로 leaf_index=41처럼 --data-urlencode로 값을 붙여 https://api.anthropic.com/v1/compliance/transparency_log/inclusion 엔드포인트를 호출하면 특정 항목의 포함 여부를 검증합니다.
이 엔드포인트들은 모두 anthropic-version: 2023-06-01 헤더가 필요하며, Access Transparency 활성화 이후 첫 이벤트가 기록되기 전에는 모든 transparency log 엔드포인트가 404를 반환합니다.
curl --fail-with-body -sS \
"https://api.anthropic.com/v1/compliance/transparency_log/checkpoint" \
--header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
--header "anthropic-version: 2023-06-01" 정리
Claude API 문서는 모델 선택부터 마이그레이션, 프롬프트 조정, 로그 검증까지 새로운 페이지로 안내합니다. Claude Sonnet 5.5로 전환하거나 Access Transparency를 쓰는 조직이라면 해당 절차를 따라가면 됩니다.
공식 문서와 예제에 적힌 내용만 담았습니다.