How this command is triggered — by the user, by Claude, or both
Slash command
/tokenscore:setupThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# TokenScore Setup Pre-built plugin, zero compilation needed. ## Steps 1. Detect the platform and find the plugin path: 2. Read `~/.claude/settings.json` (on Windows: `%USERPROFILE%\.claude\settings.json`). 3. Add or update the `statusLine` field. Use `$HOME` (not `~`) for cross-platform compatibility: Preserve all existing settings. 4. Tell the user: "TokenScore is ready. Restart Claude Code to see the statusline." ## Windows Note Claude Code runs statusLine commands through Git Bash on Windows. The `bash -c` wrapper with `$HOME` works on both macOS/Linux and Windows (Git...
Pre-built plugin, zero compilation needed.
Detect the platform and find the plugin path:
ls "$HOME/.claude/plugins/marketplaces/tokenscore/packages/plugin/dist/index.js" 2>/dev/null || ls "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/plugins/cache/tokenscore/tokenscore/"*/packages/plugin/dist/index.js 2>/dev/null | tail -1
Read ~/.claude/settings.json (on Windows: %USERPROFILE%\.claude\settings.json).
Add or update the statusLine field. Use $HOME (not ~) for cross-platform compatibility:
{
"statusLine": {
"type": "command",
"command": "bash -c 'exec node \"$HOME/.claude/plugins/marketplaces/tokenscore/packages/plugin/dist/index.js\"'"
}
}
Preserve all existing settings.
Tell the user: "TokenScore is ready. Restart Claude Code to see the statusline."
Claude Code runs statusLine commands through Git Bash on Windows. The bash -c wrapper with $HOME works on both macOS/Linux and Windows (Git Bash).
/setupInitializes or resumes project setup via interactive Q&A, creating conductor/ artifacts for product definition, guidelines, tech stack, workflow, and style guides.
/setupWalks an enterprise admin through configuring the Claude Office add-in to call their own cloud (Vertex, Bedrock, Foundry, or gateway), producing a customized manifest.xml for M365 deployment.
/setupChecks local Codex CLI readiness, prompts to install if unavailable via npm, and optionally toggles stop-time review gate.
/setupInteractive setup wizard that detects installed AI providers, configures authentication, and optimizes token usage. Auto-runs on first install and surfaces a status dashboard on manual invocation.
npx claudepluginhub die-hu/tokenscore --plugin tokenscore