From tunnelbox-cli
Use this skill when the user wants to bind or unbind a fixed domain for a TunnelBox site. Trigger phrases include: "bind domain", "綁定網域", "固定網域", "unbind domain", "解除綁定", "domain bind", "domain unbind", "把站台綁到", "自訂網域", "custom domain".
npx claudepluginhub tim80411/ai-agent-extension --plugin tunnelbox-cliThis skill uses the workspace's default tool permissions.
管理 TunnelBox 站台的固定網域綁定(bind / unbind)。全程使用中文回應(除非使用者用英文提問)。
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
管理 TunnelBox 站台的固定網域綁定(bind / unbind)。全程使用中文回應(除非使用者用英文提問)。
tunnelbox domain bind <nameOrId> <domain> --json
JSON 輸出範例(成功):
{ "success": true, "data": { "id": "uuid", "name": "my-site", "domain": "test.example.com", "publicUrl": "https://test.example.com" } }
tunnelbox domain unbind <nameOrId> --json
JSON 輸出範例(成功):
{ "success": true, "data": { "id": "uuid", "name": "my-site", "message": "Domain unbound successfully" } }
JSON 輸出範例(無綁定):
{ "success": true, "data": { "id": "uuid", "name": "my-site", "message": "No domain binding found" } }
先確認使用者已登入 Cloudflare:
tunnelbox auth status --json
若未登入,提示使用者先執行 tunnelbox auth login。
確認使用者提供了站台名稱(或 ID)和目標網域。
若使用者不確定站台名稱,先用 tunnelbox site list --json 查詢。
執行指令:
tunnelbox domain bind <nameOrId> <domain> --json
解析 JSON 輸出,向使用者回報:
tunnelbox site list --json 查詢。tunnelbox domain unbind <nameOrId> --json
所有指令加上 --json 以取得結構化輸出。錯誤格式:
{ "success": false, "error": "error message" }
| 錯誤訊息 | 原因 | 建議 |
|---|---|---|
| Not logged in | 未登入 Cloudflare | 執行 tunnelbox auth login |
| Site not found | 站台名稱或 ID 不存在 | 用 tunnelbox site list 確認 |
| No domain binding found | 該站台沒有綁定網域 | 無需操作 |
遇到錯誤時,向使用者說明原因並提供可行的解決建議。