agents-collab
Foundation rules for how Wopal collaborates with sub-agents such as fae and rook.
Skill by wopal-cn
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/wopal-cn-agents-collab
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/agents-collab
What's inside
- Skill name
agents-collab- Description
- Foundation rules for how Wopal collaborates with sub-agents such as fae and rook. ⚠️ MUST load before ANY delegation — covers delegation tool APIs, task lifecycle, notifications, status handling, and recovery. 🔴 Trigger: "delegate", "let fae implement", "fae task", "rook review", "check task status", "cancel task", "abort task", "agent collaboration", "委派", "让 fae 执行", "fae 任务", "rook 审查", "检查状态", or any intent to hand work to a sub-agent. 🔴 Never delegate without loading this skill first. Skipping it is serious negligence. Note: this skill does not include workflow-specific prompt templates such as dev-flow templates. Those belong to the corresponding workflow skills.
- License
- MIT
- Instructions
- 292 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- SKILL.zh-CN.md
- troubleshooting.md · references/
SKILL.md (first lines)
# agents-collab — Sub-agent collaboration basics
This skill defines **how** Wopal should collaborate with sub-agents at the tool level. **When** to delegate, and which workflow-specific instructions must appear in the prompt (such as Plan paths or done checkboxes), are decided by higher-level workflow skills such as dev-flow.
---
## Tool priority
Always prefer `wopal_task` for delegation. Use the built-in `task` tool only when `wopal_task` is unavailable.
`wopal_task` provides bidirectional communication, progress monitoring, and non-blocking execution. Using `task` means downgrading execution and giving up those capabilities.
---
## Prompt format
Delegation prompts must be precise and complete so the sub-agent can succeed in one pass. Standard format:
```
Hello <agent>, I am wopal. Because <reason>, please do the following task:
Task: <task description>
Goal: <goal description>
<precise context: absolute paths, file:line anchors, current code, change locations, and boundaries of what must not be changed>
```
**Required location context**:
- If a Plan exists: provide the absolute path to the Plan file
- If a worktree is involved (such as `.wopal/`): explicitly state the worktree root and warn the sub-agent not to edit the wrong location
**Core principle**: give complete, precise context up front so rework is minimized.
### Code review delegation contract, especially for rook
When delegating code review to rook, you must first define the **change carrier**. Without it, rook cannot establish a correct review boundary:
| Scenario | Required prompt fields | How rook should review |
|------|----------------|------------------|
| **Uncommitted changes** | `review_type: implementation`, `project_path`, `change_scope: working_tree`, plus changed file list or an explicit instruction to review `git diff` / `git diff --cached` | Review against the working tree or staged diff using planless diff review |
| **Committed changes** | `review_type: implementation`, `project_path`, `commit: <hash>` or `commit_range: <A>..<B>`, and `background` | Review against the `git diff` for that commit or range; never rely on file paths alone |
Additional rules:
1. **For committed changes, never provide only file names.** Without a commit or range, rook tends to review whole files and loses precise diff context.
2. **Planless code review defaults to technical review.** Explicitly tell rook to focus on bugs, tests, repeated logic, convention violations, and technical debt rather than judging business logic.
3. **If business logic really must be reviewed**, say so explicitly in the prompt, for example: `business_logic_review: requested`. Otherwise rook should place severe logic concerns in a discussion-only section.
---
## Delegation tools
### wopal_task — launch a task
```typescript
wopal_task({
description: "3-5 words",
prompt: "<write the prompt using the format above>",
agent: "fae" // or "rook", "general", etc. Default: "general"
})
// Returns task_id for later monitoring and communication
```
- Asynchronous and non-blocking; the main session does not wait and can launch multiple tasks
- Concurrency limit: configurable via the wopal plugin; additional tasks queue automatically
- TTL: auto-cleanup after 30 minutes with no interaction
### wopal_task_output — inspect status and output
```typescript
wopal_task_output({ task_id }) // summary status
wopal_task_output({ task_id, section: "text" }) // text output
wopal_task_output({ task_id, section: "tools" }) // tool calls
wopal_task_output({ task_id, section: "reasoning" }) // reasoning trace
wopal_task_output({ task_id, section: "text", last_n: 3 }) // last 3 text outputs only
```
### wopal_task_reply — communicate, resume, or redirect
Send a message to an idle, waiting, or stuck task to resume execution or correct direction. `error` tasks cannot be resumed; clean them up with `finish` and recreate them. The sub-agent **will wake up**.
```typescript
wopal_task_reply({ task_id, message: "Continue improving test coverage" })
wopal_task_reply({ task_id, message: "Change direction to...", interrupt: true }) // abort current execution + inject message
```
| Task state | Behavior |
|---------|------|
| `waiting` | Send a message and resume execution |
| `idle` | Clear the idle marker, send a message, and resume execution |
| `stuck` | Send a message and try again |
| `error` | Reply is invalid; finish and recreate with valid config |
| `running` | Must use `interrupt=true`, otherwise the message is queued |
**Forbidden**: `wopal_task_reply({ message: "Task complete" })` — this wakes the sub-agent and causes pointless extra work. `IDLE` is already the completion signal. If the output is accepted, end the task with `wopal_task_finish`.
### wopal_task_abort — stop an actively running task
Pure stop: no message, no wake-up. Afterward you can either `finish` the task or `reply` to resume it.
```typescript
wopal_task_abort({ task_id })
```
### wopal_task_finish — terminate a task
Terminate an idle, waiting, stuck, or error task and delete its sub-session. The sub-agent **will not wake up**. Running tasks must be `abort`ed first or redirected with `reply(interrupt=true)`.
```typescript
wopal_task_finish({ task_id })
```
---
## Task lifecycle
### State model
State model: `running | idle | waiting | stuck | error`From wopal-cn/wopal-space-ontology, MIT.
More from wopal-cn/wopal-space-ontology
- 0.609score
cordis-composition-reference
wopal-cn
Use when writing or reading a Cordis bundle patch or agent preset for this harness and you need the Loader YAML dialect (insert, override by id, group…
SkillAFreshness: A★ 3Claude Code +9 - 0.609score
cordis-plugin-development
wopal-cn
Use when designing, reviewing, adding, enabling, disabling, installing, configuring, or debugging a plugin, bundle, feature, page, panel, tool, or MCP…
SkillAFreshness: A★ 3Claude Code +9 - 0.605score
automating-mail
wopal-cn
Automates Apple Mail via JXA with AppleScript dictionary discovery.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
editing-cordis-compositions
wopal-cn
Use when creating, changing, or validating an agent preset or other Cordis composition for this harness, including deciding host versus preset placement and…
SkillAFreshness: A★ 3Claude Code +9 - 0.600score
cnb-pipeline
wopal-cn
编写、修改、审查 .cnb.yml 流水线配置,诊断构建失败原因并优化性能。
SkillAFreshness: A★ 3Claude Code +9 - 0.599score
agent-experience
wopal-cn
Use when writing or changing a model-facing tool definition (name, description, parameter schema, or its system-prompt section), and when designing skills…
SkillAFreshness: A★ 3Claude Code +9 - 0.595score
cnb-docs
wopal-cn
查询 CNB 平台官方文档,覆盖代码托管、制品库、AI 助手、云原生构建等。
SkillAFreshness: A★ 3Claude Code +9 - 0.595score
cnb-npc-delegate
wopal-cn
当任务复杂或需要特定专长时,主动召唤其他 NPC 协同工作。
SkillAFreshness: A★ 3Claude Code +9 - 0.595score
cnb-api
wopal-cn
CNB 平台交互命令,支持代码仓库、Issue、PR、CI、制品库读写等操作。
SkillAFreshness: A★ 3Claude Code +9 - 0.595score
cnb-tapd-resource-fetcher
wopal-cn
获取 TAPD 资源(需求/缺陷/任务/迭代),支持从 TAPD 链接自动解析。
SkillAFreshness: A★ 3Claude Code +9 - 0.592score
cnb-pr-diff
wopal-cn
获取 PR 的 diff 变更信息。
SkillAFreshness: A★ 3Claude Code +9 - 0.592score
cnb-code-review
wopal-cn
PR 代码评审,检查安全漏洞、Bug 和代码质量。
SkillAFreshness: A★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Sep 26, 2026 (1 month ago)
- Last release
- Oct 24, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/wopal-cn/wopal-space-ontology
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from wopal-cn
- 0.609score
cordis-plugin-development
wopal-cn
Use when designing, reviewing, adding, enabling, disabling, installing, configuring, or debugging a plugin, bundle, feature, page, panel, tool, or MCP…
SkillAFreshness: A★ 3Claude Code +9 - 0.609score
cordis-composition-reference
wopal-cn
Use when writing or reading a Cordis bundle patch or agent preset for this harness and you need the Loader YAML dialect (insert, override by id, group…
SkillAFreshness: A★ 3Claude Code +9 - 0.605score
automating-mail
wopal-cn
Automates Apple Mail via JXA with AppleScript dictionary discovery.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
editing-cordis-compositions
wopal-cn
Use when creating, changing, or validating an agent preset or other Cordis composition for this harness, including deciding host versus preset placement and…
SkillAFreshness: A★ 3Claude Code +9 - 0.600score
cnb-pipeline
wopal-cn
编写、修改、审查 .cnb.yml 流水线配置,诊断构建失败原因并优化性能。
SkillAFreshness: A★ 3Claude Code +9 - 0.599score
agent-experience
wopal-cn
Use when writing or changing a model-facing tool definition (name, description, parameter schema, or its system-prompt section), and when designing skills…
SkillAFreshness: A★ 3Claude Code +9
Cite this page
agents-collab skill. Agent Mart. https://agentmart.dev/skills/wopal-cn-agents-collab (last updated 2026-10-24)