token-dashboard

Solid

Open the Token Optimizer dashboard. Collects latest session data, regenerates the dashboard, and opens it in your browser.

Data & Documents 1,750 stars 140 forks Updated yesterday NOASSERTION

Install

View on GitHub

Quality Score: 83/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Token Optimizer Dashboard Opens an up-to-date dashboard showing your context usage trends, quality scores, session history, and skill management. ## Instructions 1. **Resolve runtime and measure.py path**: ```bash RUNTIME="${TOKEN_OPTIMIZER_RUNTIME:-}" if [ -z "$RUNTIME" ]; then if [ -n "$CLAUDE_PLUGIN_ROOT" ] || [ -n "$CLAUDE_PLUGIN_DATA" ]; then RUNTIME="claude" elif [ -n "$OPENCODE" ] || [ -n "$OPENCODE_BIN" ] || [ -n "$OPENCODE_CONFIG_DIR" ] || [ -n "$OPENCODE_CONFIG" ]; then RUNTIME="opencode" elif [ -n "$CODEX_HOME" ]; then RUNTIME="codex" elif [ -d "$HOME/.config/opencode" ] && [ ! -d "$HOME/.codex" ]; then RUNTIME="opencode" elif [ -d "$HOME/.codex" ]; then RUNTIME="codex" else RUNTIME="claude" fi fi # Resolve measure.py to the NEWEST installed copy across channels so a stale # plugin-cache copy never shadows a fresh install (issue #57). find -L follows the # install.sh symlink under ~/.claude/skills; cd -P resolves it before reading each # copy's plugin.json for its version. find (not bare globs) never errors under zsh. MEASURE_PY=""; _best_ver="" while IFS= read -r _cand; do [ -f "$_cand" ] || continue _root="$(cd -P -- "$(dirname -- "$_cand")/../../.." 2>/dev/null && pwd)" _ver="$(sed -n 's/.*"version"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' "$_root/.claude-plugin/plugin.json" 2>/dev/null | head -1)" [ -n "$_ver" ] || _ver="0.0.0" if [ -z "$_best_ver" ] || [ "$(printf '%s\n%s\n' "$_ver" "$_best_ver" | sort -...

Details

Author
alexgreensh
Repository
alexgreensh/token-optimizer
Created
5 months ago
Last Updated
yesterday
Language
Python
License
NOASSERTION

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category