К основному содержанию
скилл CX Codex

update-aegis — скилл для Claude Code: обновление Aegis

Проверяет и обновляет установленный Aegis Method Pack для выбранной среды ИИ-кодинга. Помогает сверить версию, синхронизировать файлы с установленной копией и проверить результат.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add GanyuanRan/Aegis --skill update-aegis -a claude-code
Открыть на GitHub

Что делает update-aegis

Скилл update-aegis обслуживает установленный Aegis Method Pack. Он проверяет состояние регистрации через python scripts/aegis-update.py status --json, выбирает нужную установку и запускает обновление. После этого aegis-doctor.py проверяет результат. Само обновление не должно менять файлы целевого проекта.

Для разных сред предусмотрены режимы синхронизации, включая junction и copy-skills. При копировании скилл сохраняет посторонние файлы и локальные изменения, а при конфликте записей останавливается. Если в установленной копии есть незакоммиченные изменения, перезаписывать их нельзя без согласования; с разрешения пользователя можно применить --stash.

По умолчанию обновляется текущая среда, а для всех зарегистрированных установок нужен явный запрос с --all. Среды с управлением через плагин обновляются штатным менеджером платформы. Например, для OpenCode скилл может зарегистрировать установку, но само обновление остаётся задачей менеджера плагинов.

Какие задачи решает

  • Проверить, актуальна ли установленная версия Aegis.
  • Обновить Aegis Method Pack для выбранной среды.
  • Сверить результат обновления с помощью aegis-doctor.py.
  • Сохранить локальные изменения при согласованном обновлении.
  • Разобраться, почему копия скилла конфликтует с файлами установки.

Примеры запросов агенту

  • Проверь состояние Aegis в текущей среде и сообщи, нужно ли обновление.
  • Обнови Aegis Method Pack для текущей среды и проверь результат через aegis-doctor.py.
  • Подготовь обновление всех зарегистрированных сред командой с --all и покажи, какие установки будут затронуты.

Как установить update-aegis

1Через Skills CLI (Vercel)

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

2Вручную: положить файлы

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

Папка скилла целиком; для одного проекта — .claude/skills/update-aegis/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о update-aegis

Как установить update-aegis в Claude Code?

Выполни npx skills add GanyuanRan/Aegis --skill update-aegis -a claude-code. Файл скилла будет доступен по пути ~/.claude/skills/update-aegis/SKILL.md.

Что делает скилл update-aegis?

Он проверяет регистрацию Aegis Method Pack, обновляет выбранную установку и запускает проверку результата. Изменения целевого проекта не входят в эту задачу.

Как обновить все среды, в которых установлен Aegis?

Нужно явно запросить обновление всех установок и использовать python scripts/aegis-update.py update --all --json. Без --all обновляется выбранная среда.

Исходный текст

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

Похожие скиллы

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. 1 052 851установок ask-matt Matt Pocock Помогает выбрать подходящий скилл или рабочий поток из набора Matt Pocock. Пригодится, когда непонятно, с чего начать задачу: от идеи до разбора бага. 766 587установок to-tickets Matt Pocock Разбивает план, спецификацию или переписку на небольшие сквозные задачи и отмечает, какие из них блокируют остальные. Пригодится, когда нужно согласовать порядок работы до публикации задач в трекере. 711 230установок writing-plans Jesse Vincent Скилл превращает требования к многошаговой задаче в подробный план реализации до начала работы с кодом. Пригодится, когда исполнителю нужно зафиксировать файлы, интерфейсы и проверки. CX Codex 282 859установок caveman-review JuliusBrussee Пишет замечания к коду одной строкой: место, проблема, исправление. Пригодится, когда ревью диффа или PR надо пройти быстро и без воды. CX Codex +1 411 800установок caveman-compress JuliusBrussee Сжимает CLAUDE.md, списки задач и другие текстовые файлы в краткий формат, сохраняя читаемую резервную копию. CX Codex +1 411 500установок

Из того же набора19

verification-before-completion Скилл помогает сверить доказательства перед заявлением, что задача завершена, исправлена или готова к коммиту. Он пригодится при проверке изменений и перед передачей работы. CX Codex +1 ★ 1 388звёзд репо using-git-worktrees Скилл решает, когда для задачи правда нужно отдельное рабочее дерево Git, а когда хватит текущей папки. Помогает не плодить лишние checkout. CX Codex +1 ★ 1 388звёзд репо using-aegis Диспетчер для фреймворка Aegis. Направляет запрос к нужным скиллам отладки, планирования и мозгового штурма или оставляет быстрый путь без лишних проверок. CX Codex +1 ★ 1 388звёзд репо ui-ux-governance Скилл задаёт агенту рамки при работе с интерфейсами: как выбирать решения по потокам, состояниям и доступности. CX Codex +1 ★ 1 388звёзд репо test-driven-development Заставляет агента писать падающий тест перед любым изменением кода. Срабатывает при явном запросе строгой разработки через тестирование или флаге TDD Route: strict. CX Codex +1 ★ 1 388звёзд репо systematic-debugging Скилл помогает разбирать ошибки, сбои тестов и неожиданное поведение до правок. Он прослеживает причину до места, которое действительно нужно исправить. CX Codex +1 ★ 1 388звёзд репо subagent-driven-development Скилл ведёт выполнение плана: на каждую задачу запускается свежий субагент, после чего идут две проверки — соответствие спецификации и качество кода. CX Codex +1 ★ 1 388звёзд репо requesting-code-review Запускает изолированного субагента для проверки кода без передачи истории сессии. Помогает найти архитектурные риски и баги перед слиянием ветки. CX Codex +1 ★ 1 388звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой