Agent skill

commit

Guide for creating atomic commits with conventional commit format. Use when user wants to commit changes.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/alexjx/skills/tree/main/skills/commit

SKILL.md

Commit Changes

Process

1. Review Changes

Run:

bash
git status
git diff HEAD
git diff --stat HEAD

Check for new untracked files:

bash
git ls-files --others --exclude-standard

2. Stage Files

Add the untracked and changed files relevant to the current work.

Do NOT stage:

  • .env or credential files
  • Large binary files
  • Files unrelated to the current task

3. Create Commit

Write an atomic commit message with a conventional commit tag:

  • feat: — New capability or feature
  • fix: — Bug fix
  • refactor: — Code restructure without behavior change
  • docs: — Documentation only
  • test: — Test additions or fixes
  • chore: — Build, CI, tooling changes
  • perf: — Performance improvement

For monorepo changes spanning multiple packages, note the primary package in the scope:

feat(workflows): add DAG condition evaluator
fix(web): resolve SSE reconnection on navigation
refactor(isolation): simplify worktree resolution order

Commit message format:

tag(scope): concise description of what changed

[Optional body explaining WHY this change was made,
not just what changed. Include context that isn't
obvious from the diff.]

[Optional: Fixes #123, Closes #456]

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results