Install
openclaw skills install cc-statuslineConfigure Claude Code statuslines / 状态栏. Use this skill whenever the user wants to install, set up, preview, switch, clean up, customize, restore, or fix a Claude Code statusline: choose Full / Standard / Minimal / Developer presets, fine-tune an existing preset, generate-only or activate a custom 1 / 2 / 3-line layout with modules like model / git / context / token / cost, change theme or icon style, restore the default statusline while keeping scripts, or troubleshoot a broken statusLine command on Windows, macOS, or Linux. 也适用于安装、预览、切换预设、微调、美化、恢复默认、排障、自定义。 Only for Claude Code, not shell prompts, VS Code, Windows taskbar, web status bars, or Claude Desktop.
openclaw skills install cc-statuslineUse this skill to help users preview, install, customize, switch, troubleshoot, and uninstall Claude Code statuslines. 当用户想预览、安装、自定义、切换、排障或卸载 Claude Code 状态栏时,使用这个 skill。
This skill is designed for: 这个 skill 主要适用于:
Treat this folder as the skill base directory. 把当前目录视为 skill 基目录。
Use these relative paths from the skill directory: 从 skill 目录出发,使用这些相对路径:
scripts/generate_custom_statusline.sh → generate a custom runtime script / 生成自定义状态栏脚本scripts/activate_preset_statusline.sh → install or switch a preset / 安装或切换预设scripts/activate_custom_statusline.sh → activate a generated custom script / 启用生成好的自定义脚本scripts/uninstall_statusline.sh → remove only the statusLine config / 只移除 statusLine 配置Default paths: 默认路径:
~/.claude/statusline.sh~/.claude/statusline.custom.sh~/.claude/settings.json~/.claude/cc-statusline-state.jsonMap the request into one of these flows: 将请求归入以下流程之一:
Trigger this skill aggressively when the user is clearly talking about Claude Code and any of these intents: 当用户明确在说 Claude Code,并且出现以下任一意图时,应积极触发这个 skill:
statusLine command or failed install / 排查损坏的 statusLine 命令或失败的安装Do not trigger for shell prompts, terminal themes, Windows taskbar changes, VS Code status bars, or general web UI status bars unless the user clearly ties the request back to Claude Code. 除非用户明确把需求指向 Claude Code,否则不要把 shell prompt、终端主题、Windows 任务栏、VS Code 状态栏或网页状态栏误判为本 skill 的触发场景。
Prioritize questions in this order: 按这个顺序补问:
Prefer grouped module presentation: 模块优先按分组展示:
Read references/modules.md when you need the canonical module list.
需要标准模块清单时读取 references/modules.md。
Available presets: 可用预设:
Full / 完整版Standard / 标准版Minimal / 极简版Developer / 开发者版Preset goals: 预设定位:
Use presets/*.json for line count and module summaries before presenting options.
在展示选项前,使用 presets/*.json 获取行数与模块摘要。
Always show a concise preview before writing files or changing statusLine.command.
在写文件或改 statusLine.command 前,始终先给出简洁预览。
Use this structure: 使用这个结构:
Statusline preview / 状态栏预览
- Mode / 模式: preset | custom
- Preset / 预设: <preset or custom>
- Lines / 行数: <1|2|3>
- Line 1 / 第 1 行: <modules>
- Line 2 / 第 2 行: <modules or empty>
- Line 3 / 第 3 行: <modules or empty>
- Theme / 主题: <theme>
- Icon style / 图标风格: <icon style>
- Target / 目标文件: <path>
- Backup / 备份: <path or not needed>
- settings.json change / 设置改动: only statusLine
- Activation / 启用方式: now | generate only
If the user already asked for one-click install and the context is clear, preview first and then execute. 如果用户已经明确要求一键安装且上下文清晰,先预览再执行。
Use this flow when the user wants a ready-made statusline. 当用户要直接套用预设时使用。
bash "scripts/activate_preset_statusline.sh" "<preset>" "<theme>" "<icon_style>" "<target_path>"
Default target path: 默认目标路径:
~/.claude/statusline.sh
After the command finishes, report: 命令完成后汇报:
statusLine was changed / 仅修改了 statusLineUse this when the user wants grouped module selection or a fresh layout. 当用户要按模块分组自由搭配时使用。
references/modules.md if needed.bash "scripts/generate_custom_statusline.sh" "<custom_path>" "<line_1_csv>" "<line_2_csv_or_->" "<line_3_csv_or_->" "<theme>" "<icon_style>"
Notes: 说明:
model,modes,active.-.model,modes,active。-。Examples: 示例:
bash "scripts/generate_custom_statusline.sh" "$HOME/.claude/statusline.custom.sh" "model,modes,active" "cwd,git,context" "ctx_tokens,sum_tokens,duration,cost" "ocean" "developer"
One-line custom example: 单行自定义示例:
bash "scripts/generate_custom_statusline.sh" "$HOME/.claude/statusline.custom.sh" "model,active,cost" "-" "-" "mono" "minimal"
If the user wants immediate activation, then run: 如果用户要立即启用,再运行:
bash "scripts/activate_custom_statusline.sh" "<custom_path>" "<theme>" "<icon_style>"
If the user only asked to generate or preview, stop after generation and explain how to activate later. 如果用户只要求生成或预览,生成后停止,并说明后续如何手动启用。
Use the preset as the starting point, then adjust lines/modules/theme/icons. 以预设为起点,再调整行数、模块、主题、图标。
presets/*.json.scripts/generate_custom_statusline.sh.scripts/activate_custom_statusline.sh only if the user wants the new custom script live now.Choose the smallest useful change. 优先选最小但有效的变更。
Use this decision rule: 使用这个判断顺序:
Run:
bash "scripts/uninstall_statusline.sh"
Then explain: 然后说明:
statusLine entry was removed / 只移除了 statusLine~/.claude/cc-statusline-state.json if available / 如存在,旧配置快照仍保留在 ~/.claude/cc-statusline-state.jsonWhen install or activation fails, inspect in this order: 安装或启用失败时,按这个顺序排查:
~/.claude/settings.json contains the expected statusLine / settings.json 是否写入预期 statusLinestatusLine blocked overwrite / 是否被旧的外部配置拦住Prefer re-running the wrapper script over telling the user to edit JSON manually. 优先重跑封装脚本,而不是直接让用户手改 JSON。
Only fall back to manual repair when automation fails. 只有自动流程失败时再给手动修复步骤。
statusLine field.statusLine looks foreign, ask before replacement.statusLine。statusLine 看起来不是本 skill 生成的,替换前先询问。After installation, generation, activation, or uninstall, end with a short summary like: 安装、生成、启用或卸载后,用类似下面的格式收尾:
Done / 已完成
- Generated / 生成: <file or not needed>
- Updated / 更新: ~/.claude/settings.json (statusLine only)
- Backup / 备份: <path or none>
- Snapshot / 快照: ~/.claude/cc-statusline-state.json
- Active command / 当前命令: <statusLine.command or not active>
- Next step / 下一步: <optional suggestion>