Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
Skills/DevOps & CI/CD
hoangsonww avatar

Anomaly Alert

hoangsonww/claude-code-agent-monitor

This pulls session data from your local Agent Monitor instance and flags statistical outliers across cost, duration, errors, tokens, and behavior patterns. It calculates baselines from your last 500 sessions, then surfaces things like sessions costing 2σ above mean, cache miss spikes, unusual tool combinations, or error rate jumps. You get a severity-coded report with observed versus expected ranges. Honestly most useful after you've accumulated enough session history for the statistics to mean something, otherwise you're just getting noise from a sparse baseline. The configurable sensitivity levels (strict/normal/relaxed) help once you know what normal looks like for your workflows.

GitHub stars
455
last updated
Jun 11, 2026
View on GitHubSave

Install

$ npx -y skills add hoangsonww/claude-code-agent-monitor --skill anomaly-alert --agent claude-code

Installs into .claude/skills of the current project.

Files

Anomaly Alert

Detect anomalous sessions in Claude Code Agent Monitor data.

Input

The user provides: $ARGUMENTS

This may be:

  • "all" or empty (default: check all anomaly types)
  • "cost" for cost anomalies only
  • "duration" for duration anomalies only
  • "errors" for error rate anomalies only
  • A sensitivity level: "strict" (1σ), "normal" (2σ), "relaxed" (3σ)

Procedure

  1. Fetch baseline data from http://localhost:4820:

    • GET /api/sessions?limit=500 — historical sessions for baseline
    • GET /api/analytics — aggregated metrics
    • GET /api/pricing/cost — cost data per session
  2. Compute baselines for each metric:

    • Mean, median, standard deviation
    • P25, P75, P90, P95, P99 percentiles
    • Interquartile range (IQR) for robust outlier detection
  3. Detect anomalies using statistical thresholds:

    Cost Anomalies

    • Sessions costing >2σ above mean
    • Single sessions exceeding daily average
    • Sudden cost spikes (session-over-session increase >200%)

    Duration Anomalies

    • Sessions lasting >2σ above mean duration
    • Extremely short sessions (<1 minute) that still incur cost
    • Sessions with unusual active-vs-idle ratios

    Error Rate Anomalies

    • Sessions with error rates >2σ above baseline
    • New error types not seen in previous sessions
    • Sessions with >3 consecutive tool failures

    Behavioral Anomalies

    • Unusual tool combinations not seen before
    • Sessions with abnormally high compaction counts
    • Model switches mid-session (if unexpected)
    • Sessions with no tool usage (pure conversation)

    Token Anomalies

    • Input/output token ratio far from historical norm
    • Cache miss rate significantly higher than average
    • Token usage growing faster than session count
  4. Classify each anomaly:

    • 🔴 Critical: Likely indicates a real problem requiring attention
    • 🟡 Warning: Unusual but may be expected for certain tasks
    • 🔵 Info: Interesting deviation worth noting

Output Format

Present as an Anomaly Report:

═══════════════════════════════════════════════
  ANOMALY DETECTION REPORT
  Analyzed: N sessions | Baseline: last 30 days
  Anomalies found: N (🔴 N critical, 🟡 N warn, 🔵 N info)
═══════════════════════════════════════════════

For each anomaly:

  • Session ID and timestamp
  • Anomaly type and severity
  • Observed value vs expected range
  • Possible explanation
  • Recommended action (if any)
SKILL.md on GitHub

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Details

Repository
github.com/hoangsonww/claude-code-agent-monitor
Categories
DevOps & CI/CD, AI & Agent Building
License
MIT
First seen
Jun 11, 2026

More from hoangsonww/claude-code-agent-monitor

All 24
  • Cost Breakdown
  • Daily Standup
  • Dashboard Status
  • Data Export
  • Debug Live Issue
  • Health Check
  • Hook Diagnostics
  • Mcp Maintainer
  • Mcp Operations
  • Optimization Suggest
  • Pattern Detect
  • Productivity Score
  • Quick Stats
  • Release Guard
  • Repo Onboarding
  • Session Compare
  • Session Debug
  • Session Report
  • Ship Feature
  • Sprint Summary
  • Usage Trends
  • Weekly Report
  • Workflow Optimizer

Recommended

More DevOps & CI/CD
1hoangsonww avatarcost-breakdownhoangsonww/claude-code-agent-monitor>0installs
2hoangsonww avatardaily-standuphoangsonww/claude-code-agent-monitor>0installs
3hoangsonww avatardashboard-statushoangsonww/claude-code-agent-monitor>0installs
4hoangsonww avatardata-exporthoangsonww/claude-code-agent-monitor>0installs
5hoangsonww avatardebug-live-issuehoangsonww/claude-code-agent-monitorDebug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows, regressions, flaky behavior, or data inc0installs
6hoangsonww avatarhealth-checkhoangsonww/claude-code-agent-monitor>0installs