Mastering Claude: From Conversation to Claude Code in 5 Days
Course questions · 15 / 15
D1 Advanced Prompting and Claude's "Personality": System Prompt, XML Tags, Letting the Model Think First, Structured Output
What belongs in a system prompt and what doesn't? If the model keeps ignoring one rule, what do you check first?system prompt 应该放什么、不该放什么?如果一条规则模型总是不遵守,你会先检查什么?
Common in ChinaCommon overseasBasic#system-prompt#prompt-design🔒 Unlock D1 to see the answer keys.
Why does organizing long prompts with XML tags work so well for Claude, and how does it differ from using Markdown sections?为什么用 XML 标签组织长提示词对 Claude 特别有效?和用 Markdown 分段比有什么区别?
Common in ChinaCommon overseasIntermediate#xml-tags#long-context🔒 Unlock D1 to see the answer keys.
When should you have the model write its analysis before answering, and when should you go straight to structured output? Can you have both?什么时候该让模型先写分析再回答,什么时候直接要结构化输出?两者能同时要吗?
Common in ChinaCommon overseasIntermediate#structured-output#reasoning🔒 Unlock D1 to see the answer keys.
D2 Long Documents, Multimodal Input, and a First Look at the API: Using Large Context, Saving Money With Prompt Caching, PDF and Image Input, Citation-Backed Answers; a Minimal Messages API Call
Why is the context window called the scarcest resource in LLM applications? With million-token windows, does that still hold?为什么说上下文窗口是 LLM 应用里最稀缺的资源?窗口已经有一百万 token 了,这个说法还成立吗?
Common in ChinaCommon overseasBasic#context-window#cost🔒 Unlock D2 to see the answer keys.
Where does prompt caching save money, when does it cost more, and how do you debug a zero cache-hit rate in production?prompt caching 省在哪?什么情况下反而不省?线上发现缓存命中率是零,你怎么排查?
Common in ChinaCommon overseasIntermediate#prompt-caching#cost🔒 Unlock D2 to see the answer keys.
How do API citations fundamentally differ from prompting the model to quote sources with page numbers, and when can't you use them?citations 和在提示词里要求模型「引用原文并注明页码」有什么本质区别?什么场景下不能用 citations?
Common in ChinaCommon overseasIntermediate#citations#grounding🔒 Unlock D2 to see the answer keys.
D3 Getting Started With Claude Code and Managing Context: Install, Writing CLAUDE.md and "Trim Until You Can't", Permission Modes, Plan Mode's "Explore, Then Plan, Then Write", /clear /compact /rewind, Giving Claude a Verifiable Check
How do CLAUDE.md and skills divide responsibilities, what goes where, and what goes wrong when CLAUDE.md grows to 500 lines?CLAUDE.md 和 skill 的分工是什么?什么内容该放哪边?一份 CLAUDE.md 写到 500 行会出什么问题?
Common in ChinaCommon overseasBasic#claude-md#skills#context🔒 Unlock D3 to see the answer keys.
Why does the context window need active management in Claude Code, and when do you use /clear, /compact, and /rewind respectively?在 Claude Code 里为什么上下文窗口需要主动管理?/clear、/compact、/rewind 分别在什么时候用?
Common in ChinaCommon overseasIntermediate#context-window#claude-code🔒 Unlock D3 to see the answer keys.
Why is 'give Claude a check it can run' the dividing line for using agents well, and what levels of enforcement can that check have?为什么说「给 Claude 一个可验证的检查」是用好 Agent 的分水岭?检查可以有哪几档硬度?
Common in ChinaCommon overseasIntermediate#verification#agent-loop🔒 Unlock D3 to see the answer keys.
D4 Extending Claude Code: Hooks (Deterministic) vs. CLAUDE.md (Advisory), Skills, Subagents, Plugins, Wiring Up an MCP Server, CLI Tools First
Why are hooks more reliable than rules in CLAUDE.md? What belongs in each? Give one rule you would move from CLAUDE.md to a hook.为什么 hooks 比 CLAUDE.md 里的规则更可靠?各适合放什么?举一个你会从 CLAUDE.md 挪到 hook 的例子。
Common in ChinaCommon overseasBasic#hooks#claude-md🔒 Unlock D4 to see the answer keys.
What is progressive loading for skills, why does it save context, and how should the description be written?skill 的渐进式加载是怎么回事?为什么能省上下文?description 应该怎么写?
Common in ChinaCommon overseasIntermediate#skills#context🔒 Unlock D4 to see the answer keys.
What problem do subagents solve? Do they see the main conversation's history? When should you not use one?subagent 解决了什么问题?它看得到主会话的历史吗?什么时候不该用?
Common in ChinaCommon overseasIntermediate#subagents#context🔒 Unlock D4 to see the answer keys.
D5 Automation and Scale: Headless -p Into CI, Parallel Sessions and Worktrees, Writer/Reviewer Dual Sessions, Adversarial Review, Common Failure Modes; a 20-Line Minimal Agent SDK Agent
What three things must you control when running claude -p in CI, with which flags, and why is --bare recommended?把 claude -p 放进 CI 时要控制哪三件事?具体用哪些参数?为什么推荐加 --bare?
Common in ChinaCommon overseasIntermediate#headless#ci#permissions🔒 Unlock D5 to see the answer keys.
Why is a Writer / Reviewer two-session review more effective than self-review in one session, and should you fix everything the reviewer reports?为什么 Writer / Reviewer 双会话的审查比同一个会话自查更有效?审查者报出来的问题要全改吗?
Common in ChinaCommon overseasIntermediate#review#subagents🔒 Unlock D5 to see the answer keys.
When do you use the Claude Agent SDK versus the Messages API directly, and how do both relate to claude -p?Agent SDK 和直接调 Messages API 各适合什么场景?它们和 claude -p 是什么关系?
Common in ChinaCommon overseasBasic#agent-sdk#messages-api🔒 Unlock D5 to see the answer keys.