agentleFS
nathanchasenathanchase/claude-code-starter/.claude/skills/focused-committer/SKILL.md

focused-committer

Skill1 starsChanged 5 months agoMITView on GitHub

Smart grouping of files for focused commits with detailed conventional commit messages

  • Reads credentials

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
  1. Distinctive:

    Single logical change per commit: - all files must contribute to one concern

    line 21
  2. Distinctive:

    Tests with implementations: - test files can be grouped with the code they test

    line 23
  3. Distinctive:

    Prefer smaller commits: - when in doubt, split into multiple commits

    line 24
  4. Distinctive:

    Use imperative mood: "add" not "added"

    line 45
  5. Distinctive:

    Start with lowercase letter

    line 46
  6. Distinctive:

    No period at end of subject line

    line 47
  7. Distinctive:

    Don't commit unrelated files together

    line 112
  8. Distinctive:

    Don't use vague messages like "fix stuff" or "updates"

    line 113
  9. Distinctive:

    Don't skip user approval

    line 114
  10. Distinctive:

    Don't include secrets (.env, API keys, credentials)

    line 115
  11. Distinctive:

    Don't commit broken code

    line 116

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 enhancement
  • fix - Bug fix
  • refactor - Code restructure without functionality change
  • perf - Performance improvement
  • style - Formatting, whitespace changes
  • test - Test-related changes only
  • docs - Documentation updates
  • build - Build system or dependency changes
  • chore - 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-only

3. 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.