Agent skill

auto-commit

Automatically commits changes using conventional commits format (feat:, fix:, docs:, chore:, refactor:, test:, style:). Use after completing bug fixes, feature implementations, or documentation updates. Triggered automatically via Stop hook.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/James1218/claude-code-configurations/tree/main/skills/auto-commit

SKILL.md

Auto-Commit with Conventional Commits

Automatically stage and commit changes using the conventional commits specification.

Conventional Commits Format

<type>(<scope>): <description>

[optional body]

Commit Types

Type When to Use
feat New feature or functionality
fix Bug fix
docs Documentation only changes
chore Maintenance (deps, configs, build)
refactor Code restructuring without behavior change
test Adding or modifying tests
style Formatting, whitespace, linting
perf Performance improvements
ci CI/CD changes

Scope (Optional)

Add scope in parentheses for context:

  • feat(auth): add login endpoint
  • fix(api): handle null response
  • docs(readme): update install instructions

Commit Workflow

  1. Check for changes: git status
  2. If changes exist:
    • Stage all: git add -A
    • Review staged: git diff --staged
    • Determine type from changes
    • Write concise description (imperative mood)
    • Commit with proper format

Message Guidelines

  • Use imperative mood: "add feature" not "added feature"
  • Keep first line under 72 characters
  • Don't end with period
  • Be specific but concise

Good Examples

feat(api): add user authentication endpoint
fix: resolve null pointer in payment processing
docs: update API usage examples
chore: upgrade dependencies to latest versions
refactor(db): extract query builder to separate module

Bad Examples

updated stuff          # Too vague
Fixed the bug.         # Don't end with period
Added new feature      # Wrong tense

Important

  • Only commit, do NOT push
  • Always use conventional commits format
  • Include scope when it adds clarity

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

James1218/claude-code-configurations

pandoc-pdf-generation

Generates professional PDFs from Markdown using Pandoc with XeLaTeX. Use when creating PDFs, needing section numbering, table of contents, bibliography, or custom LaTeX styling.

0 0
Explore
James1218/claude-code-configurations

documentation-standards

Markdown documentation standards for LLM-optimized architecture including section numbering rules for Pandoc PDF generation. Use when writing markdown documentation, creating skills, or authoring content that may be converted to PDF.

0 0
Explore
James1218/claude-code-configurations

skill-architecture

Comprehensive guide for creating effective Claude Code skills with security best practices, CLI-specific features, and structural patterns. Use when creating skills, needing security guidance, understanding skill architecture, or learning best practices.

0 0
Explore
mattpocock/skills

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

111,310 9,758
Explore
mattpocock/skills

handoff

Compact the current conversation into a handoff document for another agent to pick up.

111,310 9,758
Explore
mattpocock/skills

edit-article

Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

111,310 9,758
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results