Schema v2 catalog with 13 templates, scoring metadata, risk gates, and evidence requirements.
查看完整原始內容
{
"schema_version": 2,
"last_updated": "2026-05-20",
"library_name": "subagent-template-library",
"owner": "Zai",
"selection_rule": "Choose the smallest number of templates that can execute the task with clear specialization, evidence, and acceptable risk.",
"default_limits": {
"max_parallel_agents": 3,
"default_confidence_threshold": 0.62,
"high_risk_requires_jay_approval": true,
"skip_spawn_below_confidence": 0.45
},
"common_output_contract": [
"Summary",
"What I checked",
"Result",
"Risks / gaps",
"Recommended next step",
"Evidence",
"Confidence"
],
"scoring_dimensions": [
"task_type_match",
"evidence_fit",
"tool_fit",
"risk_fit",
"expected_leverage"
],
"templates": [
{
"id": "software-architect",
"name": "Software Architect",
"category": "architecture",
"purpose": "Design or reshape systems, APIs, workflows, schemas, and integration boundaries.",
"trigger_keywords": ["architecture", "schema", "workflow", "design", "interface", "routing", "tradeoff", "migration"],
"negative_keywords": ["tiny copy edit", "simple factual answer"],
"best_for": ["system design", "architecture review", "refactor planning", "interface definition", "tradeoff analysis"],
"avoid_for": ["tiny single-file edits", "pure copywriting", "simple fact lookup"],
"default_tools": ["read", "exec", "web_search", "web_fetch"],
"required_evidence": ["current state", "options considered", "recommended design", "risks"],
"risk_gate": "L2; L3+ requires Jay approval before implementation",
"confidence_threshold": 0.64,
"max_parallel_instances": 1,
"pair_with": ["implementation-engineer", "security-reviewer"],
"source_inspiration": ["internal", "agency-agents:backend-architect"]
},
{
"id": "implementation-engineer",
"name": "Implementation Engineer",
"category": "implementation",
"purpose": "Make concrete code changes, run checks, and return grounded implementation results.",
"trigger_keywords": ["implement", "fix", "patch", "script", "refactor", "code", "test", "build"],
"negative_keywords": ["pure strategy", "market research"],
"best_for": ["feature implementation", "bug fix", "automation script", "patch creation", "refactor execution"],
"avoid_for": ["pure strategy memos", "broad market research"],
"default_tools": ["read", "write", "edit", "exec"],
"required_evidence": ["files changed", "verification", "remaining risk"],
"risk_gate": "L2 by default; L3+ requires Jay approval",
"confidence_threshold": 0.66,
"max_parallel_instances": 2,
"pair_with": ["software-architect", "security-reviewer", "documentation-synthesizer"],
"source_inspiration": ["internal", "agency-agents:senior-developer"]
},
{
"id": "repo-researcher",
"name": "Repository Researcher",
"category": "research",
"purpose": "Search, compare, and evaluate repos, tools, and patterns for practical adoption value.",
"trigger_keywords": ["github", "repo", "research", "compare", "library", "tool", "open source", "clawhub"],
"negative_keywords": ["local-only implementation"],
"best_for": ["GitHub research", "tool comparison", "architecture scouting", "pattern extraction"],
"avoid_for": ["local implementation without research need"],
"default_tools": ["web_search", "web_fetch", "read", "exec"],
"required_evidence": ["sources", "license", "maintenance signal", "adoption recommendation"],
"risk_gate": "L1 unless adoption or install is proposed",
"confidence_threshold": 0.6,
"max_parallel_instances": 2,
"pair_with": ["software-architect", "documentation-synthesizer"],
"source_inspiration": ["internal"]
},
{
"id": "devops-operator",
"name": "DevOps Operator",
"category": "devops",
"purpose": "Diagnose and improve deployment, VPS, CI/CD, container, service, and runtime operations.",
"trigger_keywords": ["deploy", "vps", "docker", "systemd", "ci", "cloudflare", "vercel", "runtime", "service", "nginx"],
"negative_keywords": ["product copy", "non-technical ideation"],
"best_for": ["deployment debugging", "CI failures", "server automation", "container setup", "runtime diagnostics"],
"avoid_for": ["product copy", "non-technical ideation"],
"default_tools": ["read", "exec", "web_search"],
"required_evidence": ["service status", "logs or command output", "rollback concern"],
"risk_gate": "L3+ for live service changes; Jay approval required",
"confidence_threshold": 0.68,
"max_parallel_instances": 1,
"pair_with": ["incident-investigator", "security-reviewer"],
"source_inspiration": ["agency-agents:devops-automator"]
},
{
"id": "security-reviewer",
"name": "Security Reviewer",
"category": "security",
"purpose": "Review plans, code, configs, and workflows for security risks, abuse paths, and permission boundary issues.",
"trigger_keywords": ["security", "secret", "token", "auth", "permission", "risk", "approval", "exploit", "compliance"],
"negative_keywords": ["styling only"],
"best_for": ["security review", "threat model", "approval policy review", "secrets exposure review"],
"avoid_for": ["shipping features alone", "broad research without security angle"],
"default_tools": ["read", "exec", "web_search"],
"required_evidence": ["scope reviewed", "findings", "severity", "mitigation"],
"risk_gate": "High-risk findings must be escalated to Jay",
"confidence_threshold": 0.64,
"max_parallel_instances": 1,
"pair_with": ["implementation-engineer", "software-architect", "devops-operator"],
"source_inspiration": ["agency-agents:security-engineer"]
},
{
"id": "documentation-synthesizer",
"name": "Documentation Synthesizer",
"category": "docs",
"purpose": "Turn technical results into concise, actionable docs, briefs, handoff notes, or decision memos.",
"trigger_keywords": ["document", "sop", "summary", "handoff", "memo", "report", "explain", "整理"],
"negative_keywords": ["primary implementation incomplete"],
"best_for": ["handoff memo", "SOP draft", "technical summary", "decision note", "onboarding writeup"],
"avoid_for": ["doing primary implementation", "deep incident debugging"],
"default_tools": ["read", "write", "edit"],
"required_evidence": ["source material", "decisions", "open questions", "next steps"],
"risk_gate": "L1",
"confidence_threshold": 0.58,
"max_parallel_instances": 1,
"pair_with": ["repo-researcher", "implementation-engineer", "incident-investigator"],
"source_inspiration": ["agency-agents:technical-writer", "agency-agents:codebase-onboarding-engineer"]
},
{
"id": "incident-investigator",
"name": "Incident Investigator",
"category": "incident",
"purpose": "Investigate failures, reconstruct timelines, isolate root causes, and propose stabilization steps.",
"trigger_keywords": ["incident", "failure", "broken", "regression", "outage", "timeout", "logs", "root cause"],
"negative_keywords": ["greenfield feature"],
"best_for": ["production issue", "mysterious failure", "regression investigation", "postmortem-ready debugging"],
"avoid_for": ["greenfield feature work", "pure research"],
"default_tools": ["read", "exec"],
"required_evidence": ["timeline", "facts", "hypotheses", "root cause", "confidence"],
"risk_gate": "L2 investigation; L3+ remediation needs approval",
"confidence_threshold": 0.66,
"max_parallel_instances": 1,
"pair_with": ["devops-operator", "implementation-engineer", "documentation-synthesizer"],
"source_inspiration": ["agency-agents:incident-response-commander"]
},
{
"id": "product-strategist",
"name": "Product Strategist",
"category": "product",
"purpose": "Translate ideas into user value, scope, positioning, roadmap, and acceptance criteria.",
"trigger_keywords": ["product", "roadmap", "mvp", "usp", "feature", "user", "positioning", "pricing"],
"negative_keywords": ["low-level code patch"],
"best_for": ["MVP scope", "feature prioritization", "USP", "product strategy"],
"avoid_for": ["implementation-only tasks"],
"default_tools": ["read", "web_search"],
"required_evidence": ["target user", "problem", "options", "recommendation"],
"risk_gate": "L1",
"confidence_threshold": 0.58,
"max_parallel_instances": 1,
"pair_with": ["marketing-copywriter", "documentation-synthesizer"],
"source_inspiration": ["agency-agents:product-manager"]
},
{
"id": "marketing-copywriter",
"name": "Marketing Copywriter",
"category": "marketing",
"purpose": "Produce practical marketing copy, campaign angles, and customer-facing drafts.",
"trigger_keywords": ["marketing", "ad", "copy", "landing", "social", "campaign", "brand", "content"],
"negative_keywords": ["legal compliance only"],
"best_for": ["ad copy", "landing copy", "social content", "campaign outline"],
"avoid_for": ["legal review", "deep technical implementation"],
"default_tools": ["read", "web_search"],
"required_evidence": ["audience", "offer", "message angles", "drafts"],
"risk_gate": "L1; regulated claims require legal-risk-reviewer",
"confidence_threshold": 0.56,
"max_parallel_instances": 2,
"pair_with": ["product-strategist", "legal-risk-reviewer"],
"source_inspiration": ["agency-agents:marketing"]
},
{
"id": "legal-risk-reviewer",
"name": "Legal Risk Reviewer",
"category": "legal",
"purpose": "Identify legal, contract, compliance, and claim-risk issues for non-lawyer decision support.",
"trigger_keywords": ["legal", "contract", "terms", "privacy", "compliance", "claim", "liability"],
"negative_keywords": ["pure coding"],
"best_for": ["contract risk scan", "terms review", "claim wording risk", "compliance checklist"],
"avoid_for": ["final legal advice", "jurisdiction-specific legal opinion without counsel"],
"default_tools": ["read", "web_search"],
"required_evidence": ["scope", "risk areas", "severity", "questions for counsel"],
"risk_gate": "Advisory only; high-risk matters require Jay/counsel decision",
"confidence_threshold": 0.6,
"max_parallel_instances": 1,
"pair_with": ["marketing-copywriter", "product-strategist"],
"source_inspiration": ["internal"]
},
{
"id": "finance-roi-analyst",
"name": "Finance ROI Analyst",
"category": "finance",
"purpose": "Estimate costs, ROI, budget tradeoffs, pricing, and resource implications.",
"trigger_keywords": ["cost", "roi", "budget", "pricing", "revenue", "margin", "forecast"],
"negative_keywords": ["visual copy only"],
"best_for": ["cost estimate", "ROI analysis", "pricing scenario", "budget tradeoff"],
"avoid_for": ["investment advice", "tax advice"],
"default_tools": ["read", "exec", "web_search"],
"required_evidence": ["assumptions", "calculation", "sensitivity", "recommendation"],
"risk_gate": "Decision support only; financial advice must be escalated",
"confidence_threshold": 0.6,
"max_parallel_instances": 1,
"pair_with": ["product-strategist"],
"source_inspiration": ["agency-agents:finance"]
},
{
"id": "operations-secretary",
"name": "Operations Secretary",
"category": "operations",
"purpose": "Organize tasks, reminders, summaries, follow-ups, and daily operational notes.",
"trigger_keywords": ["remind", "schedule", "follow up", "整理任務", "daily", "weekly", "摘要"],
"negative_keywords": ["deep implementation"],
"best_for": ["task organization", "daily summary", "follow-up list", "operational checklist"],
"avoid_for": ["technical root cause analysis", "legal review"],
"default_tools": ["read", "write"],
"required_evidence": ["source items", "priorities", "owners", "dates if any"],
"risk_gate": "L1",
"confidence_threshold": 0.54,
"max_parallel_instances": 1,
"pair_with": ["documentation-synthesizer"],
"source_inspiration": ["internal"]
},
{
"id": "customer-support-analyst",
"name": "Customer Support Analyst",
"category": "support",
"purpose": "Analyze user feedback, support issues, complaint patterns, and response drafts.",
"trigger_keywords": ["support", "customer", "complaint", "feedback", "ticket", "reply"],
"negative_keywords": ["server-only debugging"],
"best_for": ["feedback summary", "support response", "issue pattern analysis"],
"avoid_for": ["infrastructure diagnosis"],
"default_tools": ["read", "web_search"],
"required_evidence": ["source messages", "pattern", "response recommendation"],
"risk_gate": "L1; sensitive customer data requires privacy caution",
"confidence_threshold": 0.56,
"max_parallel_instances": 1,
"pair_with": ["product-strategist", "documentation-synthesizer"],
"source_inspiration": ["agency-agents:support"]
}
]
}