agentsclimarketplace

Nginx c module perf

Skill ComeOnOliver/skillshub/skills/pproenca/dot-skills/nginx-c-module-perf

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.From the repository description

Install
npx -y skills add ComeOnOliver/skillshub --skill nginx-c-module-perf

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

7.4 KB, ~1.8k tokens by cl100k_base, as published. Nobody here has run it

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 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
  • Configuring upstream timeouts and retry strategies
  • Building in-module response caches with shared memory
  • Tuning worker process behavior under load

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Buffer & Zero-Copy I/OCRITICALbuf-
2Connection EfficiencyCRITICALconn-
3Lock Contention & AtomicsHIGHlock-
4Error Recovery & ResilienceHIGHerr-
5Timeout & Retry StrategyMEDIUM-HIGHtimeout-
6Response CachingMEDIUMcache-
7Worker & Process TuningMEDIUMworker-
8Logging & MetricsLOW-MEDIUMlog-

Quick Reference

1. Buffer & Zero-Copy I/O (CRITICAL)

2. Connection Efficiency (CRITICAL)

3. Lock Contention & Atomics (HIGH)

4. Error Recovery & Resilience (HIGH)

5. Timeout & Retry Strategy (MEDIUM-HIGH)

6. Response Caching (MEDIUM)

7. Worker & Process Tuning (MEDIUM)

8. Logging & Metrics (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.