شعار Sanity Check

Sanity Check

المجتمع
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.

نظرة عامة

الناشرc-kick
المستودعhnl-agent-skills
اسم المهارةsanity-check
النجوم
56
التفريعات
4
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها c-kick على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Sanity Check في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/c-kick/hnl-agent-skills/tree/master/sanity-check
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Sanity Check في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Sanity Check تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Sanity Check بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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.

لماذا تستخدم Sanity Check على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Sanity Check عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Sanity Check في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/c-kick/hnl-agent-skills/tree/master/sanity-check. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Sanity Check؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Sanity Check؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Sanity Check معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Sanity Check مجانية؟

نشرها c-kick على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇