شعار Incident Prior Art

Incident Prior Art

المجتمع
Dark-Alex-17
incident-prior-art

قارن تغييرات التعليمات البرمجية بالسجل التشغيلي، بما في ذلك الحوادث السابقة والانقطاعات وإصلاحات فريق المناوبة، كي تكشف المراجعة عن تكرار أخطاء الإنتاج التي تطلّب إصلاحها جهدًا كبيرًا. يتبع ذلك مسارين: التنقيب في سجل git (استخدم blame على الأسطر التي يضعفها التغيير أو يحذفها لمعرفة ما إذا كانت قد أُضيفت ضمن إصلاح لحادثة؛ ولا يحتاج هذا المسار إلى وكيل خارجي)، والاستعانة بوكيل مختص (شغّل وكيلًا مُعدًّا لتتبّع الحوادث، مع مفاتيح بحث مستخلصة من مفردات الأعراض في التغيير). تُدرج النتائج ضمن تصنيف الخطورة المعتاد للمراجعة، وتُعد إعادة إدخال نمط إخفاق سابق حالة CRITICAL. تمنح وصولًا إلى shell لتنفيذ أوامر سجل git.

نظرة عامة

الناشرDark-Alex-17
المستودعcoyote
اسم المهارةincident-prior-art
النجوم
56
التفريعات
2
الملفات المرفقة
تعليمات فقط
الترخيصAGPL-3.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Dark-Alex-17/coyote/tree/main/assets/skills/incident-prior-art
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Dark-Alex-17/coyote.git /tmp/coyote
mkdir -p .claude/skills
cp -r /tmp/coyote/assets/skills/incident-prior-art .claude/skills/incident-prior-art
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

You are checking a code change against operational history. Code review answers "is this code good?"; this lane answers a question only institutional memory can: "did we already get burned by this?" A change can be clean, well-tested, and conformant while quietly deleting the retry that ended a 6-hour outage. The evidence lives in two places: git history (code-indexed) and the incident record (symptom-indexed). Work both.

When this lane runs

This lane is OPTIONAL and runs only when both hold:

  1. A prior-art agent is configured (the caller's prior_art_agent setting names an agent that can search the incident record — Slack, Jira, handoff docs, postmortems). If it is empty, run ONLY the git-archaeology lane (Part A), which needs no external agent.
  2. The diff touches operationally-relevant surface: services with on-call history, code that emits alerts/metrics/log lines operators watch, error handling, retries, timeouts, rate limits, queue/batch processing, or config controlling any of these. A docs change or a pure-UI tweak does not need an incident sweep — skip and say so in one line.

Part A: Git archaeology (code-indexed, always available)

The highest-value catch in this entire lane: a diff that removes or weakens a line that exists because of a past incident. Look at what the diff DELETES or LOOSENS — guards, retries, timeouts, limits, locks, ordering, special-case branches with no obvious purpose — and ask where each came from:

execute_command --command "git log --oneline -3 -L <start>,<end>:<file>"
execute_command --command "git log --oneline -S '<deleted snippet>' -- <file>"

Read the originating commit message (git show --stat <sha>). Signals that a line was born in an incident fix:

  • Ticket/incident references (INC-, JIRA keys, "postmortem", "outage", "hotfix", "pages", "sev")
  • Fix-shaped messages ("prevent X under load", "handle Y race", "bound Z to avoid OOM")
  • A commit that touches only this guard, dated near a known incident

A deleted/weakened line whose origin is an incident fix is a 🔴 CRITICAL finding — the diff reintroduces a known production failure mode. Cite the line, the originating commit, and its message. If the origin is ordinary feature work, no finding — do not manufacture history.

Part B: Extract symptom-vocabulary search keys from the diff

The incident record is indexed by what OPERATORS saw, not by file paths. Before delegating, translate the diff into that vocabulary:

  1. Error/log strings added, changed, or deleted — incidents are found by error strings more than by anything else. A DELETED log line is itself a lead: someone may rely on it for triage.
  2. Metric, alert, and dashboard names the code emits or the change affects.
  3. Config keys and their old/new values (timeouts, limits, feature flags).
  4. Service/feature/domain terms an operator would use ("invoice proration", "webhook retries", "usage export") — not function names.
  5. External dependencies touched (queues, third-party APIs, databases) — their names appear in incident titles.

Collect 3-8 strong keys. Weak generic keys ("error", "billing") flood the search; skip them.

Part C: Delegate to the prior-art agent (REVIEW MODE)

Spawn the configured agent. Its normal job is live-incident triage, so the prompt MUST re-scope it — the spawn prompt is its entire context:

agent__spawn --agent <prior_art_agent> --prompt "REVIEW MODE — prior-art check for a proposed code change (NOT live triage; nothing is on fire).

## CHANGE SUMMARY
<2-4 sentences: what the diff does, which service/feature, what operational surface it touches>

## SEARCH KEYS
<the Part B keys: error strings, metric/alert names, config keys, feature terms>

## TASK
Search the incident record (handoff docs, Slack, Jira, postmortems) for past incidents matching these keys. For each relevant hit report:
- Reference (ticket/thread/doc section) and date
- What happened and what the resolution was
- Relevance: does this change RISK REINTRODUCING that failure mode, or should it ADOPT a safeguard from that resolution?

Only report incidents with a concrete connection to these search keys. 'The billing system has had incidents' is noise. If nothing relevant exists, say so plainly — a clean result is a valid result.

You are read-only. Do not post, comment, or edit anything."

Folding findings into the review report

Prior-art findings use the SAME severity taxonomy as the rest of the review — no separate verdict:

FindingSeverity
Diff reintroduces a past incident's failure mode (archaeology hit on a deleted guard, or historian match showing this exact pattern caused an incident)🔴 CRITICAL — cite the incident/commit
Past incident's resolution added a safeguard the new code should mirror but doesn't (sibling code got a fix; this new path lacks it)🟡 WARNING
Related incident exists; change looks safe but reviewer/author should know the history🟢 SUGGESTION — informational, with the reference
Historian found nothing relevantOne line in the report: "Prior-art check: no relevant incident history found for ."

Present these under a dedicated "Operational history" section in the final report, each finding citing its incident reference or originating commit.

Anti-patterns

  • Running the incident sweep on every trivial change — it is trigger-gated for a reason; Slack/Jira searches are slow and rate-limited.
  • Blocking on vague similarity ("this area had incidents once") — a 🔴 requires a concrete reintroduction path tied to a specific incident or originating commit.
  • Searching by file paths or function names — the incident record doesn't know them; translate to symptom vocabulary first.
  • Skipping Part A because no prior-art agent is configured — archaeology is local git work and always available.
  • Treating a clean historian result as wasted effort — "no prior art" is signal, and it belongs in the report as one line, not zero.
  • Manufacturing findings from ordinary-feature-work commits to have something to say. Most deleted lines were not incident fixes.

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

ماذا تفعل مهارة الذكاء الاصطناعي Incident Prior Art؟

قارن تغييرات التعليمات البرمجية بالسجل التشغيلي، بما في ذلك الحوادث السابقة والانقطاعات وإصلاحات فريق المناوبة، كي تكشف المراجعة عن تكرار أخطاء الإنتاج التي تطلّب إصلاحها جهدًا كبيرًا. يتبع ذلك مسارين: التنقيب في سجل git (استخدم blame على الأسطر التي يضعفها التغيير أو يحذفها لمعرفة ما إذا كانت قد أُضيفت ضمن إصلاح لحادثة؛ ولا يحتاج هذا المسار إلى وكيل خارجي)، والاستعانة بوكيل مختص (شغّل وكيلًا مُعدًّا لتتبّع الحوادث، مع مفاتيح بحث مستخلصة من مفردات الأعراض في التغيير). تُدرج النتائج ضمن تصنيف الخطورة المعتاد للمراجعة، وتُعد إعادة إدخال نمط إخفاق سابق حالة CRITICAL. تمنح وصولًا إلى shell لتنف...

لماذا تستخدم Incident Prior Art على TypingMind؟

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

كيف أثبّت Incident Prior Art في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/Dark-Alex-17/coyote/tree/main/assets/skills/incident-prior-art. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Incident Prior Art؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Incident Prior Art؟

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

هل مهارة الذكاء الاصطناعي Incident Prior Art مجانية؟

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

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

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

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

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

عرض الكل

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

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