使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/probabl-ai/skore-skills --skill persist-ml-git开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Persist ML Git
The hook already ran this turn. Follow its JSON. Run git yourself.
- If
actionisskip, stop. Do not nag. Loadtriage-ml-task
if installed, else stop.
- If
reasonisresolve-dotfilesandambiguous_dotfilesis
non-empty, ask once which hidden paths to keep. Include an explicit Keep none option. An empty multi-select is not an answer. Then python -m skore_skills git ignore-merge --decide plus --keep <path> for each chosen path (no --keep if they keep none, including when they pick Keep none). Do not re-ask names gone from the next JSON. Never keep .env or .skore. If ambiguous_dotfiles is empty or reason is persist, do not ask about hidden paths. Exit code 2 from git ignore-merge is the structured dotfile decision required outcome, not a generic command failure: read its JSON, ask the decision, and rerun with --decide.
- If
review_pathsis non-empty, ask once which of those paths
to keep tracked. Include an explicit Keep none option. An empty multi-select is not an answer. List each JSON path and kind, and say that the rest are ignored. Then python -m skore_skills git review-decide with --keep <path> for each chosen path and --ignore <path> for every other path in the list (no --keep if they keep none, including when they pick Keep none). Pass a folder path through with its trailing slash so the ignore line is that folder. Copy paths and kinds from the JSON; do not invent them. Do not re-ask paths gone from the next JSON. Never --keep .env or .skore. If review_paths is empty, do not ask about file size, artifacts, or datasets. Do this when reason is resolve-review, and also after step 2 when reason is resolve-dotfiles and that payload lists review_paths. Exit code 2 from git review or git review-decide is the structured review decision required outcome, not a generic command failure: read its JSON, ask the decision, and rerun review-decide.
- Run
git status. Stage only non-secret paths that are not
still listed in review_paths: git add -- <paths>. Never .env or .skore.
- Commit with a one-line subject from this turn's files and
intent: git commit -m "…". Do not use a canned stage slogan.
- Load
triage-ml-taskif installed, else stop.
Stop conditions
- Do not
git push, amend, rebase, orgit config. - Do not invent a commit when the hook was
skip(off,
unanswered, no_repo, clean).
- Do not call
python -m skore_skills git end-turn --stage <stage>
to perform the commit; that command only prints facts.




