persist-ml-git
Skill144 starsChanged 17 days agoBSD-3-ClauseView on GitHub
Commit the current loop stage when the end-turn hook says invoke. Trigger after `python -m skore_skills git end-turn --stage <stage>` returns action invoke, or when the user asks to commit this turn's work.
- Reads credentials
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- probabl-ai/skillsword for word, first seen Oct 27, 2026
Other versions1 project uses a version of this.
Word for word · 1
- probabl-ai/skills★ 144100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-python-packageSkill
- audit-ml-pipelineSkill
- build-ml-pipelineSkill
- choose-python-librarySkill
- evaluate-ml-pipelineSkill
- explore-ml-dataSkill
- export-ml-notebookSkill
- export-ml-projectSkill
- export-ml-siteSkill
- frame-ml-problemSkill
- manage-ml-backlogSkill
- model-ml-pipelineSkill
- plot-ml-figureSkill
- research-ml-practiceSkill
- review-ml-choicesSkill
- review-ml-experimentSkill
- search-ml-literatureSkill
- setup-gitSkill
- setup-ml-projectSkill
- setup-python-envSkill
- setup-workspaceSkill
- shape-user-ideaSkill
- smoke-test-ml-pipelineSkill
- sync-ml-reportsSkill
- triage-ml-taskSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 15
If action is skip, stop. Do not nag.
- Very specific: line 17
If reason is resolve-dotfiles and ambiguous_dotfiles is non-empty, ask once which hidden paths to keep.
- Very specific: line 31
If review_paths is non-empty, ask once which of those paths to keep tracked.
- Very specific: line 51
Run git status. Stage only non-secret paths that are not still listed in review_paths: git add -- <paths>.
- Very specific: line 54
Commit with a one-line subject from this turn's files and intent: git commit -m "…".
- Distinctive: line 60
Do not git push, amend, rebase, or git config.
- Very specific: line 61
Do not invent a commit when the hook was skip (off, unanswered, no_repo, clean).
- Very specific: line 63
Do not call python -m skore_skills git end-turn --stage <stage> to perform the commit.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Persist ML Git
The hook already ran this turn. Follow its JSON. Run git yourself.
- If
actionisskip, stop. Do not nag. Loadtriage-ml-taskif 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. Thenpython -m skore_skills git ignore-merge --decideplus--keep <path>for each chosen path (no--keepif they keep none, including when they pick Keep none). Do not re-ask names gone from the next JSON. Never keep.envor.skore. Ifambiguous_dotfilesis empty orreasonispersist, do not ask about hidden paths. Exit code 2 fromgit ignore-mergeis the structureddotfile decision requiredoutcome, 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 JSONpathandkind, and say that the rest are ignored. Thenpython -m skore_skills git review-decidewith--keep <path>for each chosen path and--ignore <path>for every other path in the list (no--keepif 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.envor.skore. Ifreview_pathsis empty, do not ask about file size, artifacts, or datasets. Do this whenreasonisresolve-review, and also after step 2 whenreasonisresolve-dotfilesand that payload listsreview_paths. Exit code 2 fromgit revieworgit review-decideis the structuredreview decision requiredoutcome, not a generic command failure: read its JSON, ask the decision, and rerunreview-decide. - Run
git status. Stage only non-secret paths that are not still listed inreview_paths:git add -- <paths>. Never.envor.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.
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.

