pproenca avatar

Nginx C Module Design

If you're writing nginx C modules, this is your guide for designing the configuration interface admins will actually use. It covers 46 rules across exposure decisions (what to make configurable vs hardcode), naming conventions, directive types, scope placement, defaults, and validation. The priority ranking is helpful: it puts the critical stuff like naming and exposure first, then works down to compatibility concerns. Think of it as the design phase counterpart to implementation skills like nginx-c-modules. The framework for deciding configurable vs hardcoded is solid, and the cross-module consistency rules will save you from inventing your own conventions poorly.

skills.sh installs
369
GitHub stars
222
last updated
Aug 21, 2026

Install

$ npx -y skills add pproenca/dot-skills --skill nginx-c-module-design --agent claude-code

Installs into .claude/skills of the current project.

Files

nginx.org C Module Directive Design Best Practices

Comprehensive directive design guide for nginx C module authors, focused on creating clear, consistent, and admin-friendly configuration interfaces. Contains 46 rules across 8 categories, prioritized by impact to guide decisions about what to expose, how to name it, and how to evolve it safely.

When to Apply

Reference these guidelines when:

  • Deciding which values to expose as directives vs hardcode
  • Naming new directives and choosing argument types
  • Selecting scope placement (http, server, location)
  • Setting default values and validation behavior
  • Designing nginx variables for runtime data
  • Deprecating or renaming existing directives

Companion Skills

This skill focuses on design decisions (the "what" and "why"). For implementation mechanics, see:

  • nginx-c-modules — C implementation: memory pools, request lifecycle, config parsing, handlers, filters
  • nginx-c-perf — Performance: buffers, connections, locks, caching, timeouts
  • nginx-c-debug — Debugging: crash diagnosis, GDB, tracing, sanitizers

Rule Categories by Priority

Sponsors

Details

Repository
github.com/pproenca/dot-skills
Categories
Backend & APIs, Code Review & Quality, Design & UI/UX
First seen
Jun 3, 2026

More from pproenca/dot-skills

All 100
1timescale avatarmigrate-postgres-tables-to-hypertablestimescale/pg-aiguideUse this skill to migrate identified PostgreSQL tables to Timescale/TimescaleDB hypertables with optimal configuration and validation. **Trigger when user asks 368skills.sh installs
2zzci avatarpma-crzzci/skillsCode review: stack-aware review for local diffs, pull requests, and repository-wide audits. Routes review across shared policy plus language packs for TypeScrip368skills.sh installs
3davila7 avatarfigma-implement-designdavila7/claude-code-templatesTranslate Figma nodes into production-ready code with 1:1 visual fidelity using the Figma MCP workflow (design context, screenshots, assets, and project-convent367skills.sh installs
4huggingface avatarhugging-face-datasetshuggingface/skillsCreate and manage datasets on Hugging Face Hub. Supports initializing repos, defining configs/system prompts, streaming row updates, and SQL-based dataset query367skills.sh installs
5cloudwego avatareino-agentcloudwego/eino-extEino ADK agent construction, middleware, and runner. Use when a user needs to build an AI Agent, configure ChatModelAgent with ReAct pattern, use middleware (fi366skills.sh installs
6zzci avatarpma-gozzci/skillsGo implementation guide for PMA-managed service and CLI projects. Covers project layout (cmd/internal), strict linting with golangci-lint v2, database access (s366skills.sh installs