secret-remediation

Community

Safely remove secrets from git history

Authorshellicar
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a repeatable, safety‑first workflow to rewrite git commit history to remove secrets and personally identifiable information that were committed and later detected by secret-scanning, and it emphasizes mandatory credential rotation for any value that reached a remote.

Core Features & Use Cases

  • Scenario-aware remediation: Handles main-only, feature-branch local-only, pushed feature with PR, and combined scenarios with clear actions for each.
  • Search and scrub tools: Includes a read-only history search, a destructive orchestrator that runs git filter-branch, and a tree-filter helper that applies sed expressions per commit.
  • Safety guardrails: Enforces a clean working tree, requires an explicit destructive flag, creates a backup tag, shows a countdown, and prints the force-push command for manual execution.
  • Operational guidance: Guides credential rotation, plan confirmation with the Supreme Commander, per-branch execution, and post-scrub verification.
  • Use Case: After secret-scanning finds an API key in past commits on main and a pushed feature branch, use this Skill to plan replacements, scrub affected branches, and coordinate credential rotation and force-pushes.

Quick Start

Run the secret-remediation workflow after secret-scanning identifies historical values by creating an expressions file, confirming the replacement plan with the Supreme Commander, running the search to preview matches, and then executing the scrub per affected branch with the required safety flag.

Dependency Matrix

Required Modules

gitsedfindcmp

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: secret-remediation
Download link: https://github.com/shellicar/skills/archive/main.zip#secret-remediation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.