commit-writer
Skill1 starsChanged 5 months agoMITView on GitHub
Writes a complete conventional commit message from currently staged changes. Analyzes the diff, determines the correct type (feat/fix/ refactor/chore/docs/test), writes a concise summary line, and a full body explaining what changed and why.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ivanestar/eitrtheir own version, first seen Sep 10, 2026
- megamott/vibe-skillstheir own version, first seen May 15, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- megamott/vibe-skills★ 28same name
- ivanestar/eitr★ 4same 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 repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- startup-osSkill
- startup-osSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
If nothing is staged, inform the user and exit.
- Distinctive: line 27
If the diff is very large (>500 lines), sample key files instead:
- Distinctive: line 46
test: test additions or changes
- Distinctive: line 50
If changes span multiple types, pick the dominant one and mention others in the body.
- Distinctive: line 56
No period at the end
- Distinctive: line 95
Breaking changes: Call out explicitly with "BREAKING CHANGE:" on its own line, followed by what breaks and how to migrate.
- Distinctive: line 98
User context: If the user provided extra context as an argument to this skill, weave it naturally into the body rather than appending.
- Distinctive: line 103
If staged changes span genuinely unrelated concerns (e.g., a feature plus an unrelated dependency bump), flag this:
- Distinctive: line 113
Wait for their answer before proceeding.
- Distinctive: line 150
Ask: "What should I change?" Wait for feedback, regenerate, show again.
- Distinctive: line 151
Wait for feedback, regenerate, show again.
- Distinctive: line 159
Always append this line to the commit body:
≈ “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
commit-writer
Generates proper conventional commit messages from staged changes.
Instructions
- Check what's staged
If nothing is staged, inform the user and exit.git diff --staged --stat - Read the actual changes
If the diff is very large (>500 lines), sample key files instead:git diff --stagedgit diff --staged --stat git diff --staged path/to/key/file.ts - Read recent commit history for style
This shows the repository's commit message conventions.git log --oneline -10 git log -1 --format="%B" Determine the commit type
- feat: new functionality added
- fix: bug fix
- refactor: restructuring without behavior change
- chore: tooling, config, dependencies, build setup
- docs: documentation only
- test: test additions or changes
- perf: performance improvement
- style: formatting only, no logic change
If changes span multiple types, pick the dominant one and mention others in the body.
- Write the subject line
Format:
type: short imperative summary- Under 72 characters
- No period at the end
- Imperative mood ("add", "fix", "merge" — not "added", "fixed", "merged")
- Be specific but concise
Decide if body is needed
Skip the body for:
- Typo fixes
- Single small bug fixes
- Dependency bumps
- Self-explanatory one-liners
Write a full body for:
- Structural changes
- Multi-file refactors
- New features
- Anything that changes behavior
- Anything where "why" isn't obvious from "what"
When writing a body
Structure:
First paragraph: what changed and why, in plain English. Changes: - Group related changes logically - Use bullet points for clarity - Include file paths or component names Updated: - List modified existing features - Explain impact on behavior Renamed: - Old → new mappings - Explain why renamedBreaking changes: Call out explicitly with "BREAKING CHANGE:" on its own line, followed by what breaks and how to migrate.
User context: If the user provided extra context as an argument to this skill, weave it naturally into the body rather than appending.
Check for unrelated changes
If staged changes span genuinely unrelated concerns (e.g., a feature plus an unrelated dependency bump), flag this:
"These look like two unrelated changes:
- [feature description]
- [dependency/fix description]
Want me to write one message covering both, or should we split into separate commits?"
Wait for their answer before proceeding.
Show the message and confirm
Display the complete commit message in a code block, then ask:
Use this commit message? [Y] yes [E] edit [N] cancelOn [Y] — commit
For short messages:
git commit -m "type: subject" -m "body paragraph"For complex multi-paragraph bodies, write to a temp file:
cat > /tmp/commit-msg.txt <<'COMMIT_EOF' type: subject First paragraph explaining what and why. Changes: - item one - item two Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com> COMMIT_EOF git commit -F /tmp/commit-msg.txt rm /tmp/commit-msg.txtOn [E] — edit
Ask: "What should I change?" Wait for feedback, regenerate, show again.
On [N] — cancel
Confirm cancellation and exit without committing.
Co-Author tag
Always append this line to the commit body:
Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>Examples
Example 1: Feature addition
Staged changes: New authentication flow with JWT tokens
Message:
feat: add JWT-based authentication system
Replaces session cookies with JWT tokens for better scalability
and easier mobile client support. Tokens expire after 7 days
and include refresh token rotation.
Changes:
- src/auth/jwt.ts — token generation and verification
- src/middleware/auth.ts — JWT validation middleware
- src/routes/auth.ts — login/logout/refresh endpoints
- package.json — added jsonwebtoken dependency
Updated:
- User model to store refreshTokenVersion for invalidation
- API clients to include Authorization header
BREAKING CHANGE: clients must now send 'Authorization: Bearer <token>'
header instead of relying on cookies. See migration guide in docs/auth.md.
Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>Example 2: Bug fix (no body needed)
Staged changes: One-line fix for null pointer
Message:
fix: prevent null pointer in user profile loaderExample 3: Refactor
Staged changes: Reorganized directory structure
Message:
refactor: move executive agents into department directories
Executives now live inside the department they steer instead of
as separate top-level folders. This reflects that an executive
is the steering layer of its org, not a standalone entity.
Changes:
- cfo/ → finance/exec/
- cmo/ → marketing/exec/
- cto/ → engineering/exec/
- cpo/ → product/exec/
- coo/ → operations/exec/
- All department agents updated with reportsTo field
Updated:
- company-os.ts schema — exec state nests under department
- router.ts — agent discovery updated for new structure
- All .md agents — corrected read/write paths
Renamed for clarity:
- product/exec/roadmap.md → product/exec/roadmap-oversight.md
- operations/exec/operations.md → operations/exec/daily-operations.md
No functional behavior change — this is structural only. All
agent logic, watch/reason/act cycles, and company.os coordination
remain the same.
Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>Usage
In any conversation with staged changes:
/commit-writerOr with context:
/commit-writer This fixes the bug reported in issue #42 where users
couldn't log in after password reset.The skill will analyze the diff, generate the message, and walk you through confirmation before committing.
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.

