focused-committer
Skill1 starsChanged 5 months agoMITView on GitHub
Smart grouping of files for focused commits with detailed conventional commit messages
- Reads credentials
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- address-pr-commentsSkill
- branches-cleanupSkill
- browser-debugSkill
- jira-attachmentsSkill
- performance-auditSkill
- plan-analyzerSkill
- playwright-cliSkill
- shipSkill
- techdebtSkill
- verify-diffSkill
- writing-great-skillsSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Single logical change per commit: - all files must contribute to one concern
- Distinctive: line 23
Tests with implementations: - test files can be grouped with the code they test
- Distinctive: line 24
Prefer smaller commits: - when in doubt, split into multiple commits
- Distinctive: line 45
Use imperative mood: "add" not "added"
- Distinctive: line 46
Start with lowercase letter
- Distinctive: line 47
No period at end of subject line
- Distinctive: line 112
Don't commit unrelated files together
- Distinctive: line 113
Don't use vague messages like "fix stuff" or "updates"
- Distinctive: line 114
Don't skip user approval
- Distinctive: line 115
Don't include secrets (.env, API keys, credentials)
- Distinctive: line 116
Don't commit broken code
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Focused Committer
Analyze changes and intelligently group files into focused, well-documented commits. Ensures each commit addresses a single logical concern following conventional commit standards.
Invocation
/focused-committer- Analyze and commit all changes/focused-committer staged- Only analyze already-staged changes- "commit my changes" or "help me commit these files"
Core Principles
Commit Scope Rules
- Single logical change per commit - all files must contribute to one concern
- Never bundle unrelated changes - separate features, fixes, and refactors
- Tests with implementations - test files can be grouped with the code they test
- Prefer smaller commits - when in doubt, split into multiple commits
Conventional Commit Format
<type>(<scope>): <description>
<body with bullet points>Types (in order of precedence):
feat- New feature or enhancementfix- Bug fixrefactor- Code restructure without functionality changeperf- Performance improvementstyle- Formatting, whitespace changestest- Test-related changes onlydocs- Documentation updatesbuild- Build system or dependency changeschore- Maintenance tasks
Message Rules:
- Use imperative mood: "add" not "added"
- Start with lowercase letter
- No period at end of subject line
Instructions
1. Configure Git Identity
git config user.name "<Your Name>"
git config user.email "<your@email.com>"2. Analyze All Changes
git branch --show-current
git status --porcelain
git diff --name-only
git diff --staged --name-only3. Identify Logical Groupings
Same Commit (related changes):
- Component + its test file
- Module + components using it
- Type definition + implementation using it
Separate Commits (unrelated changes):
- Bug fix + unrelated new feature
- Dependency updates + feature work
- Formatting changes + logic changes
4. Present Proposed Commit Groups
For each group, show: type, scope, files, proposed message, and reasoning.
5. Get User Approval
CRITICAL: Always ask before committing.
Options for each group:
- "Commit as proposed"
- "Edit message"
- "Split this group"
- "Skip"
- "Merge with next"
6. Execute Approved Commits
git add <specific-files>
git commit -m "$(cat <<'EOF'
type(scope): description
- Bullet point details
EOF
)"7. Report Summary
Show all commits created with hashes, descriptions, and file counts.
What NOT To Do
- Don't commit unrelated files together
- Don't use vague messages like "fix stuff" or "updates"
- Don't skip user approval
- Don't include secrets (.env, API keys, credentials)
- Don't commit broken code
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.

