Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/jiushiwon/wg-skillsnpx agentmods add skills/jiushiwon/wg-skills/deploy-native-skillWrote 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/deploy-native-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/deploy-native-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/deploy-native-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/deploy-native-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/deploy-native-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.00108 | $0.02584 |
| Opus 5.5 | $0.00043 | $0.01034 |
| Sonnet 5.5 | $0.00022 | $0.00517 |
| Haiku 4.5 | $0.00011 | $0.00258 |
Grade B, and why
deploy-native-skill scanned grade B with 2 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 cp deploy/my-api.service /etc/systemd/system/ Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
if curl -fsS "http://127.0.0.1:${PORT}/health" >/dev/null; then How it starts
The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Deploy Native Skill
Overview
本 skill 把你过去手写的「拉代码 → 杀老进程 → 起新进程 → 管日志」脚本规范化。它读取 deploy-profile.md 选择对应语言的启动方式,生成可幂等重复执行的部署脚本。
默认行为:生成脚本到项目目录(如 deploy/deploy.sh),不自动执行;用户审查后手动跑,或接入 CI。
When to Use
触发词:
原生部署deploy native生成部署脚本一键部署脚本帮我写个部署脚本
前置依赖:建议先运行 deploy-detect-skill 与 server-setup-skill,确保画像准确、服务器环境就绪。
Workflow Summary
Phase 1: 读取 deploy-profile.md
→ 提取语言、框架、数据库、缓存、构建产物
→ 确认是否含前端产物(是则联动 static-nginx-skill)
Phase 2: 选择进程管理方式
→ Linux:systemd(首选)/ pm2(Node)/ supervisor / nohup
→ Windows:NSSM / Task Scheduler / PowerShell 后台 job
Phase 3: 生成部署脚本骨架
→ 拉代码(git pull / fetch+reset)
→ 装依赖(npm install / pip install / go mod download / mvn package)
→ 构建(如有)
→ 优雅停老进程(按端口或 PID 文件)
→ 后台起新进程
→ 日志定向到指定目录
→ 健康检查(重试 N 次)
Phase 4: 按 OS 输出
→ Linux/macOS:deploy.sh(bash)
→ Windows:deploy.ps1(PowerShell)
Phase 5: 输出使用说明
→ 首次配置(systemd unit / pm2 ecosystem)
→ 日志位置、回滚方式
Phase 1: 读取 deploy-profile.md
按画像的「语言 / Web 框架 / 构建产物」决定启动命令:
| 语言 / 框架 | 启动命令 |
|---|---|
| Node.js / Express | node dist/server.js 或 pm2 start ecosystem.config.js |
| Node.js / NestJS | node dist/main.js |
| Python / FastAPI | uvicorn app.main:app --host 0.0.0.0 --port 8080(生产用 gunicorn 托管) |
| Python / Django | gunicorn config.wsgi:application |
| Java / Spring Boot | java -jar target/app.jar |
| Go / Gin | ./bin/server(先 go build) |
| Ruby / Rails | bundle exec puma -C config/puma.rb |
| PHP / Laravel | php-fpm + Nginx 反代 |
Phase 2: 选择进程管理方式
按 OS 与语言推荐:
| 场景 | 推荐方式 | 理由 |
|---|---|---|
| Linux 通用 | systemd | 系统自带,开机自启、崩溃重启、日志统一 |
| Node.js 多实例 | pm2 | 集群模式、零停机 reload、日志聚合 |
| Python/Go 简单守护 | supervisor | 配置简单,适合非 systemd 环境 |
| 临时/简单场景 | nohup & |
无需额外组件,但无自启 |
| Windows 服务 | NSSM | 把任意可执行文件注册为 Windows 服务 |
优先 systemd;如服务器无 systemd(如 Alpine、容器内),回退 supervisor 或 pm2。
Phase 3: 生成部署脚本骨架
按 references/script-pipeline.md 的标准步骤生成。核心结构(bash 示例):
#!/usr/bin/env bash
set -euo pipefail
APP_NAME="my-api"
APP_DIR="/srv/apps/my-api"
LOG_DIR="/var/log/${APP_NAME}"
PORT=8080
BRANCH="main"
mkdir -p "$LOG_DIR"
cd "$APP_DIR"
echo "[1/6] pull latest code"
git fetch origin "$BRANCH"
git reset --hard "origin/$BRANCH"
echo "[2/6] install deps"
npm ci --production
echo "[3/6] build"
npm run build
echo "[4/6] stop old process"
if command -v pm2 >/dev/null 2>&1; then
pm2 stop "$APP_NAME" || true
else
lsof -ti:"$PORT" | xargs -r kill -TERM || true
sleep 2
lsof -ti:"$PORT" | xargs -r kill -KILL || true
fi
echo "[5/6] start new process"
if command -v pm2 >/dev/null 2>&1; then
pm2 start ecosystem.config.js --env production
pm2 save
else
nohup node dist/server.js >> "${LOG_DIR}/app.log" 2>&1 &
echo $! > "${APP_DIR}/${APP_NAME}.pid"
fi
echo "[6/6] health check"
for i in $(seq 1 10); do
if curl -fsS "http://127.0.0.1:${PORT}/health" >/dev/null; then
echo "deploy OK"
exit 0
fi
sleep 2
done
echo "health check failed" >&2
exit 1
What ships with it
7 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 · 247 lines · 108 tokens per session scan B 6e1873b33370
deploy-native-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 108 tokens to every session and 2,584 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.
deploy-native-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| deploy-native-skilljiushiwon/wg-skills | Skill | 154 | 7d ago | Apache-2.0 | B | 108 | Claude Code, Codex |
| deployment-patternsaffaan-m/ECC | Skill | 314k | yesterday | MIT | A | 41 | Claude Code, Kiro |
| agent-github-modesruvnet/ruflo | Skill | 83k | today | MIT | A | 21 | Claude Code |
| baby-sitlangchain-ai/open-swe | Skill | 11k | today | MIT | A | 30 | Claude Code, Codex |
| chinese-git-workflowjnMetaCode/superpowers-zh | Skill | 8.6k | 15d ago | MIT | A | 69 | Claude Code |
| dependency-rollup-agentomnara-ai/omnara | Skill | 3.5k | today | Apache-2.0 | A | 67 | Claude Code, Codex |
| atmos-hookscloudposse/atmos | Skill | 1.4k | today | Apache-2.0 | A | 50 | Claude Code |