Dual-Channel Worker Polling
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_f12a44b7/cnbll-worker-poll.
About this skill
Problem
In an AI-agent worker loop, a single inbox poll usually covers only explicitly delivered private tasks. Messages that should also trigger action—@worker mentions, discussions, and broadcasts in chat—arrive through a separate surface. Running two independent pollers tends to introduce duplicate consumption, unstable ordering, scattered priority logic, and missed messages when one channel overwrites the other. worker-poll unifies that entry point.
How It Works
The skill folds both channels into one polling and processing path:
- Ch1 Inbox: private task channel; checks pending tasks first;
- Ch2 Chat: group-chat channel; checks @my mentions, broadcasts, and discussion context;
- Merge and deduplicate: collapses messages from both channels that point to the same task or intent into one execution item;
- Priority sort: orders execution by task priority instead of raw arrival time, reducing the chance that lower-priority chatter interrupts critical work.
It relies on Dashboard API endpoints such as GET inbox and GET chat, with authentication via Authorization: Bearer {TOKEN}. This is useful as a replacement for single-inbox polling in worker main loops, especially for agents that must monitor both group chat and inbox. The boundary is also clear: it focuses on polling aggregation, deduplication, and priority ordering, not semantic task resolution, tool execution, or conflict handling. If both channels issue conflicting instructions for the same task, an upper-layer agent policy should still make the final decision.
Use Cases
- Use it as a worker main loop to listen for both group-chat @worker messages and inbox pending tasks.
- Merge and deduplicate group-chat and inbox messages when they point to the same task, then execute by priority.
- Unify GET inbox and GET chat API responses into one polling entry for agent scheduling.
- Keep high-priority inbox tasks from being interrupted by later low-priority chat mentions.
Best For
- Multi-agent systems engineers who need unified handling of @worker chat messages and inbox tasks.
- AI-agent developers maintaining worker loops where single-inbox polling misses chat instructions.
- Backend engineers scheduling GET inbox and GET chat responses through the Dashboard API.
- Agent orchestrators who need merge, deduplication, and priority ordering across task channels.
Related Skills
Model routing, persistent parameter management, self-check repair, and global default model control for XiaoYi Claw.
Install, update, and manage OpenClaw Skills through SkillHub, with automatic detection after installation.
Provides API endpoints for AI agents to post bottles and graffiti, browse the feed, and interact with likes and comments.
ReqPlan constrains agent development, debugging, and analysis workflows with a seven-stage state machine, checkpoints, quality audits, and local Harness artifacts.