From claude-carbon
Updates claude-carbon to the latest version and re-prices session history with updated CO2 factors.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-carbon:carbon-updateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run the following bash script exactly as written and present its output to the user. Do not paraphrase. It updates the user's claude-carbon install (dirty-safe `git pull`), refreshes setup, and re-prices stored sessions with the new factors.
Run the following bash script exactly as written and present its output to the user. Do not paraphrase. It updates the user's claude-carbon install (dirty-safe git pull), refreshes setup, and re-prices stored sessions with the new factors.
#!/usr/bin/env bash
# Locate the install that is actually wired into the status line, then run its updater.
REPO_DIR=""
SETTINGS="${HOME}/.claude/settings.json"
if command -v jq >/dev/null 2>&1 && [ -f "$SETTINGS" ]; then
SL_CMD="$(jq -r '.statusLine.command // empty' "$SETTINGS" 2>/dev/null)"
if [ -n "$SL_CMD" ] && [ -f "$SL_CMD" ]; then
REPO_DIR="$(cd "$(dirname "$SL_CMD")/.." 2>/dev/null && pwd)"
fi
fi
[ -z "$REPO_DIR" ] && [ -n "${CLAUDE_PLUGIN_ROOT:-}" ] && REPO_DIR="$CLAUDE_PLUGIN_ROOT"
[ -z "$REPO_DIR" ] && REPO_DIR="${CLAUDE_CARBON_DIR:-$HOME/code/claude-carbon}"
if [ -f "${REPO_DIR}/scripts/update.sh" ]; then
bash "${REPO_DIR}/scripts/update.sh"
else
echo "claude-carbon updater not found at ${REPO_DIR}/scripts/update.sh"
echo "Re-run the installer to update:"
echo " curl -fsSL https://raw.githubusercontent.com/gwittebolle/claude-carbon/main/install.sh | bash"
fi
npx claudepluginhub gwittebolle/claude-carbon --plugin claude-carbonSyncs cc-settings with upstream Claude Code changelog (maintainer) or updates local cc-settings install (user).
Displays a CO2 emissions report for Claude Code sessions, showing today's, yearly, and all-time CO2 grams, session counts, cost, and top sessions by emissions.
Verifies version-sensitive facts (APIs, versions, pricing, model IDs, CLI flags, config) against current sources instead of training data. Activates on any question about dates, versions, deprecations, or latest recommendations.