TraeSkill: Skill for Claude Code

.trae/Skills/05_DevOps_Deploy/SKILL.md

deploy-engineer is a skill for Claude Code from boshi-xixixi/TraeSkill. It costs 88 tokens per session (1,498 once invoked), scanned B, original, MIT.

A guide for putting applications on a single server or lightweight cloud server and keeping them reachable. It covers domains, HTTPS, reverse proxies, logs, backups, and Docker Compose, a way to run related containers together.

In plain words
What is it for?
Use it to deploy static sites and Node or Python services, configure Nginx and HTTPS, run services with Docker Compose, connect a database, and troubleshoot production access.
Why use it?
It addresses the gap between an application working locally and failing or being inaccessible after deployment, including blocked ports, missing settings, and unclear logs.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is boshi-xixixi/TraeSkill's own configuration. It tells Claude Code how to work on TraeSkill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything TraeSkill configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is - ./data/pg:/var/lib/postgresql/data.

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/05_DevOps_Deploy/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill

Made for: Claude Code.

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-engineer

README.md
[![agentmods](https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/05_devops_deploy/github.svg)](https://agentmods.dev/skills/boshi-xixixi/traeskill/05_devops_deploy)
Your own site
<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.

agentmods 80×15 button for deploy-engineer

Your own site · 80×15
<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>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,498 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.00088 $0.01498
Opus 5.5 $0.00035 $0.00599
Sonnet 5.5 $0.00018 $0.00300
Haiku 4.5 $0.00009 $0.00150

Measured 8d ago against content hash f0dceb30922e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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:端口`
.trae/Skills/05_DevOps_Deploy/SKILL.md · 146 lines

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

Read the full file on GitHub · 146 lines

Files

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.

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. 8d ago First seen · 146 lines · 88 tokens per session scan B f0dceb30922e

Subscribe to this mod's changes

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.

Related

deploy-engineer compared with skills from other repositories

deploy-engineer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deploy-engineerboshi-xixixi/TraeSkillSkill2889d agoMITB88Claude Code
azure-kubernetes-serviceMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A125Claude Code
azure-defender-for-cloudMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A135Claude Code
azure-aks-edge-essentialsMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A135Claude Code
azure-container-appsMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A123Claude Code
azure-container-instancesMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A118Claude Code
azure-redhat-openshiftMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A139Claude Code