debug-live-issue
Debug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows, regressions, flaky behavior, or data…
Identify stale and empty Claude Code sessions in the Agent Monitor and explain the cleanup endpoint (POST /api/settings/cleanup), always showing the exact list of what WOULD be removed before anything is deleted. Cleanup permanently deletes data, so this skill previews first and
$ npx -y skills add hoangsonww/Claude-Code-Agent-Monitor --skill session-cleanup --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/session-cleanupContext preview
The summary Claude sees to decide when to auto-load this skill.
Identify stale and empty Claude Code sessions in the Agent Monitor and explain the cleanup endpoint (POST /api/settings/cleanup), always showing the exact list of what WOULD be removed before anything is deleted. Cleanup permanently deletes data, so this skill previews first and
name: session-cleanup description: > Identify stale and empty Claude Code sessions in the Agent Monitor and explain the cleanup endpoint (POST /api/settings/cleanup), always showing the exact list of what WOULD be removed before anything is deleted. Cleanup permanently deletes data, so this skill previews first and requires explicit user confirmation. Use when tidying the monitoring database.
Find prune-worthy sessions and explain cleanup — preview first, delete only on explicit confirmation.
The user provides: **$ARGUMENTS**
| Endpoint | Returns | |----------|---------| | `GET /api/sessions?limit=N` | session list: id, status, model, cwd, started_at, ended_at, cost, metadata (turn_count, total_turn_duration_ms) | | `GET /api/stats` | totals: total_sessions, active_sessions, total_events, events_today, sessions_by_status, agents_by_status | | `POST /api/settings/cleanup` | runs the cleanup routine and returns what was removed — DESTRUCTIVE, only after confirmation |
`GET /api/stats` — record total_sessions, sessions_by_status, total_events. This is the before-state to compare against.
`GET /api/sessions?limit=1000`. Flag sessions that are:
did anything).
threshold (default 24h), i.e. never cleanly stopped.
List every candidate with the reason it qualifies. State the total count and confirm that **nothing has been deleted yet**.
Describe `POST /api/settings/cleanup`: it prunes empty / orphaned sessions and their dangling events server-side and returns a summary of removed rows. Make clear this is **permanent** and **not reversible** from the dashboard.
If — and only if — `$ARGUMENTS` is `confirm` (or the user has explicitly approved this run), call `POST /api/settings/cleanup`, then re-read `/api/stats` and report the before → after delta. Otherwise stop after the preview and tell the user to re-run with `confirm`.
A preview Markdown table: `id (short) | status | reason | cwd basename | started_at | cost`, then a one-line count and the explicit "nothing deleted — re-run with `confirm` to proceed" notice. On a confirmed run, add a before → after summary using ▲/▼ on the counts. Currency as USD to 4 decimal places.
documented endpoint.
user in this turn — previewing is the default.
endpoint; cleanup of stale/empty sessions only.
the repo root.
🚀 A real-time monitoring dashboard for Claude Code & Codex, built with SQLite3, Node.js, Express, React, Vite, TailwindCSS, & WebSockets. It tracks sessions, agent activity, tool usage, and subagent orchestration, providing live analytics, a Kanban status board, status notifications, a cute buddy, & an interactive web UI/MacOS/Windows native app.
Repo: hoangsonww/Claude-Code-Agent-Monitor
Debug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows, regressions, flaky behavior, or data…
MANDATORY for every coding agent (Claude Code, Codex, or any other) on every change-set — every applicable source file the agent creates or updates MUST start…
MANDATORY for every coding agent and contributor touching localized content — keep all five localization surfaces (dashboard UI keys, wiki page, mirrored…
Operate and maintain the local MCP server for this project. Use when creating MCP host config, troubleshooting tool connectivity, modifying tool domains, or…
Push the current working tree directly to a GitHub PR whose head lives on a **fork**, without creating a new branch and without pushing to `origin` (which is…
Onboard quickly to this repository. Use when asked to understand architecture, locate ownership, choose the right module, or identify the correct commands and…