跳到正文

Claude 教程

Claude tutorial by topic: the apps, clear prompting, documents and artifacts, projects, Claude Code, the Claude API, tool use, safe use and practice projects.

Getting Started

  1. 1 Claude 是什么?从这里开始 Learn what Claude is, who this independent tutorial is for, what you need, which examples run in your browser, and how the course takes you from chat to code.
  2. 2 应用、套餐与你的第一次对话 See where you can use Claude, how its plans differ as of December 2026, which models power it, and how to run a first conversation that gives useful answers.

Prompting Claude

  1. 3 清晰的请求与有用的上下文 Write requests Claude can act on: state the goal, audience, context, constraints and output format, explain your reasons, and test the result against criteria.
  2. 4 示例、结构与 XML 标签 Use examples to show the output you want, XML-style tags to separate instructions from data, and roles to set a viewpoint, with templates you build in Python.
  3. 5 长文档与多步骤提示 Work with long material in Claude: place documents before the question, ask for supporting quotes, split big jobs into steps, and verify quotes with code.

Documents, Artifacts and Analysis

  1. 6 处理文件、PDF 与图片 Learn which files Claude accepts, how it reads PDFs and images, the main upload limits as of December 2026, and how to ask questions you can verify.
  2. 7 Artifacts:文档、设计和小型应用 Understand Claude artifacts: when they appear, the template types, how to edit, export and share them, what plans include, and how to test small tools.
  3. 8 Claude 的数据分析与研究 Use Claude to analyze data with real code and to research with web search: frame questions, inspect the method, check sources and recompute key numbers.

Projects, Memory and Connectors

  1. 9 Claude 项目:知识与指令 Create Claude projects with instructions and knowledge files, keep that knowledge clean, understand sharing and memory rules, and test a project before use.
  2. 10 记忆、聊天搜索与偏好设置 Control what Claude carries between conversations: account instructions, memory, past-chat search and incognito chats, and learn how to review or delete.
  3. 11 连接器、技能与较长的任务 Connect Claude to other apps, add skills for repeatable work and delegate longer tasks, with permission settings and approval habits that limit the damage.

Claude Code and Agents

  1. 12 Claude Code:入门步骤 Meet Claude Code, Anthropic's coding agent: where it runs, how to install it, a safe first session, useful commands and how to review the changes it makes.
  2. 13 CLAUDE.md 与权限模式 Give Claude Code lasting project instructions with CLAUDE.md and auto memory, then control what it may do with permission modes and allow, ask and deny rules.
  3. 14 Claude Code 的技能、钩子、MCP 与子代理 Extend Claude Code with skills, run guaranteed checks with hooks, connect tools through MCP and delegate side work to subagents, with safety notes for each.

The Claude API

  1. 15 你的第一个 Claude API 请求 Send your first Claude API request: set up a key safely, call the Messages API with Python or curl, read content blocks and stop reasons, and keep history.
  2. 16 选择模型:令牌、思考与投入程度 Pick a Claude model for the job, estimate token costs with December 2026 prices, and control reasoning depth with adaptive thinking and the effort setting.
  3. 17 流式输出、错误、缓存与批处理 Make Claude API apps reliable and affordable: stream long replies, handle error codes and retries, reuse prompts with caching and process bulk work in batches.

Tools and Structured Output

  1. 18 结构化输出:从 Claude 获得可靠的 JSON Get machine-readable JSON from Claude with output_config.format and a JSON Schema, learn the schema limits, and still validate meaning in your own code.
  2. 19 在 Claude API 中使用工具 Let Claude call your functions: define tools, handle tool_use blocks, return tool_result blocks in the right order, report errors and validate every input.
  3. 20 代理循环与内置工具 Turn tool use into an agent loop with step limits, budgets and approvals, and learn how server tools, Anthropic-schema tools, MCP and agent products differ.

Safety, Privacy and Accuracy

  1. 21 检查准确性并减少错误 Understand why Claude can be wrong, reduce errors with grounding and honest uncertainty, and check facts, numbers, citations and code with a repeatable routine.
  2. 22 隐私、安全与提示注入 Protect data when you use Claude: know the training and privacy settings, redact what you share, follow usage rules and defend tools against prompt injection.

Projects and Reference

  1. 23 项目:构建一个学习助手 Build a study assistant with a Claude project: write instructions, prepare sources, set quiz rules, test with known answers and schedule spaced review.
  2. 24 项目:文档信息提取流水线 Design an API pipeline that extracts structured data from documents with Claude: schema, validation, review queue, test set, cost control and privacy rules.
  3. 25 Claude 术语表与速查表 A quick reference to Claude terms, prompting patterns, Claude Code commands, API fields, stop reasons and safety checks, with a short self-test quiz to finish.