Agent skill

git-commit

Use this skill when user asks to "commit changes", "create a commit", "stage and commit", or wants help with git commit workflow.

Stars 232
Forks 15

Install this agent skill to your Project

npx add-skill https://github.com/aiskillstore/marketplace/tree/main/skills/21pounder/git-commit

SKILL.md

Git Commit

Create well-structured git commits with conventional commit messages based on staged changes.

Parameters

json
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "Optional commit message override"
    },
    "type": {
      "type": "string",
      "enum": ["feat", "fix", "docs", "style", "refactor", "test", "chore"],
      "description": "Conventional commit type",
      "default": "auto"
    },
    "scope": {
      "type": "string",
      "description": "Optional scope for the commit"
    }
  }
}

When to Use

  • User asks to "commit" changes
  • User wants to "save" their work to git
  • User asks for help with commit messages
  • User wants to stage and commit files

Methodology

Phase 1: Status Check

  • Run git status to see current state
  • Run git diff --staged to see staged changes
  • Run git diff to see unstaged changes
  • Check recent commit history for message style

Phase 2: Analysis

  1. Categorize Changes: Identify what changed (new files, modifications, deletions)
  2. Determine Type: Is this a feature, fix, refactor, etc.?
  3. Identify Scope: What component/module is affected?
  4. Summarize Purpose: What does this change accomplish?

Phase 3: Commit Creation

  • Stage relevant files if not already staged
  • Generate conventional commit message
  • Execute the commit
  • Verify success with git status

Phase 4: Output

Report:

  • What was committed
  • The commit message used
  • The new commit hash

Guidelines

  • Follow Conventional Commits format: type(scope): description
  • Keep subject line under 72 characters
  • Use imperative mood ("Add feature" not "Added feature")
  • Don't commit sensitive files (.env, credentials, etc.)
  • Don't use --force or --amend unless explicitly requested
  • Include meaningful description of WHY, not just WHAT

Examples

Example 1: Auto Commit

User Input: "Commit my changes"

Expected Behavior:

  1. Run git status and git diff to understand changes
  2. Analyze the nature of changes
  3. Generate appropriate commit message
  4. Stage files if needed
  5. Create commit and report success

Example 2: Specific Type

User Input: "创建一个 fix 类型的 commit"

Expected Behavior:

  1. 检查当前的改动
  2. 确认这些改动符合 "fix" 类型
  3. 生成格式为 fix(scope): 描述 的提交信息
  4. 执行提交并报告结果

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

aiskillstore/marketplace

perigon-backend

Perigon ASP.NET Core + EF Core + Aspire conventions

232 15
Explore
aiskillstore/marketplace

perigon-agent

Pointers for Copilot/agents to apply Perigon conventions

232 15
Explore
aiskillstore/marketplace

perigon-angular

Angular 21+ standalone/Material/signal conventions for Perigon WebApp

232 15
Explore
aiskillstore/marketplace

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.

232 15
Explore
aiskillstore/marketplace

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.

232 15
Explore
aiskillstore/marketplace

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.

232 15
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results