一键导入
orchestrator
Top-level session orchestration rules — subagent routing, context hygiene, and implementation discipline. Not intended for subagents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Top-level session orchestration rules — subagent routing, context hygiene, and implementation discipline. Not intended for subagents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Wrike connector skill for managing Agile work items (Epics, Stories, Tasks, sub-tasks, comments, and attachments) via the Wrike REST API v4. Use this skill whenever an agent needs to read or write Wrike workspace data.
Post-merge integrity check skill for SugarCRM projects. Use whenever an agent needs to compare two branches after a version-upgrade merge, detect lost or damaged custom code (identified by CUSTOM_MARKERS), and generate git patches for CRITICAL/HIGH findings.
Browser automation skill for testing SugarCRM Enterprise (v12-25). Use for simulating user interactions: clicking buttons, filling forms, navigating modules, creating records, and verifying functionality. Requires Playwright and Chromium browser installed.
Interactive browser automation via Chrome DevTools Protocol. Use when you need to interact with web pages, test frontends, or when user interaction with a visible browser is required.
Delta integration for viewing diffs in the terminal. Use when showing file differences to the user with syntax highlighting via delta.
Trigger native web search. Use when you need quick internet research with concise summaries and full source URLs.
| name | orchestrator |
| description | Top-level session orchestration rules — subagent routing, context hygiene, and implementation discipline. Not intended for subagents. |
At depth 0 you have two action tools: subagent and ask_user_question, plus the read-only KB tools ctx_search and ctx_stats.
Every other tool is BLOCKED. Do not attempt them — they will fail and waste a turn.
Your FIRST action on every user turn is one of:
subagent({ agent, task }) — for any read, write, search, fetch, run, testask_user_question — only when requirements are genuinely ambiguousUse ctx_search and ctx_stats only as supporting read-only tools, not as substitutes for the delegate-first rule.
| User intent | First action |
|---|---|
| read / look at file / grep / find | subagent({ agent: "scout", task: ... }) |
| web docs / API reference | subagent({ agent: "researcher", ... }) |
| write / edit / create source logic | test suitability assessment → RED first via subagent({ agent: "sugar-tester", ... }) (for SugarCRM apps) or subagent({ agent: "tester", ... }) (non-Sugar); if legacy exemption applies, ask user or log bypass, then worker |
write / edit / create Markdown docs (.md, README.md, Obsidian notes/vault files) | subagent({ agent: "doc-writer", ... }) |
| write / edit / create non-Markdown docs, config, styles, or tests | subagent({ agent: "worker", ... }) |
| git log / git diff / git show / git blame / git status / git branch / any git read or research command | subagent({ agent: "scout", task: ... }) |
| delete / run / other implementation tasks | subagent({ agent: "worker", ... }) |
| run or write tests | subagent({ agent: "sugar-tester", ... }) (for SugarCRM apps) or subagent({ agent: "tester", ... }) (non-Sugar) |
| non-trivial design before code | subagent({ agent: "planner", ... }) |
Delegation is enforced by the
delegation-enforcerextension. Use/delegationto toggle bypass,/directfor a single-use pass-through.
Default: parallel dispatch. When ≥2 independent subtasks exist, use subagent({ tasks: [...] }). Sequential is the exception.
Example: subagent({ tasks: [{ agent: "scout", task: "..." }, { agent: "researcher", task: "..." }] })
| Task signal | Agent |
|---|---|
| Understand code, find definitions, trace usage, check file structure, git log, git diff, git show, git blame, git status, git branch, any git read/research command | scout |
| Multiple independent areas to investigate | parallel scouts |
| API docs, library behavior, migration guides, external knowledge | researcher |
Markdown work (.md, README.md, Obsidian files/notes/vault content) | doc-writer |
| Create/edit/delete non-Markdown files, run commands, install packages | worker |
| Non-trivial code change requiring design decisions | planner → worker |
| SugarCRM tests (PHPUnit, bns curl, bns run-batch) | sugar-tester |
| Non-Sugar test creation/validation | tester |
| Review git diff, validate code quality | codereviewer |
| Error analysis, test failure, stack trace | debugger |
| Security scan, vulnerability check | security-auditor |
| Validate a plan before execution | critic |
| Ambiguous or unclear request | ask_user_question |
For pipeline details (Planner→Critic→Worker, TDD loop, escalation protocols) see SKILL_REFERENCE.md.
Give goals, not instructions. Agents know their tools — let them choose.
doc-writer — if the task or demand mentions Markdown, .md files, README.md, or Obsidian files/notes/vault content, delegate to doc-writer instead of worker. This rule takes precedence over the generic docs/worker routing.scout — git log, git diff, git show, git blame, git status, git branch, and any other git inspection or research command must go to scout, never worker.Good: "Find all references to the distiller agent across the pi configuration"
Bad: "Run grep -rn 'distiller' /home/rabeta/.pi/ and give me every file and line number"
Scope: Features and bug fixes that change source logic use TDD by default.
Step 0 — Test Suitability Assessment:
SugarCRM project → sugar-tester | Everything else → tester
Detection rule: classify a project as SugarCRM/SuiteCRM when sugar_version.php exists at the project root. If sugar_version.php is absent but bns tools are present, treat bns as a fallback Sugar signal. Do not use custom/ alone to decide.
Flow when suitable: existing suite check → sugar-tester (SugarCRM) or tester (non-Sugar) writes failing tests (RED) → worker implements (GREEN) → sugar-tester (SugarCRM) or tester (non-Sugar) verifies → if FAIL: worker fixes (max 2 retries)
Bypass: