Update skills

From sliamh11/Deus · View interactive version

Update skills is an AI agent skill from the GitHub repository sliamh11/Deus. Check for and apply updates to installed skill branches from upstream.

How to use this skill

Skill file

About

Skills are distributed as git branches (skill/*). When you install a skill, you merge its branch into your repo. This skill checks upstream for newer commits on those skill branches and helps you update.

Run /update-skills in Claude Code.

How it works

Preflight: checks for clean working tree and upstream remote.

Detection: fetches upstream, lists all upstream/skill/* branches, determines which ones you've previously merged (via merge-base), and checks if any have new commits.

Selection: presents a list of skills with available updates. You pick which to update.

Update: merges each selected skill branch, resolves conflicts if any, then validates with build + test.


Goal

Help users update their installed skill branches from upstream without losing local customizations.

Operating principles

Step 0: Preflight

Run:

If output is non-empty:

Check remotes:

If upstream is missing:

Fetch:

Step 1: Detect installed skills with available updates

List all upstream skill branches:

For each upstream/skill/<name>:

  1. Check if the user has merged this skill branch before:
  1. Check if there are new commits on the skill branch not yet in HEAD:

Build three lists:

Step 2: Present results

If no skills have updates available:

If updates are available:

```

skill/<name>: 3 new commits

skill/<other>: 1 new commit

```

Step 3: Apply updates

For each selected skill (process one at a time):

  1. Tell the user which skill is being updated.
  2. Run: git merge upstream/skill/<name> --no-edit
  3. If the merge is clean, move to the next skill.
  4. If conflicts occur:

If a merge fails badly (e.g., cannot resolve conflicts):

Step 4: Validation

After all selected skills are merged:

If build fails:

Step 5: Summary

Show:

If the service is running, remind the user to restart it to pick up changes.

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.