重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
groove-admin-claude-statusline by andreadellacorte/groove
npx skills add https://github.com/andreadellacorte/groove --skill groove-admin-claude-statusline安装一个功能丰富的单行 Claude Code 状态栏。将三个脚本写入 ~/.claude/hooks/ 并将配置合并到 ~/.claude/settings.json。
使用 --uninstall 进行卸载。使用 --list 显示当前状态。
~/.claude/settings.json 中的 statusLine 指向状态栏脚本,并添加了 PostToolUse 和 SessionEnd 钩子来跟踪活跃的 /loop 定时任务。状态栏会在每次 Claude Code 轮次中显示。
claude-sonnet-4-6 | myrepo@main (+3 -1) | 42k/200k (21%) | effort: high | 5h 12% @8:00pm | 7d 3% @mar 16, 9:00am | 2 loops | check deployment @4:10pm
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 部分 | 描述 |
|---|---|
| 模型 | 当前活跃模型的显示名称 |
| 仓库@分支 | 当前工作目录文件夹名称,git 分支,暂存区差异 +N -N |
| 令牌数 | 已使用 / 总上下文,使用百分比 |
| 工作强度 | 当前工作强度级别(低 / 中 / 高) |
| 5小时 / 7天 | 速率限制使用情况及重置时间(缓存 60 秒) |
| 循环任务 | 活跃的 /loop 定时任务数量 + 即将触发的提示和时间 |
--list读取 ~/.claude/settings.json。报告 statusLine 是否已设置,以及每个钩子脚本是否存在于 ~/.claude/hooks/ 中。退出。
--uninstall从 ~/.claude/settings.json 中移除 statusLine。移除由本技能添加的三个 CronCreate|CronDelete / SessionEnd 钩子条目。不删除钩子脚本(留待手动清理)。报告更改。退出。
如果不存在,则创建 ~/.claude/hooks/ 目录。
将以下三个脚本写入 ~/.claude/hooks/。除非显示差异并确认,否则绝不覆盖。
使所有三个脚本可执行(chmod +x)。
读取 ~/.claude/settings.json(默认为 {})。合并 statusLine 条目和以下两个钩子条目。保留所有其他键。不创建重复条目。
写入 ~/.claude/settings.json。
报告:
✓ statusline.sh → ~/.claude/hooks/statusline.sh
✓ cron-state.sh → ~/.claude/hooks/cron-state.sh
✓ cron-state-clear.sh → ~/.claude/hooks/cron-state-clear.sh
✓ ~/.claude/settings.json updated
注意:重启 Claude Code 以使更改生效。
这三个 shell 脚本位于 scripts/ 目录下,遵循 Agent Skills 规范:
| 脚本 | 安装到 | 用途 |
|---|---|---|
scripts/statusline.sh | ~/.claude/hooks/statusline.sh | 主状态栏渲染器 |
scripts/cron-state.sh | ~/.claude/hooks/cron-state.sh | 在 /tmp/claude/loops.json 中跟踪 /loop 定时任务 |
scripts/cron-state-clear.sh | ~/.claude/hooks/cron-state-clear.sh | 在会话结束时清除循环任务状态 |
将每个脚本从 scripts/ 复制到 ~/.claude/hooks/。除非显示差异并确认,否则绝不覆盖现有脚本。
~/.claude/settings.json 条目将这些合并到现有设置中。保留所有其他键。不创建重复项。
{
"statusLine": {
"type": "command",
"command": "~/.claude/hooks/statusline.sh"
},
"hooks": {
"PostToolUse": [
{
"matcher": "CronCreate|CronDelete",
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/cron-state.sh",
"async": true
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/cron-state-clear.sh",
"async": true
}
]
}
]
}
}
~/.claude/hooks/(用户全局),而非 .claude/(项目本地)~/.claude/settings.json 中的现有键jq、curl、python3、git(在 macOS/Linux 上均为标准工具)每周安装数
48
仓库
GitHub 星标数
4
首次出现
2026年3月9日
安全审计
安装于
opencode48
gemini-cli48
github-copilot48
codex48
amp48
cline48
Install a rich single-line Claude Code statusline. Writes three scripts to ~/.claude/hooks/ and merges config into ~/.claude/settings.json.
Use --uninstall to remove. Use --list to show current status.
~/.claude/settings.json has statusLine pointing to the statusline script, plus PostToolUse and SessionEnd hooks to track active /loop cron jobs. The statusline shows on every Claude Code turn.
claude-sonnet-4-6 | myrepo@main (+3 -1) | 42k/200k (21%) | effort: high | 5h 12% @8:00pm | 7d 3% @mar 16, 9:00am | 2 loops | check deployment @4:10pm
| Section | Description |
|---|---|
| Model | Display name of the active model |
| Repo@branch | CWD folder name, git branch, staged diff +N -N |
| Tokens | Used / total context, % used |
| Effort | Current effort level (low / med / high) |
| 5h / 7d | Rate-limit utilisation with reset time (cached 60s) |
| Loops | Count of active /loop crons + soonest-firing prompt and time |
--listRead ~/.claude/settings.json. Report whether statusLine is set, and whether each hook script exists in ~/.claude/hooks/. Exit.
--uninstallRemove statusLine from ~/.claude/settings.json. Remove the three CronCreate|CronDelete / SessionEnd hook entries added by this skill. Do not remove hook scripts (leave for manual cleanup). Report changes. Exit.
Create ~/.claude/hooks/ if absent.
Write the three scripts below to ~/.claude/hooks/. Never overwrite without showing a diff and confirming.
Make all three scripts executable (chmod +x).
Read ~/.claude/settings.json (default {}). Merge in the statusLine entry and the two hook entries below. Preserve all other keys. Do not create duplicate entries.
Write ~/.claude/settings.json.
Report:
✓ statusline.sh → ~/.claude/hooks/statusline.sh
✓ cron-state.sh → ~/.claude/hooks/cron-state.sh
✓ cron-state-clear.sh → ~/.claude/hooks/cron-state-clear.sh
✓ ~/.claude/settings.json updated
Note: restart Claude Code for changes to take effect.
The three shell scripts live in scripts/ per the Agent Skills specification:
| Script | Installed to | Purpose |
|---|---|---|
scripts/statusline.sh | ~/.claude/hooks/statusline.sh | Main statusline renderer |
scripts/cron-state.sh | ~/.claude/hooks/cron-state.sh | Tracks /loop cron jobs in /tmp/claude/loops.json |
scripts/cron-state-clear.sh |
Copy each script from scripts/ to ~/.claude/hooks/. Never overwrite an existing script without showing a diff and confirming.
~/.claude/settings.json entriesMerge these into the existing settings. Preserve all other keys. Do not create duplicates.
{
"statusLine": {
"type": "command",
"command": "~/.claude/hooks/statusline.sh"
},
"hooks": {
"PostToolUse": [
{
"matcher": "CronCreate|CronDelete",
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/cron-state.sh",
"async": true
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/cron-state-clear.sh",
"async": true
}
]
}
]
}
}
~/.claude/hooks/ (user-global), not .claude/ (project-local)~/.claude/settings.jsonjq, curl, python3, git (all standard on macOS/Linux)Weekly Installs
48
Repository
GitHub Stars
4
First Seen
Mar 9, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykPass
Installed on
opencode48
gemini-cli48
github-copilot48
codex48
amp48
cline48
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
127,000 周安装
~/.claude/hooks/cron-state-clear.sh |
| Clears loop state on session end |