npx claudepluginhub giobi/claude-skills --plugin scarThis skill uses the workspace's default tool permissions.
**Input**: `$ARGUMENTS`
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Builds 3-5 year financial models for startups with cohort revenue projections, cost structures, cash flow, headcount plans, burn rate, runway, and scenario analysis.
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 Reinforcement