MCPInstall

sc-git

Git operations with intelligent commit messages and workflow optimization. Use when committing changes, managing branches, or optimizing git workflows.

Installs
90
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/tony363/superclaude --skill sc-git
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads sc-git automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Git Operations Skill

Intelligent git operations with smart commit generation.

Quick Start

# Status analysis
/sc:git status

# Smart commit
/sc:git commit --smart-commit

# Interactive merge
/sc:git merge feature-branch --interactive

Behavioral Flow

  1. Analyze - Check repository state and changes
  2. Validate - Ensure operation is appropriate
  3. Execute - Run git command with automation
  4. Optimize - Apply smart messages and patterns
  5. Report - Provide status and next steps

Flags

FlagTypeDefaultDescription
--smart-commitboolfalseGenerate conventional commit message
--interactiveboolfalseGuided operation mode

Evidence Requirements

This skill does NOT require hard evidence. Git operations are self-documenting through:

  • Commit history
  • Branch state
  • Repository logs

Operations

Status Analysis

/sc:git status
# Repository state with change summary
# Actionable recommendations

Smart Commit

/sc:git commit --smart-commit
# Analyzes changes
# Generates conventional commit message
# Format: type(scope): description

Branch Operations

/sc:git branch feature/new-feature
/sc:git checkout main
/sc:git merge feature-branch

Interactive Operations

/sc:git merge feature --interactive
# Guided merge with conflict resolution
# Step-by-step assistance

Commit Message Format

Smart commits follow Conventional Commits:

type(scope): description

[optional body]

[optional footer]

Types:

  • feat - New feature
  • fix - Bug fix
  • docs - Documentation
  • refactor - Code restructuring
  • test - Test additions
  • chore - Maintenance

Examples

Analyze Changes

/sc:git status
# Summary of staged/unstaged changes
# Recommended next actions

Commit with Analysis

/sc:git commit --smart-commit
# Scans diff, generates message:
# feat(auth): add JWT token refresh mechanism

Guided Merge

/sc:git merge feature/auth --interactive
# Conflict detection and resolution guidance
# Step-by-step assistance

MCP Integration

PAL MCP (Validation & Review)

ToolWhen to UsePurpose
mcp__pal__precommitBefore commitComprehensive change validation
mcp__pal__codereviewBefore mergeCode quality review of changes
mcp__pal__consensusMerge conflictsMulti-model resolution strategy
mcp__pal__debugGit issuesInvestigate repository problems

PAL Usage Patterns

# Pre-commit validation (--smart-commit)
mcp__pal__precommit(
    path="/path/to/repo",
    step="Validating changes before commit",
    findings="Security, completeness, test coverage",
    include_staged=True,
    include_unstaged=False
)

# Review before merge
mcp__pal__codereview(
    review_type="full",
    step="Reviewing feature branch before merge",
    findings="Quality, security, breaking changes",
    compare_to="main"
)

# Consensus on merge conflict resolution
mcp__pal__consensus(
    models=[{"model": "gpt-5.2", "stance": "neutral"}, {"model": "gemini-3-pro", "stance": "neutral"}],
    step="Evaluate: Which conflict resolution preserves intended behavior?"
)

Rube MCP (Automation & Notifications)

ToolWhen to UsePurpose
mcp__rube__RUBE_SEARCH_TOOLSGitHub/GitLabFind repository management tools
mcp__rube__RUBE_MULTI_EXECUTE_TOOLPR/notificationsCreate PRs, notify team, update issues
mcp__rube__RUBE_CREATE_UPDATE_RECIPEGit workflowsSave reusable git automation

Rube Usage Patterns

# Create PR and notify team after commit
mcp__rube__RUBE_MULTI_EXECUTE_TOOL(tools=[
    {"tool_slug": "GITHUB_CREATE_PULL_REQUEST", "arguments": {
        "repo": "myapp",
        "title": "feat: Add user authentication",
        "body": "## Summary\n- Added JWT auth\n- Added refresh tokens",
        "base": "main",
        "head": "feature/auth"
    }},
    {"tool_slug": "SLACK_SEND_MESSAGE", "arguments": {
        "channel": "#pull-requests",
        "text": "New PR ready for review: feat: Add user authentication"
    }}
])

# Update issue status on merge
mcp__rube__RUBE_MULTI_EXECUTE_TOOL(tools=[
    {"tool_slug": "JIRA_UPDATE_ISSUE", "arguments": {
        "issue_key": "PROJ-123",
        "status": "Done"
    }},
    {"tool_slug": "GITHUB_CREATE_ISSUE_COMMENT", "arguments": {
        "repo": "myapp",
        "issue_number": 456,
        "body": "Merged in PR #789"
    }}
])

Flags (Extended)

FlagTypeDefaultDescription
--pal-precommitboolfalseUse PAL precommit validation
--pal-reviewboolfalseUse PAL codereview before merge
--create-prboolfalseCreate PR via Rube after commit
--notifystring-Notify via Rube (slack, teams, email)

Tool Coordination

  • Bash - Git command execution
  • Read - Repository state analysis
  • Grep - Log parsing
  • Write - Commit message generation
  • PAL MCP - Pre-commit validation, code review, conflict resolution
  • Rube MCP - PR creation, team notifications, issue updates

FAQ

What does the sc-git skill do?

Git operations with intelligent commit messages and workflow optimization. Use when committing changes, managing branches, or optimizing git workflows.

How do I install sc-git?

Run npx skills add https://github.com/tony363/superclaude --skill sc-git in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/sc-git/ (personal) or .claude/skills/sc-git/ (project).

Which AI agents can use sc-git?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is sc-git safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains sc-git?

It is published by tony363 in tony363/superclaude. It has 90 recorded installs.

More from tony363/superclaude

View all →

agent-performance-engineer

tony363/superclaude

Expert performance engineer specializing in system optimization, bottleneck identification, and scalability engineering. Masters performance testing, profiling, and tuning across applications, databases, and infrastructure with focus on achieving optimal response times and resource efficiency.

agent-security-engineer

tony363/superclaude

Expert infrastructure security engineer specializing in DevSecOps, cloud security, and compliance frameworks. Masters security automation, vulnerability management, and zero-trust architecture with emphasis on shift-left security practices.

Security392 installs

sc-estimate

tony363/superclaude

Provide development estimates for tasks, features, or projects with intelligent analysis. Use when planning timelines, assessing complexity, or scoping resources.

agent-fullstack-developer

tony363/superclaude

End-to-end feature owner with expertise across the entire stack. Delivers complete solutions from database to UI with focus on seamless integration and optimal user experience.

Frontend & Design154 installs

sc-design

tony363/superclaude

Design system architecture, APIs, and component interfaces with comprehensive specifications. Use when planning architecture, designing APIs, creating component interfaces, or modeling databases.

Frontend & Design113 installs

agent-technical-writer

tony363/superclaude

Open the skill to read its SKILL.md instructions.

Docs & Writing108 installs

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

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

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.