Agent skill
commit
Create detailed Git commits and push to GitHub. Use when the user wants to commit changes, save work to Git, or push updates to the repository. Trigger words include "commit", "save changes", "push to git", "update repository". (project, gitignored)
Install this agent skill to your Project
npx add-skill https://github.com/arlenagreer/claude_configuration_docs/tree/main/skills/commit
SKILL.md
Git Commit and Push Skill
Overview
This skill guides the creation of meaningful Git commits with detailed summaries and pushes them to GitHub. It leverages the SuperClaude /sc:git command to handle the commit workflow with intelligent message generation and proper formatting.
When to Use This Skill
Activate this skill when the user:
- Explicitly asks to "commit" changes
- Wants to "save" work to Git or GitHub
- Says "push" or "push changes"
- Mentions updating the repository
- Requests to create a commit message
- Wants to save progress to version control
Workflow
Follow this workflow when the skill is activated:
1. Review Current State
Check the current Git status to understand what files have changed:
git status
Examine the actual changes to understand what was modified:
git diff
2. Invoke SuperClaude Git Command
Use the /sc:git command to handle the commit process. This command will automatically:
- Stage all changes
- Generate an appropriate commit message based on the changes
- Create the commit with proper formatting
- Push to the remote repository
The /sc:git command follows Git workflow best practices and handles all the mechanics of committing and pushing.
3. Commit Message Structure
The generated commit message follows this conventional format:
<type>(<scope>): <subject>
<detailed description of changes>
Why these changes were made:
<rationale>
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
Commit Types:
feat: New featuresfix: Bug fixesdocs: Documentation changesstyle: Code style/formatting changesrefactor: Code refactoringtest: Test additions/changeschore: Maintenance tasks
Examples
Example 1: Feature Implementation
User Request: "Commit the new authentication feature"
Process:
- Run
git statusto see changed files - Run
git diffto review the changes - Invoke
/sc:gitto commit and push - Result: Creates a commit like:
feat(auth): implement JWT-based authentication - Added JWT token generation and validation - Implemented login/logout endpoints - Added auth middleware for protected routes Why these changes were made: - Improves security with token-based auth - Provides stateless authentication mechanism 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
Example 2: Bug Fix
User Request: "Save these bug fixes to git"
Process:
- Review changes with
git diff - Use
/sc:gitto commit and push - Result: Creates a commit with proper bug fix categorization and detailed explanation
Example 3: Documentation Update
User Request: "Commit and push the documentation updates"
Process:
- Check
git statusto see which docs were modified - Invoke
/sc:gitcommand - Result: Commits docs changes with clear description and pushes to GitHub
Important Notes
- Always review changes before committing to ensure accuracy
- The skill works on the currently checked-out Git branch
- If there are no changes to commit, inform the user
- If the repository has uncommitted changes from others, warn before pushing
- Follow Git best practices and project conventions
- The
/sc:gitcommand handles all staging, commit message generation, and pushing automatically
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
Send and draft professional emails with seasonal HTML formatting, authentic writing style, contact lookup via Google Contacts, security-first approach, and Google Gmail API via Ruby CLI. This skill should be used for ALL email operations (mandatory per RULES.md).
worklog
Track billable hours for clients. This skill should be used when the user requests to log work hours, record time spent on client projects, view worklog entries, calculate total billable hours, or summarize recent work. Automatically prompts for missing information (client, hours, description) and validates client names against the invoice skill's client database.
calendar
Manage Google Calendar with full event operations including viewing schedule, creating/editing/deleting events, finding free time, managing attendees via Google Contacts, adding Google Meet links, and timezone handling. This skill should be used for ALL calendar-related requests.
google-sheets
Manage Google Sheets with comprehensive spreadsheet operations including reading/writing cell values, formulas, formatting, sheet management, and batch operations. Use for spreadsheet data operations, cell ranges, formulas, formatting, batch updates, and data analysis workflows. Shares OAuth token with email, calendar, contacts, drive, and docs skills.
google-drive
Manage Google Drive files and folders with full CRUD operations via Ruby scripts. Use for file storage operations, folder organization, sharing permissions, searching across Drive, and uploading/downloading files of any type. Works seamlessly with google-sheets and google-docs skills for complete Google Workspace integration.
obsidian-file-manager
Manage documentation files in an Obsidian vault via the official Obsidian CLI (v1.12.4+) or direct file access. Use when creating session artifacts, moving planning documents to the vault, updating document lifecycle states (active/processed/archived), searching vault by tags or content, automating archival of old documents, reading/appending to daily notes, managing properties and tags, or integrating with task-startup/task-wrapup workflows.
Didn't find tool you were looking for?