Logo: Formal Methods Reconciler

Formal Methods Reconciler

Communautéit
mizchi
formal-methods-reconciler

Benotzt dëst, wann Dir Software-Spezifikatiounen, Dokumentatioun, Tester, Konfiguratiounen, Code, Logbicher oder Virfäll mat formelle Methoden ofgläiche wëllt. Hëlleft Codex, Fuerderungen erauszeschaffen, ze entscheeden, ob d'Dokumentatioun oder d'Implementéierung déi verbindlech Informatiounsquell ass, e passend Tool wéi Z3, Alloy, TLA+, P, Dafny, MoonBit prove, Lean, Rocq, Why3, Verus, CBMC, Tamarin oder ProVerif ze wielen, dee klengste sënnvolle Modell opzebauen, Verifier-Prüfungen auszeféieren oder ze plangen an SAT/UNSAT, Traces, Beweisfeeler oder Beweisflichten a Froen an der Fachsprooch a Schutzmoossname fir d'Regressiounstester ëmzewandelen.

Add to TypingMind

Iwwersiicht

Editeurmizchi
Repositoryskills
Skill-Nummformal-methods-reconciler
Stären
333
Forks
4
Matgeliwwert Dateien
10
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.

  • 10 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    mizchi huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Formal Methods Reconciler 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/mizchi/skills/tree/main/formal-methods-reconciler
  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/mizchi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/formal-methods-reconciler .claude/skills/formal-methods-reconciler
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Formal Methods Reconciler 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 Formal Methods Reconciler automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Formal Methods Reconciler 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.

Formal Methods Reconciler

Use this skill to turn a vague correctness concern into a small formal-methods check and a domain-readable decision record.

The core stance: the LLM proposes and repairs candidate models; the solver, model checker, verifier, or proof assistant decides; the final result is translated back into domain language for a human decision.

This is the first-modeling and reconciliation skill. If a useful formal model, CI verifier, expected result, or locked domain decision already exists and the task is to keep it aligned with later spec/code/log changes, switch to formal-methods-drift-guard.

Workflow

  1. Choose the source of truth.

    • If trusted specs/docs/ADRs/API contracts exist, treat them as the expected contract and compare code against them.
    • If specs are missing or unreliable, treat code/tests/config/logs as de-facto behavior, not as automatically correct.
    • If both disagree, do not decide alone. Produce a domain question.
  2. Extract claims before choosing a tool.

    • Separate declared intent from implicit behavior.
    • Extract claims as: allowed, forbidden, eventually happens, never happens, equivalent, reachable, unreachable, preserves invariant.
    • Note empty/missing/error/timeout/retry/crash behavior explicitly.
  3. Classify the shape of the question.

    • Pure predicate: input -> Bool.
    • Relation: user/role/resource/tenant/ownership/graph.
    • State transition: lifecycle, retry, crash, queue, eventual.
    • Message protocol: actors, typed events, request/response schedules.
    • Sequential code contract: pre/postconditions, loop invariants, representation invariants.
    • Universal theorem: unbounded inductive property or durable mathematical law.
    • Security protocol: adversarial message system, secrecy, authentication.
  4. Select the smallest appropriate tool.

    • Read references/tool-selection.md when tool choice is non-trivial.
    • Prefer the smallest model that can produce a useful counterexample.
    • Do not use Lean/Rocq for fast config bug hunting. Do not use Z3 for temporal interleavings. Do not use TLA+ for simple predicate consistency.
  5. Build the minimum model.

    • Strip I/O, frameworks, databases, and UI unless they define the property.
    • Model only observable values, state variables, actions, relations, and invariants needed for the claim.
    • Include positive sanity cases so a too-strong model is caught.
    • Include a broken variant when possible to prove the check is load-bearing.
  6. Run verifier feedback loops.

    • Use compiler/verifier/model-checker output as the repair oracle.
    • Repair syntax and modeling mistakes first.
    • Never make a property weaker just to get green unless the domain decision changed.
    • Preserve counterexamples as witnesses for domain review.
  7. Translate results to domain language.

    • Do not stop at sat, unsat, trace, or proof failure.
    • Say who can do what, which order is accepted, which config is dead, or which crash sequence loses data.
    • Use references/domain-ledger.md for output templates.
  8. Lock decisions.

    • If the counterexample is intended, update docs/specs and add a regression guard for the clarified behavior.
    • If unintended, file/fix a bug and keep the model/check in CI.
    • If unclear, produce the minimal witness and a domain-owner question.

Reporting Discipline

Keep domain uncertainty separate from execution uncertainty:

  • Domain questions are part of the deliverable: undocumented empty values, missing fail-mode definitions, product-policy choices, or spec/code disagreements that need an owner decision.
  • Self-report unclear points are only for things that prevented you from applying this skill correctly, such as missing repository access, an unavailable referenced file, ambiguous user scope, or a verifier you could not run.
  • Do not mark an intentionally preserved domain question as a self-report unclear point. Put it in the ledger/domain-question section instead.
  • If the user asked for a model/check plan and did not provide a runnable repo or verifier runtime, planning the exact check is sufficient. Label traces or SAT/UNSAT expectations as planned/hand-derived, not machine-confirmed, and do not count the absence of an actual run as an unclear point.
  • If the user explicitly asked you to run the verifier and it is unavailable, then record that as a self-report unclear point or task blocker.

LLM Role Boundary

Use the LLM for:

  • claim extraction
  • tool selection
  • first-pass formalization
  • counterexample explanation
  • repair proposals
  • domain-language wording

Do not use the LLM as:

  • the source of truth for correctness
  • the final judge of a proof
  • a replacement for solver/model-checker/prover output
  • a substitute for domain-owner decisions

Research-Informed Patterns

Read references/research-patterns.md when designing or improving an automated workflow. Prefer:

  • structured planning before formal code generation
  • verifier-guided repair loops
  • retrieval over repo context for repository-level work
  • test/log/trace oracles for generated annotations
  • subgoal decomposition for theorem proving
  • explicit epistemic status for every claim

Output Contract

Always aim to leave one of these artifacts:

  • a formal check in the repo and a passing/failing command
  • a counterexample witness translated into domain terms
  • a regression guard candidate
  • a concise ledger entry: source, implementation observation, model question, machine result, domain question, decision, lock

If no formal model is worth building, say why and propose the cheaper check.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Formal Methods Reconciler?

Benotzt dëst, wann Dir Software-Spezifikatiounen, Dokumentatioun, Tester, Konfiguratiounen, Code, Logbicher oder Virfäll mat formelle Methoden ofgläiche wëllt. Hëlleft Codex, Fuerderungen erauszeschaffen, ze entscheeden, ob d'Dokumentatioun oder d'Implementéierung déi verbindlech Informatiounsquell ass, e passend Tool wéi Z3, Alloy, TLA+, P, Dafny, MoonBit prove, Lean, Rocq, Why3, Verus, CBMC, Tamarin oder ProVerif ze wielen, dee klengste sënnvolle Modell opzebauen, Verifier-Prüfungen auszeféieren oder ze plangen an SAT/UNSAT, Traces, Beweisfeeler oder Beweisflichten a Froen an der Fachspro...

Firwat Formal Methods Reconciler op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Formal Methods Reconciler 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 Formal Methods Reconciler an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/mizchi/skills/tree/main/formal-methods-reconciler an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Formal Methods Reconciler 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 Formal Methods Reconciler benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Formal Methods Reconciler 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 Formal Methods Reconciler gratis?

mizchi huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. 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 👇