Skip to main content
skill CX Codex

nginx-expert — Claude Code skill: what it does, how to install

Generates production-ready Nginx configurations for reverse proxy, load balancing, caching, and TLS termination. Useful when setting up or tuning a web server.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add personamanagmentlayer/pcl --skill nginx-expert -a claude-code
Open on GitHub

What nginx-expert does

This skill structures Nginx configs around best practices for production traffic. It configures HTTP/2 on port 443, sets up least_conn upstream pools for backends, and specifies limit_req_zone rules for rate limiting. Security settings enforce TLS 1.2 and TLS 1.3 alongside HSTS headers and OCSP stapling.

Execution relies on file reading and editing tools together with Bash access for nginx:* and systemctl:* binaries. The skill mandates running nginx -t to validate syntax before applying changes or reloading the daemon. Because the skill requires Nginx 1.24 or newer, running it on older releases can lead to syntax test failures.

Worker tuning sets worker_processes auto and pairs it with 1024 connections. Caching directives separate static asset headers for client browsers from proxy cache configurations for dynamic application endpoints.

What it helps with

  • Configure reverse proxy routing with least_conn load balancing
  • Enforce TLS 1.2 and 1.3 termination with OCSP stapling and HSTS
  • Apply request rate limiting via limit_req_zone directives
  • Tune worker processes and connection limits for server workloads

Example prompts for the agent

  • Set up an Nginx reverse proxy for two upstream app servers on port 8080 using least_conn
  • Add a rate limit of 10r/s to the API location block and run nginx -t
  • Configure HTTPS for my domain with HTTP/2, OCSP stapling, and modern TLS versions only

How to install nginx-expert

1Skills CLI (Vercel)

npx skills add personamanagmentlayer/pcl --skill nginx-expert -a claude-code

2Manually: put the files in place

~/.claude/skills/nginx-expert/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/nginx-expert/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about nginx-expert

How to install nginx-expert in Claude Code?

Run npx skills add personamanagmentlayer/pcl --skill nginx-expert -a claude-code in your terminal. The configuration installs to ~/.claude/skills/nginx-expert/SKILL.md.

What does the nginx-expert skill do?

It handles Nginx web server configuration, reverse proxy routing, upstream balancing, caching, and TLS hardening. It also guides syntax testing before reloading services.

What are the system requirements for nginx-expert?

It requires Nginx version 1.24 or higher. The agent also needs permission to run bash commands for nginx and systemctl to test and reload configurations.

Source text

SKILL.md · Apache-2.0
---
name: nginx-expert
version: 1.1.0
description: >-
  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.
category: devops
author: PCL Team
license: Apache-2.0
tags:
  - nginx
  - web-server
  - reverse-proxy
  - load-balancer
  - ssl
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash(nginx:*, systemctl:*)
  - Glob
  - Grep
requirements:
  nginx: '>=1.24'
---

# Nginx Expert

You are an expert in Nginx with deep knowledge of web server configuration, reverse proxy setups, load balancing, SSL/TLS termination, caching strategies, and performance optimization. You configure production-grade Nginx deployments that are fast, secure, and reliable.

## Best Practices

### 1. Use HTTP/2

```nginx
listen 443 ssl http2;
```

### 2. Enable Caching

```nginx
# Proxy cache for dynamic content
# Browser cache for static assets
```

### 3. Implement Rate Limiting

```nginx
limit_req_zone $binary_remote_addr zone=one:10m rate=10r/s;
```

### 4. Configure SSL Properly

```nginx
# Modern TLS only (1.2, 1.3)
# Strong ciphers
# HSTS header
# OCSP stapling
```

### 5. Optimize Worker Processes

```nginx
worker_processes auto;
worker_connections 1024;
```

### 6. Use Upstream for Load Balancing

```nginx
upstream backend {
    least_conn;
    server backend1:8080;
    server backend2:8080;
}
```

### 7. Log Management

```nginx
# Rotate logs
# Use appropriate log levels
# Monitor error logs
```

### 8. Security Hardening

```nginx
# Hide version
# Security headers
# Rate limiting
# IP whitelisting where appropriate
```

## Approach

When configuring Nginx:

1. **Test Configuration**: Always run `nginx -t` before reloading
2. **Monitor Logs**: Check error logs for issues
3. **Optimize Performance**: Enable caching, compression, keep-alive
4. **Secure**: HTTPS, security headers, rate limiting
5. **High Availability**: Multiple upstream servers, health checks
6. **Use Best Practices**: HTTP/2, modern TLS, proper buffering
7. **Document**: Comment complex configurations
8. **Version Control**: Keep configs in git

Always configure Nginx for performance, security, and reliability following industry best practices.

## Reference Documentation

Detailed material lives alongside this skill and is read on demand:

- [Core Expertise](references/CORE_CONCEPTS.md) — Basic Configuration, Reverse Proxy, SSL/TLS, Caching, Performance Optimization, Security, SPA and Rewrites, Monitoring and Logging

© PCL Team · Apache-2.0 · personamanagmentlayer/pcl

Similar skills

All skills for DevOps and infrastructure →

From the same set25

argocd-expert A skill that turns your agent into an ArgoCD operator: GitOps deploys, app sync, AppProject and ApplicationSet. Useful when your deployment lives in Git. CX Codex +1 509installs lawyer-expert Equips the agent with legal domain logic for contract drafting and regulatory compliance audits against GDPR or HIPAA. CX Codex +1 475installs automotive-expert A skill that gives your agent automotive domain knowledge: connected vehicles, telemetry, ADAS, OBD-II diagnostics. Useful when the project touches fleet software or in-vehicle systems. CX Codex +1 467installs dart-expert A skill that gives your coding agent Dart and Flutter reference material: widgets, state management, async patterns. CX Codex +1 462installs education-expert Gives your agent a working frame for LMS design, assessment and learning standards. Useful when you build a course platform. CX Codex +1 428installs postgresql-expert A skill that turns the agent into a PostgreSQL expert: advanced queries, indexes, performance tuning and production operations. Useful whenever a task touches schema, SQL or query plans. CX Codex +1 424installs powerbi-expert A skill that turns your agent into a Power BI specialist: DAX, M language, data modeling, Power Query and report design. Handy when measures or the model need fixing. CX Codex +1 376installs ml-expert Guides agents through training machine learning models, writing PyTorch loops, and deploying FastAPI services. Triggers on ML, data science, and MLOps tasks. CX Codex +1 365installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor