Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

worker-integration — Claude Code skill: what it does, how to install

Dispatches background worker tasks to specialized agents based on trigger types. It tracks execution latency, quality scores, and records pipeline outputs to memory.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ruvnet/ruflo --skill worker-integration -a claude-code
Open on GitHub

What worker-integration does

The skill links background workers to specialized agents. Triggers dictate routing: optimize routes to performance-analyzer and coder, while audit dispatches to security-analyst and tester. Pipeline outputs follow structured memory keys formatted as {trigger}/{topic}/{phase}.

Routing decisions rely on historical execution stats. The system tracks quality scores from 0 to 1, success rates, latency, and run counts. Fresh environments lack this operational history, so initial dispatches cannot evaluate confidence scores accurately. Monitored thresholds enforce boundaries, like coder latency under 300ms or security scan coverage above 95%.

CLI inspection runs through agentic-flow commands. Worker concurrency and mapping overrides live inside .claude/settings.json.

What it helps with

  • Dispatch worker triggers to dedicated agent pipelines
  • Track latency and quality scores across agent runs
  • Store pipeline stage artifacts under uniform memory keys
  • Enforce benchmark thresholds for latency and scan coverage

Example prompts for the agent

  • Run the optimize worker to inspect database bottlenecks
  • Display worker integration stats using agentic-flow CLI
  • Check benchmark compliance for the coder agent

How to install worker-integration

1Skills CLI (Vercel)

npx skills add ruvnet/ruflo --skill worker-integration -a claude-code

2Manually: put the files in place

~/.claude/skills/worker-integration/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/worker-integration/

From the same set104

The whole set →
ruflo ruvnet This skill adds multi-agent orchestration, memory, routing, and MCP tools to a project. Use it for swarm tasks and multi-step workflows. Claude Code CX Codex Cursor +1 4,000installs Swarm Orchestration ruvnet Skill for managing agent swarms with parallel execution, dynamic topology, and automatic load balancing. Use when a single agent is not enough and you need to orchestrate specialists of different types. Claude Code CX Codex Cursor +1 2,100installs github-project-management ruvnet Turns issue triage and board upkeep into gh and ruv-swarm calls: labels, subtasks, duplicate lookup. Useful when the tracker holds more tickets than order. Claude Code CX Codex Cursor +1 1,400installs github-workflow-automation ruvnet Automates GitHub Actions with AI agent coordination. Generates optimised pipelines, manages pull requests, analyzes failed runs, and deploys updates with risk assessment. Claude Code CX Codex Cursor +1 1,300installs github-code-review ruvnet Runs a swarm of specialized AI agents to inspect GitHub pull requests for security, performance, and architecture issues. Claude Code CX Codex Cursor +1 1,300installs stream-chain ruvnet Chains sequential agent steps together using streaming JSON flow and provides ready-to-run pipelines. Claude Code CX Codex Cursor +1 1,200installs flow-nexus-swarm ruvnet Deploy cloud-based AI agent swarms and define event-driven workflows with message queues. Use it to coordinate tasks, inspect runs, and scale a swarm. Claude Code CX Codex Cursor +1 1,200installs performance-analysis ruvnet Detects bottlenecks in Claude Flow swarms, profiles agent operations, and generates reports with actionable optimization recommendations. Claude Code CX Codex Cursor +1 1,200installs

Similar

clickhouse-best-practices ClickHouse Inc A skill with rules for reviewing ClickHouse schemas, queries, and configurations. Helps agents avoid common mistakes in table design, JOIN optimization, and data batching. Claude Code CX Codex Cursor +1 21,600installs gh-issue-sync mitsuhiko Syncs GitHub Issues into local Markdown files for triage, search, editing, and issue creation from an editor or terminal. Claude Code CX Codex Cursor +1 23,300installs ralph Yeachan-Heo A persistence loop that works through tasks in prd.json until all stories pass and get reviewer verification. Useful for multi-step jobs that need guaranteed completion. Claude Code CX Codex Cursor +1 971installs use-link-identity stripe Tells the agent how to fetch a Link Agent Attestation Token or signed claims and send them to a service that asked for them. Claude Code CX Codex Cursor +1 9,200installs mem0-test-integration mem0ai Checks the Mem0 integration that /mem0-integrate left behind: installs dependencies, runs the test suite and a live smoke flow, then prints a scorecard. Claude Code CX Codex Cursor +1 323installs scenes phaserjs A Phaser 4 scene reference for your coding agent: lifecycle order, transitions, parallel scenes, and the ScenePlugin queue that fires a frame later. Claude Code CX Codex Cursor +1 942installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs

Questions about worker-integration

How to install worker-integration in Claude Code?

Run npx skills add ruvnet/ruflo --skill worker-integration -a claude-code. This installs the skill definition into your Claude Code setup.

What does worker-integration do?

It manages dispatch between background workers and specialized agents across designated pipeline phases. It also logs feedback metrics such as latency and output quality scores.

How does performance-based agent selection work?

The system evaluates quality scores between 0 and 1, success rates, average latency, and historical execution counts to select the best agent.

Source text

SKILL.md · MIT
---
name: worker-integration
description: Worker-Agent integration for intelligent task dispatch and performance tracking
user-invocable: true
---

# Worker-Agent Integration Skill

Intelligent coordination between background workers and specialized agents.

## Quick Start

```bash
# 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:

```typescript
// 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:

```json
{
  "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:

```typescript
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

```bash
$ 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`:

```json
{
  "workers": {
    "enabled": true,
    "parallel": true,
    "memoryDepositEnabled": true,
    "agentMappings": {
      "ultralearn": ["researcher", "coder"],
      "optimize": ["performance-analyzer", "coder"]
    }
  }
}
```

© ruvnet · MIT · ruvnet/ruflo

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor