Agent skill

Deploy Server

by JustLookAtNow in JustLookAtNow/pt_mate

将 server 后端新版本构建并部署到服务器;当用户要求更新测试环境或正式环境时使用。测试环境部署到 golakers:~/ptmate-beta 并直接运行;正式环境先停止 ptmate 服务,部署到 golakers:~/ptmate 后再启动 ptmate 服务。

MITAuto-check passed

Install Deploy Server

skills CLI
$ npx skills add JustLookAtNow/pt_mate --skill deploy-server -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install JustLookAtNow/pt_mate deploy-server --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/JustLookAtNow/pt_mate.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/deploy-server .claude/skills/deploy-server && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
deploy-server
GitHub stars
503
Token cost
~678 tokens
SKILL.md length
75 words
Files
2
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

将 server 后端新版本构建并部署到服务器;当用户要求更新测试环境或正式环境时使用。测试环境部署到 golakers:~/ptmate-beta 并直接运行;正式环境先停止 ptmate 服务,部署到 golakers:~/ptmate 后再启动 ptmate 服务。

  • Works in 3 steps: 判断用户要更新的环境 → 先打包 server → 确认 server/ptmate-server 已生成。
  • SKILL.md covers 环境, 使用流程, 测试环境部署 and 正式环境部署, plus 1 more section
  • Calls ssh and scp

What it does

Deploy Server is an agent skill from JustLookAtNow/pt_mate. 将 server 后端新版本构建并部署到服务器;当用户要求更新测试环境或正式环境时使用。测试环境部署到 golakers:~/ptmate-beta 并直接运行;正式环境先停止 ptmate 服务,部署到 golakers:~/ptmate 后再启动 ptmate 服务。

Its SKILL.md is about 680 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

The repository describes itself as: 基于 Flutter(Material Design 3)开发的私有种子站点客户端,支持多种PT站点的种子浏览、搜索和下载管理。目前支持M-Team和NexusPHP类型的站点。 The licence is MIT.

Example prompts

  • “/deploy-server”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 判断用户要更新的环境
  2. 先打包 server
  3. 确认 server/ptmate-server 已生成。

What it can do on your machine

Read from SKILL.md and the folder at commit db24c99. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • ssh
    • scp

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use ssh and scp, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Deploy Server loads about 678 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 75 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~678

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from JustLookAtNow/pt_mate at commit db24c99, republished under its MIT licence (© JustLookAtNow). 75 words, ~678 tokens.

Download SKILL.mdSave it as .claude/skills/deploy-server/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
deploy-server
description
将 server 后端新版本构建并部署到服务器;当用户要求更新测试环境或正式环境时使用。测试环境部署到 golakers:~/ptmate-beta 并直接运行;正式环境先停止 ptmate 服务,部署到 golakers:~/ptmate 后再启动 ptmate 服务。

Deploy Server Skill

用于把 server 中的新版本更新到远程服务器。

环境

  • 服务器 SSH 别名:golakers
  • 构建产物:server/ptmate-server
  • 测试环境目录:golakers:~/ptmate-beta
  • 正式环境目录:golakers:~/ptmate
  • 测试环境访问地址环境变量:PTMATE_BETA_URL
  • 正式环境访问地址环境变量:PTMATE_PROD_URL

真实访问地址必须从本地环境变量读取,不要写入仓库文件,避免提交到 GitHub 后公开。

使用流程

  1. 判断用户要更新的环境:
    • 用户提到“测试环境”、“beta”、“预发”时,按测试环境流程执行。
    • 用户提到“正式环境”、“生产环境”、“线上”时,按正式环境流程执行。
    • 如果用户没有说明环境,先询问目标环境。
  2. 先打包 server:
bash
cd server && ./build.sh
  1. 确认 server/ptmate-server 已生成。

测试环境部署

按用户要求,测试环境不使用 systemctl,复制到 ~/ptmate-beta 后进入目录直接运行二进制。默认用 nohup 后台启动,并写入 PID 文件,确保部署命令能结束,且后续可以主动停止。

bash
scp server/ptmate-server golakers:~/ptmate-beta/ptmate-server
ssh golakers 'cd ~/ptmate-beta && chmod +x ptmate-server && nohup ./ptmate-server > ptmate-server.log 2>&1 & echo $! > ptmate-server.pid'

如果用户明确要求前台运行,使用:

bash
ssh golakers 'cd ~/ptmate-beta && chmod +x ptmate-server && ./ptmate-server'
停止测试环境

因为测试环境默认通过 nohup 后台运行,如果不主动停止会一直运行。停止测试环境时优先使用 PID 文件:

bash
ssh golakers 'cd ~/ptmate-beta && if [ -f ptmate-server.pid ]; then kill "$(cat ptmate-server.pid)" && rm -f ptmate-server.pid; fi'

如果 PID 文件不存在或进程已经不是该 PID,使用工作目录筛选兜底,避免误杀正式环境:

bash
ssh golakers 'cd ~/ptmate-beta && for pid in $(pgrep -f ptmate-server || true); do [ "$(readlink /proc/$pid/cwd 2>/dev/null)" = "$PWD" ] && kill "$pid"; done; rm -f ptmate-server.pid'

更新测试环境时,先停止旧进程,再复制和启动新版本:

bash
ssh golakers 'cd ~/ptmate-beta && if [ -f ptmate-server.pid ]; then kill "$(cat ptmate-server.pid)" 2>/dev/null || true; rm -f ptmate-server.pid; fi; for pid in $(pgrep -f ptmate-server || true); do [ "$(readlink /proc/$pid/cwd 2>/dev/null)" = "$PWD" ] && kill "$pid"; done'
scp server/ptmate-server golakers:~/ptmate-beta/ptmate-server
ssh golakers 'cd ~/ptmate-beta && chmod +x ptmate-server && nohup ./ptmate-server > ptmate-server.log 2>&1 & echo $! > ptmate-server.pid'

完成后提示用户可以访问测试环境新版本:

bash
echo "测试环境新版本已部署,可以访问:${PTMATE_BETA_URL}"

正式环境部署

正式环境必须先停止 ptmate 服务,再复制新产物,最后启动服务。

bash
ssh golakers 'systemctl stop ptmate'
scp server/ptmate-server golakers:~/ptmate/ptmate-server
ssh golakers 'cd ~/ptmate && chmod +x ptmate-server && systemctl start ptmate'

完成后提示用户可以访问正式环境新版本:

bash
echo "正式环境新版本已部署,可以访问:${PTMATE_PROD_URL}"

注意事项

  • 访问地址只允许通过 PTMATE_BETA_URL 和 PTMATE_PROD_URL 获取;如果环境变量未设置,先提醒用户设置,不要猜测或补写真实地址。
  • 不要在正式环境复制完成前启动服务。
  • 如果 systemctl 权限不足,按终端报错处理;需要 sudo 时先说明将要执行的命令。
  • 如果 scp 或 ssh 失败,保留错误输出并告知用户部署未完成,不要提示“可以访问新版本”。

© JustLookAtNow, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/deploy-server of JustLookAtNow/pt_mate.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit db24c99

Compare with similar skills

Deploy Server next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Deploy Server compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Deploy Server this skillJustLookAtNow/pt_mate503—~678Automated safety check: PassMIT
Promote Betaudecode/plate17k—~359Automated safety check: PassCustom licence
Macios Xcode Beta Updatedotnet/macios2.9k—~1.8kAutomated safety check: PassCustom licence
Beta Reader Feedbackhashgraph-online/awesome-codex-plugins1.2k—~918Automated safety check: PassMIT
Beta Program Managementrampstackco/claude-skills940—~6.1kAutomated safety check: PassMIT
Release BetaThank-you-Linus/Linus-Dashboard211—~2kAutomated safety check: PassMIT

Similar skills

  • Promote Beta

    udecode/plate

    Compatibility entrypoint for beta promotion. An agent skill from udecode/plate.

    17k GitHub stars~359 tokensUpdated today
    Auto-check passed
  • Official

    Update dotnet/macios to a new Xcode beta and validate it end-to-end.

    2.9k GitHub stars~1.8k tokensUpdated today
    MobileAuto-check passed
  • Beta Reader Feedback

    hashgraph-online/awesome-codex-plugins

    Plan beta reading rounds for practical nonfiction and turn reader comments, abandonment, confusion, skepticism, and negative feedback into manuscript revisions.

    1.2k GitHub stars~918 tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Beta Program Management

    rampstackco/claude-skills

    Running closed and open betas that produce real signal. An agent skill from rampstackco/claude-skills.

    940 GitHub stars~6.1k tokensUpdated yesterday
    Product & Project ManagementAuto-check passed
  • Release Beta

    Thank-you-Linus/Linus-Dashboard

    Create a beta pre-release for community testing with intelligent version detection.

    211 GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Beta Prerelease

    rvdbreemen/OTGW-firmware

    Publish an OTGW-firmware beta prerelease — bump VERSIONPRERELEASE, push to otgw-1.x.x, tag, and let CI build + publish the GitHub prerelease

    207 GitHub stars~2.7k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from JustLookAtNow/pt_mate

  • Flutter Screenshot

    JustLookAtNow/pt_mate

    Capture and show two Flutter UI screenshots for this project: one landscape/large-screen preview and one portrait/mobile preview, without using Flutter Web.

    503 GitHub stars~511 tokensUpdated 2 days ago
    Auto-check passed
  • Release

    JustLookAtNow/pt_mate

    自动化项目的版本发布流程,包括版本号自增、ChangeLog 提取与汇总、代码提交、打标签以及推送到远程仓库. An agent skill from JustLookAtNow/pt_mate.

    503 GitHub stars~332 tokensUpdated 2 days ago
    Auto-check passed
  • Nexusphpweb Site Config

    JustLookAtNow/pt_mate

    适配 NexusPHPWeb 类型站点的站点配置与 infoFinder 字段编写。需要检查 assets/sitesmanifest.json 中站点 id 是否存在,缺失时先调用 Add Site 技能创建配置文件,然后依据 docs/SITECONFIGURATIONGUIDE.md 与 assets/siteconfigs.json 的 NexusPHPWeb 模板生成或更新…

    503 GitHub stars~366 tokensUpdated 2 days ago
    Auto-check passed

Questions about Deploy Server

What does Deploy Server do?

将 server 后端新版本构建并部署到服务器;当用户要求更新测试环境或正式环境时使用。测试环境部署到 golakers:~/ptmate-beta 并直接运行;正式环境先停止 ptmate 服务,部署到 golakers:~/ptmate 后再启动 ptmate 服务。. Deploy Server is an agent skill from JustLookAtNow/pt_mate.

How do I install Deploy Server in Claude Code?

Run `npx skills add JustLookAtNow/pt_mate --skill deploy-server -a claude-code`. Or copy the skill folder (.agents/skills/deploy-server in JustLookAtNow/pt_mate) into .claude/skills/deploy-server in your project. Claude Code loads it when a task matches its description.

How do I install Deploy Server in Codex?

Run `npx skills add JustLookAtNow/pt_mate --skill deploy-server -a codex`. Or copy the skill folder (.agents/skills/deploy-server in JustLookAtNow/pt_mate) into .agents/skills/deploy-server in your project. Codex loads it when a task matches its description.

Can I use Deploy Server in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add JustLookAtNow/pt_mate --skill deploy-server -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/deploy-server, .gemini/skills/deploy-server, .github/skills/deploy-server and .opencode/skills/deploy-server in your project.

What does Deploy Server need to run?

Going by SKILL.md and its folder, Deploy Server needs the command-line tools its instructions call (ssh and scp).

Does Deploy Server access the network?

SKILL.md contains no URLs. Its commands use ssh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Deploy Server safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Deploy Server use?

Deploy Server is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Deploy Server use?

About 678 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Deploy Server?

Skills that share tags, products or a category with Deploy Server: Promote Beta (udecode/plate, 17k stars), Macios Xcode Beta Update (dotnet/macios, 2.9k stars), Beta Reader Feedback (hashgraph-online/awesome-codex-plugins, 1.2k stars) and Beta Program Management (rampstackco/claude-skills, 940 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Deploy Server?

JustLookAtNow (a GitHub user) maintains it in JustLookAtNow/pt_mate, which has 503 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 5, 2026.

Source: JustLookAtNow/pt_mate on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.