agentleFS
derjochenmeyerderjochenmeyer/claude-code-craft/skills/craft-update-self/SKILL.md

craft-update-self

Skill2 starsChanged 7 months agoMITView on GitHub

Check for updates to all installed craft skills and apply them. Also detects newly added skills not yet installed.

  • Pipes a download into a shell

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check for updates to your installed craft skills.

    line 10
  2. Distinctive:

    Do NOT classify "unavailable" as an update.

    line 68
  3. Distinctive:

    If updates or new skills exist:

    line 90
  4. Distinctive:

    If everything is current:

    line 96
  5. Distinctive:

    If GitHub is unreachable: report "Could not reach GitHub.

    line 129
  6. Distinctive:

    If a single skill fetch fails: skip it, note it at the end as "could not update [skill]"

    line 130
  7. Distinctive:

    Never partially overwrite a file — write to a temp path and move on success only

    line 131

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

craft-update-self

Check for updates to your installed craft skills. Completes in a single response.

Usage

/craft-update-self          check for updates, show what is available
/craft-update-self apply    check and apply all updates in one go

Step 1: Read installed skills

SKILLS_DIR="$HOME/.claude/skills"
GITHUB_RAW="https://raw.githubusercontent.com/derjochenmeyer/claude-code-craft/main"

SKILLS=(
  craft-project-setup
  craft-project-status
  craft-project-audit
  craft-project-audit-full
  craft-project-dream
  craft-project-remember
  craft-project-explore
  craft-global-audit
  craft-session-solidify
  craft-update-self
)

for skill in "${SKILLS[@]}"; do
  target="$SKILLS_DIR/$skill/SKILL.md"
  if [[ -f "$target" ]]; then
    local_ver=$(grep "^version:" "$target" | head -1 | awk '{print $2}')
  else
    local_ver="not installed"
  fi
  remote_ver=$(curl -sf "$GITHUB_RAW/skills/$skill/SKILL.md" | grep "^version:" | head -1 | awk '{print $2}')
  echo "$skill|$local_ver|${remote_ver:-unavailable}"
done

The statusline lives in its own repo and tracks its own version — this skill only manages craft skills. To update the statusline, re-run its installer:

curl -fsSL https://raw.githubusercontent.com/derjochenmeyer/claude-code-craft-statusline/main/install.sh | bash

Step 2: Compare versions and classify

For each skill, classify as:

  • up to date: local version == remote version
  • update available: local version != remote version (and both are valid semver)
  • new skill: skill is not installed locally but exists on GitHub
  • unavailable: could not fetch remote version (network issue or skill removed)

Do NOT classify "unavailable" as an update. Skip it silently.


Step 3: Output

No apply arg — check only

Show a compact table:

craft skills                  installed    latest

  craft-project-setup         1.0.0        1.0.0   ✅
  craft-project-status        1.0.0        1.0.0   ✅
  craft-project-audit         1.0.0        1.0.0   ✅
  craft-global-audit          1.0.0        1.0.1   ⬆️  update available
  craft-update-self           —            1.0.0   ✨  new skill

Below the table:

  • If updates or new skills exist:
    2 updates and 1 new skill available.
    Run: /craft-update-self apply
  • If everything is current:
    All skills are up to date. ✅

apply arg — update everything

For each skill that is outdated or new:

mkdir -p "$SKILLS_DIR/$skill"
tmp=$(mktemp)
curl -sf "$GITHUB_RAW/skills/$skill/SKILL.md" -o "$tmp" && mv "$tmp" "$SKILLS_DIR/$skill/SKILL.md"

Report each update as it completes:

  craft-global-audit     1.0.0 → 1.0.1   ✅ updated
  craft-update-self      new             ✅ installed

End with:

All skills are now up to date.
Restart Claude Code for changes to take effect.

Error handling

  • If GitHub is unreachable: report "Could not reach GitHub. Check your connection and try again."
  • If a single skill fetch fails: skip it, note it at the end as "could not update [skill]"
  • Never partially overwrite a file — write to a temp path and move on success only

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.