specialize
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMANDATORY PREPARATION
强制准备
Invoke {{command_prefix}}agent-workflow — it contains workflow principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no workflow context exists yet, you MUST run {{command_prefix}}teach-maestro first.
Transform a general-purpose workflow into a domain expert.
调用 {{command_prefix}}agent-workflow — 它包含工作流原则、反模式以及上下文收集协议。在继续操作前请遵循该协议——如果还不存在工作流上下文,你必须先运行 {{command_prefix}}teach-maestro。
将通用工作流改造为领域专家工作流。
Step 1: Domain Discovery
步骤1:领域探索
- Terminology: What domain-specific language must the agent use?
- Regulations: What compliance requirements apply? (HIPAA, SOC2, GDPR)
- Standards: What industry standards govern output format or quality?
- Expert expectations: What would a domain expert check first?
- Common errors: What mistakes would a non-expert make?
- 术语:Agent必须使用哪些领域特定语言?
- 法规:适用哪些合规要求?(HIPAA, SOC2, GDPR)
- 标准:哪些行业标准对输出格式或质量有约束?
- 专家预期:领域专家会首先检查哪些内容?
- 常见错误:非专家容易犯哪些错误?
Step 2: Specialize Prompts
步骤2:定制提示词
markdown
undefinedmarkdown
undefinedGeneric: You are an assistant that analyzes documents.
Generic: You are an assistant that analyzes documents.
Specialized (legal): You are a senior legal analyst specializing in contract review.
Specialized (legal): You are a senior legal analyst specializing in contract review.
You understand common law jurisdictions, standard contract clauses, and the
difference between representations and warranties. Always caveat that this
is not legal advice.
undefinedYou understand common law jurisdictions, standard contract clauses, and the
difference between representations and warranties. Always caveat that this
is not legal advice.
undefinedStep 3: Specialized Evaluation
步骤3:定制化评估
| Domain | Evaluation Criteria |
|---|---|
| Legal | Clause completeness, regulatory compliance, jurisdiction accuracy |
| Medical | Clinical accuracy, guideline adherence, contraindication checks |
| Financial | Calculation accuracy, regulatory disclosure, risk assessment |
| Code | Test coverage, security vulnerabilities, performance |
| Customer Support | Tone, escalation accuracy, resolution completeness |
| 领域 | 评估标准 |
|---|---|
| 法律 | 条款完整性、合规性、司法辖区准确性 |
| 医疗 | 临床准确性、指南符合性、禁忌症检查 |
| 金融 | 计算准确性、监管披露要求、风险评估 |
| 代码 | 测试覆盖率、安全漏洞、性能 |
| 客户支持 | 语气、升级流程准确性、解决方案完整性 |
Step 4: Domain Guardrails
步骤4:领域防护规则
- Legal: "Not legal advice" disclaimer, jurisdiction limitations
- Medical: "Not medical advice" disclaimer, emergency detection
- Financial: Regulatory disclosures, suitability warnings
- Code: Security scanning, dependency vulnerability checks
- 法律:"非法律建议"免责声明、司法辖区限制
- 医疗:"非医疗建议"免责声明、紧急情况识别
- 金融:监管披露、适用性警告
- 代码:安全扫描、依赖项漏洞检查
Recommended Next Step
推荐后续步骤
After specialization, run with domain-specific scenarios, then to add domain-appropriate safety guardrails.
{{command_prefix}}evaluate{{command_prefix}}guardNEVER:
- Specialize without consulting domain experts or authoritative sources
- Skip domain-specific guardrails
- Use generic evaluation for specialized domains
- Cut corners on terminology
定制完成后,使用领域特定场景运行 ,然后运行 添加适配对应领域的安全防护规则。
{{command_prefix}}evaluate{{command_prefix}}guard绝对禁止:
- 未咨询领域专家或权威来源就进行定制
- 跳过领域特定防护规则
- 对定制领域使用通用评估标准
- 在术语使用上偷工减料