fandhe-ai/agent-reference-skills

anthropic-agent-sdk

Claude Agent SDK (code.claude.com/docs/en/agent-sdk) の TypeScript / Python リファレンス。 query(), ClaudeAgentOptions / Options, custom tools (in-process MCP), createSdkMcpServer, hooks, permissions (canUseTool), subagents, sessions (resume / fork), streaming, str…

View source

How to use

  1. Copy the installation command and review the source package before installing it in your own agent environment.
  2. Check the source document for required tools, credentials and supported hosts.
  3. Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill anthropic-agent-sdk

Before you start

  • Installation does not include a model subscription, API allowance or permission to access your files.
  • Repository stars and installation counts describe activity, not an independent quality or security test.
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

anthropic-agent-sdk

Claude Agent SDK (code.claude.com/docs/en/agent-sdk) — TypeScript / Python でエージェントをビルドする公式 SDK の リファレンス。query() によるエージェントループ実行、custom tools(in-process MCP)、外部 MCP 接続、hooks、 subagents、permissions(canUseTool)、セッションの永続化・再開・分岐、streaming、structured outputs、 本番ホスティングをカバーする。

Claude Code CLI 本体は anthropic-claude-code / anthropic-claude-code-extend、Messages API 直接呼び出しは anthropic-api-core、Claude API 側の tool use / Agent Skills / MCP は anthropic-api-tools-mcp を参照 (本スキルは SDK 経由でエージェントをビルド・運用する側を担当)。

ディレクトリ構成

text
skills/anthropic-agent-sdk/
  SKILL.md
  references/
    getting-started/
      README.md
      agent-loop.md
      claude-code-features.md
      migration-guide.md
      overview.md
      quickstart.md
    api-reference/
      README.md
      python.md
      typescript.md
    extending/
      README.md
      custom-tools.md
      hooks.md
      mcp.md
      plugins.md
      skills.md
      slash-commands.md
      subagents.md
      tool-search.md
    sessions-io/
      README.md
      file-checkpointing.md
      session-storage.md
      sessions.md
      streaming-output.md
      streaming-vs-single-mode.md
      structured-outputs.md
      todo-tracking.md
    control/
      README.md
      modifying-system-prompts.md
      permissions.md
      user-input.md
    operations/
      README.md
      cost-tracking.md
      hosting.md
      observability.md
      secure-deployment.md
      troubleshooting.md
  samples/
    README.md
    minimal-agent.md
    custom-tools.md
    mcp-servers.md
    hooks.md
    permissions.md
    subagents.md
    sessions.md
    streaming.md
    structured-outputs.md
    system-prompts.md
  scripts/
    README.md
    setup.md
    runtime.md

探索手順

タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:

  1. 下記マッピング表でタスクに対応するカテゴリを探す
  2. そのカテゴリの references/{category}/README.md(samples/ scripts/ は直下の README.md)を参照して目的のページを特定する
  3. 該当ページの .md を Read して詳細を確認する

タスク → カテゴリ マッピング

タスクカテゴリ参照 README
Agent SDK の概要・エージェントループの仕組みを知りたい・インストールして最初のエージェントを作りたい・Claude Code SDK からの移行・SDK 内で Claude Code の機能(CLAUDE.md, Agent Skills, hooks)を使いたいgetting-startedreferences/getting-started/README.md
query() や ClaudeAgentOptions / Options など TypeScript / Python の完全な型・関数シグネチャを確認したいapi-referencereferences/api-reference/README.md
custom tools(in-process MCP, createSdkMcpServer)を定義したい・外部 MCP サーバーに接続したい・hooks でツール呼び出しを制御したい・plugins / SKILL.md / slash commands / subagents / tool search を扱いたいextendingreferences/extending/README.md
セッションの永続化・再開・分岐(resume / fork)・外部ストレージへの保存・file checkpointing・todo 管理・streaming 出力・structured outputs を扱いたいsessions-ioreferences/sessions-io/README.md
system prompt をカスタマイズしたい・permission mode や canUseTool で権限制御したい・ユーザー入力/承認フローを扱いたいcontrolreferences/control/README.md
本番環境へのホスティング・セキュアなデプロイ・OpenTelemetry での observability・コスト/トークン追跡・エラーのトラブルシューティングを知りたいoperationsreferences/operations/README.md
典型的な使い方を知りたい(最小エージェント, custom tools, MCP サーバー接続, hooks, permissions, subagents, セッション継続, streaming, structured outputs, system prompt カスタマイズ)samplessamples/README.md
SDK インストール・API キー設定・ホスティング用テレメトリー環境変数を知りたいscriptsscripts/README.md

Related by task

from this repository

More skills

All skills
fandhe-ai
Community

fandhe-frontend

Rust 製フロントエンドフレームワーク fandhe-frontend のリファレンス。 SSR / SPA / SSG / View Transitions、hydration、Document builder(SSR 組み込み)、CSP meta、単一実行ファイル配布、Vercel、既定エスケープ。 クレート core / app / interactive / server(generatepages) / headless-ui(Primitives, AutocompleteToken, passkey) / pre-styled-ui(Themes, motion) / wireframe-ui(Wireframes) / animation(data- 属性) / wasm-full。 Blocks(Hero / Pricing / Cart 等セクション例 335 件)。CLI fw。

1h installs
2
GitHub stars
4
Updated
Nov 3
fandhe-ai
Community

playwright

Playwright v1.64 (E2E / コンポーネントテストフレームワーク) リファレンス。 test, expect, page, locator, getByRole / getByText / getByLabel / getByTestId / getByRef、 toBeVisible, click, fill, route, mock, fixtures、playwright.config.ts、 auth 永続化、Credentials (passkeys / WebAuthn)、WebStorage、WebMCP、 Playwright MCP / playwright-cli、trace viewer、screencast、test locks、codegen、UI モード。

1h installs
2
GitHub stars
4
Updated
Nov 3
fandhe-ai
Community

rust

Rust 言語リファレンス。 別名: rustlang, rs (拡張子)、Rust-lang。 TRPL (The Rust Programming Language)、Rust by Example、Reference、 Cargo Book、rustc Book、rustdoc Book、Rustonomicon (Unsafe Rust)、 Edition Guide、Standard Library、Error Index。 所有権、ライフタイム、トレイト、async / await、エラーハンドリング、マクロ。

1h installs
2
GitHub stars
4
Updated
Nov 3
fandhe-ai
Community

better-auth

Better Auth (TypeScript 認証フレームワーク) v1.7 リファレンス。 認証・認可、サインアップ・サインイン、セッション管理、OAuth、パスキー、二要素認証 (2FA / TOTP)、SSO / SAML、SCIM、 OAuth Provider (OAuth 2.1 / OIDC)、MCP 認可 (@better-auth/mcp)、Infrastructure (dash / sentinel)、 プラグイン (organization, admin, magic-link, anonymous 等)。betterAuth, createAuthClient, signUp, signIn, getSession。 Next.js, Nuxt, SvelteKit, Hono, Express, Expo, TanStack, Effect 統合。

1h installs
2
GitHub stars
4
Updated
Oct 24