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/github.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/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 nginx-caddy

Your own site · 80×15
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/nginx-caddy"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/nginx-caddy.svg" alt="Reviewed on agentmods" width="80" 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.5 $0.00018 $0.00515
Sonnet 5.5 $0.00009 $0.00258
Haiku 4.5 $0.00005 $0.00129

Measured 2mo ago against content hash 51fe3a95c1bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 2mo 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. 2mo 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 5mo ago), licensed MIT. It adds 46 tokens to every session and 1,288 once invoked, about $0.0002 per session on Opus 5.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

nginx-caddy compared with skills from other repositories

nginx-caddy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nginx-caddyJansenAnalytics/claudexSkill55mo agoMITB46Claude Code, Codex
nginx-docspledgeandgrow/pledge-skillsSkill114mo agoMITA39Claude Code, Codex
acmebytesagain/ai-skillsSkill167mo agononeA68Claude Code, Codex
domains-dnsericrisco/rsc-harnessSkill6915d agoMITA87Claude Code, Codex
performing-ssl-certificate-lifecycle-managementxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A45Claude Code, Codex
cis-aws-foundations-2.17CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A24Claude Code, Codex
dcs-cloudGGbond-bo/MemOmics-AgentSkill33todayMITA92Claude Code, Codex