Skip to content
Agentmart
Submit a tool

claude-api

Python 및 TypeScript를 위한 Anthropic Claude API 패턴.

Skill by kypo42

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/kypo42-claude-api

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Python 및 TypeScript를 위한 Anthropic Claude API 패턴. Messages API, 스트리밍, 도구 사용(tool use), 비전, 확장 추론(extended thinking), 배치 처리, 프롬프트 캐싱 및 Claude 에이전트 SDK를 다룹니다. Claude API 또는 Anthropic SDK를 사용하여 애플리케이션을 구축할 때 사용하세요.

Use cases: backend, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/claude-api

What's inside

Skill name
claude-api
Description
Python 및 TypeScript를 위한 Anthropic Claude API 패턴. Messages API, 스트리밍, 도구 사용(tool use), 비전, 확장 추론(extended thinking), 배치 처리, 프롬프트 캐싱 및 Claude 에이전트 SDK를 다룹니다. Claude API 또는 Anthropic SDK를 사용하여 애플리케이션을 구축할 때 사용하세요.
License
MIT
Instructions
332 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

# Claude API

Anthropic Claude API 및 SDK를 사용하여 애플리케이션을 구축합니다.

## 활성화 시점

- Claude API를 호출하는 애플리케이션 구축 시
- 코드에 `anthropic` (Python) 또는 `@anthropic-ai/sdk` (TypeScript) 임포트가 있을 때
- 사용자가 Claude API 패턴, 도구 사용, 스트리밍 또는 비전에 대해 질문할 때
- Claude 에이전트 SDK를 사용하여 에이전트 워크플로우 구현 시
- API 비용, 토큰 사용량 또는 대기 시간 최적화 시

## 모델 선택

| 모델 | ID | 용도 |
|-------|-----|----------|
| Opus 4.1 | `claude-opus-4-1` | 복잡한 추론, 아키텍처, 조사 |
| Sonnet 4 | `claude-sonnet-4-0` | 균형 잡힌 코딩, 대부분의 개발 작업 |
| Haiku 3.5 | `claude-3-5-haiku-latest` | 빠른 응답, 대량 처리, 비용 민감 작업 |

심층 추론(Opus)이나 속도/비용 최적화(Haiku)가 필요한 작업이 아니라면 Sonnet 4를 기본으로 사용하세요. 프로덕션 환경에서는 별칭(alias)보다 고정된 스냅샷 ID를 사용하는 것이 좋습니다.

## Python SDK

### 설치

```bash
pip install anthropic
```

### 기본 메시지

```python
import anthropic

client = anthropic.Anthropic()  # 환경 변수에서 ANTHROPIC_API_KEY를 읽음

message = client.messages.create(
    model="claude-sonnet-4-0",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "Explain async/await in Python"}
    ]
)
print(message.content[0].text)
```

### 스트리밍

```python
with client.messages.stream(
    model="claude-sonnet-4-0",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Write a haiku about coding"}]
) as stream:
    for text in stream.text_stream:
        print(text, end="", flush=True)
```

### 시스템 프롬프트

```python
message = client.messages.create(
    model="claude-sonnet-4-0",
    max_tokens=1024,
    system="You are a senior Python developer. Be concise.",
    messages=[{"role": "user", "content": "Review this function"}]
)
```

## TypeScript SDK

### 설치

```bash
npm install @anthropic-ai/sdk
```

### 기본 메시지

```typescript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic(); // 환경 변수에서 ANTHROPIC_API_KEY를 읽음

const message = await client.messages.create({
  model: "claude-sonnet-4-0",
  max_tokens: 1024,
  messages: [
    { role: "user", content: "Explain async/await in TypeScript" }
  ],
});
console.log(message.content[0].text);
```

### 스트리밍

```typescript
const stream = client.messages.stream({
  model: "claude-sonnet-4-0",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Write a haiku" }],
});

for await (const event of stream) {
  if (event.type === "content_block_delta" && event.delta.type === "text_delta") {
    process.stdout.write(event.delta.text);
  }
}
```

## 도구 사용 (Tool Use)

도구를 정의하고 Claude가 이를 호출하도록 합니다:

```python
tools = [
    {
        "name": "get_weather",

From kypo42/everything-claude-code-kr, MIT.

More from kypo42/everything-claude-code-kr

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Apr 12, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from kypo42

Cite this page

claude-api skill. Agent Mart. https://agentmart.dev/skills/kypo42-claude-api (last updated 2026-10-24)