Logo von Finalize Task

Finalize Task

Community
etr
finalize-task

Use when a task worktree has passed validation - manually commits, merges, and cleans up, or prepares runner-owned commits and publication. Pass --on-unrelated-failure ignore-and-merge to allow merging a tree validated as PASSED-WITH-WAIVERS (unrelated gates waived with receipts; default stop-and-ask refuses it).

Übersicht

Herausgeberetr
Repositorygroundwork
Skill-Namefinalize-task
Sterne
45
Forks
4
Mitgelieferte Dateien
Nur Anweisungen
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.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von etr auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Finalize Task 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 — liest 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/etr/groundwork/tree/main/skills/finalize-task
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Ü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 lesen kann, 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/etr/groundwork.git /tmp/groundwork
mkdir -p .claude/skills
cp -r /tmp/groundwork/skills/finalize-task .claude/skills/finalize-task
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Finalize Task 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 Finalize Task 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 Finalize Task 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-Keys.

  • 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.

Finalize Task

Finalize one validated task. Use judgment for commit and merge messages. Preserve the worktree and branch whenever state is ambiguous.

Inputs

Accept a task ID, optional --project <name>, and optional --on-unrelated-failure <mode> (stop-and-ask, expand-and-fix, or ignore-and-merge; default stop-and-ask when absent). ignore-and-merge is the only mode that changes finalization behavior here: it authorizes merging a tree whose terminal validation result was Validation PASSED-WITH-WAIVERS (see item 4 below). An invalid mode value → stop with a usage error.

When invoked by the external runner, treat its exact project_root, worktree_path, branch, base_branch, base_head, and validated_head values as authoritative. Missing or inconsistent runner inputs are a failure.

When invoked manually from the task worktree:

  1. Resolve --project directly from the repository's .groundwork.yml; do not depend on or change persisted project selection.
  2. Derive the current registered worktree and checked-out task branch.
  3. Derive the primary worktree and its checked-out base branch.
  4. Treat the current task HEAD as validated_head. If validation did not just pass for this exact tree and working state, stop and ask the user to run validate first. A Validation PASSED-WITH-WAIVERS outcome counts as a pass only when this invocation carried --on-unrelated-failure ignore-and-merge and the terminal validation session's coordinator-owned record contains at least one waiver receipt (failed gate, evidence, causal assessment, path attribution outside the project root, authorizing flag — see ${CLAUDE_PLUGIN_ROOT}/references/validation-session-protocol.md); otherwise it is not a pass: stop and ask. Exception — resume entry: when a resume gate (node ${CLAUDE_PLUGIN_ROOT}/lib/task-resume.js check <task-id>) classified this task as resume_at: finalize, its terminal validated session already covers this exact tree; proceed (see ${CLAUDE_PLUGIN_ROOT}/references/task-resume-protocol.md).

Workflow

1. Verify state

Before changing anything:

  1. Confirm the task path is a registered worktree for exactly the task branch.
  2. Confirm the primary worktree is on the base branch and clean.
  3. Confirm the task branch HEAD equals validated_head.
  4. Record the base branch's current head.
  5. Inspect staged, unstaged, and untracked task-worktree changes without discarding any.

Never reset, stash, rebase, force-delete, or silently switch either worktree to another branch.

2. Complete task bookkeeping

Within the selected project's task files:

  1. Change only this task's status to Complete.
  2. Update its status-table row when an index exists.
  3. Leave unrelated tasks unchanged.

3. Commit remaining validated work

Inspect the actual remaining diff. Include validation fixes and task bookkeeping belonging to this task.

  • In runner mode, validation has already been sealed by the runner. Only task-status bookkeeping may remain; reject any other changed path. Do not stage or commit it. Return it to the runner with action: "commit" and propose <task-id>: Mark task complete plus an explanatory body. Use action: "none" only when no bookkeeping change remains.
  • Outside runner mode, commit bookkeeping changes on the task branch as <task-id>: Mark task complete.
  • In manual mode, describe any validated remaining change in the subject.
  • Do not create an empty commit.
  • Require a clean task worktree afterward only in manual mode.

In runner mode, never ask a question. Return RESULT: FAILURE for missing information or unsafe state.

4. Integrate a moved base

Check whether the current base head is an ancestor of the task branch.

If it is not:

  1. Merge the current base head into the task branch with --no-ff --no-commit.
  2. Resolve conflicts only when the task definition and surrounding code make the resolution unambiguous.
  3. Record whether the merge command reported conflicts, even when every conflict was resolved unambiguously.
  4. In runner mode, do not run git add or create the merge commit. Leave the prepared merge for the runner and propose an expressive task-prefixed commit subject and body. Return RESULT: BASE_INTEGRATED, bind it to the exact integrated base head, and report conflicts_resolved: true only when the merge command reported conflicts. The runner owns the opt-in revalidation policy and invokes finalization again after sealing the integration.
  5. Outside runner mode, commit the resolution and continue to prepare and merge the task into the base branch.

If resolution needs product, architecture, or ownership judgment, safely abort the integration when possible and return RESULT: NEEDS_INPUT.

5. Prepare the merge

In runner mode:

  1. Reconfirm the primary worktree is clean, the task worktree contains only the permitted bookkeeping change, and the base branch is still at the head recorded in step 1.
  2. Choose a concise merge message containing the task ID and actual title or outcome. When this finalization accepted a PASSED-WITH-WAIVERS validation, the merge body must name each waived gate as waived (never as passed). When validation repaired an unrelated failure under expand-and-fix, mention the incidental fix.
  3. Return the versioned JSON RESULT: READY_TO_MERGE receipt with the exact runner token, task identity, bookkeeping commit proposal when needed, and expressive outward merge subject/body. Do not merge outward, remove the worktree, or delete the branch; the runner verifies and commits the prepared tree before performing those operations.

When invoked manually, merge with --no-ff, then continue to cleanup below. If an unexpected conflict occurs, abort it when safe and return RESULT: NEEDS_INPUT. Do not resolve it on the base branch because the resolution would not have been validated.

6. Verify and clean up

After a successful manual merge:

  1. Confirm the task branch is an ancestor of the base branch.
  2. Confirm the primary worktree is clean and record its merge commit.
  3. Remove exactly the verified task worktree.
  4. Delete exactly the verified task branch with safe deletion.

If the merge succeeded but cleanup fails, return RESULT: CLEANUP_REQUIRED; do not undo the merge.

Result contract

Make the final line exactly one of:

text
RESULT: FINALIZED | task_id=<id> | task_head=<sha> | merge_commit=<sha> | base_branch=<branch>
RESULT: NEEDS_INPUT | reason=<one-line reason>
RESULT: CLEANUP_REQUIRED | merge_commit=<sha> | worktree_path=<path> | branch=<branch> | reason=<one-line reason>
RESULT: FAILURE | reason=<one-line reason> | worktree_path=<path> | branch=<branch>

In runner mode, report only one of these compact JSON receipts or a failure result:

text
RESULT: READY_TO_MERGE | {"v":1,"token":"<exact-runner-token>","task_id":"TASK-NNN","phase":"finalize","action":"commit","commit":{"subject":"TASK-NNN: Mark task complete","body":"<bookkeeping summary>"},"merge":{"subject":"Merge TASK-NNN: <actual outcome>","body":"<publication summary>"}}
RESULT: BASE_INTEGRATED | {"v":1,"token":"<exact-runner-token>","task_id":"TASK-NNN","phase":"finalize","action":"commit","base_head":"<full-integrated-base-sha>","conflicts_resolved":true,"commit":{"subject":"TASK-NNN: Integrate updated base branch","body":"<resolution summary>"}}
RESULT: REVALIDATE | {"v":1,"token":"<exact-runner-token>","task_id":"TASK-NNN","phase":"finalize","action":"commit","base_head":"<full-integrated-base-sha>","reason":"<why revalidation is required>","commit":{"subject":"TASK-NNN: Integrate updated base branch","body":"<resolution summary>"}}

For READY_TO_MERGE, use action: "none" and omit commit when the task worktree is clean. BASE_INTEGRATED always uses action: "commit"; REVALIDATE remains accepted only for compatibility with older skill exports. Report FINALIZED only after a manual merge is present, both remaining worktrees are clean, and cleanup succeeded.

Häufig gestellte Fragen

Was macht der KI-Skill Finalize Task?

Use when a task worktree has passed validation - manually commits, merges, and cleans up, or prepares runner-owned commits and publication. Pass --on-unrelated-failure ignore-and-merge to allow merging a tree validated as PASSED-WITH-WAIVERS (unrelated gates waived with receipts; default stop-and-ask refuses it).

Warum Finalize Task in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Finalize Task 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 Finalize Task in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/etr/groundwork/tree/main/skills/finalize-task ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Finalize Task nutzen?

Jedes Modell, das Sie in 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 Finalize Task verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Finalize Task damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Finalize Task kostenlos?

Ja. Der Skill wird von etr 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: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. 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 benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

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