agentsclimarketplace

Slo check

Skill hoangsonww/Claude-Code-Agent-Monitor/plugins/ccam-quality/skills/slo-check

πŸš€ A real-time monitoring dashboard for Claude Code, built with SQLite3, Node.js, Express, React, Vite, TailwindCSS, and WebSockets. It tracks sessions, agent activity, tool usage, and subagent orchestration, providing live analytics, a Kanban status board, status notifications, a cute buddy, and an interactive web UI/MacOS/Windows native app.

Install
npx -y skills add hoangsonww/Claude-Code-Agent-Monitor --skill slo-check

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Define and check simple service-level objectives for Claude Code from Agent Monitor data β€” session completion rate, tool success rate (PostToolUse/PreToolUse), and error rate (APIError/total) β€” then compare each to its target and report the error budget remaining. Use when reporting reliability or when someone asks "are we meeting our SLOs?".

SKILL.md

3.0 KB, as published. Nobody here has run it

SLO Check

Turn raw event counts into a clear SLO scorecard with error-budget accounting.

Input

The user provides: $ARGUMENTS

This may be:

  • empty β€” use the default SLO targets below over all available data
  • targets like "completion=95 success=99 error=1" β€” override the defaults (percentages)
  • a window like "last 7d" or "today" β€” restrict the measurement period

Default SLO targets: completion rate β‰₯ 95%, tool success rate β‰₯ 99%, error rate ≀ 1%.

Data Sources

EndpointReturns
GET /api/analyticsevent_types (PreToolUse, PostToolUse, APIError counts), sessions_by_status, daily_events (365d), daily_sessions (365d) β€” the raw numerators/denominators for every SLI
GET /api/statstotal_sessions, total_events, events_today, sessions_by_status β€” fleet totals and recency
GET /api/events?session_id=XPer-session stream β€” drill into the sessions that breach an SLO

Report Sections

1. Service Level Indicators (SLIs)

Compute each SLI from GET /api/analytics / GET /api/stats:

  • Completion rate = completed sessions / total sessions (from sessions_by_status; count active/running as in-flight, exclude them from the denominator if still open).
  • Tool success rate = PostToolUse / PreToolUse (capped at 100%).
  • Error rate = APIError / total_events. Within a window, derive the numerators/denominators from daily_events / daily_sessions.

2. SLO Scorecard

For each SLI, compare to its target and mark MET βœ… or BREACHED ❌.

3. Error Budget

For each objective, report the error budget and how much remains:

  • Budget = 1 βˆ’ target (e.g., 1% for a 99% target).
  • For "higher-is-better" SLOs (completion, success): remaining = (observed βˆ’ target) / (1 βˆ’ target).
  • For "lower-is-better" SLOs (error rate): remaining = (target βˆ’ observed) / target.
  • A negative result means the budget is exhausted β€” report how far over (e.g., "2.7Γ— over budget").

4. Breach Drill-Down

For any breached SLO, list the sessions contributing most to the breach (most failed tools or most APIErrors) via GET /api/events?session_id=X.

Output

  • A Markdown scorecard table: SLI | observed | target | status | error budget remaining.
  • Rates as percentages to 2 decimals; any currency in USD to 4 decimals.
  • Cite exact counts and session_id values β€” never fabricate numerators or denominators.
  • End with the SLO most at risk and the single action that would recover the most budget.
  • Read-only: only report what the API returns. If curl cannot reach http://localhost:4820, tell the user to start the dashboard with npm start from the repo root.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.