Skip to main content
skill CX Codex

update-aegis — Claude Code skill: update Aegis

Checks and updates the Aegis Method Pack installed for an AI coding host. Use it to inspect the current installation, apply an update, and verify the result.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add GanyuanRan/Aegis --skill update-aegis -a claude-code
Open on GitHub

What update-aegis does

The update-aegis skill maintains an installed Aegis Method Pack. It starts by checking the host registry with python scripts/aegis-update.py status --json, then updates the selected installation and runs aegis-doctor.py to verify the outcome. Updating Aegis should not modify the target project itself.

The updater supports different synchronization modes, including junction and copy-skills. Copy-based synchronization keeps unrelated files and local edits intact, and halts when a write would conflict. If the installed checkout contains local changes, those changes must not be overwritten without the user's decision; with explicit permission, the update can use --stash.

The default scope is the current host. Updating every registered installation requires an explicit --all request. For plugin-managed hosts, the platform's own plugin manager controls the update process. On OpenCode, for instance, this skill can register the host while leaving the actual update to its plugin manager.

What it helps with

  • Check whether the installed Aegis version is current.
  • Update the Aegis Method Pack for a selected host.
  • Verify an update with aegis-doctor.py.
  • Preserve local changes during an approved update.
  • Identify file conflicts in a copied skill installation.

Example prompts for the agent

  • Check the Aegis installation for this host and tell me whether it needs an update.
  • Update the Aegis Method Pack for the current host, then verify it with aegis-doctor.py.
  • Prepare an update for every registered host using --all and show which installations will be affected.

How to install update-aegis

1Skills CLI (Vercel)

npx skills add GanyuanRan/Aegis --skill update-aegis -a claude-code

2Manually: put the files in place

~/.claude/skills/update-aegis/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/update-aegis/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about update-aegis

How do I install update-aegis in Claude Code?

Run npx skills add GanyuanRan/Aegis --skill update-aegis -a claude-code. The skill file is available at ~/.claude/skills/update-aegis/SKILL.md.

What does the update-aegis skill do?

It checks the Aegis installation registry, updates the chosen host, and verifies the result. Its maintenance task does not include editing the target project.

How can I update every host registered with Aegis?

Explicitly request an all-host update and run python scripts/aegis-update.py update --all --json. Without --all, the updater targets the selected host.

Source text

SKILL.md · MIT
---
name: update-aegis
description: "Use when the user says `aegis:update`, asks to update or upgrade an installed Aegis method-pack, wants the latest Aegis version, or asks whether Aegis is current on this host."
---

# Update Aegis

Update the installed Aegis Method Pack for the current AI coding host.

This skill is host maintenance. Do not edit the target project just because the
user asked to update Aegis.

## Default Semantics

- `aegis:update` updates the current host's registered Aegis installation.
- Updating every registered host requires an explicit `--all` request.
- If more than one host is registered and the current host cannot be identified,
  ask one concrete question before updating.
- Do not update a development checkout when the installed method-pack root is a
  separate path.
- Do not perform background automatic updates. The local registry may record
  `updateMode`, but this skill only performs explicit user-triggered updates.

## Evidence First

From the installed method-pack root, inspect the host-scoped registry:

```bash
python scripts/aegis-update.py status --json
```

If the registry is missing, register the current host before updating. Use the
host's install guide and actual discovery path rather than guessing.

If `~/.config/aegis/config.toml` already declares `method_pack_root`, prefer
that canonical root when registering additional hosts. Host-specific discovery
paths, copied skill directories, plugin caches, or adapter payloads should be
treated as generated / host-managed views into the same Aegis body, not as
separate editable checkouts.

Codex example:

```bash
python scripts/aegis-update.py register \
  --host codex \
  --sync-mode junction \
  --discovery-root ~/.agents/skills/aegis \
  --reload-hint "restart Codex"
```

Copy-based host example:

```bash
python scripts/aegis-update.py register \
  --host codebuddy \
  --sync-mode copy-skills \
  --discovery-root ~/.codebuddy/skills \
  --reload-hint "restart CodeBuddy"
```

Copy synchronization uses the installation registry's scoped file inventory.
It preserves unrelated files and local edits, and stops on conflicting writes
before changing the view. An identical legacy copy can be adopted; a differing
copy needs reconciliation or a separate discovery root. Unknown stale copies
are retained. Names and prefixes alone never prove ownership; do not delete
them to make verification pass.
Source names that collide under Unicode normalization/case folding are rejected
for portability. A case-only rename with changed contents can require moving
the conflicting file to a backup outside the discovery root, or selecting a
separate root. Preserve existing files during reconciliation.

Prefixed direct-child host example:

```bash
python scripts/aegis-update.py register \
  --host copilot \
  --sync-mode junction \
  --discovery-shape direct-child \
  --discovery-root <target-repo>/.github/skills \
  --discovery-name-prefix aegis- \
  --reload-hint "restart Copilot session or reopen the repository"
```

Kimi Code CLI automatic installations are plugin-managed. Do not use the Aegis
updater against Kimi's managed plugin copy. In Kimi, run the native update or
reinstall flow, verify the selected managed plugin, then reload:

```text
/plugins install https://github.com/GanyuanRan/Aegis
/plugins info aegis
/reload
```

If Kimi requires confirmation or removal before replacing the managed copy,
follow its exact plugin-manager prompt. Then locate the managed root from
`/plugins info aegis` and run:

```bash
cd <aegis-method-pack-root>
python scripts/aegis-doctor.py --json --host-profile kimi-code-auto
```

Kimi Code CLI **Explicit Compatibility Installation** example:

```bash
python scripts/aegis-update.py register \
  --host kimi-code \
  --sync-mode junction \
  --reload-hint "restart Kimi Code CLI"
```

When `--discovery-root` is omitted for `kimi`, `kimi-code`, or
`kimi-code-cli`, the updater uses `$KIMI_CODE_HOME/skills` or, when
`KIMI_CODE_HOME` is unset, `~/.kimi-code/skills`. Use this updater path only
when the Aegis Kimi plugin is disabled or uninstalled and the user has selected
explicit compatibility mode.

Plugin-managed hosts can be registered, but the updater reports that the host
plugin manager owns the update path:

```bash
python scripts/aegis-update.py register \
  --host opencode \
  --sync-mode plugin-managed \
  --reload-hint "restart OpenCode"
```

## Update Commands

Current or explicitly selected host:

```bash
python scripts/aegis-update.py update --host <host> --json
```

All registered hosts, only when the user explicitly asks for all-host update:

```bash
python scripts/aegis-update.py update --all --json
```

Preview without touching files:

```bash
python scripts/aegis-update.py update --host <host> --dry-run --json
```

If the installed checkout has local changes, do not overwrite them. Either ask
the user how to proceed or, with explicit permission, preserve them with:

```bash
python scripts/aegis-update.py update --host <host> --stash --json
```

## Completion Evidence

Treat the update as complete only when the updater reports the selected host and
the post-update doctor verification succeeds. For link-based discovery roots
(`junction`, `symlink`, or `repo-only`), the updater passes `discoveryRoot`
through to `aegis-doctor.py --discovery-root`; when a registered direct-child
view declares `discoveryNamePrefix`, the updater also passes
`--discovery-name-prefix`. For copy-based hosts, it verifies that copied Aegis
skill directories exist after the copy step, then runs doctor against the
method-pack root.

When multiple registered hosts share the same `methodPackRoot`, the updater now
reuses a single method-pack checkout update and then refreshes each host's
exposure or verification path separately.

Report:

- selected host / installation id
- previous and final commit when available
- whether the install was updated or already current
- sync mode used
- doctor verification result
- restart or reload hint

If the updater skips a `plugin-managed` host, state that the host plugin manager
owns the update path and give the reload or reinstall hint.

For Kimi automatic installations, completion also requires `/plugins info
aegis`, `/reload` or `/new`, the `kimi-code-auto` doctor profile, and the
host-native automatic-entry checks from `docs/README.kimi-code.md`. File
discovery or a generic doctor result alone is not sufficient.

© GanyuanRan · MIT · GanyuanRan/Aegis

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set21

writing-plans Transforms approved requirements into a step-by-step implementation plan with TDD routing before modifying repository files. CX Codex +1 ★ 1,388repo stars verification-before-completion This skill checks whether the evidence supports a completion claim, from a fix report to commit readiness. Use it when closing out code changes or handing work over. CX Codex +1 ★ 1,388repo stars using-git-worktrees A skill that decides when a task really needs a separate Git worktree and when the current folder is enough. Keeps you from spawning extra checkouts. CX Codex +1 ★ 1,388repo stars using-aegis Entrypoint router for the Aegis framework. Routes user prompts to debugging, goal-framing, or brainstorming workflows while keeping simple turns on the fast path. CX Codex +1 ★ 1,388repo stars ui-ux-governance A skill that gives the agent rules for interface work: how to pick flows, handle states and keep accessibility intact. CX Codex +1 ★ 1,388repo stars test-driven-development Enforces a strict RED / GREEN / REFACTOR cycle before modifying source files. Activates when you explicitly ask for test-first development or when an Aegis workflow sets strict routing. CX Codex +1 ★ 1,388repo stars systematic-debugging This skill guides bug and test-failure investigations before code changes. Use it to trace a symptom to the logic that owns the cause. CX Codex +1 ★ 1,388repo stars subagent-driven-development Runs a written implementation plan by dispatching a fresh subagent for each task, then reviewing it twice: spec compliance first, code quality second. CX Codex +1 ★ 1,388repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor