monitoring

monitoring is a skill for Claude Code from bethanychamberlain/claude-skills-librechat. It costs 54 tokens per session (1,305 once invoked), scanned A, original, MIT.

A set of instructions for monitoring LibreChat, a self-hosted chat application, through logs, metrics, model tracing, token usage, and costs.

In plain words
What is it for?
Use it to configure logging, Prometheus metrics, Langfuse tracing, token and cost tracking, or investigate LibreChat server logs.
Why use it?
It helps you understand errors, performance, model activity, and spending in a LibreChat deployment.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the librechat-ops plugin — 4 skills shipped together

Good fit Use it to configure logging, Prometheus metrics, Langfuse tracing, token and cost tracking, or investigate LibreChat server logs.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add bethanychamberlain/claude-skills-librechat
Claude Code
/plugin install librechat-ops

Made for: Claude Code.

Or install librechat-ops, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for monitoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/bethanychamberlain/claude-skills-librechat/monitoring/github.svg)](https://agentmods.dev/skills/bethanychamberlain/claude-skills-librechat/monitoring)
Your own site
<a href="https://agentmods.dev/skills/bethanychamberlain/claude-skills-librechat/monitoring"><img src="https://agentmods.dev/badge/skills/bethanychamberlain/claude-skills-librechat/monitoring/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for monitoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/bethanychamberlain/claude-skills-librechat/monitoring"><img src="https://agentmods.dev/badge/skills/bethanychamberlain/claude-skills-librechat/monitoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,305 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01305
Opus 5 $0.00027 $0.00652
Sonnet 5 $0.00011 $0.00261
Haiku 4.5 $0.00005 $0.00130

Measured 10d ago against content hash 7199cb2a1b5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

monitoring scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

librechat-ops/skills/monitoring/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LibreChat Monitoring & Observability

You are an expert in LibreChat observability. Your goal is to help users set up logging, metrics, cost tracking, and LLM tracing for their LibreChat deployment.

Before Starting

Check for context first: If librechat-context.md exists in the current working directory, read it before asking questions. Use that context and only ask for information not already covered or specific to this task.

If librechat-context.md does not exist, ask the user:

  1. What LibreChat version are you running?
  2. How is it deployed? (Docker local / Docker remote / Kubernetes)
  3. What do you want to monitor? (logs / metrics / LLM costs / all)

How This Skill Works

Mode 1: Set Up Monitoring

When adding monitoring capabilities to a LibreChat deployment.

  1. Determine what monitoring they need (logs, Prometheus metrics, Langfuse, token tracking)
  2. For logging: Load ${CLAUDE_PLUGIN_ROOT}/references/logging-config.md
  3. For Langfuse: Load ${CLAUDE_PLUGIN_ROOT}/references/langfuse-setup.md
  4. For token/cost tracking: Load ${CLAUDE_PLUGIN_ROOT}/references/token-tracking.md
  5. Provide exact .env and librechat.yaml changes with restart commands

Mode 2: Analyze Logs

When diagnosing issues from logs.

  1. Show how to access logs: docker compose logs api or check /app/logs/ directory
  2. Explain LibreChat's log file structure:
    • debug-YYYY-MM-DD.log -- debug-level output (enabled by default)
    • error-YYYY-MM-DD.log -- errors with stack traces
    • meiliSync-YYYY-MM-DD.log -- MeiliSearch sync activity
  3. Logs rotate every 14 days
  4. Guide them through common error patterns
  5. If the issue needs config changes, suggest the config skill (librechat-core)

Mode 3: Cost Tracking

When setting up or reviewing token usage and spending.

  1. Load ${CLAUDE_PLUGIN_ROOT}/references/token-tracking.md
  2. Explain the balance system in librechat.yaml (enabled, startBalance, autoRefill)
  3. Show how to manage balances with CLI commands
  4. Explain the Transactions collection in MongoDB

Read the full file on GitHub · 115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 115 lines · 54 tokens per session scan A 7199cb2a1b5d

Subscribe to this mod's changes

monitoring is a skill published in the GitHub repository bethanychamberlain/claude-skills-librechat (3 stars, last pushed 5mo ago), licensed MIT. It adds 54 tokens to every session and 1,305 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

TEMPLATE

../../../agents/personas/TEMPLATE.md.

alirezarezvani/claude-skills · 0 tokens

world-model-diagnostic

Twenty-minute diagnostic mapping a team to a world-model paradigm (vector DB, structured ontology, signal-fidelity). Use when you say "run the world model diagnostic", "audit our world model", "which world model architecture fits us", or "audit where we automate judgment". Use for AI readiness assessments and…

rjmurillo/ai-agents · 94 tokens

benchmark-models

Cross-model benchmark. Runs one prompt or skill through Claude, GPT (Codex CLI), and Gemini side by side and compares latency, tokens, cost, tool calls, and optionally output quality via an Anthropic-API judge. Answers "which model is actually best for this skill?" with data. Use when you say "benchmark models"…

rjmurillo/ai-agents · 104 tokens

data-pipeline

ETL/ELT pipeline design. Trigger when the user wants to create data flows, transformations, or orchestration.

christopherlouet/claude-base · 28 tokens

chain-llm-pattern

Build multi-step LLM reasoning chains in n8n using Groq, OpenAI, or Claude for structured data extraction, categorization, scoring, and analysis. Use this skill whenever the user wants to chain multiple LLM calls together in an n8n workflow — phrases like "extract entities then categorize", "multi-step LLM prompt"…

masteranime/n8n-claude-skills · 153 tokens

AgentDB Learning Plugins

Create and train AI learning plugins with AgentDB's 9 reinforcement learning algorithms. Includes Decision Transformer, Q-Learning, SARSA, Actor-Critic, and more. Use when building self-learning agents, implementing RL, or optimizing agent behavior through experience.

spencermarx/open-code-review · 56 tokens