swain-update
Original:🇺🇸 English
Translated
Update swain skills to the latest version. Use when the user says 'update swain', 'upgrade swain', 'pull latest swain', or wants to refresh their swain skills installation. Runs the skills package manager (npx) with a git-clone fallback, then invokes swain-config to reconcile any governance changes.
3installs
Sourcecristoslc/swain
Added on
NPX Install
npx skill4agent add cristoslc/swain swain-updateTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Update Swain
Update the local installation of swain skills to the latest version, then reconcile governance configuration.
Step 1 — Detect current installation
Check whether contains any directories:
.claude/skills/swain-*bash
ls -d .claude/skills/swain-* 2>/dev/nullIf no swain skill directories are found, inform the user this appears to be a fresh install rather than an update, then continue anyway — the steps below work for both cases.
Step 2 — Update via npx
Run the skills package manager to pull the latest swain skills:
bash
npx skills add cristoslc/swainIf fails (command not found, network error, or non-zero exit), fall back to a direct git clone:
npxbash
tmp=$(mktemp -d)
git clone --depth 1 https://github.com/cristoslc/swain.git "$tmp/swain"
cp -r "$tmp/swain/skills/"* .claude/skills/
rm -rf "$tmp"Step 3 — Reconcile governance
Invoke the swain-config skill. This checks whether , context files, and governance rules need updating based on any changes in the new skill versions. The skill is idempotent, so running it after every update is always safe.
AGENTS.mdStep 4 — Report
List the installed swain skill directories and extract each skill's version from its frontmatter:
SKILL.mdbash
for skill in .claude/skills/swain-*/SKILL.md; do
name=$(grep '^name:' "$skill" | head -1 | sed 's/name: *//')
version=$(grep 'version:' "$skill" | head -1 | sed 's/.*version: *//')
echo " $name v$version"
doneShow the user the list and confirm the update is complete.