一键导入
token-clear
Use when the user invokes `/token-clear` or asks to delete old token-meter JSONL logs by retention period. Confirms before destructive deletion.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user invokes `/token-clear` or asks to delete old token-meter JSONL logs by retention period. Confirms before destructive deletion.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user invokes `/token-report` or asks for an analytical summary of which compression plugin (rtk / headroom / caveman) is effective for which workload. Aggregates token-meter JSONL, `rtk gain`, and the active Claude Code session transcript, then produces recommendations.
Use when the user invokes `/token-stats` or asks for a token volume / compression-effect report across recent days. Aggregates JSONL records by tool and plugin into a single page summary.
Use when the user invokes `/token-plugins` or asks to list, install, enable, or disable a compression plugin (rtk / caveman / headroom). Wraps each plugin's enable/disable mechanism behind a unified interface.
Use when the user invokes `/token-measure` or asks to enable/disable the token-meter measurement system, list per-tool measurement state, or override a single tool. Provides ON/OFF control and JSONL-backed activity listing.
Orchestrate parallel execution of multiple tasks via cmux workspaces. Each task gets its own git worktree + Claude Code session. The parent session acts as orchestrator, monitoring all child sessions. Dynamically discovers available agent types from .claude/agents/ and passes the list to child sessions, which select the appropriate agent themselves. Supports three layout modes: workspace (default, separate sidebar entries), split (panes within current workspace), and claude-teams (native Agent Teams via cmux claude-teams). Dispatches immediately without parent-side planning — each child handles its own brainstorming/planning in parallel. Use when: "parallel execution", "team dispatch", "run these at once", "run these in parallel", "dispatch tasks", "execute these simultaneously", or when 2+ independent tasks need concurrent execution.
Bring up an isolated development stack per git worktree. Reserves a port slot from a shared registry, writes .env.dispatch, then starts all services declared in .dev-up.yaml (docker-compose stacks and/or direct commands like `go run`, `pnpm dev`). Spawned commands are tracked with PID/PGID for clean teardown. Use when verifying the running app inside a worktree spawned by cmux-team-dispatch-task, or whenever you need parallel stacks without port collisions. Run the `setup` subcommand once per new project to generate .dev-up.yaml.
| name | token-clear |
| description | Use when the user invokes `/token-clear` or asks to delete old token-meter JSONL logs by retention period. Confirms before destructive deletion. |
~/.claude/token-meter/logs/ 配下の JSONL を保持期間で削除する。
| 引数 | 動作 |
|---|---|
--before <N>d | N 日以上前のファイルを削除 (例: --before 30d) |
--all | 全 JSONL を削除 |
--dry-run | 削除候補のみ表示 |
YYYY-MM-DD.jsonl) をパースし --before と比較。--dry-run でない限り、削除前に candidate 一覧と合計サイズを表示しユーザーに確認を求める。rm で削除。--dry-run で候補を確認してから本実行する。