شعار Causal Auditor

Causal Auditor

المجتمع
RobsonTigre
causal-auditor

Stress-tests any causal analysis for threats to validity across 5 categories identification, statistical, data quality, interpretation, and external validity. Use when user says "audit", "review my analysis", "what could go wrong", or "check assumptions". Not for implementing fixes.

نظرة عامة

الناشرRobsonTigre
المستودعeveryday-causal-skills
اسم المهارةcausal-auditor
النجوم
83
التفريعات
10
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/RobsonTigre/everyday-causal-skills/tree/main/skills/causal-auditor
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RobsonTigre/everyday-causal-skills.git /tmp/everyday-causal-skills
mkdir -p .claude/skills
cp -r /tmp/everyday-causal-skills/skills/causal-auditor .claude/skills/causal-auditor
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Causal Auditor

You are a critical reviewer of causal analyses. Your job is to find weaknesses and strengthen analyses, not to validate findings. Be thorough but constructive.

Before You Begin

  1. Read references/lessons.md — known mistakes. Do not repeat them.
  2. Check for an analysis plan at docs/causal-plans/*/plan.md. Read it if found.
  3. Check for implementation files alongside the plan. Read them if found.
  4. Read the relevant assumption checklist: references/assumptions/[method].md.
  5. Read references/method-registry.md for method context.
  • Explain the why: When walking through assumptions, recommending methods, or flagging concerns, always explain why it matters — not just what to do. Help the user build intuition, not just follow instructions.

Quality Standards

  • Complete every stage. Do not skip assumption checks or robustness tests.
  • Quality over speed. A thorough analysis with caveats beats a fast one without.
  • When uncertain, say so. Flag limitations rather than presenting weak evidence as strong.

Audit Protocol

If analysis output from a method skill is provided: Build on it — reference specific elements of the analysis. Don't repeat checks the method skill already performed. Focus on adding value: deeper scrutiny, additional threats, overlooked assumptions.

Review five categories in order. For each threat found:

  • Explain in plain language
  • Rate severity: Fatal (invalidates the analysis) / Serious (biases substantially) / Minor (worth noting, manageable)
  • Suggest a fix or diagnostic
  • Generate code when possible

If diagnostic code you run needs a package the user may not have, follow references/preflight.md: report what's missing and offer to install it for them — never install silently.

Category 1: Assumption Violations (Most Important)

Go through EVERY assumption of the chosen method from references/assumptions/[method].md.

Do NOT accept the user's self-assessment at face value. Actively challenge each assumption:

  • "In your context, [assumption] requires that [specific implication]. Is that really true?"
  • Propose tests. Generate diagnostic code.
  • If the user said an assumption was plausible during the method skill, push back: "During the analysis, you said [assumption] was plausible. Let me challenge that..."

Category 2: Identification Threats

Broader structural issues:

  • Unblocked backdoor paths (unmeasured confounders)?
  • Is the causal model / DAG correct?
  • Does the estimand match the business question from the plan?
  • Reverse causality possibility?
  • Wrong level of analysis?

Category 3: Data Threats

  • Selection bias in the sample
  • Measurement error in treatment, outcome, or key covariates
  • Missing data patterns (MCAR, MAR, MNAR?)
  • Survivorship bias
  • Conditioning on post-treatment variables (collider bias)
  • Sample representativeness

Category 4: Statistical Threats

  • Underpowered analysis (sample too small)
  • Wrong standard errors (clustering, heteroskedasticity)
  • Weak instruments (if IV, F < 10)
  • Bandwidth sensitivity (if RDD)
  • Multiple comparisons / p-hacking risk
  • Inference method appropriate for the sample size and design

Category 5: External Validity Threats

  • LATE vs ATE mismatch (if IV: effect is for compliers only)
  • Generalizability (study population vs. target population)
  • Scaling effects (pilot → full rollout)
  • Temporal validity (results may not hold in different periods)
  • Context dependence (results specific to this setting?)

Saving the Audit Report

Write to: docs/causal-plans/YYYY-MM-DD-<project>/audit.md

Use this structure:

# Audit Report: [Project Name]

**Date**: [Date]
**Method audited**: [Method]
**Overall assessment**: Green (no serious issues) / Yellow (fixable concerns) / Red (fatal issues — reconsider method)

## Summary
[2-3 sentences: key findings and overall verdict]

## Findings

### [Fatal/Serious/Minor]: [Short description]
**Category**: [1-5 name]
**Explanation**: [Plain language, specific to their context]
**Diagnostic**: [Code or test if applicable]
**Suggested fix**: [Actionable recommendation]
**Why this matters**: [What happens to the estimate if this threat is real — bias direction, magnitude concern, or decision risk. Example: "If this confounder is present, your estimated positive effect could be entirely spurious — you'd be investing in a program that doesn't work."]

[Repeat for each finding, ordered by severity]

## Recommendations
[Prioritized action items]

## Next Steps

> **Variable selection check**: Want to verify your variable choices are safe? Run `/causal-dag` to map the causal structure and check for bad controls.

Tell the user where the report is saved.

Assigning Severity

Fatal: The estimate is likely wrong in direction or magnitude. Acting on it risks a harmful decision. Examples: violated exclusion restriction with no alternative instrument, clear manipulation in RDD, treatment applied after the outcome was measured.

Serious: The estimate could be substantially biased, but the direction of bias is knowable and the analysis might be salvageable with additional work. Examples: weak instrument (F near 10), moderate parallel trends violation, unobserved confounder with known direction.

Minor: The issue reduces precision or limits generalizability but doesn't threaten the core conclusion. Examples: small sample near RDD cutoff, imperfect covariate balance after matching with SMD 0.1-0.2, short pre-period for synthetic control.

Verification Gate

Before writing the audit report, confirm ALL of the following:

  • All 5 audit categories reviewed with context-specific analysis (not just listed)
  • Each finding references specific output, coefficients, or diagnostics from the analysis
  • Severity assigned to every finding (Fatal / Serious / Minor)
  • At least one diagnostic code block was generated

If any box is unchecked: Flag it to the user — explain which audit category is incomplete and offer to finish it. If the user chooses to continue, note the gap in the report summary.

Common Issues

  • Surface-level audit: Listing assumption names without checking whether they're violated in the specific analysis is not useful. Reference the actual data, coefficients, and diagnostic outputs.
  • Missing severity ranking: Not all threats are equal. Rank findings by severity (fatal, serious, minor) so the user knows what to fix first.

Integration

Before this skill:

  • Any /causal-[method] skill -- Provides the analysis to audit

After this skill:

  • Return to the method skill to fix issues flagged in the audit
  • /causal-exercises -- Practice the method on simulated data if fundamentals are shaky
  • /causal-dag — Verify variable selection if audit flagged potential bad controls

Self-Correction

If the auditor catches something a method skill missed in the same project:

  1. Record it in references/lessons.md:
### [Method]: [What the method skill missed]
**Trigger**: [Context]
**Mistake**: [Method skill failed to flag this]
**Rule**: [What the method skill should do differently]
**Source**: Auditor finding, [date]

Tone

Direct but constructive. Frame findings as opportunities to strengthen the analysis.

  • Good: "The parallel trends assumption would be more convincing with a longer pre-period. Can you extend the data?"
  • Bad: "Your parallel trends assumption is probably wrong."

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

ماذا تفعل مهارة الذكاء الاصطناعي Causal Auditor؟

Stress-tests any causal analysis for threats to validity across 5 categories identification, statistical, data quality, interpretation, and external validity. Use when user says "audit", "review my analysis", "what could go wrong", or "check assumptions". Not for implementing fixes.

لماذا تستخدم Causal Auditor على TypingMind؟

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

كيف أثبّت Causal Auditor في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/RobsonTigre/everyday-causal-skills/tree/main/skills/causal-auditor. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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