agentleFS
kirodotdevkirodotdev/KiroCrew/skills/self-update/SKILL.md

self-update

Skill4.3k starsChanged 3 months agoApache-2.0View on GitHub

Check for and apply Kiro Crew updates. Use when user says "update yourself", "check for updates", "are you up to date", "keep yourself updated", or "auto-update".

4 other projects use a version of this.

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 9 mentionsSep 2026: 11 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the kirodotdev/KiroCrew repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about kirodotdev/KiroCrew

The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 22

Talked about on GitHub and Hacker News (22 times).

On GitHub · 19

14 more on GitHub

On Hacker News · 3

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check for available Kiro Crew updates and use the install layout's supported apply path.

    line 11
  2. Very specific:

    Do not create a second update-check or auto-apply cron.

    line 69
  3. Distinctive:

    After an update + restart, the resuming session runs the new code.

    line 96
  4. Very specific:

    Run kirocrew --version to show the installed version.

    line 102
  5. Very specific:

    Read the layout-aware verdict from Settings → About or GET /api/update/check when that authenticated surface is available.

    line 103
  6. Distinctive:

    If an update is available, offer the supported in-app or user-terminal apply path.

    line 105
  7. Distinctive:

    Check the current version and layout-aware update verdict first.

    line 109
  8. Very specific:

    If an update is available, use the authenticated in-app action when supported.

    line 110
  9. Distinctive:

    Follow the capability response: terminal source/wheel updates require a gateway restart, while an in-app apply owns the restart itself.

    line 111
  10. Very specific:

    Use the existing Kiro Crew auto_update/channel/policy controls where available.

    line 118

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Self-Update

Overview

Check for available Kiro Crew updates and use the install layout's supported apply path. The gateway already performs periodic update checks; do not add a duplicate cron.

kirocrew update behaves differently on three install layouts, and which one the user is on decides everything below:

  • git checkout — fetch, then reset --hard to the upstream tip. Only a fast-forwardable checkout is updated; a DIVERGED checkout (local commits both ahead and behind) is refused, because the reset would discard them.
  • wheel / cli.sh — fetch the release feed, compare versions, re-run the installer.
  • externally managed (desktop app, Docker) — prints guidance and returns without updating. The desktop app updates itself over its own OTA channel.

There is no separate "check" subcommand.

A policy-defined update provider, when one is configured, owns updating this host: it runs before any layout dispatch, the built-in mechanism never runs, and there is no fallback — kirocrew update exits 1 on provider failure. Report the provider's failure; do not try to route around it.

Core Concepts

Checking for Updates

Non-destructive — safe to run anytime. Report the installed version:

kirocrew --version

Then use that layout's own source of truth: the tracked upstream branch for a git checkout, the signed release feed for a wheel install, or the app's own updater for desktop. Do not compare a checkout against public tags; source updates are based on commit distance from its configured upstream, not release tags.

Applying Updates

To apply an available update:

kirocrew update

The gateway must be restarted afterward for the new version to take effect.

Two more verbs:

kirocrew update approve   # approve a pending in-app update armed from the dashboard
kirocrew update --force   # git installs only

--force is the destructive one: on a diverged git checkout it lets the hard reset discard local commits, recoverable only from git reflog. Never run it without saying that first.

Automatic Update Checking

Do not create a second update-check or auto-apply cron. The running gateway already checks at startup and every 12 hours, and exposes the layout-aware verdict through Settings → About and GET /api/update/check.

The built-in capability selects the correct owner:

  • git checkout / wheel install — Kiro Crew checks the tracked upstream or signed release feed and reports a nullable update_available verdict.
  • desktop app — the Electron/package OTA updater owns checking and consent.
  • Docker — the image is immutable; update by pulling/redeploying an image.
  • policy-defined provider — the provider owns both check and apply, with no fallback to the built-in mechanism.

A completed check is check_status="succeeded"; only then does update_available=false mean “up to date.” A failed, deferred, or unchecked comparison is not a negative verdict.

For automatic application, use the product's existing auto_update/policy and channel controls rather than scheduling a lifecycle command in a cron. The update path already owns checkout safety, memory snapshotting, install-layout dispatch, drain, and restart behavior.

Limitations

  • BOTH kirocrew restart AND kirocrew update are blocked when run directly from an agent session, by the self-protection argv floor (it reads the command's argv, so mentioning the words in a path or a grep pattern is not blocked, and there is no opt-out).
  • A policy-defined update provider, where configured, owns updating the host and there is no fallback: kirocrew update exits 1 if it fails. Report that failure rather than working around it.
  • Because the agent shell cannot run lifecycle commands, apply through the authenticated dashboard when the capability offers it, or ask the user to run the displayed terminal command. Do not smuggle update or restart through a custom cron. A terminal update may still require the user to restart; an in-app apply owns its own drain/restart flow.
  • After an update + restart, the resuming session runs the new code.

Usage

User asks "am I up to date?" or "check for updates"

  1. Run kirocrew --version to show the installed version.
  2. Read the layout-aware verdict from Settings → About or GET /api/update/check when that authenticated surface is available; otherwise compare against the layout's own source of truth.
  3. Report check_status as well as update_available: only a succeeded check with false proves the install is current.
  4. If an update is available, offer the supported in-app or user-terminal apply path.

User asks "update yourself"

  1. Check the current version and layout-aware update verdict first.
  2. If an update is available, use the authenticated in-app action when supported; otherwise ask the user to run the exact remediation command in their terminal. The agent shell cannot run kirocrew update directly.
  3. Follow the capability response: terminal source/wheel updates require a gateway restart, while an in-app apply owns the restart itself.
  4. Report any dirty-tree, divergence, interpreter-floor, policy-provider, or externally-managed refusal without routing around it.

User asks "keep yourself updated" or "auto-update"

  1. Inspect the install's update capability and current check_status.
  2. Explain which component owns updates for this layout (git/wheel, desktop OTA, container, or policy provider).
  3. Use the existing Kiro Crew auto_update/channel/policy controls where available; do not create a second update cron.
  4. For externally managed or container installs, give the capability's own remediation instead of claiming Kiro Crew can self-update.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.