Git Leak Recovery

🌐Community
by letta-ai · vlatest · Repository

Automatically identifies and remediates accidental Git pushes of sensitive data like API keys and credentials.

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 git-leak-recovery npx -- -y @trustedskills/git-leak-recovery
2

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

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

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

About This Skill

What it does

This skill enables AI agents to execute Git commands specifically designed to recover lost or accidentally deleted files from a repository's history. It assists in restoring data that has been removed from the working directory but remains accessible within version control logs.

When to use it

  • An agent needs to retrieve a file that was mistakenly deleted by a developer and not yet committed.
  • Recovery is required for code or assets removed during a failed merge or experimental branch cleanup.
  • The team requires restoring specific versions of files after an accidental git reset operation.

Key capabilities

  • Scans Git history to locate previously existing files.
  • Executes recovery commands to restore deleted content to the working directory.
  • Identifies and utilizes available commits or tags containing lost data.

Example prompts

  • "Find and restore the config.yaml file that was accidentally deleted from my local repository."
  • "Recover the last version of main.py before it was removed in commit abc123."
  • "Restore the database.sql file using the most recent commit where it existed."

Tips & gotchas

Ensure the target Git repository is still accessible and has not been fully pruned, as recovery depends on existing history. Always verify the restored files are correct before re-integrating them into active development workflows.

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
30

🌐 Community

Passed automated security scans.