Borrowing it
Nothing to install: this file belongs to boshi-xixixi/TraeSkill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/05_DevOps_Deploy/SKILL.mdgit clone --depth 1 https://github.com/boshi-xixixi/TraeSkillWrote 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/boshi-xixixi/traeskill/05_devops_deploy)<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/05_devops_deploy"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/05_devops_deploy/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/boshi-xixixi/traeskill/05_devops_deploy"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/05_devops_deploy.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.00088 | $0.01498 |
| Opus 5.5 | $0.00035 | $0.00599 |
| Sonnet 5.5 | $0.00018 | $0.00300 |
| Haiku 4.5 | $0.00009 | $0.00150 |
Grade B, and why
deploy-engineer 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 8d 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 apt install certbot python3-certbot-nginx Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
2. 端口通不通:`curl 127.0.0.1:端口`,再 `curl 公网IP:端口` How it starts
The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
单机部署与上线
目标:让一个项目在服务器上稳定跑起来、能被访问、出问题能查。不追求 Kubernetes 那套。
一、先选路线
| 项目类型 | 推荐方式 | 说明 |
|---|---|---|
| 纯静态(HTML/CSS/JS) | Nginx 静态托管 | 最简单,别上 Node |
| Node / Python 常驻服务 | Docker Compose 或 PM2/systemd | 单机优先 Compose |
| 需要数据库 | Compose 带上 db + 卷 | 数据目录必须挂出来 |
| Serverless 友好(Next.js 等) | 平台托管 | 如果已有平台就别自建 |
不要一上来就上 K8s,单机 + Compose 足够撑到很大量级。
二、上线检查清单
按顺序核对,缺一项就可能卡住:
- 端口:应用监听
0.0.0.0,不是127.0.0.1 - 防火墙:云厂商安全组 + 系统防火墙(ufw/firewalld)都放行
- 环境变量:
.env不进仓库,服务器上单独配 - 数据库:连接串指向
127.0.0.1或容器名,不是localhost以外瞎写 - 构建产物:确认是
build后的版本,不是 dev server - 时区:容器默认 UTC,需要本地时间就设
TZ=Asia/Shanghai - 日志:落到文件或 docker logs,别只打 stdout 就完事
- 备份:数据库有定时 dump,卷目录知道在哪
三、Nginx 反向代理
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade; # WebSocket
proxy_set_header Connection "upgrade";
proxy_read_timeout 300s; # 长任务
}
}
常见坑:
- 前端路由刷新 404 → 加
try_files $uri $uri/ /index.html; - 上传大文件 413 →
client_max_body_size 50m; - WebSocket 连不上 → 缺
Upgrade/Connection头 - 后端拿到的是 127.0.0.1 → 缺
X-Real-IP/X-Forwarded-For
四、HTTPS
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d example.com -d www.example.com
sudo certbot renew --dry-run # 确认自动续期可用
要点:
- 域名必须先解析到这台机器,否则验证失败
- 证书续期是定时任务,一定跑一次 dry-run 确认
- 开了 HTTPS 后,应用内生成的回调地址、静态资源地址要跟着改成 https,否则混合内容被拦
五、Docker Compose 模板
services:
app:
build: .
restart: unless-stopped
env_file: .env
ports:
- "127.0.0.1:3000:3000" # 只给本机 Nginx 访问
depends_on:
- db
db:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- ./data/pg:/var/lib/postgresql/data
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.
- 8d ago First seen · 146 lines · 88 tokens per session scan B f0dceb30922e
deploy-engineer is a skill published in the GitHub repository boshi-xixixi/TraeSkill (288 stars, last pushed 9d ago), licensed MIT. It adds 88 tokens to every session and 1,498 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-11-22.
deploy-engineer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| deploy-engineerboshi-xixixi/TraeSkill | Skill | 288 | 9d ago | MIT | B | 88 | Claude Code |
| azure-kubernetes-serviceMicrosoftDocs/Agent-Skills | Skill | 824 | 21d ago | CC-BY-4.0 | A | 125 | Claude Code |
| azure-defender-for-cloudMicrosoftDocs/Agent-Skills | Skill | 824 | 21d ago | CC-BY-4.0 | A | 135 | Claude Code |
| azure-aks-edge-essentialsMicrosoftDocs/Agent-Skills | Skill | 824 | 21d ago | CC-BY-4.0 | A | 135 | Claude Code |
| azure-container-appsMicrosoftDocs/Agent-Skills | Skill | 824 | 21d ago | CC-BY-4.0 | A | 123 | Claude Code |
| azure-container-instancesMicrosoftDocs/Agent-Skills | Skill | 824 | 21d ago | CC-BY-4.0 | A | 118 | Claude Code |
| azure-redhat-openshiftMicrosoftDocs/Agent-Skills | Skill | 824 | 21d ago | CC-BY-4.0 | A | 139 | Claude Code |