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.
npx skills add jiushiwon/wg-skills --skill static-nginx-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/static-nginx-skill)<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.
<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>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.
| Model | Per session | Once 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 |
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。 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 安装命令(如缺失)
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.
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.
- 2mo ago First seen · 172 lines · 112 tokens per session scan A e7e795d1687d
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.
static-nginx-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| static-nginx-skilljiushiwon/wg-skills | Skill | 154 | 7d ago | Apache-2.0 | A | 112 | Claude Code, Codex |
| gke-compute-classesgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 83 | Claude Code, Codex |
| cloud-operator-admin-setupgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 115 | Claude Code, Codex |
| gke-reliabilitygoogle/skills | Skill | 25k | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| gke-workload-securitygoogle/skills | Skill | 25k | today | Apache-2.0 | A | 171 | Claude Code, Codex |
| nemo-automodel-launcher-configNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 30 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code |