How this skill is triggered — by the user, by Claude, or both
Slash command
/co2-status-line:updateThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<objective>
node -e "process.stdout.write(JSON.parse(require('fs').readFileSync('${CLAUDE_PLUGIN_ROOT}/package.json','utf8')).version)"
If that fails, fall back to VERSION file or treat as 0.0.0.
Check GitHub for latest version:curl -sL https://raw.githubusercontent.com/stuartshields/claude-co2-status-line/main/package.json | node -e "let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>console.log(JSON.parse(d).version))"
If check fails, show offline message and exit.
Compare installed vs latest:If installed == latest:
## CO2 Status Line Update
**Installed:** X.Y.Z
**Latest:** X.Y.Z
You're already on the latest version.
Exit.
If installed > latest: Show "ahead of latest" message and exit.
If update available, fetch and show changelog BEFORE updating:curl -sL https://raw.githubusercontent.com/stuartshields/claude-co2-status-line/main/CHANGELOG.md
Extract entries between installed and latest versions. Display preview and ask:
Use AskUserQuestion:
If user cancels, exit.
Update the plugin:claude plugin update co2-status-line
Clear the update cache:
CLAUDE_DIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude}"
rm -f "${CLAUDE_DIR}/cache/co2-update-check.json"
```
CO2 Status Line updated to vX.Y.Z
Restart Claude Code to pick up the changes.
</step>
</process>
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub stuartshields/claude-co2-status-line --plugin co2-status-line