deploy-native-skill

deploy-native-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 108 tokens per session (2,584 once invoked), scanned B, original, Apache-2.0.

A deployment-script generator for running an application directly on a server instead of in Docker. It reads a project description and creates a shell script or PowerShell script for updating, building, restarting, and checking the application.

In plain words
What is it for?
Use it to pull code, install dependencies, build the project, stop the old process safely, start the new one in the background, save logs, and run a health check.
Why use it?
It replaces a collection of hand-written deployment steps that can be easy to run in the wrong order or forget to repeat consistently. The generated script can be reviewed before use or connected to a continuous integration system.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is nohup node dist/server.js >> "${LOG_DIR}/app.log" 2>&1 &.

Good fit Use it to pull code, install dependencies, build the project, stop the old process safely, start the new one in the background, save logs, and run a health check.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills
agentmods
npx agentmods add skills/jiushiwon/wg-skills/deploy-native-skill

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 deploy-native-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/deploy-native-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/deploy-native-skill)
Your own site
<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.

agentmods 80×15 button for deploy-native-skill

Your own site · 80×15
<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>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,584 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. 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.00108 $0.02584
Opus 5.5 $0.00043 $0.01034
Sonnet 5.5 $0.00022 $0.00517
Haiku 4.5 $0.00011 $0.00258

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

Security

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.

The scan reads SKILL.md. This mod also ships 3 executable files (assets/ecosystem.config.js, assets/launch.ps1, assets/launch.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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
super-deploy-skills/deploy-native-skill/SKILL.md · 247 lines

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

Read the full file on GitHub · 247 lines

Files

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.

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 · 247 lines · 108 tokens per session scan B 6e1873b33370

Subscribe to this mod's changes

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.

Related

deploy-native-skill compared with skills from other repositories

deploy-native-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deploy-native-skilljiushiwon/wg-skillsSkill1547d agoApache-2.0B108Claude Code, Codex
deployment-patternsaffaan-m/ECCSkill314kyesterdayMITA41Claude Code, Kiro
agent-github-modesruvnet/rufloSkill83ktodayMITA21Claude Code
baby-sitlangchain-ai/open-sweSkill11ktodayMITA30Claude Code, Codex
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.6k15d agoMITA69Claude Code
dependency-rollup-agentomnara-ai/omnaraSkill3.5ktodayApache-2.0A67Claude Code, Codex
atmos-hookscloudposse/atmosSkill1.4ktodayApache-2.0A50Claude Code