Skip to content
Back to skills

Update Kit

ASecurity

Refresh upstream Kit and reinstall the suite.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
ai-agentspythonbashgitsecurity

Works with

  • cli

Security analysis

A100/100

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

Scanned December 1, 2026

npx -y skills add TrebuchetDynamics/kit --skill update-kit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Update Kit?

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

Security grade badge for Update Kit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/trebuchetdynamics-update-kit-kit/badge)](https://www.skillsdirectory.com/skills/trebuchetdynamics-update-kit-kit)

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: update-kit
description: "Refresh upstream Kit and reinstall the suite."
disable-model-invocation: true
license: MIT
---

# Update Kit

Apply the [shared Ponytail method](../shared/PONYTAIL.md) within this scope and the
[communication rules](../shared/COMMUNICATION.md) to user-facing text.

## Workflow

1. **Scope.** Run only after explicit invocation. Read the caller's restrictions.
   Before execution explain: default scope includes all available components, may
   bootstrap Pi-Bolt, and may restart only proven affected active integrations.
   Every run checks for updates under source/pin policies. Healthy unchanged reruns
   request no service restarts. Selecting Orbi stops, updates and restarts verified
   local deployments, except ones stopped with `/orbi stop`, which stay stopped.
   Pi-Bolt is the only Pi harness Kit installs; the Kit Pi package is installed or
   refreshed through the verified destination Pi-Bolt, never stock Pi. Native
   dependency/security prompts remain in force. Missing hosts and partial failures
   follow the [suite installer contract](../../docs/installation.md#full-suite-from-a-checkout).
   An explicit no-restarts restriction cannot be honored: the installer restarts
   proven affected services. Refuse incompatible restrictions before any
   source/host mutation; never translate them into weaker flags.
2. **Preview branch.** For read-only, questions-only or dry-run requests, run only
   the helper's `--dry-run` with applicable literal flags, or explain without tools.
   Show intended path/argv; remote revision, host availability and activation are
   `NOT_CHECKED`. No clone, fetch, directory/lock creation, host probes or caches.
   Do not run the installer to preview.
3. **Ownership.** Use only `${XDG_DATA_HOME:-$HOME/.local/share}/kit/source`.
   `XDG_DATA_HOME` must be absolute and persistent; unset an invalid value or correct
   it before continuing. The helper clones the **complete** official
   `https://github.com/TrebuchetDynamics/kit.git`, branch `main`, not `install.sh`
   alone. Never substitute the current project, `/tmp`, `/home/xel/git/kit`, an
   arbitrary developer checkout or a host package/plugin cache. Keep source after
   installation: native installs can link to it. Establish that preexisting source
   consumers and native update owners are idle using their native receipts; unknown
   ownership holds. The destination lock serializes update-kit only.
4. **Selection.** Forward documented installer flags as separate argv, preserving
   literal values: `--only`, `--skip`, `--all`/`--full` and verbosity/color.
   Menu selection cannot
   be preflighted here; use explicit selection. Add no consent, sudo, autonomous
   policy, service activation or restart-control flags.
5. **Execute.** Resolve [the helper](scripts/update_kit.py) from this **loaded skill's
   resources**, never cwd. Use Python 3.11+ on Linux/macOS, Git, bash and lsof:

   ```text
   python3 -B <this-skill>/scripts/update_kit.py [literal caller flags]
   ```

   The helper stages a fresh clone in a unique sibling and retains failed staging
   evidence. Existing source must have updater provenance, same-user ownership,
   fixed origin, clean attached `main`, no extra worktrees, and no ahead/diverged
   history. A busy invocation reports retry. Preserve edits/history/evidence on
   every hold; never reset, stash, clean, force, repin, adopt or delete source.
   It fetches fixed upstream, fast-forwards only, then invokes that checkout's
   `bash install.sh update --no-pull` exactly once even at equal SHA. `--no-pull`
   suppresses only the outer automatic pull.
6. **Receipt.** Report persistent source path, old/helper-selected/final SHA, native
   component outcomes and installer exit code.
   Partial successes remain installed; preserve diagnostics and repair/retry only
   the reported failures. Do not claim rollback. Reopen/reload the current agent
   session to discover resources: package refresh does not reload a running agent.
   Installation, activation, model adherence and live qualification are separate.
   Apply the [Definition of Done](../shared/DEFINITION-OF-DONE.md) to claims, not as
   authority to activate Orbi or perform additional work.

## Common Rationalizations

| Rationalization | Reality |
| --- | --- |
| The current checkout is more convenient. | Only the dedicated persistent source is updater-owned. |
| Same SHA means nothing to do. | Host installation can be stale; rerun the installer. |
| A restriction can prevent restarts. | Proven affected services still restart; refuse a no-restarts request. |
| A successful install proves the session is updated. | Reload and live checks are separate evidence. |

## Red Flags

- Choosing another checkout/cache, repairing dirt with force, or deleting failed staging.
- Running source/network/host probes in preview or scheduling background updates.
- Hiding source changes, partial failures or native ownership uncertainty.
- Running extra Orbi lifecycle actions outside the installer or treating installation as live qualification.

## Boundaries

- Not a project updater, native-host logic fork or background scheduler.
- For choosing a skill, use `/ask-kit`; for repository plans, use `/plan-with-me`.
- For a single deployment’s lifecycle operations, use `/orbi`. Suite Orbi refresh follows [installer selection](../../docs/installation.md#orbi-cli).

**Done when:** the invocation has a source/installer/reload receipt or a precise
preserving refusal with a repair action; unrun live facts remain `NOT_CHECKED`.

Files in this skill

  • SKILL.md5.4 KB
  • scripts/update_kit.py17.6 KB

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 ai-agents →

Comments

Loading comments…

Newsletter

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