你的 AI 身份与 AI 团队,可携带至任意 AI 平台。
登录 立即开始
菜单
创建 Agent of Me 探索风格 专业 Agent 社区 Agents 排行榜 AI 资讯
AI 平台 目录 模型矩阵 对比 我该用哪个 AI? 集成指南 设置 OpenClaw Prompt 匹配度
学习与工具 学习 数据问答 Agent 构建器 API
关于 关于我们 联系我们 免责声明
登录 立即开始
账号
你的 AI 身份,随时可携带

注册免费账号以构建你的档案。默认私密,除非你主动发布,否则不会分享任何内容。

立即开始 登录
深色模式

🧭 引导视图
对 prompt、系统指令、上下文窗口、token 感到陌生?我们在浏览过程中以通俗语言解释每一个术语,内置于相同页面中,无需额外跳转。

⚡ 专业视图
你已经懂得如何写 prompt。只给核心内容,简洁紧凑,无多余说明。这是默认视图。

界面语言

Prompt Systems & Agents · 章节 2/5, Designing a Specialist

学习目标
点击"下一步"(或使用方向键)逐条浏览。没有计时器,5 题测验在最后等你。顶部的 ← 随时可退出,进度自动保存。

A job description, not a costume

An agent prompt is a reusable specialist: instructions that define a job, saved once, invoked whenever the job comes up. The complete design has five parts. ROLE: what the specialist is and is not. WORKFLOW: the steps it follows, in order. REQUIRED INPUTS: what it must be given, or must ask for, before starting. OUTPUT CONTRACT: the exact shape of what comes back. GUARDRAILS: what it never does, plus any disclaimers its domain demands.

Miss a part and the failure is predictable. No workflow: plausible but unmethodical answers. No required inputs: confident work built on guesses. No output contract: a different shape every time. No guardrails: the one bad day that makes you stop trusting it.

Why structure beats role-play

'You are an experienced contract lawyer' is a costume. It shifts vocabulary and confidence, mostly confidence, while the underlying work stays whatever the model felt like doing. The costume version sounds more expert without being more careful.

The structured version defines the work: 'Review the contract clause by clause. For each flagged clause: quote it, name the risk, rate severity, propose alternative wording. Ask for the governing jurisdiction if it is not stated. End with the three clauses to negotiate first, and note that this is not legal advice.' Same domain, but now the expertise is a procedure you can verify and improve.

Guardrails and worked examples

Guardrails are the never-do rules that hold on the bad day: 'never invent a citation', 'never state a deadline without naming its source', 'always include the not-legal-advice line'. Write them from failures you have seen or can predict. Each guardrail should have a story. Domains with real stakes (legal, medical, financial) also need their standing disclaimer built in, not remembered per prompt.

Then pin the behavior with one worked example: a sample input and the exact output you want for it, inside the agent prompt. You know why from earlier courses, patterns hold better than descriptions. One example tunes tone, depth and format at once, and each new failure mode becomes a new example or a new guardrail.

Version your agents

The first version of any agent is a hypothesis. You will meet inputs you did not predict and outputs that drift from the contract. So treat the prompt like the small piece of infrastructure it is: number the versions, change one thing at a time, keep one line per version on what changed and why.

The discipline pays off the first time an agent gets worse. With versions, you compare v4 against v3 and find the line that caused it; without them you are rewriting from memory. Versioning also makes agents shareable, a teammate can adopt v5 and report problems against something specific.

小测验, Designing a Specialist

5 道题,每次从题库随机抽取。及格线 60%,可无限次重考。

下一节: Composing Profile + Specialist →
阅读完整课文

1. A job description, not a costume

An agent prompt is a reusable specialist: instructions that define a job, saved once, invoked whenever the job comes up. The complete design has five parts. ROLE: what the specialist is and is not. WORKFLOW: the steps it follows, in order. REQUIRED INPUTS: what it must be given, or must ask for, before starting. OUTPUT CONTRACT: the exact shape of what comes back. GUARDRAILS: what it never does, plus any disclaimers its domain demands.

Miss a part and the failure is predictable. No workflow: plausible but unmethodical answers. No required inputs: confident work built on guesses. No output contract: a different shape every time. No guardrails: the one bad day that makes you stop trusting it.

2. Why structure beats role-play

'You are an experienced contract lawyer' is a costume. It shifts vocabulary and confidence, mostly confidence, while the underlying work stays whatever the model felt like doing. The costume version sounds more expert without being more careful.

The structured version defines the work: 'Review the contract clause by clause. For each flagged clause: quote it, name the risk, rate severity, propose alternative wording. Ask for the governing jurisdiction if it is not stated. End with the three clauses to negotiate first, and note that this is not legal advice.' Same domain, but now the expertise is a procedure you can verify and improve.

3. Guardrails and worked examples

Guardrails are the never-do rules that hold on the bad day: 'never invent a citation', 'never state a deadline without naming its source', 'always include the not-legal-advice line'. Write them from failures you have seen or can predict. Each guardrail should have a story. Domains with real stakes (legal, medical, financial) also need their standing disclaimer built in, not remembered per prompt.

Then pin the behavior with one worked example: a sample input and the exact output you want for it, inside the agent prompt. You know why from earlier courses, patterns hold better than descriptions. One example tunes tone, depth and format at once, and each new failure mode becomes a new example or a new guardrail.

4. Version your agents

The first version of any agent is a hypothesis. You will meet inputs you did not predict and outputs that drift from the contract. So treat the prompt like the small piece of infrastructure it is: number the versions, change one thing at a time, keep one line per version on what changed and why.

The discipline pays off the first time an agent gets worse. With versions, you compare v4 against v3 and find the line that caused it; without them you are rewriting from memory. Versioning also makes agents shareable, a teammate can adopt v5 and report problems against something specific.

商业

Business AnalystChief of StaffExecutive AssistantM&A AnalystManagement ConsultantOperations AnalystProject ManagerRecruiter

金融

AccountantDue Diligence AnalystEquity Research AnalystFamily Office AnalystFinancial AnalystFixed Income AnalystInvestment Banking AnalystPortfolio Analyst

法律

Contract Review AssistantLegal Due Diligence AssistantLegal Research AssistantParalegal

营销

Brand StrategistContent StrategistGEO AnalystMarketing StrategistSEO AnalystSales Strategist

个人

Career CoachLearning TutorReflection AssistantResearch AssistantTravel PlannerWriting Assistant

房地产

Acquisition AnalystAsset Management AnalystCommercial Real Estate AnalystDevelopment AnalystLease AnalystProperty Financial Analyst

研究

Competitive Intelligence AnalystDeep Research AnalystIndustry Research AnalystJournalist ResearcherMarket Research AnalystMedical Research Assistant

科技

AI Strategy AdvisorCybersecurity Research AssistantData AnalystProduct ManagerSoftware Engineer