Individual skill
nginx-c-module-perf
nginx C module performance optimization and reliability guidelines based on the official nginx development guide. This skill should be used when optimizing nginx C modules for throughput, latency, memory efficiency, and operational resilience. Triggers on tasks involving buffer optimization, connection tuning, shared memory contention, error recovery, timeout strategy, caching implementation, worker process tuning, or logging performance in nginx C modules.
skills/.experimental/nginx-c-module-perf/SKILL.md
Source commit cf93c57cac89d6fc3e4194686000411567f5caf3
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 5, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 222
- Repository last updated
- Aug 15, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- operations Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 8,108 bytesassets/templates/_template.mddoc · 691 bytesmetadata.jsonasset · 1,212 bytesreferences/_sections.mddoc · 1,897 bytesreferences/buf-avoid-copy.mddoc · 2,374 bytesreferences/buf-chain-reuse.mddoc · 2,132 bytesreferences/buf-coalesce-small.mddoc · 2,771 bytesreferences/buf-file-sendfile.mddoc · 2,968 bytesreferences/buf-recycled-flag.mddoc · 2,556 bytesreferences/buf-shadow-reference.mddoc · 2,416 bytesreferences/cache-conditional-store.mddoc · 3,682 bytesreferences/cache-key-hash.mddoc · 3,385 bytesreferences/cache-shm-lru.mddoc · 3,621 bytesreferences/cache-stampede-lock.mddoc · 3,566 bytesreferences/cache-ttl-atomic.mddoc · 2,782 bytesreferences/conn-close-linger.mddoc · 3,019 bytesreferences/conn-drain-pressure.mddoc · 3,542 bytesreferences/conn-prealloc-pool.mddoc · 3,729 bytesreferences/conn-reusable-queue.mddoc · 2,860 bytesreferences/conn-ssl-session-reuse.mddoc · 3,618 bytesreferences/conn-tcp-nodelay.mddoc · 2,620 bytesreferences/err-blocked-counter.mddoc · 2,852 bytesreferences/err-cache-errno.mddoc · 2,198 bytesreferences/err-connection-error-check.mddoc · 1,999 bytesreferences/err-fallback-response.mddoc · 2,504 bytesreferences/err-log-once-pattern.mddoc · 2,489 bytesreferences/err-resource-exhaustion.mddoc · 2,331 bytesreferences/lock-alloc-outside.mddoc · 3,393 bytesreferences/lock-atomic-counters.mddoc · 2,103 bytesreferences/lock-minimize-critical.mddoc · 3,316 bytesreferences/lock-per-worker-aggregate.mddoc · 2,619 bytesreferences/lock-rw-pattern.mddoc · 3,404 bytesreferences/lock-trylock-fallback.mddoc · 2,779 bytesreferences/log-action-string.mddoc · 3,111 bytesreferences/log-connection-context.mddoc · 3,080 bytesreferences/log-error-dedup.mddoc · 2,961 bytesreferences/log-level-guard.mddoc · 2,348 bytesreferences/log-shared-metrics.mddoc · 2,643 bytesreferences/timeout-backoff-reconnect.mddoc · 3,199 bytesreferences/timeout-client-body-limit.mddoc · 3,514 bytesreferences/timeout-retry-next-upstream.mddoc · 3,371 bytesreferences/timeout-upstream-phases.mddoc · 3,447 bytesreferences/worker-accept-mutex.mddoc · 3,134 bytesreferences/worker-connection-prealloc.mddoc · 3,501 bytesreferences/worker-cycle-conf.mddoc · 3,000 bytesreferences/worker-graceful-shutdown.mddoc · 3,276 bytesreferences/worker-single-process-debug.mddoc · 3,280 bytes
Read excerpt
# nginx.org C Module Performance & Reliability Best Practices
Comprehensive performance optimization and reliability guide for nginx C modules, derived from the official nginx development documentation and production engineering experience. Contains 43 rules across 8 categories, prioritized by impact to guide automated optimization and resilience improvements.
**Companion skill**: This skill complements [nginx-c-modules](../nginx-c-modules/SKILL.md) which covers correctness (memory safety, request lifecycle, configuration). This skill covers **performance optimization and operational reliability**.
## When to Apply
Reference these guidelines when:
- Optimizing nginx C module throughput and latency
- Reducing buffer copies and enabling zero-copy I/O paths
- Tuning connection pooling and socket options
- Minimizing shared memory lock contention across workers
- Implementing graceful error recovery and fallback responses