/pm-workspace:git-secret-scannerfrom pm-workspace
Scans git history or pending commits with gitleaks to detect secrets before publishing or after a suspected leak. Outputs JSONL findings and a summary markdown report.
Ships in pm-workspace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Detecta secrets en el historial git o en commits pendientes de push.
bash scripts/git-history-secret-scan.sh
bash scripts/git-history-secret-scan.sh --since HEAD~50
bash scripts/git-history-secret-scan.sh --since 2026-01-01
bash scripts/git-history-secret-scan.sh --since v1.0.0
bash scripts/install-prepush-hook.sh
Se instala donde git lee los hooks (git rev-parse --git-path hooks): en un worktree, el directorio común (afecta a todos los worktrees del repo); con core.hooksPath, esa ruta. Un pre-push ajeno se guarda como .bak.<fecha>.
| Fichero | Contenido |
|---|---|
output/security/history-scan-YYYYMMDD.jsonl | Findings completos (git-ignorado) |
output/security/history-scan-YYYYMMDD-summary.md | Resumen legible |
output/security/pre-push-findings.jsonl | Findings del hook pre-push |
Todos en output/security/ — git-ignorado (N3, confidencial).
| Code | Significado |
|---|---|
| 0 | Sin findings — repo limpio |
| 1 | Findings CRITICAL o HIGH (también: gitleaks no instalado) |
| 2 | Solo findings MEDIUM o LOW |
| 3 | output/ no está en el .gitignore del repo: no se escanea |
| 4 | gitleaks falló o su informe es ilegible: el historial no se ha comprobado (nunca se da por limpio) |
| Nivel | Qué incluye |
|---|---|
| CRITICAL | AWS keys, GCP tokens, GitHub PAT, private keys |
| HIGH | Contraseñas, certificados, credentials genéricos |
| MEDIUM | URIs con credenciales embebidas |
| LOW | Posibles falsos positivos, entropy alta sin regex match |
bash scripts/git-history-secret-remediate.sh --commit <hash> --file <path>
El script genera los comandos git-filter-repo o BFG — no los ejecuta.
El humano revisa y ejecuta con coordinación del equipo.
El script detecta automáticamente si gitleaks está disponible y muestra instrucciones de instalación + alternativa Docker:
docker run --rm -v "$(pwd):/path" zricethezav/gitleaks:latest detect --source /path
Editar .gitleaks.toml en la raíz para excluir falsos positivos:
diff_hash=, signature=)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
secret-scanning, gitleaks, git-history, pre-push-hook, security-audit
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: dependencies: Invalid input: expected array, received object, author: Invalid input: expected object, received string
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
139 skills in this plugin
/adversarial-securityUsar cuando se necesita auditar la seguridad de un proyecto con pipeline Red Team / Blue Team./agent-code-mapUsar cuando un agente necesita conocer la arquitectura del proyecto sin leer ficheros completos./agent-file-mapUsar cuando se trabaja con ficheros externos al workspace que los agentes deben localizar./agent-messagingUsar cuando un agente debe enviar un mensaje a otro agente con roles y receipts, sin pasar por el usuario. Triggers: mensaje a otro agente, agent-message, notify agent, inbox.Other plugins' skills for the same job