lov-better-statusline
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese状态栏工坊 · Status Line Studio
Status Line Workshop · Status Line Studio
配置并备份 Agent 状态栏,支持列出历史版本和恢复。
Configure and back up the Agent status line, with support for listing historical versions and restoring them.
Triggers
Triggers
Activate when
Activate when
- “配置并备份 Agent 状态栏,支持列出历史版本和恢复。”
- “Update an agent status line with rollback.”
- “Configure and back up the Agent status line, with support for listing historical versions and restoring them.”
- “Update an agent status line with rollback.”
Do not activate when
Do not activate when
- 只是查询本 Skill 的说明,或请求与上述结果无关的任务;不执行实际业务操作。
- 用户仅要预览或审查时,不进入修改、提交或发布分支。
- The user is merely querying this Skill's documentation or requesting a task unrelated to the results above; do not perform any actual business operations.
- The user only wants a preview or review; do not proceed with modifications, commits, or releases.
Execution boundary
Execution boundary
自然语言请求即可触发;无需旧 slash 路径、参数插值或指定助手。明确解析当前请求中的
项目、目标文件、选项与输出位置;用当前宿主实际提供的文件、搜索、CLI 和浏览器能力。
项目依赖版本与外部 API 在执行时核实,不能假设示例是现行配置。随包脚本从 Skill 根解析,
业务文件从目标项目根解析。先读当前状态,保护已有未提交内容与其他任务的暂存区。
分析、预览请求保持只读;修改、提交、推送、部署和发布各依当前请求的明确范围执行。
不绕过保护、自动发送消息、强制结束用户进程或抢前台。失败保留可诊断原始错误。
The Skill can be triggered with a natural-language request; no legacy slash path, argument interpolation, or designated assistant is required. Explicitly parse the project, target file, options, and output location from the current request; use the file, search, CLI, and browser capabilities actually provided by the current host.
Verify project dependency versions and external APIs at execution time; do not assume that examples represent current configurations. Resolve bundled scripts from the Skill root and business files from the target project root. Read the current state first, and protect existing uncommitted content and staging areas belonging to other tasks.
Keep analysis and preview requests read-only; perform modifications, commits, pushes, deployments, and releases strictly within the explicit scope of the current request.
Do not bypass safeguards, automatically send messages, forcibly terminate user processes, or take over the foreground. On failure, preserve the original error for diagnosis.
Workflow
Workflow
-
解析 update、list、rollback 与显示内容;先识别目标应用及其实际状态栏配置。此 Skill 可由任意宿主调用,但目标应用必须提供状态栏能力。
-
读取配置并确定字段名、输入协议与命令格式;例如 Claude Code 的 statusLine 是目标产品配置,不能把花括号示例直接当插值语法。核对当前官方协议。
-
修改前将该字段的存在状态和值保存到用户指定备份目录;保留其他配置和秘密,备份使用不冲突的时间标识。
-
根据真实协议实现项目路径、Git 分支、时间、分隔和颜色;脚本处理缺字段、非 Git 目录与命令失败,输出不含凭据。写配置后回读并用样例输入验证脚本。
-
list 展示版本与简短预览;rollback 先备份当前字段,再恢复所选版本,原先不存在的字段应恢复为不存在。报告配置验证与实际界面观察的区别。
-
Parse update, list, rollback, and display content; first identify the target application and its actual status-line configuration. This Skill can be invoked by any host, but the target application must provide status-line capabilities.
-
Read the configuration and determine field names, input protocols, and command formats. For example, Claude Code's statusLine is a target-product configuration, and brace-delimited examples must not be treated directly as interpolation syntax. Verify the current official protocol.
-
Before modifying anything, save the field's existence state and value to the user-specified backup directory. Preserve other configuration and secrets, and use non-conflicting timestamp identifiers for backups.
-
Implement the project path, Git branch, time, separators, and colors according to the actual protocol. The script must handle missing fields, non-Git directories, and command failures, and its output must not contain credentials. After writing the configuration, read it back and validate the script with sample input.
-
The list operation displays versions and brief previews. The rollback operation first backs up the current field and then restores the selected version; a field that did not previously exist should be restored to a non-existent state. Report the difference between configuration validation and actual interface observation.
Composition
Composition
执行前读取 能力组合,按明确制品交接相邻能力。
Before execution, read Capability Composition and hand off to adjacent capabilities based on explicit artifacts.
Runtime context (shared)
Runtime context (shared)
运行前读取本包 与 Profile 合同。优先级为当前请求、
项目上下文、本 Skill records、共享 preferences、brand/user Profile、安全默认值。
只读取声明字段;没有专用运行时的宿主可使用 读取共享 Profile。
配置缺失只问影响结果的一个问题。用户明确要求长期保存的值通过该脚本原子写入,
报告实际路径;不保存推断、凭据或其他任务的资料。
skill.yamlscripts/profile_store.pyBefore execution, read this package's and Profile Contract. The priority order is the current request, project context, this Skill's records, shared preferences, the brand/user Profile, and security defaults.
Read only declared fields; hosts without a dedicated runtime can use to read the shared Profile.
If a required configuration is missing, ask only one question that affects the result. Values that the user explicitly requests to store long-term must be written atomically through this script, and their actual paths must be reported. Do not store inferred information, credentials, or materials from other tasks.
skill.yamlscripts/profile_store.py