AgentSkillsCN

stats

展示 CYNIC 的遥测仪表盘,其中包含使用统计、延迟时间、摩擦损耗以及各类模式。当用户询问性能表现、使用统计、基准测试,或系统指标时,可运用此技能。

SKILL.md
--- frontmatter
name: stats
description: Display CYNIC telemetry dashboard with usage stats, latencies, frictions, and patterns. Use when asked about performance, usage statistics, benchmarks, or system metrics.
user-invocable: true

/stats - Telemetry Dashboard

"phi mesure tout, phi apprend de tout" - CYNIC

Execution

Run the telemetry dashboard script:

bash
node scripts/lib/telemetry-dashboard.mjs

Display the output directly to the user. The dashboard shows telemetry with ANSI colors.

What It Shows

  1. Session Stats: ID, uptime, action count
  2. Events by Category: LLM, judgment, memory, tool, session, etc.
  3. Latencies: Average, p95, p99 for key operations
  4. Frictions: Recent errors, failures, timeouts
  5. LLM Usage: Token counts, cache hits, average latency
  6. Judgments: Verdicts, Q-scores, confidence levels
  7. System: Memory, CPU usage

Dashboard Sections

Session Overview

MetricDescription
Session IDUnique identifier for current session
UptimeTime since session start
ActionsTotal actions performed

Events by Category

CategoryExamples
LLMToken usage, cache hits
JudgmentVerdicts, Q-scores
MemoryStore/retrieve operations
ToolTool calls (success/failure)
SessionStart, end, events
SystemMemory, CPU

Latency Metrics

MetricHealthy Range
Avg< 500ms
p95< 1500ms
p99< 3000ms

Friction Severity

SeverityDescription
LowMinor inconvenience
MediumNoticeable issue
HighSignificant problem
CriticalSystem failure

Data Sources

The telemetry collector gathers data from:

  • Hook executions (awaken, observe, sleep)
  • MCP tool calls
  • LLM API interactions
  • Error/friction events

CYNIC Voice

When presenting stats:

Normal: *sniff* Telemetry nominal. phi sees all.

High Friction: *concerned sniff* ${count} frictions detected. Review needed.

High Latency: *ears droop* Latency elevated. System under load.

See Also

  • /health - CYNIC system health
  • /status - Development status
  • /psy - Human psychology dashboard
  • /patterns - Detected patterns