Agent skill
git-commit
Guide for breaking changes into logical, atomic commits using interactive staging. Use when committing changes that span multiple concerns, when needing to stage parts of files (hunks), when asked to create well-organized commit history, or when changes should be split into multiple commits.
Install this agent skill to your Project
npx add-skill https://github.com/aiskillstore/marketplace/tree/main/skills/chemiseblanc/git-commit
SKILL.md
Git Commit
Break changes into logical, atomic commits using interactive staging.
Workflow
- Analyze all changes
- Identify logical units (one concern per commit)
- Stage relevant changes (whole files or hunks)
- Commit with a good message
- Repeat until all changes are committed
Analyzing Changes
git status # overview of changed files
git diff # unstaged changes
git diff --cached # staged changes
git diff HEAD # all changes (staged + unstaged)
Look for natural boundaries: different features, bug fixes, refactors, or config changes.
Identifying Logical Commits
Each commit should represent one logical change. Signs that changes belong in separate commits:
- Different purposes (bug fix vs feature vs refactor)
- Unrelated files or components
- Changes that could be reverted independently
- Separate items from a PR review or task list
Common groupings:
- Related files implementing a single feature
- A bug fix with its test
- Rename/move operations separate from behavior changes
- Config or dependency changes separate from code
Staging Strategies
Whole files
git add <file> # stage entire file
git add <dir>/ # stage all files in directory
git reset HEAD <file> # unstage file
Partial files (hunk staging)
Use git add -p to stage specific hunks within a file:
git add -p # interactively stage hunks from all files
git add -p <file> # interactively stage hunks from specific file
Hunk commands:
y- stage this hunkn- skip this hunks- split into smaller hunks (if hunk contains multiple changes)q- quit, keeping already-staged hunks?- show help
Verify staged changes
git diff --cached # review exactly what will be committed
Commit Messages
Use the commit-message skill for formatting. Key points:
- Conventional Commits format:
type(scope): description - Imperative mood ("Add feature" not "Added feature")
- Explain why in the body, not what (the diff shows what)
Repeat
After each commit:
git status # check remaining changes
git log --oneline -3 # verify commit was created
Continue staging and committing until all changes are organized into logical commits.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
perigon-backend
Perigon ASP.NET Core + EF Core + Aspire conventions
perigon-agent
Pointers for Copilot/agents to apply Perigon conventions
perigon-angular
Angular 21+ standalone/Material/signal conventions for Perigon WebApp
fastapi-mastery
Comprehensive FastAPI development skill covering REST API creation, routing, request/response handling, validation, authentication, database integration, middleware, and deployment. Use when working with FastAPI projects, building APIs, implementing CRUD operations, setting up authentication/authorization, integrating databases (SQL/NoSQL), adding middleware, handling WebSockets, or deploying FastAPI applications. Triggered by requests involving .py files with FastAPI code, API endpoint creation, Pydantic models, or FastAPI-specific features.
context7-efficient
Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.
browser-use
Browser automation using Playwright MCP. Navigate websites, fill forms, click elements, take screenshots, and extract data. Use when tasks require web browsing, form submission, web scraping, UI testing, or any browser interaction.
Didn't find tool you were looking for?