deploy-trigger

deploy-trigger is a command for Claude Code from tranfu-labs/tranfu-skills. It costs 0 tokens per session (2,646 once invoked), scanned A, original, MIT.

A deployment workflow that connects a Git push to GitHub Actions, which builds and publishes a Docker image, updates Coolify, and starts the deployment. GitHub Actions is GitHub’s system for running automated workflows.

In plain words
What is it for?
Use it to configure GitHub repository secrets and automate Docker image builds, publishing to GHCR, Coolify updates, and deployment requests.
Why use it?
It gives deployments a defined trigger path and keeps the deployed image tied to a specific commit. It also documents the repository secrets needed to call Coolify.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to configure GitHub repository secrets and automate Docker image builds, publishing to GHCR, Coolify updates, and deployment requests.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/tranfu-labs/tranfu-skills/deploy-trigger
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/tranfu-labs/tranfu-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/tranfu-labs/tranfu-skills/deploy-trigger/github.svg)](https://agentmods.dev/commands/tranfu-labs/tranfu-skills/deploy-trigger)
Your own site
<a href="https://agentmods.dev/commands/tranfu-labs/tranfu-skills/deploy-trigger"><img src="https://agentmods.dev/badge/commands/tranfu-labs/tranfu-skills/deploy-trigger/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-trigger

Your own site · 80×15
<a href="https://agentmods.dev/commands/tranfu-labs/tranfu-skills/deploy-trigger"><img src="https://agentmods.dev/badge/commands/tranfu-labs/tranfu-skills/deploy-trigger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,646 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.02646
Opus 5 $0.00000 $0.01323
Sonnet 5 $0.00000 $0.00529
Haiku 4.5 $0.00000 $0.00265

Measured 8d ago against content hash 4fbbe4c2c43b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

deploy-trigger scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl POST $BASE/api/v1/deploy?uuid=<application-uuid>
own-skills/tranfu-coolify-ops/commands/deploy-trigger.md · 230 lines

How it starts

The opening of the file, as written. The whole thing — 230 lines — stays where its author put it; the contents beside it link to each section on GitHub.

部署触发链路

reconcile Step 7 / Step 8 用。

链路总览

git push -> GitHub Actions deploy.yml -> docker build -> push GHCR (rolling tag + sha tag)
                                              ↓
                              PATCH /applications/$APP_UUID/envs IMAGE_REF=ghcr.io/<org>/<repo>:sha-<commit>
                                              ↓
                                     curl POST $BASE/api/v1/deploy?uuid=<application-uuid>
                                              ↓
                              Coolify (Application + dockercompose) 读取 IMAGE_REF -> pull immutable sha tag -> up

Coolify Application 创建时 is_auto_deploy_enabled=false——GitHub push 不触发 Coolify 自动部署, 触发权完全归 GHA workflow。即便 Coolify GitHub App integration 会订阅 GitHub push webhook, 因为 auto_deploy 关了, Coolify 收到 push 也不动。

GitHub 端配置(reconcile Step 5I)

Repo-level secrets

# strip 尾斜杠防 //api 404
gh secret set COOLIFY_API_TOKEN --body "$COOLIFY_API_TOKEN"
gh secret set COOLIFY_BASE_URL  --body "${BASE%/}"

注意命令字符串里只能引用 $COOLIFY_API_TOKEN,不能把 token 原文写进去——shell 展开发生在执行时,命令字符串本身(agent 写给 Bash tool 的字符串)必须保持 $VAR 不变。

校验是否已设:

gh secret list | grep -E '^COOLIFY_API_TOKEN|^COOLIFY_BASE_URL'

自动建 environment(gh api 直通 REST API)

gh CLI 子命令没有 create environment,但 REST API 支持。reconcile Step 5I 用:

gh api -X PUT "repos/$REPO_ORG/$REPO_NAME/environments/$DEFAULT_BRANCH" >/dev/null
  • 是 PUT 不是 POST — idempotent,已存在不报错
  • 空 body 即可(不需要配 reviewers / wait_timer 之类)
  • 需要 token 有 repo scope + admin permission(preflight Step 0 check 过)

GitHub REST API 文档

Environment-level vars(每个部署分支一个同名 environment)

默认分支(如 main):

gh variable set COOLIFY_APP_UUID       --env main --body "<application-uuid>"
gh variable set IMAGE_TAG_ROLLING      --env main --body "latest"
# IMAGE_TAG_SHA_PREFIX 可省略;deploy.yml.template 默认使用 sha-,避免 GitHub env var 空值 422。
# 如要显式配置,也必须非空:
gh variable set IMAGE_TAG_SHA_PREFIX   --env main --body "sha-"

Read the full file on GitHub · 230 lines

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 · 230 lines · 0 tokens per session scan A 4fbbe4c2c43b

Subscribe to this mod's changes

deploy-trigger is a command published in the GitHub repository tranfu-labs/tranfu-skills (2 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,646 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.