sf-ai-agentforce-persona
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgent Persona Design
Agent人设设计
How to Use
使用方法
This skill designs an AI agent persona through a guided questionnaire. It walks you through identity traits, archetype selections across dimensions, settings for brevity and humor, tone boundaries, and phrase book generation — one step at a time.
What it produces:
- A persona document () defining who the agent is, how it sounds, and what it never does
generated/[agent-name]-persona.md - A scorecard file () evaluating the persona against a 50-point rubric
generated/[agent-name]-persona-scorecard.md - An encoding output file () with copy-paste-ready Agent Builder field values, platform setting recommendations, and reusable instruction blocks
generated/[agent-name]-persona-encoding.md
What it drives downstream: The persona document feeds into conversation design, and the encoding output provides the field values for Agent Builder configuration (Role, Company, Topic Instructions, Action Output Response Instructions, Welcome Message, Loading Text). Those are separate steps — this skill defines the persona and translates it into Agent Builder fields, but does not define dialog flows.
Session resumption: If you stop mid-workflow, your partial progress is preserved in the conversation and can be resumed.
本技能通过引导式问卷完成AI Agent的人设设计,会一步步带你完成身份特质设定、多维度原型选择、简洁度与幽默感设置、语气边界定义,以及常用语料库生成的全流程。
输出产物:
- 人设文档():明确定义Agent的身份、表达风格、行为禁忌
generated/[agent-name]-persona.md - 评分卡文件():按照50分评分规则对人设完成度进行评估
generated/[agent-name]-persona-scorecard.md - 编码输出文件():提供可直接复制粘贴的Agent Builder字段值、平台设置建议、可复用的指令块
generated/[agent-name]-persona-encoding.md
下游价值: 人设文档是对话设计的输入,编码输出可为Agent Builder配置(角色、所属公司、主题指令、动作输出响应指令、欢迎语、加载提示文本)提供字段值。这些属于后续独立步骤:本技能仅完成人设定义并转换为Agent Builder可识别的字段,不涉及对话流程定义。
会话恢复: 如果流程中途中断,已完成的部分进度会保存在对话中,下次进入可直接恢复。
When to Use This Skill
何时使用本技能
- Designing a new Agentforce agent and need to define its personality before building
- Retrofitting persona consistency onto an existing agent whose tone is inconsistent
- Aligning stakeholders on what an agent should sound like before development begins
- Documenting an agent's voice for handoff between design and implementation teams
Scope boundary: This skill defines WHO the agent is. It does not define dialog flows, utterance templates, or interaction branching — those belong in conversation design. The persona document is an input to conversation design, not a replacement for it.
- 设计全新的Agentforce Agent,需要在开发前先定义其人格特质
- 为现有语气不稳定的Agent补全一致的人设规范
- 在开发前对齐所有利益相关方对Agent表达风格的预期
- 沉淀Agent的表达规范,用于设计与开发团队之间的交接
适用边界: 本技能仅定义Agent的「身份属性」,不涉及对话流程、话术模板、交互分支设计——这些属于对话设计的范畴。人设文档是对话设计的输入,不能替代对话设计工作。
Framework Reference
框架参考
Read for the full framework. It defines:
references/persona-framework.md- Identity — 3-5 personality adjectives that anchor every other decision
- Dimensions (Register, Voice, Tone) — each with a spectrum and 3-4 named archetypes, ordered by dependency
- Settings (Brevity, Empathy Level, Humor) — simple single-knob tuning with one-line descriptions
- Chatting Style (Emoji, Formatting, Punctuation, Capitalization) — visual and textual convention settings grouped under one section
- Tone Boundaries — authored per persona within the Tone section: what the agent must never sound like
Dimensions are ordered by dependency — upstream choices constrain downstream ones. Constraint notes in the framework explain how earlier choices pull later ones.
完整框架可查阅,其中定义了:
references/persona-framework.md- 身份 — 3-5个性格形容词,作为所有人设决策的核心锚点
- 维度(语体、语态、语气) — 每个维度都包含连续区间和3-4个命名原型,按依赖关系排序
- 设置项(简洁度、共情等级、幽默感) — 单旋钮式的简单调整项,附带单行说明
- 聊天风格(Emoji、格式、标点、大小写) — 归为同一类的视觉与文本表达规范设置
- 语气边界 — 每个人设都需要在语气部分单独定义:Agent绝对不能出现的表达风格
维度按依赖关系排序,上游的选择会约束下游的可选范围,框架中的约束说明会解释前置选择如何影响后续选项。
GENERATION GUARDRAILS
生成 guardrail
These behavioral constraints apply when executing the persona design workflow:
- Context fields are agent design, not persona — Name, role, audience, agent type, surface, use cases originate in agent design. Persona design imports or minimally gathers them.
- Persona-carrying fields in Agentforce — Role (255 chars), Company (255 chars), Topic Instructions, Action Output Response Instructions, Loading Text, Welcome Message (800 chars). Platform settings that affect persona: Tone dropdown, Conversation Recommendations toggles. Interaction Model, Information Architecture, Recovery & Escalation, and Content Guardrails are agent design inputs.
- Dimension presentation format — Dimension name + one-line definition, spectrum line, then compact list matching spectrum labels. Not full behavioral bullet tables (those go in the generated persona document). Settings (Brevity, Empathy Level, Humor) use a simple table format: Setting | Description.
- Label: description - Dependency ordering — Dimensions and settings are ordered by dependency: Identity → Register → Voice → Brevity → Tone (+Empathy Level) → Humor → Chatting Style (Emoji, Formatting, Punctuation, Capitalization). Constraint notes between sections explain how upstream choices pull downstream ones. No explicit tier labels.
- Dimensions vs. settings — Dimensions (Register, Voice, Tone) use archetype menus with spectrum lines and behavioral bullets. Settings (Brevity, Empathy Level, Humor) are simpler single-knob tuning with one-line descriptions. Chatting Style groups four visual/textual convention settings (Emoji, Formatting, Punctuation, Capitalization).
- Cross-skill relationship — Interaction Model (initiative, autonomy, collaboration) and Information Architecture (output structure, surface formatting) are defined in agent design. Persona imports the Interaction Model selection as context; Chatting Style is the persona-side visual expression preference.
执行人设设计流程时需要遵守以下行为约束:
- 上下文字段属于Agent设计范畴,不属于人设范畴 — 名称、角色、受众、Agent类型、承载场景、用例都来自Agent设计阶段,人设设计仅导入这些信息,或仅做最低限度的收集。
- Agentforce中承载人设的字段 — 角色(255字符)、所属公司(255字符)、主题指令、动作输出响应指令、加载文本、欢迎语(800字符)。影响人设的平台设置:语气下拉选项、对话推荐开关。交互模型、信息架构、兜底与升级流程、内容Guardrail属于Agent设计的输入。
- 维度展示格式 — 维度名称+单行定义、区间线,然后是匹配区间标签的精简列表,不要使用完整的行为要点表(这些内容会放到生成的人设文档中)。设置项(简洁度、共情等级、幽默感)使用简单表格格式:设置项 | 说明。
- 标签: 说明 - 依赖排序 — 维度与设置项按依赖关系排序:身份 → 语体 → 语态 → 简洁度 → 语气(+共情等级) → 幽默感 → 聊天风格(Emoji、格式、标点、大小写)。各部分之间的约束说明会解释前置选择如何影响后续选项,不需要显式标注层级。
- 维度与设置项的区别 — 维度(语体、语态、语气)使用带区间线和行为要点的原型选择菜单;设置项(简洁度、共情等级、幽默感)是更简单的单旋钮调整项,附带单行说明;聊天风格聚合了4项视觉/文本规范设置(Emoji、格式、标点、大小写)。
- 跨技能关联 — 交互模型(主动性、自主性、协作性)和信息架构(输出结构、场景格式)在Agent设计阶段定义,人设设计导入交互模型选择作为上下文;聊天风格是人设层面的视觉表达偏好。
Guided Mode Workflow
引导模式流程
Walk the user through persona creation in 7 steps. Read before starting.
references/persona-framework.mdAskUserQuestion- Use it for pure archetype/setting selection only — where the user picks one option from a menu and that's the complete answer (e.g., choosing Peer vs. Coach vs. Subordinate, or Terse vs. Concise vs. Moderate vs. Expansive).
- Never use it for open-ended or revision questions. If the answer might require explanation, elaboration, or free-text input, ask in prose and let the user respond naturally. Forcing "select an option then explain in Other" is a bad interaction pattern.
- Concretely: Steps 1 (Context) and 2 (Identity) are prose conversations. Step 3 (Dimensions + Settings) archetype/setting picks use ; Tone Boundaries are proposed and confirmed in prose. Step 6 (Score) review is prose.
AskUserQuestion - Recommended-option convention: When presenting recommended options in multiselect, mark recommended items with ⭐️. Include at the end of the question text: "(⭐️ = Recommended)"
AskUserQuestion
分7步引导用户完成人设创建,开始前请先阅读。
references/persona-framework.mdAskUserQuestion- 仅用于纯原型/设置项选择场景 — 即用户只需从菜单中选一个选项即可完成回答的场景(例如选择对等角色/教练/下属,或者极简/简洁/适中/详尽)。
- 绝对不要用于开放式或修改类问题。如果答案可能需要解释、补充说明或自由文本输入,请用自然语言提问,让用户自然回复。强制要求「先选选项再在其他中说明」是很差的交互模式。
- 具体来说:步骤1(上下文)和步骤2(身份)是自然语言对话;步骤3(维度+设置项)的原型/设置选择使用;语气边界用自然语言提出并确认;步骤6(评分) review 是自然语言对话。
AskUserQuestion - 推荐选项约定: 在多选菜单中展示推荐选项时,用⭐️标记推荐项,并在问题文本末尾补充:「(⭐️ = 推荐)」
AskUserQuestion
Step 1: Context
步骤1:上下文收集
Most context fields (role, audience, agent type, surface, use cases) are agent design decisions, not persona decisions. They originate in agent design. But persona design needs them as inputs — they inform every archetype recommendation that follows.
Exception: Agent name is a persona decision. The name is user-facing — users see it in the chat header before any conversation starts. It should align with Identity and Register. A distinctive name signals personality; a generic name signals nothing. See the Identity → Naming section in the framework.
Detection: Start by asking whether agent design work already exists.
"Do you have an agent design document — a use case definition, agent scope, or blueprint — for this agent? Or are we starting fresh?"
Path A — Import from agent design: The user provides or points to an existing agent design artifact. Extract these fields:
| Field | Source in Agent Design |
|---|---|
| Agent name | Use Case Definition → Agent Name |
| Role | Use Case Definition → Description |
| Audience | Use Case Definition → Target Users |
| Agent Type | Agent Scope → Agent Role / channel context |
| Surface | Agent Scope → Channel |
| Primary use cases | Use Case Definition → Use Cases (or prioritized JTBD) |
| Interaction Model | Agent Scope → Interaction Model (§2.7) |
Present the extracted context as a summary table and ask the user to confirm. If anything is missing or unclear, ask only about the gaps.
Path B — Gather minimum context: No agent design exists. Gather the basics — enough to proceed with persona, not a full agent design exercise. Ask all at once:
-
Agent name — What is this agent called?
-
Role — What does it do? (e.g., "helps TSEs manage support cases", "guides customers through onboarding")
-
Audience — Internal employees or external customers?
-
Agent Type — The Agentforce deployment type (e.g., Employee Agent, Customer Agent, Service Agent, Sales Agent, Custom Agent). Agent Type and Audience are related but distinct — Agent Type is the deployment category, Audience is who the human users are.
-
Surface — Where the agent appears, expressed as Platform/Environment > Surface. A surface is a distinct UI interaction context where a user can access or encounter agent capabilities — it feels like a different "place" or experience to the user. Two surfaces on the same platform (e.g., Copilot panel vs. Lightning record page) may need different persona tuning because they feel like different places.
Platform / Environment Surfaces Salesforce Copilot panel, Lightning record page, Field-level AI generation (inline assist) Slack Agent DM, Agent in channel Website Embedded chat widget, Full-page chat WhatsApp Messaging conversation Third-party (e.g., ChatGPT) Chat with Salesforce integration Surface matters for persona because it constrains Chatting Style (inline field assist can't use heavy formatting; Slack DM can use casual capitalization) and channel-appropriate Voice (Slack DM is more casual than a web chat widget). Surface also informs agent design decisions about Interaction Model and Information Architecture. -
Primary use cases — 2-4 things users will ask it to do most often
-
Interaction Model — "How much should this agent do on its own?" A lightweight question to inform phrase book design — not a full agent design exercise.
- Socratic Partner — Asks before acting, confirms everything
- Balanced Collaborator — Asks on ambiguous, drafts on predictable
- Proactive Drafter — Drafts first, confirms on irreversible
- Autonomous Operator — Acts first, reports after
Store these answers — they inform every recommendation that follows.
大部分上下文字段(角色、受众、Agent类型、承载场景、用例)是Agent设计阶段的决策,不属于人设决策,它们来自Agent设计阶段,但人设设计需要这些作为输入,后续所有原型推荐都要基于这些信息生成。
例外:Agent名称属于人设决策。名称是用户可见的,用户在对话开始前就能在聊天头部看到,需要与身份和语体匹配。有辨识度的名称能传递性格,通用名称则没有传递任何信息。可参考框架中「身份→命名」部分的说明。
流程启动: 首先询问用户是否已经完成Agent设计工作。
"你是否已经准备好了该Agent的设计文档——包括用例定义、Agent范围或者蓝图?还是我们从零开始设计?"
路径A — 从Agent设计导入: 用户提供或指向已有的Agent设计产物,请提取以下字段:
| 字段 | Agent设计中的来源 |
|---|---|
| Agent名称 | 用例定义 → Agent名称 |
| 角色 | 用例定义 → 描述 |
| 受众 | 用例定义 → 目标用户 |
| Agent类型 | Agent范围 → Agent角色/渠道上下文 |
| 承载场景 | Agent范围 → 渠道 |
| 核心用例 | 用例定义 → 用例(或优先级最高的待办任务) |
| 交互模型 | Agent范围 → 交互模型(§2.7) |
将提取的上下文整理成汇总表格,让用户确认。如果有缺失或不明确的内容,仅询问缺失的部分即可。
路径B — 收集最小必要上下文: 没有现成的Agent设计,只收集完成人设所需的基础信息,不需要做完整的Agent设计。一次性询问以下内容:
-
Agent名称 — 这个Agent叫什么?
-
角色 — 它的核心功能是什么?(例如:「帮助技术支持工程师管理支持工单」、「引导客户完成新手上路流程」)
-
受众 — 内部员工还是外部客户?
-
Agent类型 — Agentforce部署类型(例如:员工Agent、客户Agent、服务Agent、销售Agent、自定义Agent)。Agent类型和受众相关但不同:Agent类型是部署分类,受众是使用的人类用户群体。
-
承载场景 — Agent出现的位置,格式为平台/环境 > 场景。场景是用户可以访问或使用Agent能力的独立UI交互上下文,对用户来说属于不同的「使用位置」或体验。同一平台上的两个不同场景(例如Copilot面板 vs Lightning记录页)可能需要不同的人设调整,因为用户对它们的感知是不同的。
平台/环境 场景 Salesforce Copilot面板、Lightning记录页、字段级AI生成(内嵌辅助) Slack Agent私信、Agent频道驻留 网站 嵌入式聊天组件、全页聊天 WhatsApp 消息对话 第三方平台(例如ChatGPT) 集成Salesforce能力的对话 场景对人设很重要,因为它会约束聊天风格(内嵌字段辅助不能用复杂格式;Slack私信可以用更随意的大小写),以及符合渠道的语态(Slack私信比网站聊天组件更随意)。场景也会为Agent设计中的交互模型和信息架构决策提供参考。 -
核心用例 — 用户最常向Agent提出的2-4类需求
-
交互模型 — 「这个Agent的自主行动程度应该是什么样的?」这是一个轻量问题,用于指导语料库设计,不需要做完整的Agent设计。
- 苏格拉底式伙伴 — 行动前先询问,所有操作都要确认
- 平衡协作者 — ambiguous场景先询问, predictable场景直接生成草稿
- 主动草稿生成者 — 先生成草稿,不可逆操作才确认
- 自主执行者 — 先执行,完成后再上报
保存这些回答,后续所有推荐都要基于这些信息生成。
Step 2: Identity
步骤2:身份定义
Based on the context from Step 1, propose 3-5 personality adjectives that would serve this agent well. For each adjective, provide a one-sentence behavioral definition (what it looks like in practice, not just what the word means).
Present your proposal and ask the user to confirm, revise, or replace. Identity is generative — the user writes their own, your proposal is a starting point.
Stop and wait. Do not proceed to Step 3 until the user has confirmed, revised, or replaced the proposed traits. Identity anchors every subsequent decision — the user must actively sign off before you use it to generate recommendations. If the user hasn't responded, wait.
Validation rule: Each adjective must be distinct (no synonyms) and non-contradictory. If two traits conflict, flag it and ask the user to resolve.
Optionally ask: "Want to give this agent a backstory? A fictional background (e.g., 'studied hospitality', 'spent 10 years in field service') that informs word choice — the agent never says it aloud." If yes, capture 1-2 sentences. If no, skip.
基于步骤1收集的上下文,推荐3-5个适合该Agent的性格形容词,每个形容词附带一句行为定义(说明实际表现是什么样的,而不是单词本身的含义)。
展示你的推荐方案,让用户确认、修改或替换。身份是生成式的,用户可以自己编写,你的推荐只是起点。
暂停等待回复。 在用户确认、修改或替换推荐的特质前,不要进入步骤3。身份是所有后续决策的锚点,用户必须主动确认后才能用它生成后续推荐。如果用户还没回复,保持等待。
验证规则: 每个形容词必须有区分度(不能是同义词)且无冲突。如果两个特质冲突,请指出并让用户解决。
可以选择性询问:「要不要给这个Agent加一段背景故事?虚构的背景(例如「学过酒店管理」、「有10年现场服务经验」)会影响选词,Agent不会主动把这段背景说出来。」如果用户同意,收集1-2句话的内容,如果不同意则跳过。
Step 3: Dimensions & Settings
步骤3:维度与设置项配置
Work through dimensions and settings in dependency order. Upstream choices constrain downstream ones — present them in this sequence:
Register → Voice → Brevity → Tone (+ Empathy Level) → Humor → Chatting Style (Emoji, Formatting, Punctuation, Capitalization)
For each dimension (Register, Voice, Tone):
- Present the dimension in prose — dimension name + one-line definition from the framework (e.g., "Register — Relationship + formality level: Who are you to me?"), the spectrum line, and your recommendation with rationale based on Identity + context. Include the relevant constraint note from the framework explaining how upstream choices pull this dimension.
- Ask the user to select — use with the archetypes as options. Each option's label is the archetype name and its description is the one-liner from the framework. Do NOT duplicate the archetype list in the prose above — the
AskUserQuestionIS the archetype menu. The prose presents the dimension context and recommendation; the tool presents the choices.AskUserQuestion
For each setting (Brevity, Empathy Level, Humor) and each Chatting Style sub-setting (Emoji, Formatting, Punctuation, Capitalization):
- Present the setting in prose — setting name, what it controls, and your recommendation based on upstream choices.
- Ask the user to select — use with the setting options. Each option's label is the setting name and its description is the one-liner from the framework.
AskUserQuestion
Batching: supports up to 4 questions per call. A reasonable batching that respects dependency order:
AskUserQuestion- Call 1: Register + Voice (2 questions). Present both dimension contexts and recommendations in prose above the call.
- Call 2: Brevity + Tone + Empathy Level (3 questions). Present all three contexts in prose, noting how Register + Voice constrain these. Brevity and Tone are largely independent of each other, so they can be batched. Empathy Level depends on Tone selection, but since both are in the same call the user sees the context.
- Call 3: Humor + Emoji + Formatting (3 questions). Present constraint notes from Voice + Tone → Humor and Voice → Chatting Style in prose.
- Call 4: Punctuation + Capitalization (2 questions). Present the remaining Chatting Style sub-settings. These are lightweight — constraint note from Voice covers both.
Sequential (one dimension/setting per call) is also fine — batching is optional. The key constraint: dependency order must be maintained.
Voice dimension additions:
- After presenting the Voice archetype selection, mention: "All Voice archetypes taper responses as the user demonstrates familiarity — first interactions get full context, repeat interactions get shorter versions. Tapering behavior is calibrated by the Brevity setting (coming next)."
- If the Surface from Step 1 is a voice channel (phone, voice assistant, IVR), present optional voice channel parameters: pitch range (Low/Mid/High), speaking rate (Slow/Moderate/Fast), energy level (Calm/Moderate/Energetic), and warmth/aural smile (Neutral/Warm/Bright). These are physical voice qualities on top of the Voice archetype. Skip for text-based agents.
Tone Boundaries sub-step:
After the user confirms Empathy Level, propose Tone Boundaries in prose:
- Present the 4 default tone boundaries (Never apologize for asking clarifying questions; Never apologize for not knowing something; Only apologize when the agent caused an explicit mistake; Never ask the user for empathy)
- Propose context-specific boundaries based on the Tone archetype selected
- When Humor ≠ None, include: "No humor in error states, escalation, or high-stakes contexts"
- User confirms/revises in prose (NOT AskUserQuestion — this is authored content)
Humor setting additions:
- When Humor ≠ None, note that a tone boundary will be auto-proposed: "No humor in error states, escalation, or high-stakes contexts."
After all dimensions and settings are selected, display a summary table:
| Area | Selection | Rationale |
|---|---|---|
| Register | ... | ... |
| Voice | ... | ... |
| Brevity | ... | ... |
| Tone | ... | ... |
| Empathy Level | ... | ... |
| Humor | ... | ... |
| Emoji | ... | ... |
| Formatting | ... | ... |
| Punctuation | ... | ... |
| Capitalization | ... | ... |
Ask: "Does this combination feel right for [agent name]? Any dimension or setting you want to revisit?"
按依赖关系依次完成维度和设置项的配置,前置选择会约束后续可选范围,请按以下顺序展示:
语体 → 语态 → 简洁度 → 语气(+ 共情等级) → 幽默感 → 聊天风格(Emoji、格式、标点、大小写)
对每个维度(语体、语态、语气):
- 用自然语言介绍维度 — 维度名称 + 框架中的单行定义(例如:「语体 — 关系+正式程度:你对我来说是什么身份?」)、区间线,以及你基于身份+上下文给出的推荐和理由。附上框架中对应的约束说明,解释前置选择如何影响该维度的选项。
- 请用户选择 — 使用展示原型选项,每个选项的标签是原型名称,描述是框架中的单行说明。不要在上方的自然语言中重复原型列表,
AskUserQuestion就是原型选择菜单。自然语言部分负责介绍维度上下文和推荐,工具部分负责展示选项。AskUserQuestion
对每个设置项(简洁度、共情等级、幽默感)和每个聊天风格子设置项(Emoji、格式、标点、大小写):
- 用自然语言介绍设置项 — 设置项名称、控制的范围,以及你基于前置选择给出的推荐。
- 请用户选择 — 使用展示设置项选项,每个选项的标签是设置项名称,描述是框架中的单行说明。
AskUserQuestion
批量调用规则: 每次最多支持4个问题。符合依赖顺序的合理批量分组如下:
AskUserQuestion- 调用1: 语体 + 语态(2个问题)。在调用前的自然语言中同时介绍两个维度的上下文和推荐。
- 调用2: 简洁度 + 语气 + 共情等级(3个问题)。在自然语言中介绍三个设置的上下文,说明语体和语态如何约束这些选项。简洁度和语气基本相互独立,可以放在同一批。共情等级依赖语气选择,但因为两者在同一调用中,用户可以看到上下文。
- 调用3: 幽默感 + Emoji + 格式(3个问题)。在自然语言中说明语态+语气→幽默感、语态→聊天风格的约束规则。
- 调用4: 标点 + 大小写(2个问题)。展示剩余的聊天风格子设置项,这两项比较轻量,语态的约束说明可以覆盖两者。
按顺序逐个调用(每次调用1个维度/设置项)也可以,批量调用是可选的。核心约束:必须保持依赖顺序。
语态维度补充说明:
- 展示语态原型选择后,补充说明:「所有语态原型都会根据用户的熟悉程度调整回复长度:首次交互提供完整上下文,重复交互提供更短的版本。调整幅度由后续的简洁度设置校准。」
- 如果步骤1中的承载场景是语音渠道(电话、语音助手、IVR),展示可选的语音渠道参数:音高范围(低/中/高)、语速(慢/中等/快)、能量等级(平静/中等/有活力)、温暖度/听觉微笑感(中性/温暖/明亮)。这些是语态原型之上的物理语音属性,文本类Agent可以跳过。
语气边界子步骤:
用户确认共情等级后,用自然语言提出语气边界建议:
- 展示4条默认语气边界:永远不要为询问澄清问题道歉;永远不要为不知道某件事道歉;只有当Agent明确造成错误时才道歉;永远不要向用户索要共情
- 基于选择的语气原型提出场景专属的边界
- 如果幽默感≠无,补充:「在错误状态、升级流程、高风险场景中不要使用幽默」
- 用户用自然语言确认/修改(不要用AskUserQuestion — 这是创作类内容)
幽默感设置补充说明:
- 如果幽默感≠无,说明会自动生成一条语气边界:「在错误状态、升级流程、高风险场景中不要使用幽默。」
所有维度和设置项选择完成后,展示汇总表格:
| 模块 | 选择结果 | 选择理由 |
|---|---|---|
| 语体 | ... | ... |
| 语态 | ... | ... |
| 简洁度 | ... | ... |
| 语气 | ... | ... |
| 共情等级 | ... | ... |
| 幽默感 | ... | ... |
| Emoji | ... | ... |
| 格式 | ... | ... |
| 标点 | ... | ... |
| 大小写 | ... | ... |
询问:「这个组合是否符合[agent名称]的预期?有没有需要调整的维度或设置项?」
Step 4: Phrase Book
步骤4:语料库
Phrase Book generation:
Replace the fixed 4-category Phrase Book with a dynamic system driven by archetype and setting selections:
-
Category selection: Based on selected archetypes, settings, and the imported Interaction Model, generate a recommended set of phrase categories. Present asmultiselect. Mark recommended categories with ⭐️. Include at the end of the question text: "(⭐️ = Recommended)". Examples of selection-driven categories:
AskUserQuestion- All agents: Acknowledgement, Apology, Redirect/Handoff
- Terse Brevity: skip Welcome (they don't greet)
- Non-Terse agents: Welcome/Greeting
- Socratic Partner IM (imported): Asking Clarification
- Encouraging Realist / Coach Register: Celebrating Progress, Teaching Moments
- Proactive Drafter IM (imported): Confirming Action
- Humor ≠ None: Humor Examples (showing humor type in context)
-
Additional categories: Follow up with a secondmultiselect offering categories NOT in the recommended set (none marked with ⭐️). User can select extras or type in "Other."
AskUserQuestion -
Phrase drafting: Draft ALL phrases for all selected categories based on everything known about the persona (Identity, Voice, Brevity, Tone, Humor, Register, context). Present the full draft Phrase Book to the user for review and feedback. The user reviews and adjusts — they are NOT expected to write phrases from scratch.
语料库生成规则:
将固定4分类的语料库替换为基于原型和设置项选择的动态系统:
-
分类选择: 基于选择的原型、设置项、导入的交互模型,生成推荐的语料分类集合,用多选菜单展示,用⭐️标记推荐分类,并在问题文本末尾补充:「(⭐️ = 推荐)」。基于选择生成的分类示例:
AskUserQuestion- 所有Agent都包含:应答确认、道歉、重定向/转接
- 简洁度为极简:跳过欢迎语(不需要打招呼)
- 非极简Agent:欢迎/问候
- 导入的交互模型为苏格拉底式伙伴:询问澄清
- 语体为鼓励型现实主义者/教练:庆祝进展、教学时刻
- 导入的交互模型为主动草稿生成者:确认操作
- 幽默感≠无:幽默示例(展示对应场景下的幽默类型)
-
额外分类: 再用一个多选菜单展示不在推荐集合中的分类(不标记⭐️),用户可以选择额外分类,或者输入「其他」自定义。
AskUserQuestion -
语料起草: 基于所有人设信息(身份、语态、简洁度、语气、幽默感、语体、上下文)为所有选中的分类起草全部语料,将完整的语料库草稿展示给用户 review 和反馈。用户只需审核调整,不需要从零开始写语料。
Step 5: Generate
步骤5:生成
Read and fill every section with the confirmed selections:
assets/persona-template.md- Identity — adjectives + behavioral definitions from Step 2; backstory if provided
- Persona Profile — summary table from Step 3 (includes Brevity, Empathy Level, Humor rows)
- Archetype Detail — for each selected archetype and setting, the full behavioral description from the framework. Includes Brevity, Tone + Empathy Level + Tone Boundaries, Humor, and Chatting Style (Emoji, Formatting, Punctuation, Capitalization) sections.
- Phrase Book — the confirmed phrase table from Step 4
- Sample Interactions — generate 3 sample conversations that demonstrate the persona in action:
- One routine/happy-path interaction
- One where the agent handles uncertainty or low confidence
- One where the agent encounters a persona boundary scenario (tone boundary violation, off-topic request)
Each sample should be 3-5 turns (user + agent) and should distinctively reflect the chosen Identity, Voice, Brevity, Tone, Humor, and Chatting Style. The agent's responses should feel noticeably different from a generic assistant.
Write the completed persona document using the tool. Default path: .
Writegenerated/[agent-name]-persona.md读取,用确认后的选择填充所有章节:
assets/persona-template.md- 身份 — 步骤2中的形容词+行为定义;如果有背景故事也包含在内
- 人设概览 — 步骤3的汇总表格(包含简洁度、共情等级、幽默感行)
- 原型详情 — 每个选中的原型和设置项对应的框架中完整的行为描述,包含简洁度、语气+共情等级+语气边界、幽默感、聊天风格(Emoji、格式、标点、大小写)章节
- 语料库 — 步骤4中确认的语料表格
- 交互示例 — 生成3段展示人设的样例对话:
- 1段常规/正常流程交互
- 1段Agent处理不确定或低信心场景的交互
- 1段Agent遇到人设边界场景的交互(违反语气边界、无关请求)
每个样例3-5轮对话(用户+Agent),必须清晰体现选择的身份、语态、简洁度、语气、幽默感、聊天风格,Agent的回复要和通用助手有明显区别。
使用工具写入完成的人设文档,默认路径:。
Writegenerated/[agent-name]-persona.mdStep 6: Score
步骤6:评分
Score the generated persona document against a 50-point rubric. Write the scorecard to a separate file: . The scorecard file should include frontmatter with datetime, persona skill version, and the persona document filename being scored.
generated/[agent-name]-persona-scorecard.mdFor an unbiased score, have someone else run the skill in Audit mode on the generated persona.
| Category | Points | What It Measures |
|---|---|---|
| Identity Coherence | /10 | Traits are distinct, non-contradictory, and behaviorally defined. Each trait generates specific, observable agent behaviors — not vague aspirations. |
| Dimension Consistency | /10 | Every archetype and setting selection traces back to Identity. Upstream-downstream constraint alignment is respected (Register → Voice → Brevity → Tone → Humor → Chatting Style). Cross-skill coherence: the imported Interaction Model is compatible with persona selections. Tone Boundaries are consistent with the Tone archetype. |
| Behavioral Specificity | /10 | Each archetype includes concrete behavioral examples (what the agent says/does), not just abstract descriptions. Rules are testable. Chatting Style and Tone Boundaries are explicit. |
| Phrase Book Quality | /10 | Phrases are consistent with Voice + Tone + Brevity + Humor + Chatting Style. Variety in acknowledgements. Language matches the persona's register. |
| Sample Quality | /10 | Interactions demonstrate the persona distinctively. A reader could identify which persona produced these responses. Samples cover happy path, uncertainty, and persona boundary scenarios. |
Scoring rules:
- Score each category independently. Provide a number and 1-2 sentences of justification.
- Flag any inconsistencies between dimensions or settings (e.g., "Personable voice but Clinical Analyst tone — these may conflict in practice"). Check upstream-downstream constraint alignment.
- If any category scores below 7, provide a specific suggestion for improvement.
- Total score interpretation:
- 45-50: Production-ready persona. Minor polish only.
- 35-44: Strong foundation. Address flagged inconsistencies before encoding.
- 25-34: Needs revision. Identity or dimension selections may not cohere.
- Below 25: Restart from Identity. The persona lacks a clear point of view.
Present the scorecard and ask if the user wants to revise any section before finalizing.
按照50分评分规则对生成的人设文档打分,将评分卡写入单独的文件:。评分卡文件需要包含前置元数据:日期时间、人设技能版本、被评分的人设文档文件名。
generated/[agent-name]-persona-scorecard.md如果需要无偏差评分,可以让其他人用审计模式运行本技能对生成的人设评分。
| 分类 | 分值 | 评估维度 |
|---|---|---|
| 身份一致性 | /10 | 特质有区分度、无冲突、有行为层面的定义,每个特质都能对应具体可观测的Agent行为,不是模糊的期望。 |
| 维度一致性 | /10 | 每个原型和设置项的选择都能追溯到身份定义,遵守前置-后置约束对齐要求(语体→语态→简洁度→语气→幽默感→聊天风格)。跨技能一致性:导入的交互模型和人设选择兼容,语气边界与语气原型一致。 |
| 行为明确度 | /10 | 每个原型都包含具体的行为示例(Agent的话术/动作),而不只是抽象描述,规则可测试。聊天风格和语气边界定义明确。 |
| 语料库质量 | /10 | 语料与语态+语气+简洁度+幽默感+聊天风格一致,应答确认有多样性,语言符合Agent的语体。 |
| 样例质量 | /10 | 交互清晰体现人设定制化特点,读者可以识别出是该人设生成的回复,样例覆盖正常流程、不确定场景、人设边界场景。 |
评分规则:
- 每个分类独立打分,给出分数和1-2句理由说明。
- 指出维度或设置项之间的任何不一致(例如:「亲切的语态但临床分析师的语气——实际使用中可能存在冲突」),检查前置-后置约束对齐情况。
- 如果任何分类得分低于7分,给出具体的改进建议。
- 总分解读:
- 45-50:可生产级别人设,仅需 minor 优化。
- 35-44:基础扎实,编码前解决标记的不一致问题即可。
- 25-34:需要修订,身份或维度选择可能存在不连贯的问题。
- 低于25:从身份定义重新开始,人设没有清晰的定位。
展示评分卡,询问用户在最终确定前是否需要修改任何章节。
Step 7: Encode
步骤7:编码
Generate copy-paste-ready Agent Builder field values from the completed persona document. Read for field-by-field encoding guidance and for the output structure.
references/persona-encoding-guide.mdassets/persona-encoding-template.mdCompany context: The Company field (255 chars) requires company context not gathered in Step 1. Ask in prose:
"The Agent Builder Company field (255 chars) describes what your company does and who it serves — it shapes the agent's frame of reference. What should go here? For example: 'B2B SaaS platform for enterprise revenue operations. Serves sales leaders and ops teams at companies with 500+ employees.'"
If the user declines or company context doesn't apply (e.g., a generic internal tool), note "Not specified" in the encoding output.
Generation: Using the confirmed persona document, generate values for each Agent Builder field:
- Name (80 chars) — The Agent Name from Step 1. Show character count.
- Role (255 chars) — Compress Identity adjectives + Register archetype + audience + core function into a "You are..." paragraph. Show character count. If over limit, compress — prioritize identity adjectives and register.
- Company (255 chars) — The company context gathered above. Show character count.
- Welcome Message (800 chars) — Generate a greeting reflecting Identity + Register + Voice + Tone + Brevity. For Terse brevity, keep minimal — a single-line prompt or functional opener. Show character count.
- Error Message — Generate a fallback error message reflecting Voice + Tone + Brevity. The agent's Voice should come through even in errors — a Conversational agent doesn't say "An error has occurred."
- Tone dropdown — Recommend Casual, Neutral, or Formal based on the Register + Voice mapping from the encoding guide's Platform Tone Setting section. Note that the dropdown is a coarse approximation — real persona work lives in the instruction fields.
- Conversation Recommendations on Welcome Screen — Recommend On when primary use cases are defined (users benefit from seeing what the agent can do); Off when the agent's scope is open-ended.
- Conversation Recommendations in Agent Responses — Recommend On for Proactive Drafter and Autonomous Operator interaction models (the agent anticipates next steps); Off for Socratic Partner (the agent asks, not suggests).
- Persona instruction block — A reusable block of persona instructions for appending to any Topic Instructions field. Synthesize from: Identity adjectives + behavioral definitions, archetype behavioral bullets (Register, Voice, Tone), brevity calibration, empathy level, humor guidance, tone boundary reminders, voice calibration, chatting style rules (Emoji vocabulary, Formatting, Punctuation, Capitalization), and relevant phrase book entries. Include a note: "Adapt per topic — add topic-specific brevity calibration, phrase book entries, and humor guidance as needed."
- Action Output Response Instructions block — A reusable block for action output formatting. Include: Chatting Style rules (Emoji vocabulary, Formatting conventions, Punctuation rules, Capitalization convention), Voice presentation guidance, Brevity calibration for output length.
- Loading Text examples — 3-4 example loading text strings reflecting Voice + Tone + Brevity. Include a note: "Adapt per action — replace the generic verb with the specific action being performed."
Present all generated values and ask the user to review. Character-limited fields show the count (e.g., "Role (237/255 chars)").
Write the encoding output using the tool. Default path: .
Writegenerated/[agent-name]-persona-encoding.md从完成的人设文档生成可直接复制粘贴的Agent Builder字段值,字段级编码指南可查阅,输出结构参考。
references/persona-encoding-guide.mdassets/persona-encoding-template.md公司上下文: 公司字段(255字符)需要步骤1未收集的公司上下文,用自然语言询问:
"Agent Builder的公司字段(255字符)用于描述你的公司业务和服务群体,会影响Agent的参考框架。这里应该填什么?例如:'面向企业营收运营的B2B SaaS平台,服务员工数500+的企业的销售负责人和运营团队。'"
如果用户拒绝提供,或者公司上下文不适用(例如通用内部工具),在编码输出中标记「未指定」。
生成规则: 使用确认后的人设文档,为每个Agent Builder字段生成值:
- 名称(80字符) — 步骤1中的Agent名称,展示字符数。
- 角色(255字符) — 将身份形容词+语体原型+受众+核心功能压缩成一段「你是...」的描述,展示字符数。如果超出限制优先压缩,保留身份形容词和语体的优先级最高。
- 公司(255字符) — 上文收集的公司上下文,展示字符数。
- 欢迎语(800字符) — 生成符合身份+语体+语态+语气+简洁度的问候语。如果简洁度为极简,保持最少内容:单行提示或功能性开头,展示字符数。
- 错误消息 — 生成符合语态+语气+简洁度的兜底错误消息,即使在错误场景下也要体现Agent的语态,对话式Agent不要说「发生了一个错误」。
- 语气下拉选项 — 根据编码指南「平台语气设置」章节的语体+语态映射关系,推荐 Casual/Neutral/Formal。说明下拉选项是粗略的近似,真正的人设定义在指令字段中。
- 欢迎页对话推荐 — 如果核心用例明确推荐开启(用户能从可做的事情列表中受益);如果Agent范围是开放的推荐关闭。
- Agent回复中的对话推荐 — 交互模型为主动草稿生成者和自主执行者推荐开启(Agent可以预判下一步操作);交互模型为苏格拉底式伙伴推荐关闭(Agent只提问不建议)。
- 人设指令块 — 可复用的人设指令块,可附加到任何主题指令字段。合成内容包括:身份形容词+行为定义、原型行为要点(语体、语态、语气)、简洁度校准、共情等级、幽默指南、语气边界提醒、语态校准、聊天风格规则(Emoji范围、格式、标点、大小写)、相关语料库条目。附带说明:「根据主题调整——按需添加主题专属的简洁度校准、语料库条目、幽默指南。」
- 动作输出响应指令块 — 可复用的动作输出格式设置块,包含:聊天风格规则(Emoji范围、格式约定、标点规则、大小写约定)、语态展示指南、输出长度的简洁度校准。
- 加载文本示例 — 3-4个符合语态+语气+简洁度的加载文本字符串,附带说明:「根据动作调整——将通用动词替换为实际执行的具体动作。」
展示所有生成的值,让用户审核。有字符限制的字段要展示计数(例如「角色 (237/255 字符)」)。
使用工具写入编码输出,默认路径:。
Writegenerated/[agent-name]-persona-encoding.mdOutput
输出
The skill produces three Markdown files:
- Persona document () — follows the
generated/[agent-name]-persona.mdstructure. The design artifact defining who the agent is, how it sounds, and what it never does.assets/persona-template.md - Scorecard () — 50-point rubric evaluation with datetime, skill version, and reference to the scored persona document.
generated/[agent-name]-persona-scorecard.md - Encoding output () — follows the
generated/[agent-name]-persona-encoding.mdstructure. Copy-paste-ready Agent Builder field values (Name, Role, Company, Welcome Message, Error Message), platform setting recommendations (Tone dropdown, Conversation Recommendations), and reusable instruction blocks (Topic Instructions persona block, Action Output Response Instructions block, Loading Text examples). Seeassets/persona-encoding-template.mdfor detailed encoding guidance beyond what the skill generates.references/persona-encoding-guide.md
本技能生成三个Markdown文件:
- 人设文档() — 遵循
generated/[agent-name]-persona.md结构,是定义Agent身份、表达风格、行为禁忌的设计产物。assets/persona-template.md - 评分卡() — 50分规则评估结果,包含日期时间、技能版本、被评分的人设文档引用。
generated/[agent-name]-persona-scorecard.md - 编码输出() — 遵循
generated/[agent-name]-persona-encoding.md结构,提供可直接复制粘贴的Agent Builder字段值(名称、角色、公司、欢迎语、错误消息)、平台设置建议(语气下拉选项、对话推荐)、可复用指令块(主题指令人设块、动作输出响应指令块、加载文本示例)。超出本技能生成范围的详细编码指南可查阅assets/persona-encoding-template.md。references/persona-encoding-guide.md