domain

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

A reference for setting application domains in Coolify’s Docker Compose deployment model. It maps each Compose service to a public HTTPS address and internal container port.

In plain words
What is it for?
Use it to check and update domains for one or more Compose services, including separate sub-applications that need different paths or hostnames.
Why use it?
It helps reconcile the configured domain with the expected one and replace temporary fallback addresses such as sslip.io.

Command for Claude Code

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

Good fit Use it to check and update domains for one or more Compose services, including separate sub-applications that need different paths or hostnames.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/tranfu-labs/tranfu-skills/domain
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 domain

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/tranfu-labs/tranfu-skills/domain"><img src="https://agentmods.dev/badge/commands/tranfu-labs/tranfu-skills/domain.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 1,404 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.01404
Opus 5 $0.00000 $0.00702
Sonnet 5 $0.00000 $0.00281
Haiku 4.5 $0.00000 $0.00140

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

Security

Grade A, and why

domain 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 -sS -H "Authorization: Bearer $COOLIFY_API_TOKEN" \
own-skills/tranfu-coolify-ops/commands/domain.md · 111 lines

How it starts

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

Domain (docker_compose_domains) 操作速查

reconcile 更新分支 B 用。心智模型见 ../references/urls-vs-docker-compose-domains.md../references/service-fqdn-trap.md

Application + dockercompose build_pack 形态下, 改域名走 docker_compose_domains 字段 (旧 Service 形态走的 urls 字段 0.8 不再使用)。

tranfu 域名规范

  • 形式:https://<sub-app-name>.tranfu.com:<container-port>
  • <sub-app-name> = compose services.<name>(命名约束:烤肉串 + 全小写)
  • :<container-port> = 容器内部端口(Coolify 翻译成 traefik label,公网仍走 443)
  • 不带 path(不写 /api/v2 之类——多个 path 走多个 sub-application)

Check:当前域名 vs 期望(reconcile 更新分支 B)

EXPECTED_NAME="<sub-app-name>"
EXPECTED_DOMAIN="https://${EXPECTED_NAME}.tranfu.com:<port>"

curl -sS -H "Authorization: Bearer $COOLIFY_API_TOKEN" \
  "$BASE/api/v1/applications/$APP_UUID" \
  | jq --arg name "$EXPECTED_NAME" --arg url "$EXPECTED_DOMAIN" '
    .applications[] | select(.name == $name) |
    if .fqdn == $url then "✓ 已是期望域名"
    elif (.fqdn // "") | contains("sslip.io") then "✗ 还是 sslip.io fallback"
    else "✗ 不一致: 当前=" + (.fqdn // "null") + " 期望=" + $url
    end'

输出 → check 通过,跳过 act。 → 进 act。

Act:写域名(单 sub-application)

JSON_BODY=$(jq -nc \
  --arg name "$EXPECTED_NAME" \
  --arg domain "$EXPECTED_DOMAIN" \
  '{docker_compose_domains: [{name: $name, domain: $domain}]}')

curl -sS -X PATCH \
  -w "\nHTTP=%{http_code}\n" \
  -H "Authorization: Bearer $COOLIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d "$JSON_BODY" \
  "$BASE/api/v1/applications/$APP_UUID"

返回 200 + {uuid}立刻 GET 一次校验 sub-application.fqdn 真变了:

curl -sS -H "Authorization: Bearer $COOLIFY_API_TOKEN" "$BASE/api/v1/applications/$APP_UUID" \
  | jq '.applications[] | {name, fqdn}'

Act:多 sub-application 一次写

JSON_BODY=$(jq -nc '{
  docker_compose_domains: [
    {name: "web",   domain: "https://app.tranfu.com:3000"},
    {name: "api",   domain: "https://api.tranfu.com:4000"},
    {name: "admin", domain: "https://admin.tranfu.com:5000"}
  ]
}')

curl -sS -X PATCH \
  -H "Authorization: Bearer $COOLIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d "$JSON_BODY" \
  "$BASE/api/v1/applications/$APP_UUID"

Read the full file on GitHub · 111 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 · 111 lines · 0 tokens per session scan A 5470f7b5b6c5

Subscribe to this mod's changes

domain 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 1,404 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.