跳到正文
Skillpedia
智能体81k · #1541

worker-integration

它能做什么

这项技能说明后台工作者如何把任务交给专业智能体,以及如何跟踪它们的结果。适合运行后台工作者、并想知道哪个智能体负责哪类工作的人。

适用场景

  • ✓当你想查看某个后台任务推荐由哪个智能体处理的时候。
  • ✓当你需要工作者与智能体组合的性能指标的时候。
  • ✓当你想了解任务如何分派给专业智能体的时候。

技能链接

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/worker-integration/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/.agents/skills/worker-integration/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请告诉我哪些智能体负责处理 optimize 触发器,以及它们目前的表现如何。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会查找某个触发器的对应关系,检查已记录的指标,并显示主要智能体、备用智能体和流水线步骤。

技术内容(原始 SKILL.md)

作者在 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"]
    }
  }
}
常见问题

什么是触发器?

触发器是启动后台工作任务的关键词或事件,例如 optimize 或 audit。

系统会学习哪个智能体最好吗?

这项技能说明,系统会利用执行历史来改进智能体的选择。

我在哪里查看指标?

这项技能包括查看指标和集成统计数据的命令。

详情

作者的原始描述

Worker-Agent integration for intelligent task dispatch and performance tracking

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1541
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能