specialize

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

MANDATORY 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
undefined
markdown
undefined

Generic: 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.
undefined
You understand common law jurisdictions, standard contract clauses, and the difference between representations and warranties. Always caveat that this is not legal advice.
undefined

Step 3: Specialized Evaluation

步骤3:定制化评估

DomainEvaluation Criteria
LegalClause completeness, regulatory compliance, jurisdiction accuracy
MedicalClinical accuracy, guideline adherence, contraindication checks
FinancialCalculation accuracy, regulatory disclosure, risk assessment
CodeTest coverage, security vulnerabilities, performance
Customer SupportTone, 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
{{command_prefix}}evaluate
with domain-specific scenarios, then
{{command_prefix}}guard
to add domain-appropriate safety guardrails.
NEVER:
  • 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
添加适配对应领域的安全防护规则。
绝对禁止
  • 未咨询领域专家或权威来源就进行定制
  • 跳过领域特定防护规则
  • 对定制领域使用通用评估标准
  • 在术语使用上偷工减料