LeoYeAI/agent-master-skills / skills/agent-comm-hub
agent-comm-hub
Flagged多智能体协同通信基础设施——基于 MCP+SSE 的实时消息、任务调度、记忆共享与进化引擎。支持 WorkBuddy、Hermes、QClaw 及任意 MCP 兼容 Agent 接入。53 个 MCP 工具、4 级权限、零外部依赖 Python SDK。触发词:agent通信、智能体通信、hub通信、多智能体、跨agent通信、任务调度、assign_task、send_message、hermes通信、workbuddy通信、agent hub、通信hub、mcp通信、记忆共享、进化引擎、策略共享、经验分享、共享记忆,共同进化
src/metrics.d.ts
View on GitHub/**
* metrics.ts — Prometheus 兼容指标(Phase 5b / Phase 3.1)
* 零依赖实现,内存存储
*
* 指标:
* - mcp_calls_total{tool_name, status, role} : Counter
* - active_sse_connections : Gauge
* - message_delivery_total{status} : Counter
* - http_requests_total{method, path, status} : Counter
* - http_request_duration_ms{method, path} : Histogram (简易)
* - db_query_duration_ms{operation} : Histogram (简易)
* ──────────────────────────────── Phase 3.1 新增 ────────────────────────────────
* - hub_agents_online : Gauge
* - hub_messages_total{status} : Gauge
* - hub_trust_scores{agent_id} : Gauge
*/
import type { Database as DatabaseType } from "better-sqlite3";
export declare function incrementCounter(name: string, labels?: Record<string, string>, value?: number): void;
export declare function setGauge(name: string, value: number): void;
export declare function incrementGauge(name: string, value?: number): void;
export declare function decrementGauge(name: string, value?: number): void;
export declare function observeHistogram(name: string, valueMs: number, labels?: Record<string, string>): void;
export declare function getMetricsOutput(): string;
export declare function incrementMcpCall(toolName: string, status: "success" | "error" | "denied", role: string): void;
export declare function trackHttpRequest(method: string, path: string, statusCode: number, durationMs: number): void;
export declare function trackDbQuery(operation: string, durationMs: number): void;
/**
* 从 SQLite 数据库采集 Hub 层指标,返回 Prometheus 文本格式字符串。
* 由 server.ts 在 /metrics 路由中调用。
*/
export declare function collectHubMetrics(db: DatabaseType): string;
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |