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 server-setup-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/server-setup-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/server-setup-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/server-setup-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/server-setup-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/server-setup-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.00115 | $0.02255 |
| Opus 5.5 | $0.00046 | $0.00902 |
| Sonnet 5.5 | $0.00023 | $0.00451 |
| Haiku 4.5 | $0.00012 | $0.00226 |
Grade D, and why
server-setup-skill scanned grade D with 3 findings 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- 当前用户与 sudo 权限 Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
- 不使用 `curl | sh` 之外的不可审计安装方式;如必须,明确标注风险。 Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
| Node.js | 22 | 18 | `curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && sudo apt install -y nodejs` | How it starts
The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Server Setup Skill
Overview
本 skill 解决「项目要部署到某台服务器,但不知道服务器上缺什么环境」的问题。它读取 deploy-detect-skill 生成的 deploy-profile.md,检测目标服务器的 OS、已安装运行时版本,对比缺失项,生成幂等的安装命令清单。
默认行为是「只生成脚本/命令,不自动执行」;如用户明确要求执行安装,必须二次确认,且数据库初始化类操作永不自动执行。
When to Use
触发词:
服务器环境检测server setup环境安装检测服务器依赖看看服务器缺什么
前置依赖:建议先运行 deploy-detect-skill 生成 deploy-profile.md。如无画像,本 skill 仍可检测服务器基础环境,但无法判断「缺什么」。
Workflow Summary
Phase 1: 读取 deploy-profile.md(如存在)
→ 提取需要运行时、数据库、缓存、反向代理需求
Phase 2: 检测目标服务器 OS
→ Ubuntu / Debian / CentOS / RHEL / Alpine / macOS / Windows Server
→ 确定包管理器(apt / yum / dnf / apk / brew / winget)
Phase 3: 检测已安装环境版本
→ java -version / node -v / python3 -V / go version
→ docker -v / docker compose version / nginx -v
→ psql / mysql / mongosh / redis-cli(按画像需求)
Phase 4: 对比缺失项
→ 画像需要 vs 服务器已有 = 缺失清单
Phase 5: 生成安装命令清单
→ 按 OS 输出对应包管理器命令
→ 每条命令必须幂等(已存在则跳过)
→ 区分「仅检测」与「执行安装」两种模式
Phase 6: 数据库单独处理
→ 生成安装 + 初始化命令,但默认不执行
→ 初始化(建库、建用户、导入 schema)必须用户手动确认
Phase 1: 读取 deploy-profile.md
- 如画像存在:提取「需要运行时 / 数据库 / 缓存 / 消息队列 / 反向代理」。
- 如画像不存在:仅做基础环境检测,并提示用户先运行
deploy-detect-skill。
Phase 2: 检测目标服务器 OS
按 references/os-detection.md 执行检测命令,输出:
- OS 名称与版本(如 Ubuntu 22.04 LTS)
- 内核版本(
uname -r/systeminfo) - CPU 架构(
uname -m,影响部分安装包选择) - 包管理器(apt / yum / dnf / apk / brew / winget)
- 当前用户与 sudo 权限
Phase 3: 检测已安装环境版本
按画像需求逐项检测,记录「已安装 / 未安装 / 版本不符」:
| 组件 | 检测命令 |
|---|---|
| Java | java -version / javac -version |
| Node.js | node -v / npm -v |
| Python | python3 -V / pip3 -V |
| Go | go version |
| Docker | docker -v / docker compose version |
| Nginx | nginx -v |
| PostgreSQL | psql --version / pg_isready |
| MySQL | mysql --version |
| MongoDB | mongosh --version |
| Redis | redis-cli --version / redis-cli ping |
3.1 运行状态检测
除「是否安装」外,还要检测「运行状态」(见 references/os-detection.md 的「运行状态检测」段):
- 监听端口清单(
ss -tlnp/Get-NetTCPConnection),与画像目标端口比对冲突。 - 运行中的服务(
systemctl list-units --state=running/Get-Service)。 - 目标应用的老实例进程(
pgrep -af/Get-Process),用于部署前优雅停止。 - 负载与资源占用(
uptime/vmstat/Get-Counter),判断容量是否足够。
What ships with it
6 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 · 188 lines · 115 tokens per session scan D 7e9f33e901dc
server-setup-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 115 tokens to every session and 2,255 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.
server-setup-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| server-setup-skilljiushiwon/wg-skills | Skill | 154 | 7d ago | Apache-2.0 | D | 115 | 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 |