Logo: Incident Prior Art

Incident Prior Art

Communautéit
Dark-Alex-17
incident-prior-art

Vergläicht eng Codeännerung mat der Betribsgeschicht – fréieren Tëschefäll, Ausfäll a Fixe vum On-Call-Team –, fir datt eng Review Réckfäll bei schwéier erléierte Lektiounen aus dem Produktivbetrib erkennt. Et ginn zwou Approchen: Git-Archeologie (mat blame d'Zeile ënnersichen, déi den Diff ofschwächt oder läscht, fir festzestellen, ob se am Kader vun engem Tëschefall-Fix entstane sinn; keen externen Agent néideg) an d'Delegatioun u fréier Fäll (e konfiguréierten Incident-Historian-Agent mat Sichbegrëffer op Basis vun de Symptomer aus dem Diff starten). D'Resultater ginn an déi standardiséiert Schwéiergrad-Taxonomie vu Reviews integréiert – eng fréier Feelerursaach nees anzeféieren, ass KRITISCH. Erlaabt Shell-Zougrëff fir Git-History-Befehler.

Iwwersiicht

EditeurDark-Alex-17
Repositorycoyote
Skill-Nummincident-prior-art
Stären
56
Forks
2
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzAGPL-3.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Dark-Alex-17 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Incident Prior Art an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Dark-Alex-17/coyote/tree/main/assets/skills/incident-prior-art
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Incident Prior Art an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Incident Prior Art automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Incident Prior Art net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill Incident Prior Art?

Vergläicht eng Codeännerung mat der Betribsgeschicht – fréieren Tëschefäll, Ausfäll a Fixe vum On-Call-Team –, fir datt eng Review Réckfäll bei schwéier erléierte Lektiounen aus dem Produktivbetrib erkennt. Et ginn zwou Approchen: Git-Archeologie (mat blame d'Zeile ënnersichen, déi den Diff ofschwächt oder läscht, fir festzestellen, ob se am Kader vun engem Tëschefall-Fix entstane sinn; keen externen Agent néideg) an d'Delegatioun u fréier Fäll (e konfiguréierten Incident-Historian-Agent mat Sichbegrëffer op Basis vun de Symptomer aus dem Diff starten). D'Resultater ginn an déi standardiséi...

Firwat Incident Prior Art op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Incident Prior Art besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Incident Prior Art an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Dark-Alex-17/coyote/tree/main/assets/skills/incident-prior-art an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Incident Prior Art benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Incident Prior Art benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Incident Prior Art domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Incident Prior Art gratis?

Jo. Dark-Alex-17 huet de Skill ënner der Lizenz AGPL-3.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇