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)

Stars 4
Forks 0

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:

bash
git status

Examine the actual changes to understand what was modified:

bash
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 features
  • fix: Bug fixes
  • docs: Documentation changes
  • style: Code style/formatting changes
  • refactor: Code refactoring
  • test: Test additions/changes
  • chore: Maintenance tasks

Examples

Example 1: Feature Implementation

User Request: "Commit the new authentication feature"

Process:

  1. Run git status to see changed files
  2. Run git diff to review the changes
  3. Invoke /sc:git to commit and push
  4. 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:

  1. Review changes with git diff
  2. Use /sc:git to commit and push
  3. 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:

  1. Check git status to see which docs were modified
  2. Invoke /sc:git command
  3. 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:git command handles all staging, commit message generation, and pushing automatically

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

arlenagreer/claude_configuration_docs

email

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

4 0
Explore
arlenagreer/claude_configuration_docs

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.

4 0
Explore
arlenagreer/claude_configuration_docs

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.

4 0
Explore
arlenagreer/claude_configuration_docs

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.

4 0
Explore
arlenagreer/claude_configuration_docs

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.

4 0
Explore
arlenagreer/claude_configuration_docs

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.

4 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results