Stats
Actions
Tags
From trainhub
配置或查看项目的训练平台默认值(Kaggle/Colab/SSH 远程 GPU)。首次在项目中使用 trainhub 前运行,或要切换默认平台、更新凭据引用、调整指标口径时使用。触发词:配置训练平台、setup training、训练默认值、切平台。
How this skill is triggered — by the user, by Claude, or both
Slash command
/trainhub:train-configThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
管理项目级 `.trainhub.json`(放在项目根),声明本项目训练任务的默认平台、运行命名、指标解析规则。让后续 `train-submit` / `train-watch` / `train-harvest` 零额外参数就能跑。
管理项目级 .trainhub.json(放在项目根),声明本项目训练任务的默认平台、运行命名、指标解析规则。让后续 train-submit / train-watch / train-harvest 零额外参数就能跑。
.trainhub.json 结构{
"default_platform": "kaggle",
"platforms": {
"kaggle": {
"account": "lilliareverie",
"dataset_sources": ["lilliareverie/my-dataset"],
"kernel_prefix": "project-exp",
"enable_gpu": true,
"enable_internet": true
},
"ssh": {
"host": "[email protected]",
"remote_dir": "/home/kindred/runs",
"conda_env": "ml"
},
"colab": {
"notebook_template": "templates/colab_train.ipynb",
"drive_folder": "MyDrive/ml-runs"
}
},
"metric": {
"primary": "mAP50",
"source": "results.csv",
"best_fn": "max"
},
"archive": {
"weights_dir": "weights/",
"filename_pattern": "{platform}-{run_name}/",
"keep": ["best.pt", "results.csv"]
}
}
mAP50 换成 accuracy / F1 等.trainhub.json 不存在 → 向用户询问必要字段(default_platform、account/host、metric.primary),写入最小配置.trainhub.json(引用 ~/.secrets/.env 对应段),只存 account name / host alias~/.kaggle/kaggle.json(kaggle CLI 标准位置)~/.ssh/config 的 Host 别名.trainhub.json 进 git(无敏感信息)Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub shallow-dusty/claude-plugins --plugin trainhub