worker-integration
What it does
This skill explains how background workers hand tasks to specialist agents and how their results are tracked. It is for people who run background workers and want to know which agent handles which job.
When to use it
- βWhen you want to see which agent is recommended for a background task.
- βWhen you need performance metrics for worker and agent pairings.
- βWhen you want to understand how tasks are routed to specialists.
Skill link
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/worker-integration/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βShow me which agents handle the optimize trigger and how they have performed so far.β
5 new skills a week. 1 minute to read.
How it works
The agent looks up the mapping for a trigger, checks the recorded metrics, and shows the primary agents, fallbacks and pipeline steps.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Worker-Agent Integration Skill
Intelligent coordination between background workers and specialized agents.
Quick Start
# View agent recommendations for a trigger
npx agentic-flow workers agents ultralearn
npx agentic-flow workers agents optimize
# View performance metrics
npx agentic-flow workers metrics
# View integration stats
npx agentic-flow workers stats --integration
Agent Mappings
Workers automatically dispatch to optimal agents based on trigger type:
| Trigger | Primary Agents | Fallback | Pipeline Phases |
|---|---|---|---|
ultralearn |
researcher, coder | planner | discovery β patterns β vectorization β summary |
optimize |
performance-analyzer, coder | researcher | static-analysis β performance β patterns |
audit |
security-analyst, tester | reviewer | security β secrets β vulnerability-scan |
benchmark |
performance-analyzer | coder, tester | performance β metrics β report |
testgaps |
tester | coder | discovery β coverage β gaps |
document |
documenter, researcher | coder | api-discovery β patterns β indexing |
deepdive |
researcher, security-analyst | coder | call-graph β deps β trace |
refactor |
coder, reviewer | researcher | complexity β smells β patterns |
Performance-Based Selection
The system learns from execution history to improve agent selection:
// Agent selection considers:
// 1. Quality score (0-1)
// 2. Success rate
// 3. Average latency
// 4. Execution count
const { agent, confidence, reasoning } = selectBestAgent('optimize');
// agent: "performance-analyzer"
// confidence: 0.87
// reasoning: "Selected based on 45 executions with 94.2% success"
Memory Key Patterns
Workers store results using consistent patterns:
{trigger}/{topic}/{phase}
Examples:
- ultralearn$auth-module$analysis
- optimize$database$performance
- audit$payment$vulnerabilities
- benchmark$api$metrics
Benchmark Thresholds
Agents are monitored against performance thresholds:
{
"researcher": {
"p95_latency": "<500ms",
"memory_mb": "<256MB"
},
"coder": {
"p95_latency": "<300ms",
"quality_score": ">0.85"
},
"security-analyst": {
"scan_coverage": ">95%",
"p95_latency": "<1000ms"
}
}
Feedback Loop
Workers provide feedback for continuous improvement:
import { workerAgentIntegration } from 'agentic-flow$workers$worker-agent-integration';
// Record execution feedback
workerAgentIntegration.recordFeedback(
'optimize', // trigger
'coder', // agent
true, // success
245, // latency ms
0.92 // quality score
);
// Check compliance
const { compliant, violations } = workerAgentIntegration.checkBenchmarkCompliance('coder');
Integration Statistics
$ npx agentic-flow workers stats --integration
Worker-Agent Integration Stats
ββββββββββββββββββββββββββββββ
Total Agents: 6
Tracked Agents: 4
Total Feedback: 156
Avg Quality Score: 0.89
Model Cache Stats
βββββββββββββββββ
Hits: 1,234
Misses: 45
Hit Rate: 96.5%
Configuration
Enable integration features in .claude$settings.json:
{
"workers": {
"enabled": true,
"parallel": true,
"memoryDepositEnabled": true,
"agentMappings": {
"ultralearn": ["researcher", "coder"],
"optimize": ["performance-analyzer", "coder"]
}
}
}
FAQ
What is a trigger?
A trigger is a keyword or event that starts a background worker task, such as optimize or audit.
Does the system learn which agent is best?
The skill says the system uses execution history to improve agent selection.
Where do I see the metrics?
The skill includes commands to view metrics and integration stats.
Details
Original description by the author
Worker-Agent integration for intelligent task dispatch and performance tracking
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1541
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.