/ 目录 / 演练场 / Anthropic Courses
● 官方 anthropics ⚡ 即开即用

Anthropic Courses

作者 anthropics · anthropics/courses

Anthropic 官方 Claude 课程——prompt 工程、tool use、RAG 和 eval——打包为可学习的 skill 资源。

anthropics/courses 是 Anthropic 关于高效使用 Claude 的官方课程。包含 API 基础、prompt 工程、真实场景提示、prompt 评估、tool use 以及客服 agent 实战指南。作为 SKILL 资源使用,让 Claude 了解 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

用官方课程提升你的 prompt 工程能力

👤 感觉 prompt 效果时好时坏的开发者 ⏱ ~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.✓ 已复制
    → 改写后的 prompt,附课程引文
  3. 评估结果
    Build a small eval harness from the evaluations chapter to compare old vs new prompt.✓ 已复制
    → 显示改进的评估表

结果: 更好的 prompt,以 Anthropic 自己的教学为基础。

按照官方演练实现 tool use

👤 首次集成工具调用的开发者 ⏱ ~45 min intermediate

何时使用: 文档感觉太抽象;你想要一个可运行的示例。

步骤
  1. 提取模板
    Use anthropic-courses tool-use chapter. Lift the basic example into my repo and adapt.✓ 已复制
    → 你代码中有效的 tool use 循环
  2. 加入我的实际工具
    Replace the example tools with ones for my domain (search-orders, refund-customer).✓ 已复制
    → 领域特定的工具定义

结果: 用官方模式快速实现 tool use。

参照 prompt 评估课程构建真实的 eval 框架

👤 发布 LLM 功能的团队 ⏱ ~90 min advanced

何时使用: 你要发布 prompt,需要回归测试覆盖。

步骤
  1. 搭建框架
    Use anthropic-courses prompt-evaluations chapter. Set up the harness for my prompt.✓ 已复制
    → eval 框架运行中
  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

学习基础 + 以 skill 格式交付

anthropic-courses-skill + anthropic-cookbook-skill

课程 + 手册 = 理论 + 实践

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
(notebook curriculum) natural lookup 学习新的 Claude 技术时 0

成本与限制

运行它的成本

API 配额
不适用——本地
每次调用 Token 数
课程内容可能较长——锁定到特定章节
费用
免费(MIT 协议)
提示
作为参考使用,而非全量倾倒上下文——让 Claude 搜索相关章节

安全

权限、密钥、影响范围

凭据存储:
数据出站:

故障排查

常见错误与修复

Notebook 无法渲染

skill 仅用于参考,不用于执行;在 Jupyter 或 VS Code 中打开 notebook

课程示例使用旧版 API 模式

浏览最新提交;Anthropic 会更新课程,但旧模式仍可能残留

替代方案

Anthropic Courses 对比其他方案

替代方案何时用它替代权衡
anthropics/anthropic-cookbook你想要配方,不想要课程手册面向实践;课程面向基础
anthropics/anthropic-quickstarts你想要可运行的模板来 forkquickstart = 样板代码;courses = 教学法

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills