agentsclimarketplace

Nginx c module debug

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

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

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

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

SKILL.md

7.9 KB, ~1.9k tokens by cl100k_base, as published. Nobody here has run it

nginx.org C Module Debugging Best Practices

Comprehensive debugging guide for nginx C modules, derived from the official nginx development documentation and production debugging experience. Contains 45 rules across 8 categories, prioritized by impact to guide systematic diagnosis of crashes, memory bugs, and behavioral issues in nginx modules.

Companion skills: This skill complements nginx-c-modules (correctness) and nginx-c-module-perf-reliability (performance). This skill covers debugging and diagnosis.

When to Apply

Reference these guidelines when:

  • Diagnosing nginx worker crashes (segfaults, SIGABRT, SIGSEGV)
  • Finding memory bugs (use-after-free, leaks, pool corruption, buffer overruns)
  • Setting up GDB and core dump analysis for nginx
  • Tracing request flow through phases, subrequests, and filter chains
  • Instrumenting nginx modules with debug logging and dynamic tracing tools

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Crash Diagnosis & SignalsCRITICALcrash-
2Memory Bug DetectionCRITICALmemdbg-
3GDB & Core Dump AnalysisHIGHgdb-
4Request Flow TracingHIGHtrace-
5Debug Logging PatternsMEDIUM-HIGHdbglog-
6State & Lifecycle DebuggingMEDIUMstate-
7Dynamic Tracing ToolsMEDIUMprobe-
8Build & Sanitizer ConfigurationLOW-MEDIUMbuild-

Quick Reference

1. Crash Diagnosis & Signals (CRITICAL)

2. Memory Bug Detection (CRITICAL)

3. GDB & Core Dump Analysis (HIGH)

4. Request Flow Tracing (HIGH)

5. Debug Logging Patterns (MEDIUM-HIGH)

6. State & Lifecycle Debugging (MEDIUM)

7. Dynamic Tracing Tools (MEDIUM)

8. Build & Sanitizer Configuration (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

Keep looking

Skills are one crate of 328,083. 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.