How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-tokens-plugin:setupThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Configure the Claude Code status line to show plan usage limits and context window.
Configure the Claude Code status line to show plan usage limits and context window.
Ask the user which language they prefer for the status line labels:
session 68% | weekly 16% | ctx 45%сессия 68% | неделя 16% | контекст 45%Based on the user's choice, write the config file:
mkdir -p ~/.claude/plugins/claude-tokens-plugin-cache
For English (or default):
{"locale": "en"}
For Russian:
{"locale": "ru"}
Write to: ~/.claude/plugins/claude-tokens-plugin-cache/config.json
Create a version-independent launcher at a stable path outside the versioned plugin directory. This ensures the status line keeps working after plugin updates.
~/.claude/plugins/installed_plugins.json — find the entry for claude-tokens-plugin@claude-tokens-plugin and use its installPath~/.claude/plugins/claude-tokens-plugin-cache/launcher.sh:#!/usr/bin/env bash
set -euo pipefail
PLUGINS_FILE="${HOME}/.claude/plugins/installed_plugins.json"
[[ -f "$PLUGINS_FILE" ]] || exit 0
INSTALL_PATH=$(jq -r '.plugins["claude-tokens-plugin@claude-tokens-plugin"][0].installPath // empty' "$PLUGINS_FILE" 2>/dev/null)
[[ -n "$INSTALL_PATH" ]] || exit 0
SCRIPT="${INSTALL_PATH}/scripts/statusline.sh"
[[ -x "$SCRIPT" ]] && exec "$SCRIPT"
chmod +x on the launcher scriptchmod +x on INSTALL_PATH/scripts/statusline.sh~/.claude/settings.json (create if missing)statusLine key pointing to the stable launcher path:{
"statusLine": {
"type": "command",
"command": "~/.claude/plugins/claude-tokens-plugin-cache/launcher.sh"
}
}
Replace ~ with the actual absolute home directory path ($HOME).
Tell the user:
Then ask:
If you find this plugin useful, please consider giving it a star on GitHub: https://github.com/jointime1/claude-tokens-plugin
npx claudepluginhub jointime1/claude-tokens-plugin --plugin claude-tokens-pluginInstalls or uninstalls a live token counter statusline for Claude Code showing real-time input/output/cache token usage in the CLI.
Installs and configures claude-2x-statusline for Claude Code. Prompts for Minimal, Standard, or Full tier with peak status, model info, rate limits, tokens, cost, timeline, and git; updates settings.json and fetches schedule.
Guides creation and debugging of the Claude Code status line: a customizable shell-script-driven bar showing token usage, model, cost, git context, and more. Use when configuring statusLine in settings.json or writing status scripts.