逐日AI微信小程序
← 返回全部课程题库

Claude 高效使用:从对话到 Claude Code

课程题库 · 15 / 15 道题

D1 提示词进阶与 Claude 的「性格」:system prompt、XML 标签、让模型先思考、结构化输出

  • system prompt 应该放什么、不该放什么?如果一条规则模型总是不遵守,你会先检查什么?What belongs in a system prompt and what doesn't? If the model keeps ignoring one rule, what do you check first?
    国内高频海外高频基础#system-prompt#prompt-design

    🔒 解锁 D1 后查看答题要点。

  • 为什么用 XML 标签组织长提示词对 Claude 特别有效?和用 Markdown 分段比有什么区别?Why does organizing long prompts with XML tags work so well for Claude, and how does it differ from using Markdown sections?
    国内高频海外高频进阶#xml-tags#long-context

    🔒 解锁 D1 后查看答题要点。

  • 什么时候该让模型先写分析再回答,什么时候直接要结构化输出?两者能同时要吗?When should you have the model write its analysis before answering, and when should you go straight to structured output? Can you have both?
    国内高频海外高频进阶#structured-output#reasoning

    🔒 解锁 D1 后查看答题要点。

D2 长文档、多模态与 API 初见:大上下文怎么用、prompt caching 省钱、PDF 与图片输入、带引用回答;Messages API 最小调用

  • 为什么说上下文窗口是 LLM 应用里最稀缺的资源?窗口已经有一百万 token 了,这个说法还成立吗?Why is the context window called the scarcest resource in LLM applications? With million-token windows, does that still hold?
    国内高频海外高频基础#context-window#cost

    🔒 解锁 D2 后查看答题要点。

  • prompt caching 省在哪?什么情况下反而不省?线上发现缓存命中率是零,你怎么排查?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#cost

    🔒 解锁 D2 后查看答题要点。

  • citations 和在提示词里要求模型「引用原文并注明页码」有什么本质区别?什么场景下不能用 citations?How do API citations fundamentally differ from prompting the model to quote sources with page numbers, and when can't you use them?
    国内高频海外高频进阶#citations#grounding

    🔒 解锁 D2 后查看答题要点。

D3 Claude Code 入门与上下文管理:安装、CLAUDE.md 写法与「删到不能再删」、权限模式、Plan Mode「先探索再计划再写」、/clear /compact /rewind、给 Claude 一个可验证的检查

  • CLAUDE.md 和 skill 的分工是什么?什么内容该放哪边?一份 CLAUDE.md 写到 500 行会出什么问题?How do CLAUDE.md and skills divide responsibilities, what goes where, and what goes wrong when CLAUDE.md grows to 500 lines?
    国内高频海外高频基础#claude-md#skills#context

    🔒 解锁 D3 后查看答题要点。

  • 在 Claude Code 里为什么上下文窗口需要主动管理?/clear、/compact、/rewind 分别在什么时候用?Why does the context window need active management in Claude Code, and when do you use /clear, /compact, and /rewind respectively?
    国内高频海外高频进阶#context-window#claude-code

    🔒 解锁 D3 后查看答题要点。

  • 为什么说「给 Claude 一个可验证的检查」是用好 Agent 的分水岭?检查可以有哪几档硬度?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?
    国内高频海外高频进阶#verification#agent-loop

    🔒 解锁 D3 后查看答题要点。

D4 扩展 Claude Code:hooks(确定性)vs CLAUDE.md(建议性)、skills、subagents、plugins、接 MCP server、CLI 工具优先

  • 为什么 hooks 比 CLAUDE.md 里的规则更可靠?各适合放什么?举一个你会从 CLAUDE.md 挪到 hook 的例子。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

    🔒 解锁 D4 后查看答题要点。

  • skill 的渐进式加载是怎么回事?为什么能省上下文?description 应该怎么写?What is progressive loading for skills, why does it save context, and how should the description be written?
    国内高频海外高频进阶#skills#context

    🔒 解锁 D4 后查看答题要点。

  • subagent 解决了什么问题?它看得到主会话的历史吗?什么时候不该用?What problem do subagents solve? Do they see the main conversation's history? When should you not use one?
    国内高频海外高频进阶#subagents#context

    🔒 解锁 D4 后查看答题要点。

D5 自动化与规模化:headless -p 进 CI、并行会话与 worktree、Writer / Reviewer 双会话、对抗式审查、常见失败模式;Agent SDK 20 行最小 agent

  • 把 claude -p 放进 CI 时要控制哪三件事?具体用哪些参数?为什么推荐加 --bare?What three things must you control when running claude -p in CI, with which flags, and why is --bare recommended?
    国内高频海外高频进阶#headless#ci#permissions

    🔒 解锁 D5 后查看答题要点。

  • 为什么 Writer / Reviewer 双会话的审查比同一个会话自查更有效?审查者报出来的问题要全改吗?Why is a Writer / Reviewer two-session review more effective than self-review in one session, and should you fix everything the reviewer reports?
    国内高频海外高频进阶#review#subagents

    🔒 解锁 D5 后查看答题要点。

  • Agent SDK 和直接调 Messages API 各适合什么场景?它们和 claude -p 是什么关系?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

    🔒 解锁 D5 后查看答题要点。