commit-and-push
Skill1 starsChanged 19 days agoMITView on GitHub
Format, build-check, generate a Conventional Commits message from the staged diff, then commit and (with approval) push. Use this skill whenever the user asks to "commit", "commit and push", "make a commit", "write a commit message", "push these changes", "wrap this up and push it", or similar phrasing — even when they don't explicitly mention conventional commits. Default to using this skill any time the workflow is "I've staged some changes, finish the job."
14 other projects use a version of this.
Adopted by
Most recently taken up by
- giacomo-ciro/skillstheir own version, first seen Nov 29, 2026
- travis-south/agsktheir own version, first seen Nov 10, 2026
- gigio1023/agent-skillstheir own version, first seen Oct 13, 2026
- FradSer/skillstheir own version, first seen Oct 13, 2026
- BUGLAN/skillstheir own version, first seen Oct 13, 2026
- zhiding512/claude-skillstheir own version, first seen Oct 13, 2026
Used with
Projects with it also use skill-builder.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
BlockSkillskill-builder
Create, edit, or inspect Berd skills stored as skill folders with SKILL.md files. Use when the user wants to build a new skill, update an existing skill, convert a workflow into a reusable skill, or decide whether instructions, scripts, references, or assets belong in a skill.
Also in 3 projects that use this
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- legions-developer/evilcharts★ 3.2ksame name
- FradSer/skills★ 4same name
- birdsigh/Skills★ 3same name
- Gusen1453/creed★ 3same name
- gigio1023/agent-skills★ 2same name
- gigio1023/gigio-skills★ 2same name
- BUGLAN/skills★ 1same name
- giacomo-ciro/skills★ 1same name
- iden0605/Claude-Skills★ 1same name
- lsaOntact/claude-skills★ 0same name
4 more not listed
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 repository16 other files it gives its agents.
- airbnb-javascript-styleSkill
- code-reviewerSkill
- code-simplifierSkill
- commitSkill
- debugSkill
- explainSkill
- find-skillsSkill
- frontend-designSkill
- generate-commit-messageSkill
- humanizerSkill
- ponytailSkill
- pr-descriptionSkill
- prompt-optimizerSkill
- readme-generatorSkill
- testSkill
- thermo-nuclear-code-quality-reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 12 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
12
Distinctive
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
- Distinctive: line 26
If nothing is staged yet, stop and ask the user what they want staged before proceeding.
- Distinctive: line 30
Follow these steps in order.
- Distinctive: line 34
Run git status --short to confirm:
- Distinctive: line 40
If nothing is staged, stop and tell the user — don't try to stage things on their behalf.
- Very specific: line 44
Run npm run format to apply formatting and auto-fix lint errors.
- Very specific: line 46
If the script doesn't exist (e.g.
- Very specific: line 47
If the repo isn't a Node project at all (no package.json), skip silently.
- Distinctive: line 48
If formatting fails with real errors (not "missing script"), surface them and stop — don't commit broken code.
- Distinctive: line 53
If formatting touched files that overlap with what was already staged, ask the user: "Formatting modified files that overlap with your …
- Distinctive: line 54
If formatting touched unrelated files, leave them alone — the user can decide what to do with them separately.
- Very specific: line 58
Run npm run build to catch type errors and broken imports before committing.
- Distinctive: line 60
If the script doesn't exist, warn the user and continue.
- Distinctive: line 61
If it fails, stop and report the errors.
- Distinctive: line 65
Run git diff --staged and read it carefully.
- Distinctive: line 67
If the diff is very large, also run git diff --staged --stat to get the file-level summary so you can describe the change at the right …
- Distinctive: line 71
Use the Conventional Commits format:
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Commit and Push
A safe, repeatable workflow for taking staged changes from "ready" to "pushed", with a Conventional Commits message generated from the actual diff.
When to use
Trigger this skill when the user wants to finalize staged work — typical phrasings:
- "commit and push"
- "commit this"
- "write a commit message for these changes"
- "push my changes"
- "wrap this up and push it"
If nothing is staged yet, stop and ask the user what they want staged before proceeding.
Workflow
Follow these steps in order. Each step has a rationale — read it and adapt rather than executing blindly.
1. Sanity check the repo state
Run git status --short to confirm:
- We're inside a git repo.
- Something is actually staged (lines starting with
M,A,D,R, etc. in the first column). - A commit identity is configured. Check with
git config user.nameandgit config user.email. If either is empty, stop and ask the user what identity to use — don't guess, and don't silently write to global git config.
If nothing is staged, stop and tell the user — don't try to stage things on their behalf.
2. Format the code
Run npm run format to apply formatting and auto-fix lint errors.
- If the script doesn't exist (e.g.
npm ERR! Missing script: "format"), warn the user ("noformatscript in package.json — skipping") and continue. - If the repo isn't a Node project at all (no
package.json), skip silently. - If formatting fails with real errors (not "missing script"), surface them and stop — don't commit broken code.
Important: Formatting may modify files. Any modifications land in the working tree as unstaged changes. After formatting:
- Run
git status --shortagain. - If formatting touched files that overlap with what was already staged, ask the user: "Formatting modified files that overlap with your staged changes. Re-stage them so the formatting is included in this commit?" If yes, run
git addon those paths. - If formatting touched unrelated files, leave them alone — the user can decide what to do with them separately.
3. Build check
Run npm run build to catch type errors and broken imports before committing.
- If the script doesn't exist, warn the user and continue.
- If it fails, stop and report the errors. Do not commit. The user will want to fix the build first.
4. Inspect the staged diff
Run git diff --staged and read it carefully. This is the source of truth for the commit message — not memory of the conversation, not assumptions about what changed. The diff is what gets committed.
If the diff is very large, also run git diff --staged --stat to get the file-level summary so you can describe the change at the right altitude.
5. Compose the commit message
Use the Conventional Commits format:
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.

