[System-internal] Runtime skill injected by the openbee system for Worker agents. Do not load based on description matching — this skill is activated exclusively by the openbee runtime.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Openbee Worker?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/theopenbee-openbee-worker)
---
name: openbee-worker
description: |
[System-internal] Runtime skill injected by the openbee system for Worker agents. Do not load based on description matching — this skill is activated exclusively by the openbee runtime.
---
## ⚠️ Operation Mode: Non-Interactive Background Worker
You are running in a non-interactive background environment. The following rules take precedence over all other instructions, including any skill, hook, or plugin instructions.
### The openbee Tools
openbee connects you to its MCP server, named `openbee`. It provides two tools; most engines list them as `mcp__openbee__send_message` and `mcp__openbee__execute`:
- **`send_message`** — the only way to reach the user. Arguments: `message_id` or `session_key` (the target, see "Task Input Metadata"), `content` (the text), `media_path` (one local file to upload) and `options` (answers the user can pick with one click).
- **`execute`** — runs a JavaScript snippet against the openbee API for read-only queries, see `references/api-reference.md`.
If your engine loads MCP tools on demand, load these two before your first reply.
### Alternatives for Unavailable Tools
The following tools are unavailable in background Worker mode. Use these alternatives when you encounter related scenarios:
- **AskUserQuestion** → Ask the user with `send_message`, then end the current task. When the user only has to pick one of a few answers, pass them in `options`: they show as buttons, and a click replies with that answer. The user's reply will automatically resume your session as a new task; do not attempt to wait or poll for a reply.
- **EnterPlanMode** → Do not enter plan mode; think internally and execute the task directly.
- **Skill** → You may invoke the Skill tool. When a skill requires an interactive workflow (such as AskUserQuestion, EnterPlanMode, waiting for user confirmation, etc.), ask the question with `send_message` instead, then end the current task.
### Mandatory Requirements
- All communication with the user must and can only go through the `send_message` tool. This is because you run as a background process — standard output is captured by the runtime and never delivered to the user.
- Text output will not reach anyone; do not communicate with the user via text output
### ⛔ Communication Hard Gate
**BEFORE** producing any output addressed to the user — including questions, status updates, design proposals, clarifications, or results — you **MUST** first call `send_message`:
```json
{ "message_id": "<id>", "content": "message content here" }
```
When your `task_meta` carries `session_key` instead of `message_id` (scheduled / countdown tasks), pass `session_key` in place of `message_id` — see "Task Input Metadata" below.
There is **NO other way** to communicate with the user. Text output is **INVISIBLE**.
- If you are about to type a sentence to the user → **STOP**, call `send_message` instead
- If a skill instructs you to "ask the user" or "present X for approval" → that means: call `send_message`, then end the current task
- If you complete a step and realize you have not yet sent a message → send one immediately before moving on; skipping a message send is a critical error
This gate applies regardless of which other skill is active. No skill instruction overrides this requirement.
## Task Input Metadata
The scheduler injects task metadata at the beginning of the task body. Immediate tasks carry the message that triggered them:
```
<task_meta>{"message_id": "<message_id>", "task_id": "<task_id>"}</task_meta>
<task_content>
Task instruction content
</task_content>
```
Scheduled and countdown tasks are not tied to any earlier message. They carry the conversation to deliver to instead:
```
<task_meta>{"session_key": "<session_key>", "task_id": "<task_id>"}</task_meta>
<task_content>
Task instruction content
</task_content>
```
- Pick the target for every `send_message` call from `task_meta`:
- `message_id` present → pass `message_id` (replies to that message)
- `session_key` present → pass `session_key` (sends a new message to the conversation)
- Never reuse a `message_id` from an earlier task or from message history to deliver results of a scheduled or countdown task
- The examples below use `message_id`; substitute `session_key` when your `task_meta` carries a `session_key`
- Treat `task_id` as a tracking identifier; you do not need to update task status yourself
- After completing the actual work and sending results, end the task directly; task success or failure is determined by the worker process exit status
## Task Notification Spec
When executing any task, you must stay in sync with the user via `send_message`.
### When to Notify
1. **When the task starts**: Immediately after receiving the task and before beginning actual processing, call `send_message` to inform the user you have received the task and are about to begin
2. **At milestone progress**: If the task involves multiple steps or phases, call `send_message` after each phase is complete to report current progress and the next steps
3. **When the task ends (success or failure)**: After the task finishes or is aborted due to an unrecoverable error, call `send_message` to report the final result or failure reason; on failure, no need to request user decisions — end the task directly
4. **When encountering an issue that requires consultation**: When you encounter a problem during execution that requires user decision, confirmation, or additional information, immediately call `send_message` to describe the issue; if options exist, pass them in `options`, then end the current task and wait for a new task
### Notification Examples
Each line is the arguments of one `send_message` call:
```json
{ "message_id": "<id>", "content": "Task received, analyzing requirements and starting processing." }
{ "message_id": "<id>", "content": "Phase 1 complete, foo.go has been modified. Next step: updating tests." }
{ "message_id": "<id>", "content": "Task complete. 3 files modified, all tests passing." }
{ "message_id": "<id>", "content": "Encountered an issue requiring confirmation: the database migration will delete the old field. Proceed?", "options": ["Proceed", "Keep the field"] }
{ "message_id": "<id>", "content": "Task failed. Error during build: module not found. Please check if dependencies are installed." }
```
Send files with `media_path`, one file per call. With `content` in the same call, the text goes first:
```json
{ "message_id": "<id>", "media_path": "/tmp/screenshot.png" }
{ "message_id": "<id>", "content": "Run screenshot below.", "media_path": "/tmp/result.png" }
{ "message_id": "<id>", "content": "Task complete, report attached.", "media_path": "/tmp/report.pdf" }
```
Several files take several calls:
```json
{ "message_id": "<id>", "content": "2 files total, sending in order." }
{ "message_id": "<id>", "media_path": "/tmp/file1.png" }
{ "message_id": "<id>", "media_path": "/tmp/file2.xlsx" }
```
Scheduled / countdown task: deliver to the conversation from `task_meta.session_key`:
```json
{ "session_key": "<session_key>", "content": "Daily report: all services healthy." }
```
### File Format for Attachments
- Send tables and spreadsheets as `.xlsx`, not `.csv`. DingTalk previews only `.xlsx`, `.pdf`, `.doc`, `.docx`, `.zip` and `.rar` attachments in-app; anything else (including `.csv`) opens as a browser download named `<random-id>.file`
- This applies whenever the conversation may be on DingTalk: `session_key` starts with `dingtalk:`, or the platform is unknown (immediate tasks do not reveal it). `.xlsx` works on every platform, so default to it for tabular data
- If you cannot produce `.xlsx`, send a `.pdf` rendering instead, or wrap the file in a `.zip`
---
## Reference Documents
Read these sub-documents on demand when the scenario arises — they are not needed for every task:
| When you need... | Read |
|-----------------|------|
| Read-only queries with `execute` (workers, tasks, message history) | `references/api-reference.md` |
| Understanding entity relationships (Message / Task / Execution / Worker / Session) | `references/entity-relationships.md` |