updatelisted
Install: claude install-skill Tykok/learning-with-claude
# Update mode
`learner update` — check the remote version, and if it is newer, tell the dev how to update
for the way Learner was installed. Read-only throughout: nothing is written, locally or
remotely, and nothing is downloaded but the one-line `VERSION` file.
## 1. Check whether this is a Claude Code plugin install
Before anything else — including the network fetch in step 2 — check whether this skill was
loaded as a Claude Code plugin rather than a traditional install. The base directory this
`SKILL.md` was read from is already visible in your own context (it was named when the skill
loaded); if that path contains `/plugins/`, this is a plugin install.
If so, stop here — report and go no further:
```
Installed as a Claude Code plugin. Run `/plugin update learner` (or
`claude plugin update learner`) instead — Claude Code manages this install's version, not
this file.
```
A plugin install never runs `install.sh`, so `$CFG/skills/learner/VERSION` and
`$CFG/skills/learner/INSTALL_ORIGIN` (steps 2 and 3 below) never exist for it — proceeding
past this check would either misreport "no version installed" or, worse, point the dev at a
second, traditional install on top of a plugin install that already works.
## 2. Read, validate and compare
```bash
CFG="${CLAUDE_CONFIG_DIR:-$HOME/.claude}"
LOCAL=$(cat "$CFG/skills/learner/VERSION" 2>/dev/null)
REMOTE=$(curl -fsSL --max-time 5 "${LEARNER_VERSION_URL:-https://raw.githubusercontent.com/Tykok/learning-with-claude/main/VERSION