Logo von Completion Gate

Completion Gate

Organisation
Rune-kit
completion-gate

Prüft Aussagen von Agents anhand der Beleglage. Verwenden Sie diesen Skill, um zu überprüfen, ob ein Agent tatsächlich erledigt hat, was er behauptet – wird automatisch am Ende eines Workflows ausgelöst. Erkennt Aussagen wie „erledigt“ ohne Beleg, „Tests bestanden“ ohne Ausgabe oder „behoben“ ohne Überprüfung. Wird von cook und team aufgerufen.

Add to TypingMind

Übersicht

HerausgeberRune-kit
Repositoryrune
Skill-Namecompletion-gate
Sterne
88
Forks
26
Mitgelieferte Dateien
1
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 1

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von Rune-kit auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Completion Gate in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/Rune-kit/rune/tree/master/skills/completion-gate
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Rune-kit/rune.git /tmp/rune
mkdir -p .claude/skills
cp -r /tmp/rune/skills/completion-gate .claude/skills/completion-gate
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Completion Gate in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Completion Gate automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Completion Gate nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

completion-gate

Purpose

The lie detector for agent claims. Validates that what an agent says it did actually happened — with evidence. Catches the #1 failure mode in AI coding: claiming completion without proof.

Triggers

  • Called by cook in Phase 5d (quality gate)
  • Called by team before merging stream results
  • Called by any skill that reports "done" to an orchestrator
  • Auto-trigger: when agent says "done", "complete", "fixed", "passing"

Calls (outbound)

None — pure validator. Reads evidence, produces verdict.

Called By (inbound)

  • cook (L1): Phase 5d — validate completion claims before commit
  • team (L1): validate cook reports from parallel streams

Execution

Step 1 — Collect Claims

Parse the agent's output for completion claims. Common claim patterns:

CLAIM PATTERNS:
  "tests pass" / "all tests passing" / "test suite green"
  "build succeeds" / "build complete" / "compiles clean"
  "no lint errors" / "lint clean"
  "fixed" / "resolved" / "bug is gone"
  "implemented" / "feature complete" / "done"
  "no security issues" / "sentinel passed"

Extract each claim as: { claim: string, source_skill: string }

Step 1a — Type Each Claim (Claim Discipline)

Before hunting for evidence, type the claim by the grammar it was written in. Hallucination is an unverified claim wearing the grammar of an observation — the grammar is the tell, and it is readable in the sentence itself.

TypeMeaningGrammar it may wear
OBSERVEDSeen this session: ran it, read it, measured it"X is / does / returns …"
DERIVEDFollows from OBSERVED facts via a statable mechanism"X should / will / implies …" + the why
PRIORTraining knowledge, may be stale"X is typically … / was, as of …"
ASSUMEDUnverified and required by the conclusion"I am assuming X — if wrong, then …"

This changes what the gate is looking for in Step 2:

  • OBSERVED → demands an evidence artifact. No artifact = FAIL. This is the existing gate.
  • DERIVED → demands the mechanism be stated, and its OBSERVED inputs to be present.
  • PRIOR / ASSUMED → not a failure. A claim honestly delivered as assumed is the correct output when the check was not run. Record it as an open item; never score it as a lie.

Claims are promoted only by tools — checking a PRIOR makes it OBSERVED. Restating it more confidently does not. Confidence that grew from effort, repetition or fluent prose resets to the last evidence-backed level.

Step 1b — Stub Detection (Existence Theater Check)

Before checking claims, scan all files created/modified in this workflow for stubs:

Grep for stub patterns in new/modified files:
- "Placeholder" | "TODO" | "Not implemented" | "NotImplementedError"
- Functions with body: only `return null` / `return {}` / `pass` / `throw`
- Components returning only a single div with no logic

If ANY stub detected:

  • Add synthetic claim: "implemented [filename]" → CONTRADICTED (file is a stub)
  • This catches agents that create files but don't implement them

Step 1c — Self-Validation Check

If the skill that just ran has a ## Self-Validation section, extract its checklist and treat each item as an implicit claim:

For each Self-Validation check in the skill's SKILL.md:
  1. Read the check (e.g., "at least one assertion per test")
  2. Look for evidence in tool output that this check was satisfied
  3. If evidence found → add as CONFIRMED claim
  4. If no evidence → add as UNCONFIRMED claim ("Self-Validation: [check] — no evidence")

Why: Self-Validation catches domain-specific quality issues that generic claim matching (Step 2) cannot detect. A test skill knows "no assertions = useless test" but completion-gate doesn't — unless the skill's Self-Validation tells it to check.

Step 1d — Execution Loop Audit

Before validating claims, audit the agent's tool call pattern for execution loops that indicate the agent was stuck but didn't report it:

Classify the agent's tool calls from this workflow into two categories:

CategoryToolsExpected in Phase 4
ObservationRead, Grep, Glob, Bash(grep/ls/cat)<40% of calls
EffectWrite, Edit, Bash(build/test/npm)>60% of calls

Loop patterns to detect:

PatternDetectionVerdict Impact
Observation chain: 6+ consecutive observation tools in Phase 4Count longest observation-only streakAdd WARN: "Agent had {N}-call observation streak during implementation — possible analysis paralysis"
Low effect ratio: <20% effect calls during Phase 4effect_calls / total_callsAdd WARN: "Only {X}% of Phase 4 calls were writes — agent may have been stuck"
Repeating tool pattern: Same tool+args called 3+ timesHash tool+args, count duplicatesAdd WARN: "Agent called {tool}({args}) {N} times — possible loop"
Budget overrun: Phase 4 exceeded 50 tool calls for a single-file taskCount Phase 4 calls vs files changedAdd WARN: "50+ tool calls for {N} files changed — disproportionate effort"

Scoring impact: Loop warnings don't change individual claim verdicts but ARE included in the Completion Gate Report under a new ### Execution Efficiency section. This gives the calling orchestrator signal about whether the agent's process was healthy, not just whether the output was correct.

Skip if: Nano/Fast rigor — not enough tool calls to meaningfully analyze.

Step 2 — Match Evidence

For each claim, look for corresponding evidence in the conversation context:

Claim TypeRequired EvidenceWhere to Find
"tests pass"Test runner stdout with pass countShell output from test command
"build succeeds"Build command stdout showing successShell output from build command
"lint clean"Linter stdout (even if empty = 0 errors)Shell output from lint command
"fixed"Git diff showing the change + test proving fixFile-edit evidence + test output
"implemented"Files created/modified matching the planFile changes compared with the plan
"no security issues"Sentinel report with PASS verdictSentinel skill output
"coverage ≥ X%"Coverage tool output with actual percentageTest runner with coverage flag

Step 3 — Validate Each Claim (Default-FAIL Mindset)

For each claim + evidence pair:

IF evidence exists AND evidence supports claim:
  → CONFIRMED
IF evidence exists BUT contradicts claim:
  → CONTRADICTED (most serious — agent is wrong)
IF no evidence found AND claim was typed PRIOR/ASSUMED (Step 1a):
  → DECLARED (honest gap — record as an open item, not a failure)
IF no evidence found AND claim wore OBSERVED grammar:
  → UNCONFIRMED (the claim asserted more than the agent checked)

3-Axis verification — categorize each claim into one of three axes, then ensure all axes are covered:

AxisQuestionExample Claims
CompletenessWere all planned tasks done? All specs implemented?"implemented feature X", "all TODO items done", "migration created"
CorrectnessDoes output match spec intent? Do tests verify real behavior?"tests pass", "build succeeds", "lint clean", "fixed the bug"
CoherenceDoes it follow project patterns? Consistent with existing code?"follows conventions", "uses existing patterns", "no new deps needed"

If an axis has ZERO claims → flag as gap: "No [Completeness/Correctness/Coherence] evidence found — agent may have skipped this dimension."

Adversarial validation checklist (run AFTER initial verdicts):

  1. Re-read each CONFIRMED claim — is the evidence actually proving THIS claim, or a different one?
  2. Check for partial completion — did the agent do 80% but claim 100%? (e.g., "implemented feature" but only the happy path)
  3. Check for scope mismatch — does the evidence prove the SPECIFIC claim or a broader/narrower version?
  4. If all claims are CONFIRMED on first pass, apply skeptic sweep: re-examine the weakest 2 claims with heightened scrutiny
  5. Check axis coverage — are all 3 axes (Completeness/Correctness/Coherence) represented? Missing axis = investigation gap

Step 4 — Report

## Completion Gate Report
- **Status**: CONFIRMED | UNCONFIRMED | CONTRADICTED
- **Claims Checked**: [count]
- **Confirmed**: [count] | **Unconfirmed**: [count] | **Contradicted**: [count] | **Declared**: [count]

### Claim Validation
| # | Claim | Type | Evidence | Verdict |
|---|---|---|---|---|
| 1 | "All tests pass" | OBSERVED | Bash: `npm test` → "42 passed, 0 failed" | CONFIRMED |
| 2 | "Build succeeds" | OBSERVED | No build command output found | UNCONFIRMED |
| 3 | "No lint errors" | OBSERVED | Bash: `npm run lint` → "3 errors" | CONTRADICTED |
| 4 | "Assuming the migration already ran in staging" | ASSUMED | — (declared, not claimed) | DECLARED |

### Gaps (if any)
- Claim 2: Re-run `npm run build` and capture output
- Claim 3: Agent claimed clean but lint shows 3 errors — fix required

### Open (declared, not failures)
- Claim 4: Verify the staging migration before this reaches prod

### Verdict
UNCONFIRMED — 1 claim lacks evidence, 1 contradicted. Cannot proceed to commit. (1 declared assumption carried forward — not blocking.)

Step 4.5 — Integration Check (Cross-Phase + Cross-Layer)

Check for integration gaps — between phases AND between layers:

  1. Orphaned exports — files/functions created in this phase that claim to be used by future phases (see ## Cross-Phase Context → Exports) but are not yet importable:

    Grep for the export name in the current codebase:
    - If export exists AND is importable → CONFIRMED
    - If export exists but has wrong signature vs phase file contract → CONTRADICTED
    - Expected export missing entirely → UNCONFIRMED ("Phase N claims to export X but X not found")
  2. Uncalled routes — API endpoints added in this task but not wired to any frontend/consumer:

    • BLOCK if the route was created in THIS task AND a user story/AC references the interaction it serves — an uncalled route behind a story's UI is a dead path, not future work
    • WARN (deferral allowed) ONLY if a NAMED future-phase task explicitly references consuming this route (verifiable in the master plan/phase files — "a future phase will handle it" without a task ID is not an excuse)
  3. Auth gaps — new endpoints or pages without authentication/authorization:

    • Grep for route handlers without auth middleware
    • Flag as WARN (may be intentional for public endpoints, but worth checking)
  4. E2E flow trace — for the primary user flow this task enables:

    • Trace: entry point → handler → business logic → data layer → response
    • If any step in the chain is missing or stubbed → CONTRADICTED

When this step is MANDATORY (any one triggers it — single-phase tasks included):

  • The diff touches BOTH a UI file (.tsx/.jsx/.vue/.svelte/.html) AND an api/service/data file — where "api/service/data file" = any file whose path contains a segment from: api, routes, handlers, services, service, stores, store, db, database, models, repositories, repo, queries — OR any file exporting functions matching create*/update*/delete*/fetch*/save*/post* verb patterns
  • The feature spec has a ## Key Entities section
  • The task description contains any of these exact words: click, submit, save, login, signup, search, checkout, upload, delete, order, pay — EXCEPT when the phrase is explicitly local-only ("save to clipboard", "save locally", "client-side only")
  • Multi-phase master plan (always, as before)

Skip ONLY when none of the above hold (pure-UI styling, pure-backend plumbing, docs/config). "Single-phase" is NOT a skip reason — most dead-button escapes are single-phase tasks.

De-dup: if preflight (Step 4/4.5) or verification (Level 3.5) already flagged the same element/route in this session, cite the cross-reference instead of emitting a duplicate finding — one dead button = one finding + cross-refs, not three findings.

Step 5 — Evidence Quality Gate

Before emitting verdict, verify evidence quality:

  1. IDENTIFY — list every claim the agent made (Step 1 output)
  2. RUN — confirm verification commands were actually executed (not just planned)
  3. READ — read every line of command output (not just exit code)
  4. VERIFY — match each claim to a specific evidence quote (file:line or output snippet)
  5. CLAIM — only mark CONFIRMED if evidence quote directly supports the claim
Evidence QualityVerdict
Exit code 0 only, no output readINSUFFICIENT — re-run and read output
Output read but no quote matched to claimUNCONFIRMED — cite specific evidence
Quote matches claim exactlyCONFIRMED
Quote contradicts claimCONTRADICTED

Step 5.5 — Plan Diff Check

When validating a phase within a master plan, diff actual changes against the phase plan file:

  1. Read the active phase plan — Glob for .rune/plan-*-phase*.md matching the current phase
  2. Extract ## Files Touched — build a list of expected files (new/modify/delete)
  3. Extract ## Tasks — build a list of all - [ ] and - [x] items
  4. Compare against actual changes — git diff --name-only (or file system scan)
  5. Report:
CheckStatus
Unchecked task in phase plan (- [ ] still exists)INCOMPLETE — task was not done
File in plan's "Files Touched" but not in actual diffMISSING — planned file was never touched
File in actual diff but NOT in plan's "Files Touched"UNPLANNED — scope creep (warn, not block)
All tasks [x] AND all planned files touchedPLAN-ALIGNED
Plan Diff: PLAN-ALIGNED | INCOMPLETE (2 unchecked tasks) | MISSING (1 file never touched)

Skip if: No active phase plan found (single-task, no master plan). MANDATORY for multi-phase master plans.

Verdict Rules

ALL claims CONFIRMED         → overall CONFIRMED (proceed)
ANY claim CONTRADICTED       → overall CONTRADICTED (BLOCK — fix the contradiction)
ANY claim UNCONFIRMED        → overall UNCONFIRMED (BLOCK — provide evidence)
  (no CONTRADICTED)

Output Format

Completion Gate Report with status (CONFIRMED/UNCONFIRMED/CONTRADICTED), claim validation table, gaps, and verdict. See Step 4 Report above for full template.

Constraints

  1. MUST check every completion claim against actual tool output — not agent narrative
  2. MUST flag missing evidence as UNCONFIRMED — absence of proof is not proof of absence
  3. MUST flag contradictions as CONTRADICTED — this is more serious than missing evidence
  4. MUST NOT accept "I verified it" as evidence — show the command output
  5. MUST be fast (haiku) — this runs on every cook completion

Sharp Edges

Failure ModeSeverityMitigation
Agent rephrases claim to avoid detectionMEDIUMPattern matching covers common phrasings — extend as new patterns emerge
Evidence from a DIFFERENT test run (stale)HIGHCheck that evidence timestamp/context matches current changes
Agent pre-generates evidence by running commands proactivelyLOWThis is actually GOOD behavior — we want agents to provide evidence
Completion-gate itself claims "all confirmed" without evidenceCRITICALGate report MUST include the evidence table — no table = report is invalid
Existence Theater — agent creates files but they're stubsHIGHStep 1b stub detection: grep for Placeholder/TODO/NotImplementedError in new files
Cross-phase integration gaps — exports exist but wrong signatureHIGHStep 4.5: verify exports match Code Contracts from phase file
Phase complete but E2E flow broken — missing link in the chainHIGHStep 4.5 E2E flow trace: entry → handler → logic → data → response must all be connected
Skipping Step 4.5 because the task is single-phaseCRITICALMandatory triggers: UI+data diff, Key Entities in spec, or interaction-implying task — single-phase is where most dead buttons escape
Excusing an uncalled route with "a future phase will wire it" (no task named)HIGHStep 4.5 #2: deferral requires a NAMED future-phase task referencing the route — vibes-deferral = BLOCK
Rubber-stamping — all CONFIRMED without scrutinyHIGHDefault-FAIL mindset: actively seek 3-5 issues. Zero issues = red flag, apply skeptic sweep on weakest 2 claims
Partial completion claimed as full — 80% done but "implemented"HIGHAdversarial checklist: check for partial completion, scope mismatch, evidence-claim alignment
Self-Validation skipped — skill has checks but gate ignores themHIGHStep 1c: extract Self-Validation from skill's SKILL.md, treat each as implicit claim. Missing = UNCONFIRMED
Plan says done but phase file has unchecked tasksHIGHStep 5.5: diff changed files vs phase plan's Files Touched + Tasks sections
Agent stuck in observation loop but claims "implemented"HIGHStep 1d: Execution Loop Audit detects low effect ratio and observation chains — flags in report even if claims pass

Done When

  • All completion claims extracted from agent output
  • Each claim matched against tool output evidence
  • Verdict table emitted with claim/evidence/verdict for each item
  • All 3 verification axes (Completeness/Correctness/Coherence) have at least one claim checked
  • Plan diff check passed (if multi-phase): all tasks checked, all planned files touched
  • Overall verdict: CONFIRMED / UNCONFIRMED / CONTRADICTED
  • If not CONFIRMED: specific gaps listed with remediation steps

Cost Profile

~500-1000 tokens input, ~200-500 tokens output. Haiku for speed. Runs frequently as part of cook's quality phase.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Completion Gate?

Prüft Aussagen von Agents anhand der Beleglage. Verwenden Sie diesen Skill, um zu überprüfen, ob ein Agent tatsächlich erledigt hat, was er behauptet – wird automatisch am Ende eines Workflows ausgelöst. Erkennt Aussagen wie „erledigt“ ohne Beleg, „Tests bestanden“ ohne Ausgabe oder „behoben“ ohne Überprüfung. Wird von cook und team aufgerufen.

Warum Completion Gate in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Completion Gate besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Completion Gate in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/Rune-kit/rune/tree/master/skills/completion-gate ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Completion Gate nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Completion Gate verwenden?

So viele Sie möchten. In TypingMind können Sie Completion Gate mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Completion Gate kostenlos?

Ja. Der Skill wird von Rune-kit auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇