nginx-caddy

nginx-caddy is a skill for Claude Code, Codex from JansenAnalytics/claudex. It costs 46 tokens per session (1,288 once invoked), scanned B, original, MIT.

A configuration guide and toolkit for Nginx and Caddy, servers commonly used to receive web traffic and forward it to applications. It covers reverse proxies, SSL/TLS certificates, load balancing, WebSockets, and static files.

In plain words
What is it for?
Use it to configure reverse proxies, Let's Encrypt certificates, WebSocket routes, load balancing, and static-file hosting.
Why use it?
It helps route domains to backend services and secure them with HTTPS without having to assemble the configuration from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/nginx-gen.sh <domain> <backend-port> [--ssl] [--websocket].

Good fit Use it to configure reverse proxies, Let's Encrypt certificates, WebSocket routes, load balancing, and static-file hosting.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/JansenAnalytics/claudex
agentmods
npx agentmods add skills/jansenanalytics/claudex/nginx-caddy

Made for: Claude Code, Codex.

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 nginx-caddy

README.md
[![agentmods](https://agentmods.dev/badge/skills/jansenanalytics/claudex/nginx-caddy.svg)](https://agentmods.dev/skills/jansenanalytics/claudex/nginx-caddy)
Your own site
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/nginx-caddy"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/nginx-caddy.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,288 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00046 $0.01288
Opus 5 $0.00023 $0.00644
Sonnet 5 $0.00009 $0.00258
Haiku 4.5 $0.00005 $0.00129

Measured 3d ago against content hash 51fe3a95c1bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade B, and why

nginx-caddy scanned grade B with 2 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 3d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo nginx -t

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
skills/nginx-caddy/SKILL.md · 235 lines

How it starts

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

Nginx & Caddy Skill

Configure Nginx or Caddy as reverse proxy with SSL.

Use When

  • Setting up reverse proxies for web services
  • Configuring SSL/TLS certificates (Let's Encrypt)
  • Routing domains to backend services
  • Load balancing or serving static files

Nginx Quick Reference

Common Commands

# Test config syntax
sudo nginx -t

# Reload (graceful)
sudo systemctl reload nginx

# View error log
sudo tail -f /var/log/nginx/error.log

# View access log
sudo tail -f /var/log/nginx/access.log

Reverse Proxy (with SSL via Certbot)

server {
    listen 80;
    server_name example.com;
    return 301 https://$server_name$request_uri;
}

server {
    listen 443 ssl http2;
    server_name example.com;

    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

WebSocket Proxy

location /ws {
    proxy_pass http://127.0.0.1:8080;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
}

Static Files

server {
    listen 80;
    server_name static.example.com;
    root /var/www/static;
    index index.html;

    location / {
        try_files $uri $uri/ =404;
    }

    # Cache static assets
    location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2)$ {
        expires 30d;
        add_header Cache-Control "public, immutable";
    }
}

SSL with Certbot

# Install
sudo apt install certbot python3-certbot-nginx

# Get cert + auto-configure nginx
sudo certbot --nginx -d example.com -d www.example.com

# Renew all certs
sudo certbot renew --dry-run

# Auto-renewal is installed via systemd timer
systemctl list-timers | grep certbot

Read the full file on GitHub · 235 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. 3d ago First seen · 235 lines · 46 tokens per session scan B 51fe3a95c1bd

Subscribe to this mod's changes

nginx-caddy is a skill published in the GitHub repository JansenAnalytics/claudex (5 stars, last pushed 2mo ago), licensed MIT. It adds 46 tokens to every session and 1,288 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

nginx-docs

NGINX 1.29.x — web server, reverse proxy, load balancing, HTTP/stream/mail modules, SSL, HTTP/2, HTTP/3.

pledgeandgrow/pledge-skills · 39 tokens

acme

ACME protocol and SSL/TLS certificate automation reference. Covers challenge types (HTTP-01, DNS-01, TLS-ALPN-01), major clients (certbot, acme.sh, lego, Caddy), certificate lifecycle management, Kubernetes cert-manager, Docker/Traefik integration, and security best practices.

bytesagain/ai-skills · 68 tokens

performing-ssl-certificate-lifecycle-management

SSL/TLS certificate lifecycle management encompasses the full process of requesting, issuing, deploying, monitoring, renewing, and revoking X.509 certificates. Poor certificate management is a leading.

xalgorix/xalgorix · 45 tokens

domains-dns

Use when pointing a domain at a host or fixing broken HTTPS — delegating nameservers, writing A/AAAA/CNAME/ALIAS/MX/TXT/CAA rows, apex vs www, standing up auto-renewing TLS, and cutting nameservers over without downtime. NOT inbox placement or warmup (that is email-deliverability), NOT what runs behind the name (that…

ericrisco/rsc-harness · 87 tokens

cis-aws-foundations-2.17

Ensure that all expired SSL/TLS certificates stored in AWS IAM are removed.

CyberStrikeus/CyberStrike · 24 tokens

nginx-expert

Expert-level Nginx configuration, reverse proxy, load balancing, SSL/TLS, caching, and performance tuning. Use when the user mentions web server, reverse proxy, load balancer, or SSL, or when the task involves Basic Configuration, SSL/TLS, Caching, or Performance Optimization.

personamanagmentlayer/pcl · 65 tokens