How this skill is triggered — by the user, by Claude, or both
Slash command
/scar:scarThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Input**: `$ARGUMENTS`
Input: $ARGUMENTS
Ogni problema lascia una cicatrice nel sistema — e quella cicatrice lo rende piu forte.
Guida l'utente attraverso il processo SCAR per documentare un incident o un bug fix. Il risultato e un file strutturato che previene il ripetersi del problema.
Se $ARGUMENTS contiene una descrizione del problema, usala. Altrimenti chiedi:
SEMPRE cercare prima se esiste gia un incident correlato:
# Cerca in incidents/ del progetto
grep -ril "keyword" wiki/projects/{progetto}/incidents/ 2>/dev/null
# Cerca in wiki/tech/ per pattern noti
grep -ril "keyword" wiki/tech/ 2>/dev/null
Se trovi un incident simile:
## Recurrence: YYYY-MM-DD con:
L'obiettivo e identificare punti deboli, non accumulare file. Un incident che si ripresenta in forme diverse rivela una fragilita strutturale — e quella va affrontata come tale, non come N problemi separati.
Guida attraverso ogni fase:
Il sintomo grezzo, osservabile. Non l'interpretazione.
"WebSSH lancia come utente sbagliato"
Root cause. Usa i 5 Whys: chiedi "perche?" finche non arrivi a qualcosa prevenibile.
"OwnershipCheck auto-fix → chown errato → stat() legge owner sbagliato"
Il fix concreto. Codice, config, comandi. Riproducibile.
"Aggiunto guardrail per brain esterni in OwnershipCheck"
Come previeni che si ripeta. Almeno UNO tra:
Chiedi: Bug o Incident?
| Bug | Incident | |
|---|---|---|
| Impatto | Potenziale | Reale, gia successo |
| Urgenza | Puo aspettare | Azione immediata |
In base al tipo e gravita:
Incident grave (NUOVO) → crea file in wiki/projects/{progetto}/incidents/YYYY-MM-DD-slug.md
---
date: 'YYYY-MM-DD'
type: incident
severity: critical|high|medium|low
tags:
- incident
- {progetto}
- scar
---
# Incident: {titolo}
## Signal
{cosa e stato osservato}
## Cause
{root cause analysis}
## Action
{fix applicati}
## Reinforcement
{prevenzione futura}
Incident che si ripete (RECURRENCE) → aggiorna il file esistente aggiungendo:
## Recurrence: YYYY-MM-DD
### Signal
{come si e manifestato questa volta — stessa cosa o variante?}
### Cause
{stesso root cause o causa diversa che porta allo stesso sintomo?}
### Action
{fix aggiuntivo}
### Reinforcement (escalation)
{il Reinforcement precedente non bastava — cosa si aggiunge?}
Escalation: {documentazione → guardrail → test automatico}
Regola di escalation: se un incident si ripresenta, il Reinforcement precedente era troppo debole. Scala di un livello: regola operativa → documentazione → guardrail nel codice → test automatico. Se era gia test automatico e si e ripresentato, il test non copriva il caso — estendilo.
Bug fix → commit message strutturato + commento nel codice se necessario
Pattern ricorrente → aggiorna wiki/tech/ o wiki/patterns/
Dopo aver documentato:
Documentazione completa del protocollo: wiki/tech/scar.md
/scar webssh lancia come utente sbagliato → guida attraverso i 4 step/scar → chiede cosa e successo e guida da li/scar bug il parsing della data non gestisce epoch ms → documenta come bug/scar di nuovo ownership sbagliato su brain esterno → trova incident esistente, aggiunge Recurrence con escalation del Reinforcementnpx claudepluginhub giobi/claude-skills --plugin scarActivate for: incident, outage, system failure, post-mortem, incident post-mortem, root cause analysis, RCA, five whys, corrective action, lessons learned, incident log, incident report, P1, P2, major incident, incident review, incident timeline, what went wrong, service outage, payment failure, data breach incident, incident response, MTTD, MTTR, incident management, on-call, escalation, incident retrospective, corrective action tracker, lessons learned brief. NOT for: change impact assessment (use official /change-request), risk register building (use official risk-assessment auto-skill), compliance obligation mapping (use official compliance-tracking auto-skill).
Executes structured production incident response: triages P1-P3 severity, contains blast radius (rollback, mitigation), root-causes after stabilization, logs timeline, generates postmortem. Triggers on outages or 'incident'.
Writes an engineering post-mortem for a fixed bug: root cause, mechanism, fix, validation, and how it slipped through. Refuses to draft if root cause or fix is unconfirmed.