make-commit
Skill0 starsChanged 19 days agoMITView on GitHub
Inspect current Git changes, auto-add detected AI artifacts to .gitignore, and draft a clean commit message matching repository conventions. Use when the user invokes make-commit or requests a commit message.
- Reads credentials
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- cypher0n3/dotagentstheir own version, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- cypher0n3/dotagents★ 3same 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.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 11 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
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 24
Run the following non-destructive inspection commands:
- Distinctive: line 37
Zero changes: If no modified or staged files exist, report "No changes detected" and stop.
- Distinctive: line 38
Missing repo: If not inside a Git worktree, request repository access or the raw diff and commit history.
- Distinctive: line 44
Before drafting commit messages, scan workspace for AI-generated artifacts:
- Very specific: line 51
If .gitignore does not exist in project root, create it.
- Very specific: line 52
If detected AI artifacts are untracked and not covered by .gitignore, append them under an # AI Assistant & Agent Artifacts section.
- Very specific: line 53
If AI artifacts were already staged (git diff --cached), warn the user and recommend unstaging (git restore --staged <path> or git rm …
- Distinctive: line 60
Before drafting, scan the diff and file paths:
- Distinctive: line 63
Filter AI agent and assistant artifacts: Never include internal AI thoughts, agent system prompts, or scratch artifacts in commit messages.
- Distinctive: line 65
Do not execute commits automatically: Never run git commit, git add, git push, or alter Git history unless explicitly commanded by the user.
- Distinctive: line 73
If undocumented, infer the dominant pattern from recent human commits (discount automated merge commits and bump bot commits):
- Very specific: line 81
Never invent ticket or issue numbers.
- Distinctive: line 99
Avoid generic phrases like "update files", "fix bugs", "misc changes".
- Distinctive: line 109
If the diff contains unrelated changes (e.g., refactoring auth + fixing UI CSS), recommend splitting into atomic commits and provide …
- Distinctive: line 121
Add any scope explanations, split recommendations, or notes outside the block.
≈ “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
Make Commit
Purpose
Inspect current Git changes and repository commit history, ensure AI-generated artifacts are safely ignored in .gitignore, analyze the intent of the diff, and draft a high-quality commit message tailored to the project's established conventions.
Workflow
1. Inspect Changes and Context
Run the following non-destructive inspection commands:
git status --short
git log -15 --format='%h %s%n%b%n---'
git diff --cached --stat
git diff --statScope Rules:
- Staged changes present (
git diff --cached): Focus strictly on staged changes. - No staged changes: Analyze unstaged changes (
git diff) and untracked files. State clearly that the draft covers unstaged changes. - Deep inspect: Inspect relevant file diffs with
git diff -U3or read specific files when semantics are ambiguous. - Zero changes: If no modified or staged files exist, report "No changes detected" and stop.
- Missing repo: If not inside a Git worktree, request repository access or the raw diff and commit history.
2. AI Artifact Detection & Auto-.gitignore Protection
Before drafting commit messages, scan workspace for AI-generated artifacts:
- Scan for AI files & folders in the workspace:
- Tool & agent directories:
.gemini/,.claude/,.cursor/,.cline/,.roo/,.windsurf/,.copilot/ - Cache, memory & logs:
brain/,scratch/,chat-transcripts/,.aider* - File patterns:
*.chat,*.transcript,*.prompt.md
- Tool & agent directories:
- Auto-update project
.gitignore:- If
.gitignoredoes not exist in project root, create it. - If detected AI artifacts are untracked and not covered by
.gitignore, append them under an# AI Assistant & Agent Artifactssection. - If AI artifacts were already staged (
git diff --cached), warn the user and recommend unstaging (git restore --staged <path>orgit rm --cached -r <path>).
- If
- Notify user: Inform the user if
.gitignorewas created or updated with AI artifact patterns before presenting the commit message.
3. Guardrails & Secret Prevention
Before drafting, scan the diff and file paths:
- Never reference or expose secrets: Reject or warn on API keys, private tokens, passwords,
.enventries, SSH keys, credentials, or certificates. - Filter AI agent and assistant artifacts: Never include internal AI thoughts, agent system prompts, or scratch artifacts in commit messages.
- Never inspect or add ignored files: Respect
.gitignore. - Do not execute commits automatically: Never run
git commit,git add,git push, or alter Git history unless explicitly commanded by the user.
4. Identify Repository Commit Format
Prioritize documented project guidelines (e.g., CONTRIBUTING.md, AGENTS.md, .commitlintrc*, or commitlint.config.js).
If undocumented, infer the dominant pattern from recent human commits (discount automated merge commits and bump bot commits):
- Conventional Commits:
- Pattern:
<type>(<scope>): <subject> - Types:
feat,fix,docs,style,refactor,perf,test,build,ci,chore,revert - Breaking changes:
<type>!: <subject>orBREAKING CHANGE:in body/footer.
- Pattern:
- Issue / Ticket Prefixes:
- Pattern:
[PROJ-1234] <subject>orfeat: [ABC-99] <subject>or#123: <subject>. - Never invent ticket or issue numbers. Only include if evident from branch name (
feature/PROJ-123), staged files, or user prompt.
- Pattern:
- Gitmoji:
- Pattern:
:emoji: <subject>or✨ feat: <subject>. - Match existing emoji conventions if predominantly used.
- Pattern:
- Standard Imperative (Default):
- Pattern:
<Verb in imperative mood> <concise summary> - Example:
Add user authentication middleware
- Pattern:
Match repository casing (lowercase vs capitalized subject), punctuation (no trailing period in subject line), and language.
5. Analyze Intent and Draft Content
- Subject Line:
- Imperative mood ("Add", "Fix", "Refactor", not "Added", "Fixing").
- Target <= 50-72 characters.
- Accurately summarize the core change.
- Avoid generic phrases like "update files", "fix bugs", "misc changes".
- Commit Body:
- Separate subject and body with a blank line.
- Focus on WHY the change was made, not just WHAT lines changed.
- Explain context, trade-offs, before-and-after behavior, or potential side-effects.
- Wrap body text at 72-80 characters for terminal readability.
- For trivial changes (typo fix, small dependency bump), a subject line alone is sufficient.
- Multi-Concern Handling:
- If the diff contains unrelated changes (e.g., refactoring auth + fixing UI CSS), recommend splitting into atomic commits and provide message drafts for each.
6. Output Format
Return the recommended message in a fenced text code block ready to copy:
<commit message here>Add any scope explanations, split recommendations, or notes outside the block.
Examples
Example 1: Conventional Commit (Feature)
feat(auth): add refresh token rotation and revocation endpoint
Rotate refresh tokens upon each use to protect against replay attacks.
Revoke old tokens immediately and log invalid reuse attempts.
Closes #142Example 2: Bug Fix (Standard Imperative)
Fix off-by-one error in pagination calculation
Page offset calculations previously resulted in an empty first page
when page size matched total record count. Correct zero-based index
handling in list_items query.Example 3: Breaking Change
feat(api)!: migrate v1 response envelope to standard JSON:API format
BREAKING CHANGE: Response data is now nested under `data.attributes`.
Clients must update deserializer models before upgrading to v2.0.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.

