nginx

nginx is a skill for Claude Code, Codex from G1Joshi/Agent-Skills. It costs 44 tokens per session (1,611 once invoked), scanned B, original, MIT.

A guide to Nginx, software that serves web files and forwards web requests to application servers.

In plain words
What is it for?
Use it to host static websites, act as a reverse proxy or load balancer, and route traffic to services such as Node.js or Python apps.
Why use it?
It provides one place to handle HTTPS, traffic distribution, caching, and connections to backend applications.

Skill for Claude CodeCodex

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

Good fit Use it to host static websites, act as a reverse proxy or load balancer, and route traffic to services such as Node.js or Python apps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/g1joshi/agent-skills/nginx
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add G1Joshi/Agent-Skills --skill nginx
Clone the repo
git clone --depth 1 https://github.com/G1Joshi/Agent-Skills

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/nginx"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/nginx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,611 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00044 $0.01611
Opus 5.5 $0.00018 $0.00644
Sonnet 5.5 $0.00009 $0.00322
Haiku 4.5 $0.00004 $0.00161

Measured 2mo ago against content hash ce0538eab03c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

nginx scanned grade B with 1 finding 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.

| `nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)` | Another web server process already listening on port 80. | Find conflicting process: `sudo lsof -i :80` and stop it. |
skills/devops/nginx/SKILL.md · 205 lines

How it starts

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

Nginx

Nginx is a high-performance HTTP server, reverse proxy, and load balancer known for its asynchronous event-driven architecture and native HTTP/3 support.

When to Use

  • High-Performance HTTP Reverse Proxy & Web Server: Serving millions of requests per second with an asynchronous event-driven architecture.
  • SSL/TLS Termination & HTTP/2/HTTP/3: Offloading cryptographic handshakes and managing Let's Encrypt certificates.
  • Upstream Load Balancing & Microservice Routing: Distributing traffic across backend clusters with keepalive connection pools.
  • Rate Limiting & DDoS Defense: Enforcing token-bucket rate limits (limit_req_zone) per IP address.

Quick Start

# nginx.conf
server {
    listen 443 quic reuseport;
    listen 443 ssl;
    http2 on;

    server_name example.com;
    ssl_certificate cert.pem;
    ssl_certificate_key key.pem;

    location / {
        proxy_pass http://localhost:3000;
        add_header Alt-Svc 'h3=":443"; ma=86400';
    }
}

Core Concepts

Hardened Reverse Proxy Configuration with HTTP/2 and Upstream Keepalive

Production server configuration with security headers:

# /etc/nginx/nginx.conf
user nginx;
worker_processes auto;
worker_rlimit_nofile 65535;

events {
    worker_connections 8192;
    use epoll;
    multi_accept on;
}

http {
    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    # Performance optimizations
    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;

    # Rate limiting zone: 10MB memory, 50 requests/second per IP
    limit_req_zone $binary_remote_addr zone=api_limit:10m rate=50r/s;

    upstream backend_nodes {
        server 10.0.1.10:8080 max_fails=3 fail_timeout=10s;
        server 10.0.1.11:8080 max_fails=3 fail_timeout=10s;
        keepalive 32; # Cache up to 32 idle connections to backends
    }

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

        ssl_certificate /etc/letsencrypt/live/api.example.com/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/api.example.com/privkey.pem;
        ssl_protocols TLSv1.2 TLSv1.3;
        ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256;
        ssl_prefer_server_ciphers off;

        # Security Headers
        add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
        add_header X-Frame-Options "DENY" always;
        add_header X-Content-Type-Options "nosniff" always;

        location / {
            limit_req zone=api_limit burst=20 nodelay;

            proxy_pass http://backend_nodes;
            proxy_http_version 1.1;
            proxy_set_header Connection ""; # Required for upstream keepalive
            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;

            proxy_connect_timeout 5s;
            proxy_read_timeout 60s;
        }
    }
}

Read the full file on GitHub · 205 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 Changed · +5 lines ce0538eab03c
  2. 2mo ago Changed · +135 lines · +22 tokens per session scan A → B 8d4897277036
  3. 3mo ago First seen · 65 lines · 22 tokens per session scan A 7507d197a219

Subscribe to this mod's changes

nginx is a skill published in the GitHub repository G1Joshi/Agent-Skills (16 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 1,611 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

nginx compared with skills from other repositories

nginx next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nginxG1Joshi/Agent-SkillsSkill162mo agoMITB44Claude Code, Codex
api-and-interface-designaddyosmani/agent-skillsSkill122k9d agoMITA49Claude Code
api-designDevelopersGlobal/ai-agent-skillsSkill2218d agoMITA34Claude Code, Codex
awesome-performance-auditkhasky/awesome-agent-skillsSkill465d agoMITA52Claude Code
awesome-error-standardskhasky/awesome-agent-skillsSkill465d agoMITA46Claude Code
awesome-api-designkhasky/awesome-agent-skillsSkill465d agoMITA40Claude Code
api-and-interface-designvinvcn/addyosmani-agent-skills-zhSkill601mo agoMITA51Claude Code