/ 目錄 / 演練場 / Anthropic Courses
● 官方 anthropics ⚡ 即開即用

Anthropic Courses

作者 anthropics · anthropics/courses

Anthropic 官方 Claude 課程——提示工程、工具使用、RAG 和評估——封裝為可學習的技能資源。

anthropics/courses 是 Anthropic 官方的 Claude 使用課程。包含 API 基礎課程、提示工程、真實世界提示實踐、提示評估、工具使用,以及客服代理實作演練。作為 SKILL 資源使用,它教導 Claude 如何最好地被使用——元層面但高槓桿。

為什麼要用

核心特性

即時演示

實際使用效果

就緒

安裝

選擇你的客戶端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "anthropic-courses-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/anthropics/courses",
        "~/.claude/skills/anthropic-courses"
      ],
      "_inferred": true
    }
  }
}

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "anthropic-courses-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/anthropics/courses",
        "~/.claude/skills/anthropic-courses"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "anthropic-courses-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/anthropics/courses",
        "~/.claude/skills/anthropic-courses"
      ],
      "_inferred": true
    }
  }
}

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "anthropic-courses-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/anthropics/courses",
        "~/.claude/skills/anthropic-courses"
      ],
      "_inferred": true
    }
  }
}

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "anthropic-courses-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/anthropics/courses",
        "~/.claude/skills/anthropic-courses"
      ]
    }
  ]
}

Continue 使用伺服器物件陣列,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "anthropic-courses-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/anthropics/courses",
          "~/.claude/skills/anthropic-courses"
        ]
      }
    }
  }
}

加入 context_servers。Zed 儲存後熱重載。

claude mcp add anthropic-courses-skill -- git clone https://github.com/anthropics/courses ~/.claude/skills/anthropic-courses

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: Anthropic Courses

使用官方課程提升你的提示工程能力

👤 提示效果不穩定的開發者 ⏱ ~60 min intermediate

何時使用: 你想要基本功,而非民間傳說。

步驟
  1. 建立課程索引
    Use anthropic-courses. Summarize the prompt engineering chapter outlines.✓ 已複製
    → 章節索引
  2. 套用到我的問題
    Here's a prompt I keep tuning unsuccessfully. Apply the chapter's techniques to rewrite it.✓ 已複製
    → 重寫的提示,附帶課程引用
  3. 評估結果
    Build a small eval harness from the evaluations chapter to compare old vs new prompt.✓ 已複製
    → 顯示改進的評估表

結果: 以 Anthropic 自己的教學為基礎的更好提示。

按照官方演練實作工具使用

👤 第一次整合工具呼叫的開發者 ⏱ ~45 min intermediate

何時使用: 文件感覺太抽象;你想要一個可運作的範例。

步驟
  1. 提取模板
    Use anthropic-courses tool-use chapter. Lift the basic example into my repo and adapt.✓ 已複製
    → 程式碼中可運作的工具使用迴圈
  2. 新增我的實際工具
    Replace the example tools with ones for my domain (search-orders, refund-customer).✓ 已複製
    → 領域特定的工具定義

結果: 使用官方模式快速完成工具使用整合。

按照提示評估課程建立真正的評估框架

👤 發布 LLM 功能的團隊 ⏱ ~90 min advanced

何時使用: 你正在發布提示,需要回歸測試覆蓋。

步驟
  1. 提取框架
    Use anthropic-courses prompt-evaluations chapter. Set up the harness for my prompt.✓ 已複製
    → 評估框架運行中
  2. 撰寫 20 個案例
    Generate 20 representative + edge cases. Score expected outputs.✓ 已複製
    → 測試集已準備
  3. 連接到 CI
    Run on every prompt change in CI. Fail if accuracy drops >2%.✓ 已複製
    → CI 閘控

結果: 不會靜默退化的 LLM 功能。

組合

與其他 MCP 搭配,撬動十倍槓桿

anthropic-courses-skill + anthropic-skills-official

學習基礎知識後以技能格式發布

anthropic-courses-skill + anthropic-cookbook-skill

課程 + 食譜 = 理論 + 實踐

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
(notebook curriculum) natural lookup 學習新的 Claude 技術時 0

成本與限制

運行它的成本

API 配額
不適用——本地
每次呼叫 Token 數
課程內容可能很長——固定到特定章節
費用
免費(MIT)
提示
作為參考使用,而非上下文傾倒——讓 Claude 搜尋相關章節

安全

權限、密鑰、影響範圍

憑證儲存:
資料出站:

故障排查

常見錯誤與修復

Notebook 無法渲染

技能用於參考,非執行;在 Jupyter 或 VS Code 中開啟 notebook

課程範例使用較舊的 API 模式

瀏覽最近的提交;Anthropic 更新課程但舊模式仍會留存

替代方案

Anthropic Courses 對比其他方案

替代方案何時用它替代權衡
anthropics/anthropic-cookbook你想要食譜,而非課程食譜是行動導向的;課程是基礎性的
anthropics/anthropic-quickstarts你想要可分支的可執行模板快速入門 = 樣板程式碼;課程 = 教學法

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills