技能 效率工具 OMP角色工具配置

OMP角色工具配置

v20260922
omp-roles
为OMP子代理角色(执行者、架构师、分析师、评论家等)提供allowed_tools和skills预设,用于配置spawn_subagent调用。确保每个角色具有正确的工具权限和边界。
获取技能
281 次下载
概览

OMP Role Tool Configuration

When using spawn_subagent (single or batch mode) to dispatch sub-agents,
set the corresponding allowed_tools and skills parameters based on the
sub-agent's role.

Canonical source of truth in code:
plugins/bundle/omp_workflows/shared/constants.py
(ROLE_ALLOWED_TOOLS, ROLE_SKILLS, TOOL_* names) and
shared/role_prompts.py (ROLE_PROMPTS, build_worker_prompt,
format_spawn_call). Tool strings must match registered ToolRegistry
names — do not invent aliases.

Role Definitions

executor (Code Executor)

  • allowed_tools: null (inherits all tools)
  • skills: null (inherits all skills)
  • Boundary: Implement features, run quality checks. Follow existing patterns.

architect (System Architect)

  • allowedtools: ["readfile", "grepsearch", "globsearch",

"writefile", "astsearch", "executeshellcommand"]

  • skills: []
  • Boundary: Design interfaces and module boundaries, diagnose complex issues. No implementation code.

analyst (Requirements Analyst)

  • allowedtools: ["readfile", "grepsearch", "globsearch",

"writefile", "executeshell_command"]

  • skills: []
  • Boundary: Extract requirements, identify constraints, define acceptance criteria. No code.

critic (Plan/Design Critic)

  • allowedtools: ["readfile", "grepsearch", "globsearch",

"ast_search"]

  • skills: []
  • Boundary: Review plans and designs, challenge assumptions. No plans, no code.

security-reviewer (Security Reviewer)

  • allowedtools: ["readfile", "grepsearch", "globsearch",

"executeshellcommand", "ast_search"]

  • skills: []
  • Boundary: Identify vulnerabilities, injection vectors, auth weaknesses. No file modifications.

code-reviewer (Code Reviewer)

  • allowedtools: ["readfile", "grepsearch", "globsearch",

"executeshellcommand", "ast_search"]

  • skills: []
  • Boundary: Review code quality, maintainability, convention adherence. No file modifications.

qa-tester (QA Tester)

  • allowedtools: ["readfile", "grepsearch", "globsearch",

"executeshellcommand"]

  • skills: []
  • Boundary: Interactive CLI/service testing — start services and verify behavior.

planner (Strategic Planner)

  • allowedtools: ["readfile", "grepsearch", "globsearch",

"writefile", "astsearch"]

  • skills: []
  • Boundary: Create implementation plans, define task breakdown and dependencies. No implementation code.

explore (Code Explorer)

  • allowedtools: ["readfile", "grepsearch", "globsearch",

"ast_search"]

  • skills: []
  • Boundary: Read-only exploration. Map codebase structure and dependencies.

debugger (Debugging Expert)

  • allowed_tools: null (inherits all tools)
  • skills: []
  • Boundary: Root cause analysis, fix build/test failures. No new features.

verifier (Adversarial Verifier)

  • allowedtools: ["readfile", "grepsearch", "globsearch",

"executeshellcommand", "ast_search"]

  • skills: []
  • Boundary: Verification only — no file modifications. Physical isolation via read-only tool set.

Usage

spawn_subagent(
    task="<role identity from ROLE_PROMPTS>\n\n## Task\n<task description>",
    allowed_tools=<ROLE_ALLOWED_TOOLS[role] or omit if null>,
    skills=<ROLE_SKILLS[role] or omit if null>,
    fork=True,         # if worktree isolation needed
    background=True,   # if background execution needed
)

When allowed_tools or skills is null, omit the parameter (uses default None).
For batch mode, pass task="" and put per-item role config in each batch dict.

信息
分类 效率工具
名称 omp-roles
版本 v20260922
大小 4.11KB
更新时间 2026-09-23
语言