nginx-c-module-debug
БесплатноБез исполняемых скриптовНе проверенnginx C module debugging guidelines based on the official nginx development guide. This skill should be used when debugging nginx C module crashes, memory…
от pproenca★ 231 звезда на GitHubОб этом скилле
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
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Crash Diagnosis & Signals | CRITICAL | crash- |
| 2 | Memory Bug Detection | CRITICAL | memdbg- |
| 3 | GDB & Core Dump Analysis | HIGH | gdb- |
| 4 | Request Flow Tracing | HIGH | trace- |
| 5 | Debug Logging Patterns | MEDIUM-HIGH | dbglog- |
| 6 | State & Lifecycle Debugging | MEDIUM | state- |
| 7 | Dynamic Tracing Tools | MEDIUM | probe- |
| 8 | Build & Sanitizer Configuration | LOW-MEDIUM | build- |
Quick Reference
1. Crash Diagnosis & Signals (CRITICAL)
crash-segfault-signature- Identify Segfault Crash Signature from Signal and Addresscrash-null-deref-pattern- Recognize NULL Pointer Dereference Patterns in nginx Modulescrash-double-free-finalize- Diagnose Double Finalize Crashes from Request Reference Countcrash-stack-overflow- Detect Stack Overflow from Recursive Subrequest or Filter Chainscrash-worker-exit-log- Extract Crash Context from Worker Exit Log Messagescrash-error-page-redirect- Avoid Crashes from error_page Internal Redirect Context Invalidation
2. Memory Bug Detection (CRITICAL)
memdbg-use-after-free- Detect Use-After-Free from Pool Destruction Timingmemdbg-pool-leak-pattern- Identify Pool Memory Leak Patterns from Growing Worker RSSmemdbg-slab-corruption- Diagnose Shared Memory Slab Corruption from Multi-Worker Crashesmemdbg-cleanup-handler-leak- Detect Resource Leaks from Missing Pool Cleanup Handlersmemdbg-buffer-overrun- Find Buffer Overrun from ngx_pnalloc Size Miscalculationmemdbg-temp-pool-misuse- Avoid Storing Long-Lived Pointers in Temporary Poolsmemdbg-valgrind-pool-trace- Use Valgrind Pool-Level Tracing to Find Leaked Allocations
3. GDB & Core Dump Analysis (HIGH)
gdb-coredump-setup- Configure Core Dump Generation for nginx Worker Crashesgdb-attach-worker- Attach GDB to a Running nginx Worker Processgdb-backtrace-read- Read nginx Backtrace to Identify Crash Module and Phasegdb-inspect-request- Inspect ngx_http_request_t Fields in GDB for Request Stategdb-memory-buffer-extract- Extract Debug Log from Memory Buffer Using GDB Scriptgdb-watchpoint-corruption- Use GDB Watchpoints to Catch Memory Corruption at Write Time
4. Request Flow Tracing (HIGH)
trace-phase-handler-flow- Trace Request Through HTTP Phase Handlerstrace-subrequest-tree- Map Subrequest Parent-Child Relationships for Debuggingtrace-filter-chain-order- Trace Filter Chain Execution Order and Data Flowtrace-upstream-callback-seq- Trace Upstream Callback Sequence for Proxy Debuggingtrace-event-handler-chain- Trace Event Handler Execution for Connection Debuggingtrace-config-inheritance- Trace Configuration Inheritance Through Server and Location Blocks
5. Debug Logging Patterns (MEDIUM-HIGH)
- [
dbglog-debug-mask](references/dbglog-debug-mask.
Установить nginx-c-module-debug в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nginx-c-module-debug?
nginx C module debugging guidelines based on the official nginx development guide. This skill should be used when debugging nginx C module crashes, memory bugs, request flow issues, or production problems. Triggers on tasks involving segfault analysis, coredump debugging, GDB inspection, memory leak detection, request phase tracing, AddressSanitizer setup, or nginx module troubleshooting.
Как установить скилл nginx-c-module-debug?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nginx-c-module-debug запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic