install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/nejclovrencic/nginx-agent-skills/nginx-agent-skills" ~/.claude/skills/comeonoliver-skillshub-nginx-agent-skills && rm -rf "$T"
manifest:
skills/nejclovrencic/nginx-agent-skills/nginx-agent-skills/SKILL.mdsource content
Nginx & OpenResty Development
Core Guidance
When writing or reviewing Nginx configuration:
- Always consider the directive inheritance model. Child blocks inherit from parent unless they redefine the directive. For example, adding one
in a location block wipes all inheritedproxy_set_header
directives from the server block.proxy_set_header - Prefer
overmap
for conditional logic.if
in location context is dangerous and only reliably supportsif
andreturn
. See references/nginx-gotchas.md for the full list.rewrite - Always clarify
trailing-slash behavior — it is the single most common source of subtle bugs.proxy_pass - When writing
blocks, always include keepalive configuration and explain connection pooling implications.upstream - When writing Nginx directives, always check docs, specifically module references, to verify that a directive actually exists, and what values it accepts (on/off, variable, fixed values, etc).
When writing OpenResty/Lua code:
- Always check phase restrictions before using cosocket or subrequest APIs. See references/openresty-api.md.
- Prefer
overngx.ctx
for passing data between phases because it's more performant.ngx.var - Avoid using ngx.var multiple times for the same variable, as it's less performant than accessing Lua variable.
- Use
for background/async work, never block the event loop.ngx.timer.at
When advising on performance:
- Consult references/testing-patterns.md for benchmarking methodology.
- Always consider the full request path: client → Nginx → upstream, and tune each segment.
- Buffer sizing has cascading effects — refer to the buffer tuning section in references/nginx-gotchas.md.
Reference Files
Load these as needed based on the task:
- references/nginx-gotchas.md — Directive behavior gotchas, inheritance rules, location matching, common misconfigurations. Read when writing or debugging any Nginx config.
- references/openresty-api.md — Phase handler reference, shared dict operations. Read when writing Lua/OpenResty code.
- references/testing-patterns.md — Config validation. Read when testing or benchmarking.