static-nginx-skill

static-nginx-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 112 tokens per session (1,742 once invoked), scanned A, original, Apache-2.0.

A deployment helper for serving built frontend files with Nginx, a web server. It detects Vue, React, Angular, Svelte, or plain static output and creates Nginx settings for browser routes, API forwarding, and optional HTTPS.

In plain words
What is it for?
Use it to host a frontend's dist or build folder, configure browser-route fallback, forward API requests, and prepare Nginx installation and site settings.
Why use it?
It handles the gap between building a frontend and making its files available from a server, including the routing rules common single-page apps need.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to host a frontend's dist or build folder, configure browser-route fallback, forward API requests, and prepare Nginx installation and site settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/static-nginx-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiushiwon/wg-skills --skill static-nginx-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for static-nginx-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/static-nginx-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/static-nginx-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/static-nginx-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/static-nginx-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for static-nginx-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/static-nginx-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/static-nginx-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,742 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00112 $0.01742
Opus 5.5 $0.00045 $0.00697
Sonnet 5.5 $0.00022 $0.00348
Haiku 4.5 $0.00011 $0.00174

Measured 2mo ago against content hash e7e795d1687d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

static-nginx-skill scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

5. 健康检查:`curl -I http://localhost/` 期望 200。
super-deploy-skills/static-nginx-skill/SKILL.md · 172 lines

How it starts

The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Static Nginx Skill

Overview

本 skill 专注「前端静态产物如何托管到 Nginx」。它读取 deploy-profile.md 判断项目是否包含前端构建产物(Vue / React / Angular / Svelte / 纯 HTML),检测 Nginx 是否安装,生成对应 OS 的安装命令与站点配置。

它不替代构建:构建命令由 deploy-native-skill 或 deploy-docker-skill 负责;本 skill 只负责「构建产物 → Nginx 托管」这一段。

When to Use

触发词:

  • 静态文件部署
  • nginx 部署
  • vue 部署
  • react 部署
  • 前端部署到服务器
  • 配置 nginx 托管静态文件

前置依赖:建议先运行 deploy-detect-skill,确认项目确实包含前端构建产物。如画像标注「需要反向代理:否」,本 skill 提示「当前项目未检测到前端产物,是否仍要配置 Nginx」。

Workflow Summary

Phase 1: 读取 deploy-profile.md
  → 判断前端构建产物类型(SPA / 纯静态 / SSR)
  → 提取构建产物目录(dist / build / .next / public)

Phase 2: 检测 Nginx 是否安装
  → nginx -v
  → 检查默认配置路径(/etc/nginx/ vs C:\nginx\conf)

Phase 3: 生成 Nginx 安装命令(如缺失)
  → 按 OS 输出 apt / yum / dnf / apk / brew / winget 命令

Phase 4: 生成站点配置
  → SPA:try_files $uri /index.html(history 模式)
  → 纯静态:root 指向产物目录
  → 反向代理:location /api proxy_pass 到后端
  → HTTPS:可选 ssl_certificate 片段

Phase 5: 部署步骤
  → 拷贝产物到 Nginx 可访问目录
  → 写入站点配置并重载 Nginx
  → 健康检查

Phase 1: 读取 deploy-profile.md

从画像的「前端构建产物」行判断类型:

产物类型 框架 产物目录 Nginx 配置策略
SPA Vue / React / Angular / Svelte dist / build history fallback
纯静态 无框架 public / 根目录 直接 root
SSR Next.js / Nuxt .next / .output 反向代理到 Node 进程(不由 Nginx 直接托管)

SSR 项目(Next.js / Nuxt)不应只配置静态托管;本 skill 提示「SSR 需要 Node 进程,建议用 deploy-native-skill 起 Node + Nginx 反代」。

Phase 2: 检测 Nginx 是否安装

nginx -v 2>&1           # nginx version: nginx/1.24.0
echo $NGINX_CONF        # 用户自定义配置路径(可选)

默认配置路径:

OS 配置根目录 站点配置目录
Ubuntu/Debian /etc/nginx/ /etc/nginx/sites-available/ + sites-enabled/
CentOS/RHEL /etc/nginx/ /etc/nginx/conf.d/
Alpine /etc/nginx/ /etc/nginx/http.d/
macOS (brew) /opt/homebrew/etc/nginx/ 或 /usr/local/etc/nginx/ servers/
Windows C:\nginx\conf\ nginx.conf 内 server {} 块

Phase 3: 生成 Nginx 安装命令(如缺失)

Read the full file on GitHub · 172 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 172 lines · 112 tokens per session scan A e7e795d1687d

Subscribe to this mod's changes

static-nginx-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 112 tokens to every session and 1,742 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.

Related

static-nginx-skill compared with skills from other repositories

static-nginx-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
static-nginx-skilljiushiwon/wg-skillsSkill1547d agoApache-2.0A112Claude Code, Codex
gke-compute-classesgoogle/skillsSkill25ktodayApache-2.0A83Claude Code, Codex
cloud-operator-admin-setupgoogle/skillsSkill25ktodayApache-2.0A115Claude Code, Codex
gke-reliabilitygoogle/skillsSkill25ktodayApache-2.0A85Claude Code, Codex
gke-workload-securitygoogle/skillsSkill25ktodayApache-2.0A171Claude Code, Codex
nemo-automodel-launcher-configNVIDIA/skillsSkill4.2ktodayApache-2.0A30Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA78Claude Code