Claude Skill

endpoint-probe

Probes each major Agent Monitor API route — /api/stats, /api/analytics, /api/sessions, /api/pricing/cost, /api/workflows/runs, /api/cc-config/overview — and reports each one's HTTP status, latency, and response shape, flagging which are reachable. Use to verify a dashboard instal

LLM Mart · 0 points · 10 views 0 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download hoangsonww-claude-code-agent-monitor-plugins_ccam-dashboard_skills_endpoint-probe-83d4df5.zip · 1 KB
Part of hoangsonww/claude-code-agent-monitor — 86 skills

Install

skills CLI npx skills add https://github.com/hoangsonww/Claude-Code-Agent-Monitor/tree/master/plugins/ccam-dashboard/skills/endpoint-probe
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install hoangsonww-claude-code-agent-monitor@llmmart
Git git clone https://github.com/hoangsonww/Claude-Code-Agent-Monitor.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole hoangsonww/claude-code-agent-monitor collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Endpoint Probe

Smoke-test the dashboard's main API surface by hitting each major route once and reporting whether it responds and what shape it returns.

Input

The user provides: $ARGUMENTS

Options: empty (default: probe all routes below), or a substring to filter which routes are probed (e.g. pricing probes only matching routes).

Data Sources

Endpoint Returns
GET /api/stats { total_sessions, active_sessions, active_agents, total_agents, total_events, events_today, ws_connections, agents_by_status, sessions_by_status }
GET /api/analytics { overview, tokens, tool_usage, daily_events, daily_sessions, agent_types, event_types, avg_events_per_session, total_subagents, sessions_by_status, agents_by_status }
GET /api/sessions Session list; each: id, status, model, cwd, started_at, ended_at, cost, metadata
GET /api/pricing/cost { total_cost, breakdown:[{ model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost, matched_rule }] }
GET /api/workflows/runs Workflow-tool run journals (fleets)
GET /api/cc-config/overview Claude Code config explorer overview (skills, agents, commands, plugins, mcp, hooks, etc.)

Method

For each route, issue a single GET against http://localhost:4820<path> with a short timeout, capturing the HTTP status code, round-trip latency, and the top-level shape of the JSON body (object keys, or array length). A route counts as reachable when it returns a 2xx with parseable JSON.

If /api/stats itself fails to connect, the dashboard is not running — stop and tell the user to start it with npm start (or npm run dev) from the repo root.

Report Sections

1. Probe Matrix

A Markdown table — one row per route — with columns: endpoint, status (HTTP code), latency, reachable (✅/❌), shape (e.g. object: {total_cost, breakdown[…]} or array[N]).

2. Reachability Summary

Count of reachable vs total. Name any unreachable or non-2xx routes explicitly.

3. Verdict

One line: install looks healthy (all reachable) or partially wired (list the gaps and the most likely cause — server not running, route disabled, or empty data).

Output

  • Compact Markdown; the probe matrix is the centerpiece.
  • Cite the real status code, latency, and observed shape per route — never assume.
  • Report shape from what actually came back; if a route returns an empty array or object, say so rather than inferring fields.
  • Keep currency, where shown, to 4 decimals (e.g. total_cost: $0.0000).
Files (claude-code-agent-monitor)
  • agents
    • openai.yaml 266 B
      interface:
        display_name: "Endpoint Probe"
        short_description: "Probes each major Agent Monitor API route — /api/stats,..."
        default_prompt: "Use $endpoint-probe to inspect CCAM data and complete this workflow safely."
      policy:
        allow_implicit_invocation: true
      
  • SKILL.md 2.9 KB
    ---
    name: endpoint-probe
    description: >
      Probes each major Agent Monitor API route — /api/stats, /api/analytics,
      /api/sessions, /api/pricing/cost, /api/workflows/runs, /api/cc-config/overview
      — and reports each one's HTTP status, latency, and response shape, flagging
      which are reachable. Use to verify a dashboard install is wired up correctly.
    ---
    
    # Endpoint Probe
    
    Smoke-test the dashboard's main API surface by hitting each major route once and
    reporting whether it responds and what shape it returns.
    
    ## Input
    
    The user provides: **$ARGUMENTS**
    
    Options: empty (default: probe all routes below), or a substring to filter which
    routes are probed (e.g. `pricing` probes only matching routes).
    
    ## Data Sources
    
    | Endpoint | Returns |
    |----------|---------|
    | `GET /api/stats` | `{ total_sessions, active_sessions, active_agents, total_agents, total_events, events_today, ws_connections, agents_by_status, sessions_by_status }` |
    | `GET /api/analytics` | `{ overview, tokens, tool_usage, daily_events, daily_sessions, agent_types, event_types, avg_events_per_session, total_subagents, sessions_by_status, agents_by_status }` |
    | `GET /api/sessions` | Session list; each: `id, status, model, cwd, started_at, ended_at, cost, metadata` |
    | `GET /api/pricing/cost` | `{ total_cost, breakdown:[{ model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost, matched_rule }] }` |
    | `GET /api/workflows/runs` | Workflow-tool run journals (fleets) |
    | `GET /api/cc-config/overview` | Claude Code config explorer overview (skills, agents, commands, plugins, mcp, hooks, etc.) |
    
    ## Method
    
    For each route, issue a single `GET` against `http://localhost:4820<path>` with a
    short timeout, capturing the HTTP status code, round-trip latency, and the
    top-level shape of the JSON body (object keys, or array length). A route counts
    as reachable when it returns a 2xx with parseable JSON.
    
    If `/api/stats` itself fails to connect, the dashboard is not running — stop and
    tell the user to start it with `npm start` (or `npm run dev`) from the repo root.
    
    ## Report Sections
    
    ### 1. Probe Matrix
    A Markdown table — one row per route — with columns:
    `endpoint`, `status` (HTTP code), `latency`, `reachable` (✅/❌), `shape`
    (e.g. `object: {total_cost, breakdown[…]}` or `array[N]`).
    
    ### 2. Reachability Summary
    Count of reachable vs total. Name any unreachable or non-2xx routes explicitly.
    
    ### 3. Verdict
    One line: install looks healthy (all reachable) or partially wired (list the
    gaps and the most likely cause — server not running, route disabled, or empty data).
    
    ## Output
    
    - Compact Markdown; the probe matrix is the centerpiece.
    - Cite the real status code, latency, and observed shape per route — never assume.
    - Report shape from what actually came back; if a route returns an empty array or
      object, say so rather than inferring fields.
    - Keep currency, where shown, to 4 decimals (e.g. `total_cost: $0.0000`).
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related