agent-dispatcher
Route substantial Locus chat work to one of 27 specialist roles and load only relevant guides. Enabled for chats by default; users can turn routing off or choose a fixed role.
- License 许可
- MIT
- 最近更新
- 2026-10-23
- Stars
- ★ 22
- Forks
- 1
01 前言 Front Matter
- name
- agent-dispatcher
- description
- Route substantial Locus chat work to one of 27 specialist roles and load only relevant guides. Enabled for chats by default; users can turn routing off or choose a fixed role.
- disable-model-invocation
- true
02 资源文件 138
- 参考文档catalog.json376.7 KB
- 参考文档catalog/context-plan.schema.json20.3 KB
- 参考文档catalog/external-skills.json30.8 KB
- 参考文档catalog/loadouts.json59.6 KB
- 参考文档catalog/mcp.json25.0 KB
- 参考文档catalog/signals.json30.8 KB
- 参考文档catalog/skills.json129.9 KB
- 脚本decision/redact.py3.2 KB
- 参考文档guides/ai/agent-design/GUIDE.md6.3 KB
- 参考文档guides/ai/agent-evals/GUIDE.md7.3 KB
- 参考文档guides/ai/context-engineering/GUIDE.md6.3 KB
- 参考文档guides/ai/llm-observability/GUIDE.md6.1 KB
- 参考文档guides/ai/mcp-design/GUIDE.md7.0 KB
- 参考文档guides/ai/memory-design/GUIDE.md7.3 KB
- 参考文档guides/ai/model-routing/GUIDE.md7.5 KB
- 参考文档guides/ai/prompt-engineering/GUIDE.md5.9 KB
- 参考文档guides/ai/prompt-injection-defense/GUIDE.md7.1 KB
- 参考文档guides/ai/retrieval-rag/GUIDE.md6.9 KB
- 参考文档guides/ai/structured-output/GUIDE.md7.0 KB
- 参考文档guides/ai/tool-design/GUIDE.md7.0 KB
- 参考文档guides/backend/api-contract-verification/GUIDE.md7.0 KB
- 参考文档guides/backend/api-design/GUIDE.md7.0 KB
- 参考文档guides/backend/authentication/GUIDE.md6.9 KB
- 参考文档guides/backend/authorization/GUIDE.md6.3 KB
- 参考文档guides/backend/background-jobs/GUIDE.md7.9 KB
- 参考文档guides/backend/caching/GUIDE.md8.5 KB
- 参考文档guides/backend/idempotency-and-retries/GUIDE.md7.0 KB
- 参考文档guides/backend/webhooks/GUIDE.md7.5 KB
- 参考文档guides/database/data-integrity/GUIDE.md6.4 KB
- 参考文档guides/database/data-pipelines/GUIDE.md7.2 KB
- 参考文档guides/database/data-quality/GUIDE.md8.3 KB
- 参考文档guides/database/database-migration-verification/GUIDE.md7.2 KB
- 参考文档guides/database/migrations/GUIDE.md7.1 KB
- 参考文档guides/database/postgres/GUIDE.md8.1 KB
- 参考文档guides/database/query-optimization/GUIDE.md7.1 KB
- 参考文档guides/database/schema-design/GUIDE.md7.2 KB
- 参考文档guides/design/accessibility-verification/GUIDE.md6.6 KB
- 参考文档guides/design/accessibility-verification/references/screen-reader-passes.md2.6 KB
- 参考文档guides/design/accessibility/GUIDE.md7.3 KB
- 参考文档guides/design/design-systems/GUIDE.md5.7 KB
- 参考文档guides/design/design-to-code/GUIDE.md5.8 KB
- 参考文档guides/design/frontend-design/GUIDE.md6.0 KB
- 参考文档guides/design/motion-design/GUIDE.md5.5 KB
- 参考文档guides/design/responsive-design/GUIDE.md7.0 KB
- 参考文档guides/design/ui-audit/GUIDE.md6.0 KB
- 参考文档guides/design/ux-writing/GUIDE.md5.1 KB
- 参考文档guides/devops/ci-cd/GUIDE.md8.2 KB
- 参考文档guides/devops/deployment/GUIDE.md7.3 KB
- 参考文档guides/devops/docker/GUIDE.md7.7 KB
- 参考文档guides/devops/github-actions/GUIDE.md8.2 KB
- 参考文档guides/devops/incident-response/GUIDE.md6.9 KB
- 参考文档guides/devops/observability/GUIDE.md7.1 KB
- 参考文档guides/devops/release-verification/GUIDE.md7.0 KB
- 参考文档guides/devops/rollback/GUIDE.md7.6 KB
- 参考文档guides/frontend/component-architecture/GUIDE.md5.5 KB
- 参考文档guides/frontend/frontend-performance/GUIDE.md8.0 KB
- 参考文档guides/frontend/shadcn-ui/GUIDE.md6.5 KB
- 参考文档guides/frontend/stack-detection/GUIDE.md6.0 KB
- 参考文档guides/frontend/tailwind/GUIDE.md5.6 KB
- 参考文档guides/frontend/visual-verification/GUIDE.md7.6 KB
- 参考文档guides/knowledge/competitive-analysis/GUIDE.md6.7 KB
- 参考文档guides/knowledge/copywriting/GUIDE.md7.0 KB
- 参考文档guides/knowledge/data-analysis/GUIDE.md7.7 KB
- 参考文档guides/knowledge/deep-research/GUIDE.md6.3 KB
- 参考文档guides/knowledge/documentation-verification/GUIDE.md7.0 KB
- 参考文档guides/knowledge/positioning/GUIDE.md6.5 KB
- 参考文档guides/knowledge/seo/GUIDE.md7.3 KB
- 参考文档guides/knowledge/source-evaluation/GUIDE.md6.1 KB
- 参考文档guides/knowledge/technical-writing/GUIDE.md6.2 KB
- 参考文档guides/product/experimentation/GUIDE.md7.9 KB
- 参考文档guides/product/prd-and-stories/GUIDE.md7.0 KB
- 参考文档guides/product/prioritization/GUIDE.md6.0 KB
- 参考文档guides/product/product-analytics/GUIDE.md6.9 KB
- 参考文档guides/product/product-discovery/GUIDE.md6.2 KB
- 参考文档guides/quality/browser-verification/GUIDE.md3.8 KB
- 参考文档guides/quality/browser-verification/references/driving-the-browser.md1.0 KB
- 参考文档guides/quality/e2e-testing/GUIDE.md7.5 KB
- 参考文档guides/quality/performance-profiling/GUIDE.md7.0 KB
- 参考文档guides/quality/regression-testing/GUIDE.md6.7 KB
- 参考文档guides/quality/systematic-debugging/GUIDE.md6.7 KB
- 参考文档guides/quality/test-design/GUIDE.md7.5 KB
- 参考文档guides/quality/test-strategy/GUIDE.md6.2 KB
- 参考文档guides/security/agent-security/GUIDE.md7.9 KB
- 参考文档guides/security/auth-security/GUIDE.md7.5 KB
- 参考文档guides/security/dependency-security/GUIDE.md6.7 KB
- 参考文档guides/security/owasp-web/GUIDE.md7.6 KB
- 参考文档guides/security/secrets-management/GUIDE.md7.1 KB
- 参考文档guides/security/secure-code-review/GUIDE.md7.2 KB
- 参考文档guides/security/threat-modeling/GUIDE.md6.8 KB
- 许可证LICENSE1.0 KB
- 其他NOTICE1.4 KB
- 参考文档recipes/build-production-ui.md2.4 KB
- 参考文档recipes/database-migration.md1.8 KB
- 参考文档recipes/debug-application.md1.9 KB
- 参考文档recipes/investigate-incident.md1.4 KB
- 参考文档recipes/research-technical-decision.md1.4 KB
- 参考文档recipes/review-pull-request.md1.3 KB
- 参考文档recipes/security-review.md1.7 KB
- 参考文档recipes/ship-feature.md2.2 KB
- 参考文档references/ACTIVITY.md2.9 KB
- 参考文档references/CONTEXT.md2.6 KB
- 参考文档references/CONTROLS.md1.5 KB
- 参考文档references/DELEGATION.md1.7 KB
- 参考文档references/INDEX.md21.8 KB
- 参考文档references/INVENTORY.md1.0 KB
- 参考文档references/PROJECT-MAP.md929 B
- 参考文档references/ROLES.md9.0 KB
- 参考文档references/SIGNALS.md28.9 KB
- 参考文档roles/ai-agent-engineer.md6.3 KB
- 参考文档roles/api-integration-engineer.md5.7 KB
- 参考文档roles/architect.md5.4 KB
- 参考文档roles/automation-operations.md5.6 KB
- 参考文档roles/content-copywriter.md5.1 KB
- 参考文档roles/data-analyst.md4.9 KB
- 参考文档roles/data-engineer.md6.2 KB
- 参考文档roles/database-engineer.md5.2 KB
- 参考文档roles/debugger.md5.5 KB
- 参考文档roles/devops-release.md5.6 KB
- 参考文档roles/dispatcher.md6.1 KB
- 参考文档roles/documentation-writer.md5.1 KB
- 参考文档roles/explorer.md4.8 KB
- 参考文档roles/generalist.md5.7 KB
- 参考文档roles/growth-marketing-strategist.md5.2 KB
- 参考文档roles/implementer.md6.6 KB
- 参考文档roles/incident-responder.md6.1 KB
- 参考文档roles/performance-engineer.md5.2 KB
- 参考文档roles/planner.md5.5 KB
- 参考文档roles/product-manager.md5.0 KB
- 参考文档roles/refactoring-migration-specialist.md5.4 KB
- 参考文档roles/researcher.md5.5 KB
- 参考文档roles/reviewer.md6.1 KB
- 参考文档roles/security-auditor.md5.6 KB
- 参考文档roles/tester.md5.9 KB
- 参考文档roles/ui-ux-designer.md6.4 KB
- 参考文档roles/version-control.md6.0 KB
- 脚本scripts/context.py33.0 KB
- 脚本scripts/project_map.py31.6 KB
- 参考文档SOURCE.json15.1 KB
03 SKILL.md 正文
Agent Dispatcher for Locus
27 roles and 79 guides are bundled with Locus. Route by the requested deliverable, considering each role's use_when and not_for, rather than matching its topic alone. Trivial questions and obvious small changes need no role ceremony. The dispatcher role is for separable orchestration; it is not the default role for every request.
- Use the compact role catalog supplied by Locus. Read the selected role with
read_dispatcher_resourceandpath: "roles/<id>.md"before using its method. A saved specialist or an explicitly selected role stays fixed until the user changes it. Automatic routing may change when the requested kind of work changes. - Follow the role's method, scope, output, definition of done, and loadout. Read
relevant guides with
read_dispatcher_resource, using their exact paths fromreferences/INDEX.md. Ordinary work needs one to five guides; do not read all 79 or load multiple guides for the same capability. Conditional guides require established evidence fromreferences/SIGNALS.md; unknown is not true. Respect disabled guides and use available equivalents or fallbacks. - For substantial or unfamiliar workspace work, build bounded read-only context
after choosing the role. Read
references/CONTEXT.md; if its helper is unavailable, use targeted file and search tools and continue. Context selection supports the deliverable and does not become the deliverable unless requested. - Complete the authorized work and verify the outcome. State observed checks and
material gaps. Before delegating or chaining roles, read
references/DELEGATION.md. A plan request ends with a plan. Same-session review remains a self-check.
Keep activity compact: mention the role and guides actually read within ordinary progress. Distinguish planned, read, available, used, and verified resources. Do not claim that a guide or MCP was loaded merely because the catalog lists it.
Controls
Use /agent-dispatcher or $agent-dispatcher with these arguments:
on/off: enable or stop routing in this conversation (on here/off hereare aliases). Stopping immediately drops the active role.on everywhere/off everywhere: change the default for chats.status: inspect routing state, role, and output style without executing work.<role id, name, or alias> [request]: hold that role until the user changes it.auto: return to automatic routing.context,context explain,context verbose: inspect context for the most recent real request without executing it or changing the active role.output,output compact,output verbose: inspect or change activity detail.
A bare invocation with no task activates routing and waits for the user's request.
Read references/CONTROLS.md for scope and persistence. Inventory and map guidance
is available on demand; do not invent unsupported commands, tools, or connections.
Host boundaries
Locus's mode, permissions, user instructions, explicitly invoked workflows, and disabled-skill preferences remain authoritative. Roles do not grant authority or change runtime settings. Use Locus's available internal collaboration tools for bounded subtasks; never create user-visible chats for internal work. Work from evidence, preserve unrelated edits, and never invent checks or external outcomes. This native bundle uses no host activation hooks, external decision provider, automatic service installation, or observation workflow.
04 同仓库更多 Skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Prepare a saved implementation plan for a substantial multi-step request.
verification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
using-superpowers
Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback