worker-integration
Skill này làm gì
Skill này giải thích cách các worker chạy nền giao việc cho agent chuyên gia và cách kết quả của họ được theo dõi. Phù hợp với người điều hành worker chạy nền và muốn biết agent nào xử lý việc nào.
Khi nào nên dùng
- ✓Khi bạn muốn xem agent nào được khuyến nghị cho một tác vụ chạy nền.
- ✓Khi bạn cần số liệu hiệu năng cho các cặp worker và agent.
- ✓Khi bạn muốn hiểu cách tác vụ được chuyển đến các chuyên gia.
Liên kết skill
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/worker-integration/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cho tôi biết agent nào xử lý trigger optimize và chúng đã hoạt động ra sao cho đến nay?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tra cứu ánh xạ của một trigger, kiểm tra số liệu đã ghi lại và hiển thị các agent chính, phương án dự phòng và các bước của pipeline.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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"]
}
}
}
Câu hỏi thường gặp
Trigger là gì?
Trigger là một từ khóa hoặc sự kiện khởi động một tác vụ worker chạy nền, như optimize hoặc audit.
Hệ thống có tự học agent nào tốt nhất không?
Skill nói rằng hệ thống dùng lịch sử thực thi để cải thiện việc chọn agent.
Tôi xem số liệu ở đâu?
Skill có các lệnh để xem số liệu và thống kê tích hợp.
Chi tiết
Mô tả gốc của tác giả
Worker-Agent integration for intelligent task dispatch and performance tracking
repo: ruvnet/ruflo
Độ phổ biến
- Sao GitHub
- 81k
- Vị trí xếp hạng
- #1541
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-adaptive-coordinator
81kGiúp agent của bạn chia và cân bằng lại một nhóm agent AI khi khối lượng công việc thay đổi, chọn bố cục phù hợp với tác vụ.
agent-agent
81kDạy agent của bạn biến một mục tiêu lớn thành kế hoạch hành động có thứ tự, và lập lại kế hoạch khi điều kiện thay đổi.
agent-agentic-payments
81kGiúp agent của bạn quản lý ủy quyền chi tiêu cho mua sắm bằng AI, với hạn mức chi, khung thời gian, quy tắc người bán và phê duyệt có chữ ký.
agent-analyze-code-quality
81kGiúp agent của bạn rà soát chất lượng mã, tìm code smell, nợ kỹ thuật và gợi ý tái cấu trúc mà không thay đổi các file.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.