Skills for Real Engineers. Straight from my .agents directory.
cost-alert
Agent skill fromhoangsonww/Claude-Code-Agent-Monitor
Review the configured cost alert rules and the alerts currently fired on the Agent Monitor dashboard, then explain exactly what tripped and why. Uses /api/alerts (fired feed) and /api/alerts/rules (definitions). Use when checking spend alerts or asking why a cost alarm went off.
How to install cost-alert
npx skills add hoangsonww/Claude-Code-Agent-Monitor# or add only this skill to Claude Code: copy the folder
plugins/ccam-cost-guard/skills/cost-alert/
# into
~/.claude/skills/cost-alert/ (all projects)
.claude/skills/cost-alert/ (one project)
1# Cost Alert23Audit the spend guardrails: which rules exist, which have fired, and what tripped them.45## Input67The user provides: **$ARGUMENTS**89This may be empty (review everything), `"unacked"` (only unacknowledged alerts),10or a rule name to focus on.1112## Data Sources1314| Endpoint | Returns |15|----------|---------|16| `GET /api/alerts/rules` | `{ rules: [{ id, name, rule_type, config, enabled, cooldown_seconds }] }` — the guardrail definitions |17| `GET /api/alerts` | `{ alerts: [{ id, rule_id, rule_name, rule_type, session_id, agent_id, message, details, triggered_at, acked }], total, unacked, limit, offset }` — the fired-alert feed, newest first. `?unacked=true` filters to unacknowledged |1819## What the rule types mean2021| `rule_type` | `config` | Fires when |22|-------------|----------|------------|23| `token_threshold` | `{ total_tokens }` | A session's cumulative tokens (input + output + cache_read + cache_write) cross the ceiling — the spend-relevant guardrail |24| `event_pattern` | `{ event_type?, tool_name?, summary_contains?, count?, window_minutes? }` | Matching events reach `count` within the window |25| `inactivity` | `{ minutes }` | An active session goes quiet for `minutes` |26| `status_duration` | `{ status, minutes }` | An agent is stuck in `working`/`waiting` for `minutes` |27…
Excerpt shown under the repository's MIT license.
More skills in Claude-Code-Agent-Monitor
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
