context

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

A reference for Coolify contexts, where each context stores the URL and access token for one Coolify instance. It documents commands for listing, adding, selecting, and verifying those connections.

In plain words
What is it for?
Use it to inspect configured Coolify instances, switch the default instance, temporarily target another one, and verify access.
Why use it?
It reduces the risk of running a command against the wrong deployment environment, such as production instead of testing.

Command for Claude Code

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ⚠️ **ad-hoc 速查**: 本文件是 CLI ad-hoc 速查(排障 / 临时操作用),reconcile flow 主链路不依赖;命令需要时手动跑。reconcile 主链路全走 HTTP API,见 [../scenarios/reconcile-deployment.md](../scenarios/r.

Good fit Use it to inspect configured Coolify instances, switch the default instance, temporarily target another one, and verify access.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/tranfu-labs/tranfu-skills
agentmods
npx agentmods add commands/tranfu-labs/tranfu-skills/context

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 context

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/tranfu-labs/tranfu-skills/context"><img src="https://agentmods.dev/badge/commands/tranfu-labs/tranfu-skills/context.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,135 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00000 $0.01135
Opus 5 $0.00000 $0.00567
Sonnet 5 $0.00000 $0.00227
Haiku 4.5 $0.00000 $0.00113

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

Security

Grade A, and why

context scanned grade A with 0 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

own-skills/tranfu-coolify-ops/commands/context.md · 87 lines

How it starts

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

⚠️ ad-hoc 速查: 本文件是 CLI ad-hoc 速查(排障 / 临时操作用),reconcile flow 主链路不依赖;命令需要时手动跑。reconcile 主链路全走 HTTP API,见 ../scenarios/reconcile-deployment.md../references/coolify-api-fields.md

context 命令参考

context 是 coolify CLI 的"多实例切换"概念:每个 context 对应一个 Coolify 实例(URL + token), default context 决定不带 --context 时命令落到哪个实例。

本文件覆盖 onboard 场景实际用到的子命令 + Step 0 终止文案里指引的辅助子命令。其它子命令 (delete / set-default / set-token / update / get / version)未来扩展时再追加。

参数表按原文 1:1。全局 flag(--context / --token / --format / --show-sensitive / --debug) 不再重复,见 conventions.md

本文件覆盖的命令:


coolify context list

列出所有已配置的 context。无参数。

参数 类型 必填 默认 说明
(无)

onboard 场景用法(在 prerequisites.md Step A 让用户确认在哪个实例):

coolify context list

default 列里有星号或被标记为 active 的那一项,向用户报"当前 default context 是 <name>(生产 / 测试 / 其它),需要切别的就 --context=<other> 临时切,或 coolify context use <other> 永久切"。


coolify context add <context-name> <url> <token>

加一个新 context。本 skill MUST NEVER 直接调此命令——只在 Step 0 终止文案里指引用户用此命令配上。 context 涉及实例 URL 与 API token,MUST 由用户从 Coolify 网页 /security/api-tokens 拿 token。

参数 类型 必填 默认 说明
<context-name> string context 名(位置参数)
<url> string Coolify 实例 URL(位置参数)
<token> string API token(位置参数)
--default (-d) boolean false 加完立即设为 default
--force (-f) boolean false 同名 context 已存在时强制覆盖

终止文案模板(在 Step 0 context list 返回空时用):

Read the full file on GitHub · 87 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 · 87 lines · 0 tokens per session scan A 8022a281dbfe

Subscribe to this mod's changes

context 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,135 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.