Loading...
    • 개발자 가이드
    • API 레퍼런스
    • MCP
    • 리소스
    • 릴리스 노트
    Search...
    ⌘K
    시작하기
    Claude 소개빠른 시작
    모델 및 가격
    모델 개요모델 선택Claude 4.6의 새로운 기능마이그레이션 가이드모델 지원 중단가격
    Claude로 구축하기
    기능 개요Messages API 사용중지 사유 처리프롬프트 모범 사례
    컨텍스트 관리
    컨텍스트 윈도우압축컨텍스트 편집
    기능
    프롬프트 캐싱확장 사고적응형 사고노력 수준메시지 스트리밍배치 처리인용다국어 지원토큰 카운팅임베딩비전PDF 지원Files API검색 결과구조화된 출력
    도구
    개요도구 사용 구현 방법세분화된 도구 스트리밍Bash 도구코드 실행 도구프로그래밍 방식 도구 호출컴퓨터 사용 도구텍스트 편집기 도구웹 페치 도구웹 검색 도구메모리 도구도구 검색 도구
    Agent Skills
    개요빠른 시작모범 사례엔터프라이즈용 SkillsAPI로 Skills 사용
    Agent SDK
    개요빠른 시작TypeScript SDKTypeScript V2 (미리보기)Python SDK마이그레이션 가이드
    API에서 MCP
    MCP 커넥터원격 MCP 서버
    서드파티 플랫폼의 Claude
    Amazon BedrockMicrosoft FoundryVertex AI
    프롬프트 엔지니어링
    개요프롬프트 생성기프롬프트 템플릿 사용프롬프트 개선기명확하고 직접적으로 작성예시 사용 (멀티샷 프롬프팅)Claude에게 생각하게 하기 (CoT)XML 태그 사용Claude에게 역할 부여 (시스템 프롬프트)복잡한 프롬프트 연결긴 컨텍스트 팁확장 사고 팁
    테스트 및 평가
    성공 기준 정의테스트 케이스 개발평가 도구 사용지연 시간 줄이기
    가드레일 강화
    환각 줄이기출력 일관성 높이기탈옥 방지스트리밍 거부프롬프트 유출 줄이기Claude 캐릭터 유지
    관리 및 모니터링
    Admin API 개요데이터 상주워크스페이스사용량 및 비용 APIClaude Code Analytics API제로 데이터 보존
    Console
    Log in
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Partners

    • Amazon Bedrock
    • Google Cloud's Vertex AI

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Help and security

    • Availability
    • Status
    • Support
    • Discord

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy
    Agent Skills

    API에서 Agent Skills 시작하기

    Agent Skills를 사용하여 Claude API로 10분 이내에 문서를 생성하는 방법을 알아보세요.

    이 튜토리얼에서는 Agent Skills를 사용하여 PowerPoint 프레젠테이션을 만드는 방법을 보여줍니다. Skills를 활성화하고, 간단한 요청을 만들고, 생성된 파일에 접근하는 방법을 배우게 됩니다.

    사전 요구 사항

    • Anthropic API 키
    • Python 3.7+ 또는 curl 설치
    • API 요청에 대한 기본적인 이해

    Agent Skills란 무엇인가요?

    사전 구축된 Agent Skills는 문서 생성, 데이터 분석, 파일 처리와 같은 작업에 대한 전문 지식으로 Claude의 기능을 확장합니다. Anthropic은 API에서 다음과 같은 사전 구축된 Agent Skills를 제공합니다:

    • PowerPoint (pptx): 프레젠테이션 생성 및 편집
    • Excel (xlsx): 스프레드시트 생성 및 분석
    • Word (docx): 문서 생성 및 편집
    • PDF (pdf): PDF 문서 생성

    커스텀 Skills를 만들고 싶으신가요? 도메인별 전문 지식을 갖춘 자체 Skills를 구축하는 예제는 Agent Skills Cookbook을 참조하세요.

    1단계: 사용 가능한 Skills 목록 확인

    먼저, 어떤 Skills가 사용 가능한지 확인해 보겠습니다. Skills API를 사용하여 Anthropic이 관리하는 모든 Skills를 나열합니다:

    import anthropic
    
    client = anthropic.Anthropic()
    
    # Anthropic이 관리하는 Skills 나열
    skills = client.beta.skills.list(
        source="anthropic",
        betas=["skills-2025-10-02"]
    )
    
    for skill in skills.data:
        print(f"{skill.id}: {skill.display_title}")

    다음과 같은 Skills가 표시됩니다: pptx, xlsx, docx, pdf.

    이 API는 각 Skill의 메타데이터(이름과 설명)를 반환합니다. Claude는 시작 시 이 메타데이터를 로드하여 어떤 Skills가 사용 가능한지 파악합니다. 이것이 **점진적 공개(progressive disclosure)**의 첫 번째 수준으로, Claude가 전체 지침을 아직 로드하지 않고도 Skills를 발견하는 단계입니다.

    2단계: 프레젠테이션 생성

    이제 PowerPoint Skill을 사용하여 재생 에너지에 대한 프레젠테이션을 만들겠습니다. Messages API에서 container 매개변수를 사용하여 Skills를 지정합니다:

    import anthropic
    
    client = anthropic.Anthropic()
    
    # PowerPoint Skill로 메시지 생성
    response = client.beta.messages.create(
        model="claude-opus-4-6",
        max_tokens=4096,
        betas=["code-execution-2025-08-25", "skills-2025-10-02"],
        container={
            "skills": [
                {
                    "type": "anthropic",
                    "skill_id": "pptx",
                    "version": "latest"
                }
            ]
        },
        messages=[{
            "role": "user",
            "content": "Create a presentation about renewable energy with 5 slides"
        }],
        tools=[{
            "type": "code_execution_20250825",
            "name": "code_execution"
        }]
    )
    
    print(response.content)

    각 부분이 하는 역할을 살펴보겠습니다:

    • container.skills: Claude가 사용할 수 있는 Skills를 지정합니다
    • type: "anthropic": Anthropic이 관리하는 Skill임을 나타냅니다
    • skill_id: "pptx": PowerPoint Skill 식별자
    • version: "latest": 가장 최근에 게시된 Skill 버전으로 설정
    • tools: 코드 실행을 활성화합니다 (Skills에 필수)
    • 베타 헤더: code-execution-2025-08-25 및 skills-2025-10-02

    이 요청을 보내면 Claude가 자동으로 작업을 관련 Skill에 매칭합니다. 프레젠테이션을 요청했으므로 Claude는 PowerPoint Skill이 관련이 있다고 판단하고 전체 지침을 로드합니다: 이것이 점진적 공개의 두 번째 수준입니다. 그런 다음 Claude는 Skill의 코드를 실행하여 프레젠테이션을 생성합니다.

    3단계: 생성된 파일 다운로드

    프레젠테이션은 코드 실행 컨테이너에서 생성되어 파일로 저장되었습니다. 응답에는 파일 ID가 포함된 파일 참조가 있습니다. 파일 ID를 추출하고 Files API를 사용하여 다운로드합니다:

    # 응답에서 파일 ID 추출
    file_id = None
    for block in response.content:
        if block.type == 'tool_use' and block.name == 'code_execution':
            # 파일 ID는 도구 결과에 있습니다
            for result_block in block.content:
                if hasattr(result_block, 'file_id'):
                    file_id = result_block.file_id
                    break
    
    if file_id:
        # 파일 다운로드
        file_content = client.beta.files.download(
            file_id=file_id,
            betas=["files-api-2025-04-14"]
        )
    
        # 디스크에 저장
        with open("renewable_energy.pptx", "wb") as f:
            file_content.write_to_file(f.name)
    
        print(f"Presentation saved to renewable_energy.pptx")

    생성된 파일 작업에 대한 자세한 내용은 코드 실행 도구 문서를 참조하세요.

    더 많은 예제 시도하기

    Skills로 첫 번째 문서를 만들었으니, 다음 변형들을 시도해 보세요:

    스프레드시트 생성

    response = client.beta.messages.create(
        model="claude-opus-4-6",
        max_tokens=4096,
        betas=["code-execution-2025-08-25", "skills-2025-10-02"],
        container={
            "skills": [
                {
                    "type": "anthropic",
                    "skill_id": "xlsx",
                    "version": "latest"
                }
            ]
        },
        messages=[{
            "role": "user",
            "content": "Create a quarterly sales tracking spreadsheet with sample data"
        }],
        tools=[{
            "type": "code_execution_20250825",
            "name": "code_execution"
        }]
    )

    Word 문서 생성

    response = client.beta.messages.create(
        model="claude-opus-4-6",
        max_tokens=4096,
        betas=["code-execution-2025-08-25", "skills-2025-10-02"],
        container={
            "skills": [
                {
                    "type": "anthropic",
                    "skill_id": "docx",
                    "version": "latest"
                }
            ]
        },
        messages=[{
            "role": "user",
            "content": "Write a 2-page report on the benefits of renewable energy"
        }],
        tools=[{
            "type": "code_execution_20250825",
            "name": "code_execution"
        }]
    )

    PDF 생성

    response = client.beta.messages.create(
        model="claude-opus-4-6",
        max_tokens=4096,
        betas=["code-execution-2025-08-25", "skills-2025-10-02"],
        container={
            "skills": [
                {
                    "type": "anthropic",
                    "skill_id": "pdf",
                    "version": "latest"
                }
            ]
        },
        messages=[{
            "role": "user",
            "content": "Generate a PDF invoice template"
        }],
        tools=[{
            "type": "code_execution_20250825",
            "name": "code_execution"
        }]
    )

    다음 단계

    사전 구축된 Agent Skills를 사용해 보았으니, 다음을 할 수 있습니다:

    API 가이드

    Claude API로 Skills 사용하기

    커스텀 Skills 생성

    전문 작업을 위한 자체 Skills 업로드하기

    작성 가이드

    효과적인 Skills 작성을 위한 모범 사례 알아보기

    Claude Code에서 Skills 사용

    Claude Code에서의 Skills에 대해 알아보기

    Agent SDK에서 Skills 사용

    TypeScript와 Python에서 프로그래밍 방식으로 Skills 사용하기

    Agent Skills Cookbook

    예제 Skills 및 구현 패턴 탐색하기

    Was this page helpful?

    • Agent Skills란 무엇인가요?
    • 1단계: 사용 가능한 Skills 목록 확인
    • 2단계: 프레젠테이션 생성
    • 3단계: 생성된 파일 다운로드
    • Word 문서 생성
    • PDF 생성