create-commit
Skill4 starsChanged 6 months agoMITView on GitHub
Stages changes safely, generates a conventional-commit message from the diff, and blocks secrets or debug artifacts from being committed. TRIGGER when: user asks to commit, save changes, stage files, write a commit message, run git commit, check in my changes, or commit my work. DO NOT TRIGGER when: user asks to push, open a PR, or create a branch.
- Reads credentials
7 other projects use a version of this.
Adopted by
Most recently taken up by
- PawelBednarekPunks/aidevbird-skillstheir own version, first seen Nov 15, 2026
- rccsousa/skillstheir own version, first seen Nov 8, 2026
- Pubx-ai/skillstheir own version, first seen Nov 8, 2026
- AlvaroVFon/skillstheir own version, first seen Oct 13, 2026
- digital-go-jp/design-system-example-components-reacttheir own version, first seen Oct 9, 2026
- DevCaress/guia-entrevistas-de-programaciontheir own version, first seen Oct 8, 2026
Used with
Projects with it also use create-pr.
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.
SentrySkillcreate-pr
Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.
Also in 4 projects that use this
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- penpot/penpot★ 62ksame name
- DevCaress/guia-entrevistas-de-programacion★ 8.2ksame name
- digital-go-jp/design-system-example-components-react★ 685same name
- Pubx-ai/skills★ 6same name
- AlvaroVFon/skills★ 2same name
- PawelBednarekPunks/aidevbird-skills★ 1same name
- rccsousa/skills★ 1same name
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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audit-skillsSkill
- format-review-commentsSkill
- implement-planSkill
- refine-proseSkill
- review-agents-mdSkill
- review-planSkill
- review-prSkill
- review-skillSkill
- upsert-agents-mdSkill
- upsert-planSkill
- upsert-skillSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
If git status shows no changes (clean working tree), stop and tell the user: "Nothing to commit — the working tree is clean."
- Distinctive: line 37
If the untracked file set is ambiguous (many files, files that look auto-generated, or files outside the project's normal structure), list …
- Very specific: line 41
Before staging anything, scan all modified, added, and untracked files identified in step 1 for secret patterns.
- Distinctive: line 43
If any match is found:
- Distinctive: line 57
If nothing is staged after exclusions, stop and tell the user what was skipped and why.
- Distinctive: line 61
Read the staged diff:
“Common” is measured: kept by at least 6 in 10 of the 7 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
Create Commit
Guides agents through safe, well-formed git commits. Stages files automatically (skipping secrets and artifacts), generates a conventional-commit message from the diff, and confirms before committing.
Instructions
Side effects: stages files (git add), creates a git commit object. Does not push or open a PR.
1. Survey changes
git status
git diffIf git status shows no changes (clean working tree), stop and tell the user: "Nothing to commit — the working tree is clean."
Identify:
- Modified, added, and deleted tracked files
- Untracked files that are clearly part of the work (source files, config, docs in the project tree)
- Files to exclude: binaries, build artifacts, generated files (e.g.
dist/,*.pyc,node_modules/,*.min.js), lock files unless they changed intentionally
If the untracked file set is ambiguous (many files, files that look auto-generated, or files outside the project's normal structure), list them and ask the user which to include before proceeding.
2. Detect secrets
Before staging anything, scan all modified, added, and untracked files identified in step 1 for secret patterns. Read references/secret-patterns.md for the full pattern list.
If any match is found:
- Stop — do not stage the affected file
- Report the file path and the type of pattern matched
- Suggest remediation (remove the value, use an environment variable, add the file to
.gitignore) - Continue with the remaining safe files; do not abort the entire commit unless every file contains secrets
3. Stage automatically
Stage all safe files (those that passed step 2 and are not excluded artifacts) using individual git add <file> calls — never git add . or git add -A.
Report a brief summary:
- Staged: list of files
- Skipped: list of files with reason (secret detected / artifact / binary)
If nothing is staged after exclusions, stop and tell the user what was skipped and why.
4. Generate commit message
Read the staged diff:
git diff --cachedDerive the message following Conventional Commits:
<type>[optional scope]: <subject>
[optional body]Type — pick the best fit:
feat: new feature or capabilityfix: bug fixdocs: documentation onlyrefactor: restructuring without behaviour changetest: adding or updating testschore: maintenance, tooling, dependencies
Scope — optional; use the skill name, component, or directory most affected (e.g. feat(plan):, fix(skills):).
Subject — lowercase imperative mood, no trailing period, ≤72 characters.
Body — include when the change is non-obvious: explain why, not what. Wrap at 72 characters.
5. Commit
Display the proposed commit message to the user, then commit.
Examples
Invocation:
/commitFeature addition:
User has edited
.agents/skills/plan/SKILL.mdto add update mode.
feat(plan): add update mode for existing issues
Allows /plan to be invoked with an issue number or URL to edit an
existing issue in place rather than always creating a new one.Bug fix:
User fixed a typo and a broken link in
AGENTS.md.
fix: correct typo and broken link in AGENTS.mdSecret detected — partial commit:
User runs
/commit; one file contains a hardcoded database password.
Staged: src/api/client.py, README.md
Skipped:
- config/local.env [BLOCKED: explicit secret assignment on line 4]
Fix: remove DB_PASSWORD value; reference $DB_PASSWORD instead,
or add config/local.env to .gitignore
Commit message:
feat(api): add client moduleDoes 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.

