truefoundry-status
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<objective>Routing note: For ambiguous user intents, use the shared clarification templates in references/intent-clarification.md.
<objective>路由说明:针对不明确的用户意图,请使用 references/intent-clarification.md 中的通用澄清模板。
TrueFoundry Status
TrueFoundry 状态检查
Check TrueFoundry connection and verify credentials are configured.
检查TrueFoundry连接并验证凭证是否已配置。
When to Use
适用场景
Verify TrueFoundry credentials and connectivity, or diagnose authentication issues before performing platform operations.
在执行平台操作前验证TrueFoundry凭证和连通性,或排查身份认证问题。
When NOT to Use
不适用场景
- User wants to list workspaces → prefer skill; ask if the user wants another valid path
workspaces - User wants to deploy → prefer skill; ask if the user wants another valid path
deploy - User wants to see running apps → prefer skill; ask if the user wants another valid path
applications
- 用户想要列出工作区 → 优先使用技能;询问用户是否需要其他有效路径
workspaces - 用户想要部署 → 优先使用技能;询问用户是否需要其他有效路径
deploy - 用户想要查看运行中的应用 → 优先使用技能;询问用户是否需要其他有效路径
applications
Required Environment Variables
必填环境变量
| Variable | Description | Example |
|---|---|---|
| TrueFoundry platform URL | |
| CLI host alias (recommended when | |
| API key (raw, no Bearer prefix) | |
| 变量 | 描述 | 示例 |
|---|---|---|
| TrueFoundry平台URL | |
| CLI主机别名(当为CLI命令设置了 | |
| API密钥(原始值,不需要Bearer前缀) | |
Check Credentials
检查凭证
Via Tool Call (if tfy-tool-server is configured)
通过工具调用(如果已配置tfy-tool-server)
If the TrueFoundry tool server is available, use this tool call:
tfy_config_statusThis returns connection status, configured base URL, and whether an API key is set.
如果TrueFoundry工具服务器可用,使用此工具调用:
tfy_config_status该调用会返回连接状态、已配置的基础URL,以及是否设置了API密钥。
Via Direct API
通过直接API调用
Check environment variables and test the connection. Set to the full path of this skill's . See for paths per agent.
TFY_API_SHscripts/tfy-api.shreferences/tfy-api-setup.mdbash
undefined检查环境变量并测试连接。将设置为当前技能下的完整路径。各Agent的路径请查看。
TFY_API_SHscripts/tfy-api.shreferences/tfy-api-setup.mdbash
undefinedCheck env vars are set
Check env vars are set
echo "TFY_BASE_URL: ${TFY_BASE_URL:-(not set)}"
echo "TFY_HOST: ${TFY_HOST:-(not set)}"
echo "TFY_API_KEY: ${TFY_API_KEY:+(set)}${TFY_API_KEY:-(not set)}"
echo "TFY_BASE_URL: ${TFY_BASE_URL:-(not set)}"
echo "TFY_HOST: ${TFY_HOST:-(not set)}"
echo "TFY_API_KEY: ${TFY_API_KEY:+(set)}${TFY_API_KEY:-(not set)}"
Test connection — list workspaces (lightweight call). Use full path shown above.
Test connection — list workspaces (lightweight call). Use full path shown above.
Example for Claude Code:
Example for Claude Code:
~/.claude/skills/truefoundry-status/scripts/tfy-api.sh GET '/api/svc/v1/workspaces?limit=1'
undefined~/.claude/skills/truefoundry-status/scripts/tfy-api.sh GET '/api/svc/v1/workspaces?limit=1'
undefinedVia .env File
通过.env文件检查
If env vars are not set, check for a file:
.envbash
[ -f .env ] && echo ".env found" || echo "No .env file"如果环境变量未设置,检查是否存在文件:
.envbash
[ -f .env ] && echo ".env found" || echo "No .env file"Presenting Status
状态展示
TrueFoundry Status:
- Base URL: https://your-org.truefoundry.cloud ✓
- API Key: configured ✓
- Connection: OK (listed 1 workspace)Or if something is wrong:
TrueFoundry Status:
- Base URL: (not set) ✗
- API Key: (not set) ✗
Set TFY_BASE_URL and TFY_API_KEY in your environment or .env file.
If you do not have a TrueFoundry account yet, run: uv run tfy register
That flow may open a browser for CAPTCHA or human verification before email verification completes.
Get an API key: https://docs.truefoundry.com/docs/generating-truefoundry-api-keys<success_criteria>
- The user can confirm whether TFY_BASE_URL and TFY_API_KEY are correctly set
- The agent has tested the API connection with a lightweight call and reported the result
- The user can see a clear status summary showing which components are configured and which are missing
- The agent has provided actionable next steps if any credential or connectivity issue was found
- The user knows which skill to use next based on their goal (, list workspaces, etc.)
deploy
</success_criteria>
<troubleshooting>TrueFoundry Status:
- Base URL: https://your-org.truefoundry.cloud ✓
- API Key: configured ✓
- Connection: OK (listed 1 workspace)如果出现异常:
TrueFoundry Status:
- Base URL: (not set) ✗
- API Key: (not set) ✗
Set TFY_BASE_URL and TFY_API_KEY in your environment or .env file.
If you do not have a TrueFoundry account yet, run: uv run tfy register
That flow may open a browser for CAPTCHA or human verification before email verification completes.
Get an API key: https://docs.truefoundry.com/docs/generating-truefoundry-api-keys<success_criteria>
- 用户可确认TFY_BASE_URL和TFY_API_KEY是否已正确设置
- Agent已通过轻量调用测试API连接并反馈结果
- 用户可看到清晰的状态汇总,显示哪些组件已配置、哪些缺失
- 如果发现任何凭证或连通性问题,Agent已提供可执行的后续步骤
- 用户可根据自身目标知晓下一步使用哪个技能(、列出工作区等)
deploy
</success_criteria>
<troubleshooting>Error Handling
错误处理
401 Unauthorized
401 未授权
API key is invalid or expired. Generate a new one:
https://docs.truefoundry.com/docs/generating-truefoundry-api-keysAPI key is invalid or expired. Generate a new one:
https://docs.truefoundry.com/docs/generating-truefoundry-api-keysConnection Refused / Timeout
连接被拒绝/超时
Cannot reach TFY_BASE_URL. Check:
- URL is correct (include https://)
- Network/VPN is connectedCannot reach TFY_BASE_URL. Check:
- URL is correct (include https://)
- Network/VPN is connectedMissing Variables
变量缺失
TFY_BASE_URL and TFY_API_KEY are required.
Set them via environment variables or add to .env in project root.
If the user is new to TrueFoundry, have them run `uv run tfy register` first,
complete any browser-based CAPTCHA or human verification it requests, verify their email,
open the returned tenant URL, and create a PAT there.TFY_BASE_URL and TFY_API_KEY are required.
Set them via environment variables or add to .env in project root.
If the user is new to TrueFoundry, have them run `uv run tfy register` first,
complete any browser-based CAPTCHA or human verification it requests, verify their email,
open the returned tenant URL, and create a PAT there.CLI Host Missing (TFY_HOST
error)
TFY_HOSTCLI主机缺失(TFY_HOST
错误)
TFY_HOSTIf tfy CLI says: "TFY_HOST env must be set since TFY_API_KEY env is set"
run: export TFY_HOST="${TFY_HOST:-${TFY_BASE_URL%/}}"If tfy CLI says: "TFY_HOST env must be set since TFY_API_KEY env is set"
run: export TFY_HOST="${TFY_HOST:-${TFY_BASE_URL%/}}"Composability
可组合性
- After status OK: Use any other skill (workspaces, applications, deploy, etc.)
- To set credentials: Export env vars or create .env file
- If using tool calls: Use to persist credentials
tfy_config_set
- 状态正常后:可使用任意其他技能(workspaces、applications、deploy等)
- 设置凭证:导出环境变量或创建.env文件
- 如果使用工具调用:使用持久化存储凭证
tfy_config_set