truefoundry-ml-repos
Original:🇺🇸 English
Translated
2 scripts
Browses TrueFoundry ML repositories and model registry. Lists repos, models, and artifacts with FQNs for use in other skills.
6installs
Added on
NPX Install
npx skill4agent add truefoundry/tfy-deploy-skills truefoundry-ml-reposTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →<objective>Routing note: For ambiguous user intents, use the shared clarification templates in references/intent-clarification.md.
ML Repos
Browse TrueFoundry ML repositories and model registry. List ML repos, get repo details, and list models/artifacts within a repo.
Scope
Browse ML repositories, list models and artifacts, and retrieve FQNs for use with other skills (prompts, llm-deploy).
</objective>
<instructions>
Step 1: Preflight
Run the skill first to verify and are set and valid.
statusTFY_BASE_URLTFY_API_KEYWhen using direct API, set to the full path of this skill's . See for paths per agent.
TFY_API_SHscripts/tfy-api.shreferences/tfy-api-setup.mdStep 2: List ML Repos
Via Tool Call
tfy_ml_repos_list()Via Direct API
bash
TFY_API_SH=~/.claude/skills/truefoundry-ml-repos/scripts/tfy-api.sh
# List all ML repos
$TFY_API_SH GET /api/ml/v1/ml-reposPresent results:
ML Repos:
| Name | ID | FQN |
|---------------|----------|------------------------|
| my-models | mlr-abc | ml-repo:my-models |
| experiment-1 | mlr-def | ml-repo:experiment-1 |Step 3: Get ML Repo Details
Via Tool Call
tfy_ml_repos_get(id="REPO_ID")Via Direct API
bash
# Get ML repo by ID
$TFY_API_SH GET /api/ml/v1/ml-repos/REPO_IDStep 4: List Models in a Repo
Via Tool Call
tfy_models_list(ml_repo_id="REPO_ID")Via Direct API
bash
# List models (filter by ml_repo_id, name, or fqn)
$TFY_API_SH GET "/api/ml/v1/models?ml_repo_id=REPO_ID"
# Search by name
$TFY_API_SH GET "/api/ml/v1/models?name=my-model"
# Search by FQN
$TFY_API_SH GET "/api/ml/v1/models?fqn=model:my-models:my-model"Present results:
Models in "my-models":
| Name | ID | FQN | Versions |
|-------------|----------|-------------------------------|----------|
| my-model | mdl-abc | model:my-models:my-model | 3 |
| classifier | mdl-def | model:my-models:classifier | 1 |<success_criteria>
Success Criteria
- The user can list all ML repos and see them in a formatted table
- The user can get details for a specific ML repo by ID
- The user can list models within a repo, filtered by repo ID, name, or FQN
- The agent has provided FQN values that can be used with other skills (prompts, llm-deploy)
</success_criteria>
<references>
Composability
- Preflight: Use skill to verify TFY_BASE_URL and TFY_API_KEY
status - Prompts: ML repo FQN is needed when creating prompts (skill)
prompts - Fine-tuning: Fine-tuned model outputs are saved to ML repos
- Deploy: Models from the registry can be deployed using skill
llm-deploy
API Endpoints
See for the full ML Repos and Models API reference.
</references>
<troubleshooting>
references/api-endpoints.mdError Handling
ML Repo Not Found
ML repo ID not found. List repos first to find the correct ID.No Models in Repo
This ML repo has no models yet. Models appear after logging artifacts via the SDK or fine-tuning.Permission Denied
Cannot access ML repos. Check your API key permissions.Empty Response
No ML repos found. Create one via the TrueFoundry UI or SDK:
import truefoundry as tfy
client = tfy.TrueFoundryClient()
client.create_ml_repo(name="my-repo")