Detach

From govctl-org/govctl · View interactive version

Detach is an AI agent skill from the GitHub repository govctl-org/govctl. Remove project-local govctl integration through an ownership-aware dry run, archival plan, explicit confirmation, and recoverable edits

How to use this skill

Skill file

Detach Govctl

Remove govctl integration from a project while archiving its governance history

and keeping unrelated configuration.

Inventory (Read-Only)

Change nothing yet. Inspect gov/ and its config; configured docs, source-scan,

and agent-asset paths; local skills and agents; hooks, plugin metadata,

instructions, and editor config that invoke govctl; [[...]] references in

source and config; existing gov.archived/, working-copy changes, ignore rules,

and destination collisions. For every candidate path, record its logical and

resolved path and check each existing ancestor for symlinks.

Use parsers for structured config and rg for text. Keep generated docs by

default. A filename match or mention of govctl is a lead, not proof of

ownership; when ownership is unclear, keep the content and list it for manual

review.

Hard Stops

covers only that plan.

overwrite, merge, or choose another path.

paths inside the project root.

or external target needs its own approval after showing its logical path,

resolved target, and symlinked ancestors.

directory unless govctl provably owns all of it.

prose that merely mentions governance.

restored.

pending.

Dry-Run Plan

List the archive source and destination (logical and resolved), every file to

remove, every config entry or text span to edit, references to remove or keep

or leave for review, what stays untouched, overlapping existing changes, a

recoverable baseline for each touched file, and restoration steps. Resolve

collisions and unclear ownership before asking for confirmation; redo the

inventory if scope changes.

The clone-shared coordination registry lives outside the project root, in

version-control storage; govctl status reports its path under Local State.

List that project's registry directory as an outside-project target, and remove

it only with that separate approval. Never remove the parent govctl/registry/,

because other governed projects in the clone may use it. Record the path before

archiving gov/, since project-scoped commands must not run afterward.

Execution

  1. Rename gov/ to the confirmed archive path.
  2. Remove only verified govctl assets; in shared directories remove the owned

entries and keep the directory.

  1. Edit hooks and config surgically, keeping unrelated entries valid.
  2. Remove reference markup only where the remaining comment stays accurate;

delete reference-only comments and keep useful history as plain prose.

  1. Remove govctl instruction sections without touching neighboring policy.
  2. Delete a directory only if it is empty and in the plan.

Change ignore rules only if the plan includes it; otherwise just report the

implications.

Recovery

Record operations in the final response, not in the archive. On failure, keep

the archive and completed changes, stop, and give exact restore or continue

steps. The operations are not atomic; do not claim they are. To restore,

resolve any new gov/ collision, move the archive back, reinstall removed

assets, and follow the remaining steps from the plan.

Done When

integration;

untouched;

restoration steps.

Use commit if the user wants the detach recorded.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.