Sanity Check logo

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.

Overview

Publisherc-kick
Repositoryhnl-agent-skills
Skill namesanity-check
Stars
56
Forks
4
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by c-kick on GitHub. Read the source before you install it.

Installation

Install the Sanity Check AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/c-kick/hnl-agent-skills/tree/master/sanity-check
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sanity Check in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sanity Check on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sanity Check is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Frequently asked questions

What does the Sanity Check AI skill do?

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.

Why use Sanity Check on TypingMind?

Because you install it once and use it with any model. Sanity Check is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sanity Check in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/c-kick/hnl-agent-skills/tree/master/sanity-check. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Sanity Check?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sanity Check?

As many as you like. As long as a model supports skills, you can use Sanity Check with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sanity Check AI skill free?

It is published on GitHub by c-kick. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇