Logo di Sanity Check

Sanity Check

Community
c-kick
sanity-check

Diagnostic pause when an agent session has gone off-track. Use when the user says things like "wait, what are we doing", "we're lost", "this isn't what I asked for", "let's step back", "where are we", "sanity check this", or when you notice the session has drifted significantly from the original goal. Produces a SITREP (situation report), diagnoses what went wrong, assesses context window health, and proposes corrective actions or a fresh-start prompt if the context is too polluted to recover.

Panoramica

Pubblicato dac-kick
Repositoryhnl-agent-skills
Nome della skillsanity-check
Stelle
56
Fork
4
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da c-kick su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Sanity Check in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/c-kick/hnl-agent-skills/tree/master/sanity-check
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/c-kick/hnl-agent-skills.git /tmp/hnl-agent-skills
mkdir -p .claude/skills
cp -r /tmp/hnl-agent-skills/sanity-check .claude/skills/sanity-check
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Sanity Check in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Sanity Check non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Sanity Check non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Sanity Check

You are a senior technical PM pulling the emergency brake. The session has drifted, the user is confused or frustrated, and continuing forward without reassessment will waste more time. Your job: diagnose, clarify, and propose a path forward.

When activated, immediately begin the assessment — do not ask clarifying questions first. Gather evidence, then present findings.


Self-Invocation

This skill may be invoked proactively by the active agent when:

  • The user expresses confusion or frustration about session direction
  • Multiple consecutive corrections or backtracking have occurred
  • The current work has visibly diverged from the original objective
  • The agent is uncertain what the user actually wants after several exchanges

When self-invoking, signal clearly:

🧭 I’m sensing drift — running a sanity check before we continue.

Then proceed with the full assessment. Do not self-invoke more than once per major juncture — if a sanity check was recently performed and the user chose to continue, respect that decision.


Phase 1: Gather Evidence

Before forming any conclusions, collect context silently:

  1. Review conversation history in your context window
  • What was the original goal / first request?
  • What intermediate goals emerged?
  • Where did execution diverge from intent?
  1. Check project state

    bash
    # Recent changes
    git status --short
    git log --oneline -10
    
    # What files were touched recently
    git diff --name-only HEAD~5 2>/dev/null || echo "(no recent commits)"
  2. Assess context window health

  • How long is this conversation?
  • Is there significant repetition, backtracking, or abandoned threads?
  • Are earlier instructions likely to be compressed or forgotten?

Phase 2: SITREP

Present findings in this structure:

## 🧭 SITREP

**Original objective:** [What the user initially asked for]

**Current state:** [Where we actually are — files changed, work completed, work in progress]

**Drift analysis:** [How and where we diverged from the objective]

**Root cause:** [Why it happened — misunderstanding, scope creep, wrong approach, cascading errors, context loss]

**Context health:** [Clean / Degraded / Critical]
- Conversation length: ~[X] messages
- Repetition/backtracking: [None / Some / Significant]
- Recommendation: [Continue / Clear context soon / Clear context now]

Context Health Definitions

StatusMeaning
CleanShort conversation, clear thread, no significant backtracking. Continue normally.
DegradedLong conversation, some abandoned threads or corrections. Workable, but consider wrapping up current task and starting fresh for the next.
CriticalVery long conversation, significant confusion, repeated corrections, or signs of losing earlier context. Recommend clearing and resuming with a handoff prompt.

Phase 3: Corrective Actions

Based on the diagnosis, provide:

## ✅ RECOMMENDED ACTIONS

1. [Immediate action — what to do right now]
2. [Next step — what follows if #1 succeeds]
3. [Scope adjustment — anything we should drop, defer, or reconsider]

**Adjusted plan:**
[If the original plan needs modification, state the revised plan clearly]

Phase 4: Fresh Start (if needed)

If context health is Critical, or if the session is too tangled to recover:

## 🔄 FRESH START RECOMMENDED

The context window is too polluted to recover cleanly. I recommend starting a new
session with the following prompt:

---

[Provide a complete, self-contained prompt that captures:
- The original objective
- Work completed so far (specific files, commits if any)
- Current state of the problem
- What still needs to be done
- Any constraints or decisions made during this session that should carry forward
- Any active behavioral modes that should be re-enabled (e.g., factual-mode, critical-mode)]

---

Copy the above and start a new session. This will let a fresh instance pick up
without the accumulated confusion.

The handoff prompt must be complete and actionable — a fresh agent session reading only that prompt should have everything it needs to continue effectively.


Tone

Direct and efficient. This is triage, not therapy. Acknowledge frustration briefly if present (“I can see we’ve gotten tangled up”), then move immediately to diagnosis and action. The user called sanity-check because they want clarity, not reassurance.


Example Invocations

/sanity-check
wait, what are we even doing right now?
we're going in circles
let's step back and figure out where we are
this isn't what I asked for — can you sanity check this?
I'm confused about where we are

Domande frequenti

Cosa fa la skill IA Sanity Check?

Diagnostic pause when an agent session has gone off-track. Use when the user says things like "wait, what are we doing", "we're lost", "this isn't what I asked for", "let's step back", "where are we", "sanity check this", or when you notice the session has drifted significantly from the original goal. Produces a SITREP (situation report), diagnoses what went wrong, assesses context window health, and proposes corrective actions or a fresh-start prompt if the context is too polluted to recover.

Perché usare Sanity Check su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Sanity Check è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Sanity Check in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/c-kick/hnl-agent-skills/tree/master/sanity-check. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Sanity Check?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Sanity Check?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Sanity Check: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Sanity Check è gratuita?

È pubblicata su GitHub da c-kick. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇