git

Use when committing code, managing branches, pushing to remote, creating pull requests, or performing version control operations. Conforms to docs/reference/skill-routing-value-standard.md.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "git" with this command: npx skills add tao3k/omni-dev-fusion/tao3k-omni-dev-fusion-git

Git Skill (Smart Commit Workflow)

Code is Mechanism, Prompt is Policy

Smart Commit Workflow (Primary Query Anchor)

smart commit is the canonical query phrase for this skill. Use git.smart_commit to run the full smart commit workflow (stage -> scan -> approve -> commit).

Architecture

This skill uses @skill_command decorator in scripts/*.py files. Commands are automatically exposed via MCP as git.command_name.

Available Commands

CommandDescription
git.statusShow working tree status
git.stage_allStage all changes (with security scan)
git.commitCommit staged changes
git.smart_commitSmart Commit workflow (stage → scan → approve → commit)
git.pushPush to remote
git.logShow commit logs

Smart Commit Workflow

Use git.smart_commit for secure, human-in-the-loop commits:

# Step 1: Start workflow
git.smart_commit(action="start")
# Returns workflow_id and diff preview

# Step 2: After LLM analysis and user approval
git.smart_commit(action="approve", workflow_id="xxx", message="feat: description")

Flow: stage_and_scanroute_prepareformat_reviewre_stageinterruptcommit

Linked Notes

Staged Files Feature

Stage and Scan Workflow

The stage_and_scan function provides automatic staging with security validation:

Stage All Files → Security Scan → Lefthook Pre-commit → Finalize

Key Features

  1. Automatic Staging

    stage_and_scan(project_root=".")
    # Returns: {staged_files, diff, security_issues, lefthook_error}
    
  2. Security Scanning

    • Detects sensitive files (.env*, *.pem, *.key, *.secret, etc.)
    • Automatically un-stages detected files
    • Returns list of security issues
  3. Lefthook Integration

    • Runs pre-commit hooks after staging
    • Re-stages files modified by lefthook formatters
    • Returns lefthook output for review

Staged Files Commands

CommandDescription
git.stage_all()Stage all changes with security scan
git.status()Show staged files and working tree status
git.diff()Show staged diff

Security Patterns Detected

.env*, *.env*, *.pem, *.key, *.secret, *.credentials*
id_rsa*, id_ed25519*, *.priv
secrets.yml, secrets.yaml, credentials.yml

Usage Guidelines

Read Operations (Safe - Use Claude-native bash)

git status
git diff --cached
git diff
git log --oneline

Write Operations (Use MCP Tools)

OperationTool
Stage allgit.stage_all() (scans for secrets)
Commitgit.commit(message="...")
Pushgit.push()
Smart Commitgit.smart_commit(action="start")

Key Principle

Read = Claude-native bash. Write = MCP tools.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Git Flow Helper

Assist with Git branch management, merging, rebasing, cherry-picking, and cleaning merged branches for smoother workflow.

Registry SourceRecently Updated
3330Profile unavailable
Coding

GitAssist AI-Powered Git Workflow Helper

Generate commit messages from diffs, write PR descriptions, create changelogs, suggest branch names. Every git workflow, automated.

Registry SourceRecently Updated
1040Profile unavailable
General

Prompt Git

Git for your prompts. Track every change, diff versions, rollback mistakes, never lose a good prompt again. All local, zero dependencies, works offline.

Registry SourceRecently Updated
1030Profile unavailable
Coding

Gitai - Git Commit Automation

Boost developer productivity with Gitai: An AI-powered Git automation tool that analyzes code changes and generates semantic Conventional Commits instantly. Supports Node.js, Python, Java, Go, PHP, and more. Compatible with OpenAI, Anthropic, and Groq.

Registry SourceRecently Updated
2.6K1Profile unavailable