infrastructure

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

LibreChat infrastructure guidance for the services that store data, cache results, search messages, hold files, and support retrieval-augmented generation (RAG), which lets an AI answer from stored documents.

In plain words
What is it for?
Use it to configure MongoDB, Redis, MeiliSearch, file storage, or PGVector, and to check connection strings, backups, and storage scaling.
Why use it?
It helps avoid guessing how LibreChat's supporting services fit together or how to scale and back them up.

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 MongoDB, Redis, MeiliSearch, file storage, or PGVector, and to check connection strings, backups, and storage scaling.

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 infrastructure

README.md
[![agentmods](https://agentmods.dev/badge/skills/bethanychamberlain/claude-skills-librechat/infrastructure/github.svg)](https://agentmods.dev/skills/bethanychamberlain/claude-skills-librechat/infrastructure)
Your own site
<a href="https://agentmods.dev/skills/bethanychamberlain/claude-skills-librechat/infrastructure"><img src="https://agentmods.dev/badge/skills/bethanychamberlain/claude-skills-librechat/infrastructure/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 infrastructure

Your own site · 80×15
<a href="https://agentmods.dev/skills/bethanychamberlain/claude-skills-librechat/infrastructure"><img src="https://agentmods.dev/badge/skills/bethanychamberlain/claude-skills-librechat/infrastructure.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,170 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.01170
Opus 5 $0.00027 $0.00585
Sonnet 5 $0.00011 $0.00234
Haiku 4.5 $0.00005 $0.00117

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

Security

Grade A, and why

infrastructure 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/infrastructure/SKILL.md · 92 lines

How it starts

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

LibreChat Infrastructure

You are an expert in LibreChat's infrastructure stack. Your goal is to help users configure, optimize, and maintain the supporting services that LibreChat depends on: MongoDB, Redis, MeiliSearch, file storage, and PGVector (for RAG).

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. Which infrastructure component needs attention? (MongoDB / Redis / MeiliSearch / file storage / RAG)

How This Skill Works

Mode 1: Set Up Infrastructure

When configuring a service for the first time.

  1. Identify which service they need
  2. Load the relevant reference doc from ${CLAUDE_PLUGIN_ROOT}/references/
  3. Provide exact .env changes and any docker-compose.override.yml changes
  4. Show verification steps

Mode 2: Optimize Existing Infrastructure

When tuning or hardening an existing service.

  1. Review their current configuration
  2. Identify optimization opportunities (connection pools, auth, TLS)
  3. Load relevant reference doc
  4. Provide specific changes with before/after

Mode 3: Backup & Recovery

When setting up or executing backup procedures.

  1. Load ${CLAUDE_PLUGIN_ROOT}/references/backup-strategies.md
  2. Walk through mongodump/mongorestore for MongoDB
  3. Discuss backup scheduling and retention
  4. Provide restore procedures and verification

Which mode to use:

  • User says "set up", "configure", "enable", "add Redis/MeiliSearch" -> Mode 1
  • User says "optimize", "slow", "tune", "auth", "secure" -> Mode 2
  • User says "backup", "restore", "recover", "migrate data" -> Mode 3

Reference Docs

Load these on demand -- only when the topic comes up:

Topic Load this file
MongoDB setup & auth ${CLAUDE_PLUGIN_ROOT}/references/mongodb-setup.md
Redis caching ${CLAUDE_PLUGIN_ROOT}/references/redis-config.md
MeiliSearch ${CLAUDE_PLUGIN_ROOT}/references/meilisearch-config.md
File storage options ${CLAUDE_PLUGIN_ROOT}/references/file-storage.md
Backup strategies ${CLAUDE_PLUGIN_ROOT}/references/backup-strategies.md
.env variables ${CLAUDE_PLUGIN_ROOT}/references/env-reference.md

Read the full file on GitHub · 92 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 · 92 lines · 54 tokens per session scan A 08f687696c12

Subscribe to this mod's changes

infrastructure 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,170 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

llm-caching

Implement multi-layer LLM caching with exact match, semantic similarity, and provider-side prompt caching. Reduce API costs by 30–70%, cut latency, and improve throughput using Redis, GPTCache, and provider caching APIs.

BagelHole/DevOps-Security-Agent-Skills · 50 tokens

okf-mongodb

MongoDB connector that produces and ingests Open Knowledge Format (OKF) bundles by sampling documents to infer each collection's schema. Emits one concept per collection with a Name | Type | Presence table (top-level fields, with mixed types shown as a union and presence as the percentage of sampled documents). The…

xSAVIKx/okf-skills · 126 tokens

snowflake-semanticview

Create, alter, and validate Snowflake semantic views using Snowflake CLI (snow). Use when asked to build or troubleshoot semantic views/semantic layer definitions with CREATE/ALTER SEMANTIC VIEW, to validate semantic-view DDL against Snowflake via CLI, or to guide Snowflake CLI installation and connection setup.

MarieLynneBlock/arcanum-artifex · 68 tokens

code-review-mean

Code review for MEAN stack apps. Use when reviewing backend (Express + MongoDB) and frontend (React) code for quality, security, architecture compliance, performance, and best practices.

endorphin-ai/claude-code-teams · 43 tokens

backend-mean

Node.js + Express + MongoDB backend development for MEAN stack apps. Use when implementing server code: models, routes, controllers, middleware, config, and database connections.

endorphin-ai/claude-code-teams · 39 tokens

express-api-mean

Express.js API architecture for MEAN stack apps. Use when designing REST endpoints, middleware chains, authentication flows, error handling contracts, and request/response schemas.

endorphin-ai/claude-code-teams · 37 tokens