Skip to content
Back to skills

Guru Finish Task

ASecurity

Persist Completion and Closure into one reviewed task archive and terminal bookkeeping result.

  • 9 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 20, 2026
databasesbashreactgitapi

Works with

  • terminal
  • api

Security analysis

A100/100

Pro scans all 16 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add castbox/guru-trellis --skill guru-finish-task --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Guru Finish Task?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Guru Finish Task
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/castbox-guru-finish-task/badge)](https://www.skillsdirectory.com/skills/castbox-guru-finish-task)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: guru-finish-task
description: Persist Completion and Closure into one reviewed task archive and terminal bookkeeping result.
---

# Guru Finish Task

Before substantive output, read `.trellis/spec/workflow/clear-technical-writing.md`
in full and apply it within this entry's existing scope. Until that read succeeds,
use only short progress messages or concrete missing-dependency diagnostics.
State the current action or missing item; make no unverified claim. If the file
cannot be read, pause substantive output, then read it and resume the same
request when available. No additional approval is needed for that recovery.

`judgment_mode=semantic`: review current Closure and terminal bookkeeping,
complete the AI Review Gate, confirm each actual mutation boundary in the
current dialogue, then invoke the executor/validator and return one typed exit.

Read `.trellis/spec/workflow/workflow-contract.md#interaction-budget` before
any confirmation, choice or clarification. This Skill retains its own action
plan, confirmation boundary and execution/recovery contract.

Before archive projection, verify current public Closure. Preserve the schema-2
Task aggregate byte semantics: never write `status`, `completedAt`, `commit`, or
`pr_url`. Finish alone owns archive summary and bookkeeping publication, with
separate confirmations for its exact Git/GitHub mutations. Public Delivery
facts and planning roots move with the Task; archive and terminal persistence
do not erase them or pretend Cleanup succeeded.


Finish accepts only the current Closure ResultRefDTO, resolves TaskRef from the
stable TaskId, and reads the exact terminal action set through the shared
read-only Closure result API. Before terminal mutation it compares the
Closure-frozen source with the current task source and rereads each frozen
action: `retain_open` requires OPEN; `close` and `already_closed_at_review`
require CLOSED; `no_close_authority` retains its no-close-state requirement.
The aggregate terminal is `closed` only when the set contains a closing action;
it never means every Issue or the exact source must be CLOSED. Drift returns
`closure_refresh_required` for Closure's semantic re-entry. A bookkeeping
merge is not a business Delivery and never closes an Issue.
Finish never chooses a new disposition or closes/reopens a retained source.
Archive current planning and Delivery history with their accepted scope and
unverified integration boundaries; source OPEN does not invalidate a current
retain result or prove whole-task Completion. Normal output-loss recovery uses
the same archive/bookkeeping transaction, without repeating successful mutations.
Use the matching Closure/Finish package set for the additive action; old complete
installations retain their separate migration boundary in task-delivery-migration.
For a noncanonical legacy task still lacking `task.json.source`, the exact
Closure-frozen non-exact source is used until the already-required archive
metadata write materializes it; a short Issue scope never grants close authority.

The normal transaction has three independently confirmed mutations: local
archive projection, bookkeeping commit/push/PR publication, and expected-head
merge. The executor recovers only that exact transaction and returns `success`
only after the remote target baseline contains the final archive and no active
copy. Before moving the task out of the active tree, the archive projection
uses the Fixed Fork session API to retire only pointers for this exact TaskId
and generation. A projected archive not yet verified on the target resumes the
original Finish transaction by explicit identity; it is not a Reactivate
candidate. Once shared Finish is verified in the target history, pending local
seal, binding exit or Cleanup remains with the original resource owner and
does not block another environment's Reactivate. The archive
locator belongs in finish-summary, not in the retired
`task.json.archive_dir` metadata field. The reviewed payload forbids
Issue-closing keywords and both legacy `Guru-Delivery-Task` /
`Guru-Delivery-Cycle` and current `Guru-Task-Identity` /
`Guru-Delivery-Schema` / `Guru-Delivery-Head` trailers. Validate the current
semantic payload before local archive projection and on every successful
re-entry, including an already open bookkeeping PR before its merge.
Only after remote target verification does Finish seal the current generation
and exact result in the common-dir resource ledger against the bookkeeping PR
head (the cleanup refs' actual HEAD), then retire its branch binding. The
target merge commit separately proves that the archive is persisted. `success` hands its
ResourceSealRefDTO to Cleanup; missing terminal ownership returns
`manual_cleanup_required`. Finish never deletes a resource. This canonical
manual route records the minimal terminal identity in Git common-dir so it
survives removal of the original checkout. Its matching manual Cleanup receipt
serves only that environment's resource disposition; shared Reactivate does not
require it. The Finish bookkeeping commit and target merge commit
remain distinct identities. The active graph invokes this package only after
Completion and Closure.
Before terminal mutation, consume the matching current Architecture
`task_impact_sync(stage=acceptance_finish)` output through that owner's
Downstream eligibility entry. Completion or Branch Review output cannot be
relabelled as Architecture; caller changes alone do not repeat assessment.
Changed applicable Architecture facts and missing review/promotion follow the
existing routes, while Finish retains its archive/bookkeeping responsibility.
Do not repeat an already accepted promotion or add a baseline commit solely to
record the final Review result or HEAD. Use the original formal results and
Git/PR facts for those observations. Preserve the result prose's observation
cutoff. Finish does not write shared current Docs or revise reviewed prose to
chase its own final pass, final HEAD or post-archive result. A genuine content
gap returns to its original writer and affected quality gates; it does not
create an empty business Delivery or additional result-only commit.
If the shared Closure result reader is unavailable, Finish stops before
terminal mutation instead of accepting an unbound caller action list.

Read `.trellis/spec/workflow/companion-scripts.md#intermediate-command-stdout-10` for receipts and `result` projection.
Only the declared public invocation emits a formal exit; follow its consumer and positive-exit conditions.

## Invocation files and selected legacy maintenance

For `closure_completed` and `finish_reentry`, both `--input` and
`--semantic-result` are required. Each accepts one regular JSON file, excluding
symlinks, inline JSON and stdin. Relative paths resolve against `--root` first,
then this package; without `--root`, the repository cwd is used. Absolute paths
identify the file directly. Invoke with the actual current input and reviewed
semantic result:

```bash
bash scripts/invoke.sh --root <repository-root> \
  --input <current-input-file> --semantic-result <reviewed-semantic-file>
```

The packaged examples describe input shape. They do not establish a current
Closure result or authorize Finish.

For explicit selected legacy maintenance, load
`references/legacy-maintenance.md`. Use the original `scripts/invoke.sh` for
terminal retirement and `scripts/legacy-maintenance.sh` for intermediate
inspection. The shared invoke retains the original legacy schema and exact
root checks. Its legacy input accepts inline JSON, a regular UTF-8 JSON file
(including a symlink to a regular file), or `-` for stdin. The current
`--semantic-result` is not required for that selected legacy profile.

## Fixed bookkeeping candidate

Finish consumes actual Completion/Closure and preserves their Delivery facts.
It does not require the Task branch to include the latest target, recheck
delivered development gates or compare target SHA with an earlier snapshot.
The current semantic bookkeeping input is 2.0 and private transaction 3.0;
expected_base_head is retired. Exact files, parent/commit, PR payload, expected
bookkeeping head and same-operation recovery remain required. Verify the real
bookkeeping merge is reachable from current target and archive state exists;
subsequent unrelated target commits do not invalidate success.

Files in this skill

  • SKILL.md967 B
  • commands.json1.4 KB
  • examples/cleanup-authoring.json47 B
  • examples/public-blocked-output.json22 B
  • examples/public-invocation-error.json100 B
  • examples/public-output.json181 B
  • examples/public-resume-finish-output.json207 B
  • examples/self-authoring.json50 B
  • interface.json7 KB
  • schemas/public-blocked-output.schema.json216 B
  • schemas/public-input.schema.json1.3 KB
  • schemas/public-output.schema.json1.4 KB
  • schemas/public-resume-finish-output.schema.json910 B
  • schemas/public-success-output.schema.json507 B
  • schemas/semantic-result.schema.json2.1 KB
  • scripts/invoke.sh482 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.