Fix Git

🌐Community
by letta-ai · vlatest · Repository

Automatically resolves common Git errors like merge conflicts, reverts bad commits, and cleans up messy histories.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add fix-git npx -- -y @trustedskills/fix-git
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "fix-git": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/fix-git"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

The fix-git skill enables AI agents to diagnose and resolve common Git repository issues, such as broken links, permission errors, or corrupted configurations. It automates the repair process by analyzing error logs and applying targeted fixes to restore repository functionality.

When to use it

  • Resolving "broken pipe" or connection reset errors during remote operations.
  • Fixing local repository corruption that prevents commits or pushes.
  • Correcting authentication failures or misconfigured remote URLs.
  • Restoring access after accidental deletion of critical Git configuration files.

Key capabilities

  • Analyzes specific Git error messages to identify root causes.
  • Executes automated commands to repair repository state.
  • Reconfigures local Git settings to match remote requirements.
  • Validates fixes by attempting standard Git operations post-repair.

Example prompts

  • "My git push is failing with a 'remote: Permission denied' error; fix the authentication setup."
  • "I'm getting a corrupted object database error when running git status; repair the repository."
  • "The remote URL for my repo is broken; detect and update it to the correct address."

Tips & gotchas

Ensure you have write access to the local repository before allowing an agent to execute repair commands, as fixes may involve modifying configuration files or resetting states. Always verify the specific error message provided by Git, as generic prompts may yield less accurate results for complex corruption scenarios.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
letta-ai
Installs
31

🌐 Community

Passed automated security scans.