Add token-stats slash command

This commit is contained in:
Knowit
2026-04-18 09:34:17 +08:00
commit 770c1f3d19
2 changed files with 102 additions and 0 deletions

26
README.md Normal file
View File

@@ -0,0 +1,26 @@
# claudeplus
Claude Code 自定义命令集合。
## 安装
`commands/` 目录下的文件复制到 `~/.claude/commands/`
```bash
mkdir -p ~/.claude/commands
cp commands/* ~/.claude/commands/
```
重启 Claude Code 后即可使用。
## 命令列表
### /token-stats [username|all]
统计本机 Claude token 用量,按日期分组展示。
```
/token-stats # 当前用户
/token-stats charles # 指定用户
/token-stats all # 所有用户(含 root
```