truefoundry-workspaces
Skill1 starsChanged 8 months agoMITView on GitHub
Lists TrueFoundry workspaces and clusters. Provides workspace FQNs for deployment, cluster connectivity status, available GPU types, and base domains.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/deploy.mdcCursor rule
- .cursor/rules/security.mdcCursor rule
- .cursor/rules/workflow.mdcCursor rule
- truefoundry-access-controlSkill
- truefoundry-access-tokensSkill
- truefoundry-applicationsSkill
- truefoundry-deploySkill
- truefoundry-docsSkill
- truefoundry-gitopsSkill
- truefoundry-helmSkill
- truefoundry-jobsSkill
- truefoundry-llm-deploySkill
- truefoundry-logsSkill
- truefoundry-ml-reposSkill
- truefoundry-monitorSkill
- truefoundry-notebooksSkill
- truefoundry-onboardingSkill
- truefoundry-secretsSkill
- truefoundry-service-testSkill
- truefoundry-ssh-serverSkill
- truefoundry-statusSkill
- truefoundry-tracingSkill
- truefoundry-volumesSkill
- truefoundry-workflowsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
If tool calls are unavailable because the MCP server is not configured, or a tool is missing, fall back automatically to direct API via …
- Very specific: line 33
When using direct API, set TFY_API_SH to the full path of this skill's scripts/tfy-api.sh.
- Very specific: line 37
Never ask users to set
TFY_CLUSTER_IDmanually: Instead, list clusters and let the user pick — then filter workspaces by that cluster. - Distinctive: line 89
If the user has access to only one cluster, skip the cluster selection step — go straight to listing workspaces.
- Distinctive: line 125
When a user wants to expose a service publicly, you need the cluster's base domains to construct a valid hostname.
- Distinctive: line 129
When a user needs GPU resources, discover what's available on the cluster before offering options.
- Distinctive: line 146
If you deploy with an unsupported GPU type, the error message lists all valid ones:
- Distinctive: line 151
Not all types are available on every cluster: Always check before presenting options to the user.
- Very specific: line 171
Need workspace for deploy: Use this skill first, then deploy skill with the fqn
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Routing note: For ambiguous user intents, use the shared clarification templates in references/intent-clarification.md.
<objective>Workspaces & Clusters
List TrueFoundry workspaces and clusters. Workspaces are the deploy targets; clusters are the underlying infrastructure.
When to Use
List workspaces and clusters, find workspace FQNs for deployment, check cluster connectivity, or discover available GPU types and base domains.
</objective><instructions>Execution Priority
For simple read/list operations in this skill, always use MCP tool calls first:
tfy_clusters_listtfy_workspaces_list
If tool calls are unavailable because the MCP server is not configured, or a tool is missing, fall back automatically to direct API via tfy-api.sh.
When using direct API, set TFY_API_SH to the full path of this skill's scripts/tfy-api.sh. See references/tfy-api-setup.md for paths per agent.
Recommended Flow: Cluster → Workspace
Never ask users to set TFY_CLUSTER_ID manually. Instead, list clusters and let the user pick — then filter workspaces by that cluster.
Step 1: List Clusters
# Via Tool Call
tfy_clusters_list()
# Via Direct API
$TFY_API_SH GET /api/svc/v1/clustersPresent as a table and ask the user to pick one:
Clusters:
| Name | ID | Connected |
|------------------|------------------|-----------|
| prod-cluster | prod-cluster | Yes |
| dev-cluster | dev-cluster | Yes |
Which cluster would you like to use?Step 2: List Workspaces (Filtered by Cluster)
Once the user picks a cluster, list workspaces filtered to that cluster:
# Via Tool Call
tfy_workspaces_list(filters={"cluster_id": "selected-cluster-id"})
# Via Direct API
$TFY_API_SH GET '/api/svc/v1/workspaces?clusterId=SELECTED_CLUSTER_ID'Present as a table and ask the user to pick one:
Workspaces in prod-cluster:
| Name | FQN |
|------------|----------------------------|
| dev-ws | prod-cluster:dev-ws |
| staging-ws | prod-cluster:staging |
Which workspace would you like to use?Key field: fqn — this is what TFY_WORKSPACE_FQN needs for deploy.
Shortcut: If Only One Cluster
If the user has access to only one cluster, skip the cluster selection step — go straight to listing workspaces.
List All Workspaces (Unfiltered)
# Via Tool Call
tfy_workspaces_list()
# Via Direct API
$TFY_API_SH GET /api/svc/v1/workspacesGet Specific Workspace
# Via Tool Call
tfy_workspaces_list(workspace_id="ws-id-here")
# Via API
$TFY_API_SH GET /api/svc/v1/workspaces/WORKSPACE_IDGet Cluster Details
# Via Tool Call
tfy_clusters_list(cluster_id="cluster-id") # with status + addons
# Via Direct API
$TFY_API_SH GET /api/svc/v1/clusters/CLUSTER_ID
$TFY_API_SH GET /api/svc/v1/clusters/CLUSTER_ID/is-connected
$TFY_API_SH GET /api/svc/v1/clusters/CLUSTER_ID/get-addonsCluster Base Domains (for Public URLs)
When a user wants to expose a service publicly, you need the cluster's base domains to construct a valid hostname. Invalid hosts cause deploy failures. See references/cluster-discovery.md for how to look up base domains, extract cluster ID from workspace FQN, and construct public URLs.
Available GPU Types
When a user needs GPU resources, discover what's available on the cluster before offering options.
How to Discover
Option A: Check workspace-supported GPUs (preferred)
# Get workspace ID first, then query supported GPUs
$TFY_API_SH GET /api/svc/v1/workspaces/WORKSPACE_ID/supported-gpusOption B: Check cluster addons/node pools
$TFY_API_SH GET /api/svc/v1/clusters/CLUSTER_ID/get-addonsOption C: The SDK/API error message tells you
If you deploy with an unsupported GPU type, the error message lists all valid ones:
"None of the nodepools support A10G. Valid devices are [T4, A10_4GB, A10_8GB, A10_12GB, A10_24GB, H100_94GB]"Not all types are available on every cluster. Always check before presenting options to the user.
For the full GPU type reference table and SDK usage examples, see references/gpu-reference.md.
</instructions><success_criteria>
- The user can see a formatted table of available workspaces with their FQNs
- The agent has identified the correct workspace FQN for the user's intended deployment target
- The user can see cluster connectivity status and available infrastructure
- The agent has discovered and presented available GPU types if the user needs GPU resources
- The user has the cluster base domain if they need to expose a service publicly
</success_criteria>
<references>Composability
- Need workspace for deploy: Use this skill first, then
deployskill with thefqn - Need cluster for filtering: Pass
cluster_idto workspaces or applications - Check infra status: Get cluster + addons for monitoring
</references><troubleshooting>Error Handling
No Workspaces Found
No workspaces found. Check:
- The selected cluster may not have any workspaces
- Your API key may not have access to this cluster
- Try listing clusters first to pick a different onePermission Denied
Cannot list workspaces. Your API key may lack workspace permissions.</troubleshooting>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

