شعار Phase Investigation Gate

Phase Investigation Gate

مؤسسة
buriedsignals
phase-investigation-gate

Spotlight Investigation gate (end of Investigation): generate summary.md + data/summary.json, present findings to the user, iterate on request, user approval gate (ends the turn), provenance packaging, review artifact, feedback processing on resume

نظرة عامة

الناشرburiedsignals
المستودعspotlight
اسم المهارةphase-investigation-gate
النجوم
60
التفريعات
11
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Investigation gate (end of Investigation)

Start or resume only from a spotlight_resolve result passed by the parent with owner: phase-investigation-gate. When phase: investigation_gate_approval, regenerate both summary artifacts below from current execution outputs, then call spotlight_resolve({}) before presenting the human gate. This applies whether the summaries were missing or stale: after a follow-up or a recorded cycle the resolution lists summaries left unchanged in missing, and the gate cannot be approved until they are rewritten. For finalization, follow resume without inferring a substep from artifact presence.

Generate summary

In the Pi harness the analyst worker writes both files, and spotlight_resolve starts it itself while they are missing or stale, builds its task and validates the case after it: call spotlight_resolve, and do not spawn the analyst or write the files yourself. Other runtimes follow the steps below.

write-file("{CASE_DIR}/summary.md", <content>) as a human-readable markdown document:

markdown
# {Investigation Title}

**Date:** YYYY-MM-DD | **Cycles:** N | **Status:** Pending review

## Overview

2-3 paragraph narrative overview.

## Scope

What was investigated and what was out of scope.

## Key Conclusions

- Conclusion 1
- Conclusion 2

## Findings

| # | Claim | Confidence | Verdict | Sources |
|---|-------|------------|---------|---------|
| F1 | ... | high | verified | 3 |

## Limitations

- Limitation 1
- Limitation 2

Also write {CASE_DIR}/data/summary.json as the machine contract for review, report drafting, and ingest:

json
{
  "schema_version": "1.0",
  "project": "{project}",
  "title": "{Investigation Title}",
  "generated_at": "ISO 8601 timestamp",
  "status": "pending_review",
  "cycles": 3,
  "verified_findings": 3,
  "summary": "2-3 paragraph narrative overview.",
  "key_conclusions": ["Conclusion 1", "Conclusion 2"],
  "limitations": ["Limitation 1", "Limitation 2"],
  "methodology_summary": "Techniques and tools used, drawn from data/investigation-log.json.",
  "findings": [
    {
      "id": "F1",
      "claim": "specific finding claim",
      "confidence": "high",
      "fact_check_verdict": "verified",
      "source_count": 3
    }
  ]
}

summary.md is the human artifact; data/summary.json is the machine contract (schemas/summary.schema.json). Generate both, then validate the case, which checks data/summary.json against that contract and against findings.json and fact-check.json:

execute-shell("scripts/spotlight-python scripts/validate-case.py {CASE_DIR}")

Fix every reported summary.json error and re-run before calling spotlight_resolve({}). A runtime without execute-shell has no step for this check yet; write the shape above exactly. Each finding row carries the finding's id from findings.json, its confidence, and its verdict from fact-check.json as fact_check_verdict.

Decision checks (optional)

Pi harness: this runtime has no decision checks; skip this section.

Newsroom edition: the decision checks run in the newsroom's service, not here. Call run_checks with kind findings instead of the steps below; its flags appear on the Investigation page and never block.

Run only when .spotlight-config.json has integrations.decisions.enabled: true, the case is not sensitive, an OpenRouter key is available, and the user agreed to decision checks for this case at methodology approval (first run only: add --case-opt-in). scripts/spotlight-python scripts/decision-signals.py {CASE_DIR} --phase investigation-gate --check reports readiness without making a request.

execute-shell("scripts/spotlight-python scripts/decision-signals.py {CASE_DIR} --phase investigation-gate")

It asks the decision model (OpenRouter Decisions API, zero data retention) whether each finding's quoted evidence, located in the stored sources, grounds the claim, and writes data/decision-signals.json. Findings whose quote is not found in any stored source, or that need arithmetic, are routed back to the existing fact-check process instead of judged. If the command prints "ran": false, skip this section without blocking the Investigation gate.

Add a Decision check column to the findings table (flags or none, routed, unavailable) and list each flag with its reason under Limitations. State that these are classification signals, not verification: they never raise confidence. In enforce mode the report and ingest apply the recorded cap; in advisory mode they only show it. When the user disagrees with a flag, append {target: "finding:F1", input_sha256: <that finding entry's input_sha256>, reviewer, reason, at} to overrides in data/decision-signals.json; the override lapses automatically when the finding or its located source changes. A contradiction or incomplete-support flag is a good reason to offer another fact-check cycle (see Iterate).

Present to user

Headline: "{N} verified findings across {M} cycles"

Findings table:

#ClaimConfidenceFact-Check VerdictSource Count

Methods summary: Techniques and tools used, drawn from data/investigation-log.json.

Limitations: Unresolved gaps from data/findings.json, noted as limitations.

Confidence assessment: Overall investigation strength — not just pass/fail on criteria, but how strongly each was met.

Anomaly signals (only when data/anomaly-signals.json exists): the detectors run, each with its tables, assumptions and known false positives, and how many records each flagged. The Investigation page lists each signal for the member to accept as a lead or dismiss. A signal is never a finding, and accepting one does not make it one: an accepted signal is a lead for a follow-up cycle or the report's limitations, and only what the investigator then verifies becomes a finding.

Iterate

If the user requests a follow-up cycle, persist the transition before returning to execution:

text
spotlight_transition({
  operation: "requestFollowUp",
  payload: {instructions: "<targeted gap instructions>"}
})

Resolve again and pass resume.instructions to the returned execution owner.

Before asking the user to approve the investigation as ready for report drafting and ingestion, remind them:

AI assistance notice: Spotlight is designed to help surface, organize, and cross-check information, but AI can make mistakes. You are responsible for verifying sources, confirming authenticity, assessing risks, and deciding what is publishable.

Gate: user approves the investigation.

Present the synthesis, then open the review page: open_review in the Pi harness, or the open_spotlight_review tool where the review server is registered (harness/review/README.md). End the turn. When the member says they are done, call spotlight_resolve again; never record the decision yourself.

Only in a runtime with neither tool, ask in chat and, after the user explicitly approves, record it through the command-line adapter (its direct channel) before any downstream work:

text
spotlight_transition({
  operation: "approve",
  payload: {gate: "investigation_gate", approvedBy: "<human identity>", approvedAt: "<ISO 8601 timestamp>"}
})

This binds the current dependency digest owned by the provenance builder's annotated registry, including activated validation inputs and referenced evidence artifacts. Pending summary artifacts are not approval. If a dependency changes, the next resolution returns the Investigation gate approval; re-run the existing validators and obtain a new human approval before report or ingestion.

The human gate ends the turn. On resume, resolve and follow resume.resume_at; do not skip directly to report.

Finalize an approved Investigation gate

In the Pi harness spotlight_resolve runs the provenance, review and seal steps below itself and lists them in fixed_steps; resolve and follow what it returns. Other runtimes run them as written.

resume_at: provenance

Invoke provenance-signing:

text
execute-shell("scripts/spotlight-python scripts/build-provenance-manifest.py {CASE_DIR}")

This creates {CASE_DIR}/data/provenance-manifest.json with hashes for the case artifacts, claim-to-verdict links, evidence bundle refs, and requires_api_key: true.

If NOOSPHERE_C2PA_URL is configured, signing remains optional:

text
execute-shell("scripts/spotlight-python scripts/build-provenance-manifest.py {CASE_DIR} --sign-endpoint \"$NOOSPHERE_C2PA_URL\" --credential-id \"$NOOSPHERE_C2PA_CREDENTIAL_ID\"")

Signing failures do not block review. Preserve the unsigned manifest and report the failure clearly. Call spotlight_resolve; its resume.resume_at must be review.

resume_at: review

Invoke editorial-review to produce {CASE_DIR}/review.html, a self-contained artifact for inspecting findings and exporting structured feedback. Then call spotlight_resolve; its resume.resume_at must be seal.

Offer the user:

"Review artifact written to {CASE_DIR}/review.html. Open it in any browser to inspect findings. Request a targeted follow-up, or proceed to the public report."

For a follow-up, validate the feedback, convert it to targeted instructions, and have the member record the follow-up on the review page (in Pi, call open_review) before proceeding; on a runtime that supports the member-authorized transition, apply requestFollowUp as shown above before dispatching execution. Do not derive the transition from feedback-file presence.

resume_at: seal

If the user proceeds, seal both current finalization outputs:

text
spotlight_transition({operation: "sealInvestigationGate", payload: {}})

Resolve again. Only a successful seal returns phase: report.

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

ماذا تفعل مهارة الذكاء الاصطناعي Phase Investigation Gate؟

Spotlight Investigation gate (end of Investigation): generate summary.md + data/summary.json, present findings to the user, iterate on request, user approval gate (ends the turn), provenance packaging, review artifact, feedback processing on resume

لماذا تستخدم Phase Investigation Gate على TypingMind؟

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

كيف أثبّت Phase Investigation Gate في TypingMind؟

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

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Phase Investigation Gate؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Phase Investigation Gate؟

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

هل مهارة الذكاء الاصطناعي Phase Investigation Gate مجانية؟

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

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

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

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

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

عرض الكل

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

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