Skills Agentes

Triage Incidents

Para triar incidentes de secretos de GitGuardian ya detectados, ver qué se filtra o rotar credenciales marcadas, o tras una alerta de Public Monitoring. Funciona vía el servidor GitGuardian Developer MCP.

Oficial
Estrellas
13

en todo el repo

Actividad
67

0–100, la ruta de este skill

Actualizado
hace 10 días

último commit aquí

Commits
9

últimos 90 días

Contexto
1.7k tok

87 tok en reposo

Paquete
7 archivos

76 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add GitGuardian/agent-skills --skill triage-incidents --agent claude-code

Se instala solo en este repositorio.

Qué hace

  • Prioriza y clasifica incidentes de secretos ya detectados en GitGuardian, separando incidentes internos de los públicos
  • Guía la remediación (rotación, no reescritura de historial salvo casos concretos) siguiendo la doctrina de remediación
  • Agrupa ocurrencias del mismo credential en una sola fila para rotación
  • Pide confirmación antes de marcar RESOLVED/IGNORED, asignar o etiquetar incidentes
  • Deriva a HasMySecretLeaked (HMSL) el caso de validez desconocida, dejando ese paso en manos del usuario

Úsalo cuando

  • Quieres triar o revisar incidentes de secretos de GitGuardian ya detectados en el dashboard
  • Te preguntan qué está filtrándose en la organización o qué arreglar primero
  • Vas a remediar o rotar una credencial marcada en un incidente
  • Tras una alerta de Public Monitoring, o para asignar, etiquetar o resolver incidentes

No lo uses cuando

  • Para encontrar secretos desconocidos en el código (eso es scan-secrets, no este skill)

Qué lo activa

Di cualquiera de estas frases y el agente debería cargar este skill.

  • “Triar mis incidentes de GitGuardian”
  • “¿Qué se está filtrando en nuestra organización?”
  • “¿Qué incidente debo arreglar primero?”
  • “Hemos recibido una alerta de Public Monitoring, ¿qué hago?”
  • “Asigna y etiqueta este incidente de GitGuardian”

SKILL.md

En inglés

GitGuardian — Triage Incidents

Overview

This skill works through the GitGuardian Developer MCP server (ggmcp) to read, prioritize, and remediate secret incidents the GitGuardian platform has already detected. It is distinct from scan-secrets: that finds unknown secrets in code; this acts on known incidents in the dashboard.

This is the one MCP-first skill in the bundle. There is no ggshield subcommand for incident triage — the work runs through ggmcp tools. ggshield is only needed for the HMSL handoff sub-step, which is user-run regardless.

Start Here — Read This Before Doing Anything

  • Two non-interchangeable incident categories. Internal incidents (integrated sources: private/org repos, Slack, Jira, registries) use the *_internal_* tools (list_internal_incidents / get_internal_incident). Public incidents (Public Monitoring on the worldwide perimeter: public GitHub, gists, Docker Hub) use the *_public_* tools (list_public_incidents / get_public_incident). IDs are not interchangeable; a tool called with an ID of the other kind returns a 404. For a pasted incident link or an ID of unknown kind, call get_gitguardian_resource first. Default to internal unless the user's intent is about leaks "on public GitHub / outside the org / on Docker Hub / found by Public Monitoring".
  • Triage before action — even for valid incidents. Rank the full set first; do not start remediating the first incident before the user has seen the prioritized list. A valid result raises urgency but is not a triage axis: it never lets you skip the ownership and blast-radius questions or jump to a generic rotation plan. The deliverable mode is selected by ownership x blast radius, and a valid production-critical credential is Coordination (supervised, sequenced rotation), not a fast "just rotate it" — rotating it blind can take a live system down. See doctrine principle 7.
  • Read the doctrine before composing remediation. When you are ready to drive a fix, read references/remediation-doctrine.md end-to-end. Rotation-first; history-rewrite only under narrow conditions; public exposure is always burned.
  • A configured custom remediation workflow takes the lead. Before composing the fix, call get_remediation_workflow. If it returns an id, the workspace has a custom workflow — follow it as the spine of the deliverable: render its steps verbatim and use the doctrine to fill in the mechanics and verification under each step. If there is no id (GitGuardian's default workflow) or the tool is unavailable, set the returned steps aside — do not render them — and let the doctrine drive end-to-end. See doctrine § 13.
  • Choose occurrence tools by the user's scope. Use the drill-in step to select the occurrence view. Read the connected tool descriptions and schemas for calling details; plan remediation through the doctrine and workspace workflow above.
  • Never auto-resolve. Marking an incident RESOLVED / IGNORED, assigning it, or tagging it is an outward-facing state change on the shared dashboard. Confirm with the user before any write, and only mark RESOLVED after rotation is actually confirmed — never on intent.
  • HMSL stays user-run. When a finding's validity is unknown / no_checker / failed_to_check, the follow-up is HasMySecretLeaked. Do not run ggshield hmsl yourself and do not read the credential into context — print the command for the user (-n none --json). If the check-hmsl skill is installed, load it for the full protocol.

When to Use

  • "triage / review my GitGuardian incidents", "what's leaking in our org", "what should I fix first".
  • After a Public Monitoring alert (a leak outside the org perimeter).
  • As a handoff target from scan-secrets when a scan finding turns out to already be a tracked incident.

Onboarding (first use)

Prerequisites

  • The GitGuardian Developer MCP server (ggmcp) 0.8 or later, connected and authenticated. See https://github.com/GitGuardian/ggmcp.
  • A token with incident read scope for triage, and write scope to assign / tag / resolve. ggmcp hides tools whose scopes the token lacks.

Setup

  • Verify connectivity and read scope with a cheap read such as count_internal_incidents (or list_sources). get_my_identity shows the token's scopes and the user's role.
  • If the incident write tools are absent from the available toolset, the token lacks write scope. Degrade to read-only triage and hand the user the equivalent dashboard action instead of failing. See references/gitguardian-platform.md for auth/scope recovery and instance URLs.

Triage workflow

Follow references/triage-workflow.md — it covers the five steps (scope → rank → drill in → drive the fix → close the loop), the axis→filter mapping, the internal/public tool split, and scope-degradation handling.

Best Practices

  • Rank validity-first (valid > unknown > invalid-suppressed), then by score, severity, source_criticality, public_exposure.
  • Group the same credential across occurrences into one row; one credential is one rotation even if it appears many times.
  • Respect default tag/validity exclusions — don't resurface known false positives or test credentials.
  • Stay read-only until the user opts into a specific write. State which incident space (internal vs public) you are querying.

Troubleshooting

  • Write tools missing. Token lacks incidents:write scope — re-issue the token with write scope; see references/gitguardian-platform.md.
  • Public tools missing or empty. Public Monitoring is not enabled on the workspace (enterprise-gated, like endpoint scanning for scan-machine).
  • 404 on a write. Internal-vs-public incident-ID mismatch — use the matching tool family.
  • Docs fallback. https://docs.gitguardian.com (append .md to any page; AI-agent index at https://docs.gitguardian.com/llms.txt).

Reproducido de GitGuardian/agent-skills bajo licencia MIT. Leer esta página en markdown.

Archivos

7 archivos en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

Antes de instalar

Requiere el servidor GitGuardian Developer MCP (ggmcp) 0.8 o superior, autenticado, con scope de lectura para triar y de escritura para asignar, etiquetar o resolver.

Detalles

Categoría
Seguridad
Licencia
MIT
Recursos incluidos
referencias
Código fuente
Ver SKILL.md

Etiquetas

Más de GitGuardian/agent-skills

Este repo incluye 6 skills. Si instalas uno, normalmente ya tienes los demás. Ver el pack agent-skills entero y su comando de instalación

Escanea ficheros, cambios staged, commits, historial, imágenes Docker o paquetes en busca de secretos codificados, ante una petición de escaneo, auditoría o filtración sospechosa.

Costo de contexto al activarse
1.5k tok
Tamaño del paquete
14 archivos
Última actualización
hace 10 días
Oficialseguridad

Úsalo al generar o plantar honeytokens, canary tokens, decoys o tripwire credentials de GitGuardian en .env.example, configs de ejemplo, repos antes de publicarse, wikis o scripts de deploy.

Costo de contexto al activarse
3.3k tok
Tamaño del paquete
4 archivos
Última actualización
hace 10 días
Oficialseguridad

Comprueba si una credencial conocida ya se filtró públicamente mediante HasMySecretLeaked (HMSL) de GitGuardian; el agente solo prepara comandos, el usuario los ejecuta.

Costo de contexto al activarse
4.6k tok
Tamaño del paquete
8 archivos
Última actualización
hace 10 días
Oficialseguridad

Instala o repara hooks que revisan la presencia de secretos en cada commit, push o acción de un asistente de IA; usa scan-secrets para un escaneo puntual o una investigación de fuga.

Costo de contexto al activarse
1k tok
Tamaño del paquete
12 archivos
Última actualización
hace 10 días
Oficialseguridad

Escanea todo el equipo de un desarrollador en busca de credenciales (repos, dotfiles, configs de AWS/kube/docker/npm, historial de shell, cachés de agentes IA) con ggshield machine scan.

Costo de contexto al activarse
4.8k tok
Tamaño del paquete
2 archivos
Última actualización
hace 10 días
Oficialseguridad

Skills relacionados

Comprueba si una credencial conocida ya se filtró públicamente mediante HasMySecretLeaked (HMSL) de GitGuardian; el agente solo prepara comandos, el usuario los ejecuta.

Costo de contexto al activarse
4.6k tok
Tamaño del paquete
8 archivos
Última actualización
hace 10 días
Oficialseguridad

Úsalo al generar o plantar honeytokens, canary tokens, decoys o tripwire credentials de GitGuardian en .env.example, configs de ejemplo, repos antes de publicarse, wikis o scripts de deploy.

Costo de contexto al activarse
3.3k tok
Tamaño del paquete
4 archivos
Última actualización
hace 10 días
Oficialseguridad

Instala o repara hooks que revisan la presencia de secretos en cada commit, push o acción de un asistente de IA; usa scan-secrets para un escaneo puntual o una investigación de fuga.

Costo de contexto al activarse
1k tok
Tamaño del paquete
12 archivos
Última actualización
hace 10 días
Oficialseguridad