lets-statusline
Skill3 starsChanged 4 months agoMITView on GitHub
Install, update, or undo a rich status line for Claude Code — where you are in git, how long the session can go on, and how much usage is left. It shows a preview and asks before it changes anything. For when the user types this command to get or update the line.
In this repository13 other files it gives its agents.
- templates/CLAUDE.mdCLAUDE.md
- lets-alignSkill
- lets-blindspotSkill
- lets-catch-upSkill
- lets-checkSkill
- lets-explainSkill
- lets-exploreSkill
- lets-look-backSkill
- lets-set-upSkill
- lets-shapeSkill
- lets-startSkill
- lets-trackSkill
- lets-wrapSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
If the user passed undo, go to "Undo".
- Distinctive: line 37
Ask: "Can you read it? Do the colors and the symbols show correctly?"
- Very specific: line 51
If changed_by_user has files, name them.
- Very specific: line 53
If current_status_line holds a line that is not this one, show its command, and say that this replaces it and that /lets-statusline undo …
- Distinctive: line 63
If it fails, show the message.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Status line
A plugin cannot set a status line by itself, so this skill copies the code to ~/.claude/statusline/ and writes statusLine in ~/.claude/settings.json. It copies because the plugin folder changes at each update. Nothing changes before the user says yes.
If the user passed undo, go to "Undo".
1. See what is there
python3 "${CLAUDE_SKILL_DIR}/install.py" status- The command fails, or a dialog opens to install developer tools: Python 3 is not ready. Tell the user to install Python 3, and stop.
platformstarts withwin: the line is not tested on Windows. Say so, and stop unless the user wants to try it.
2. Tell the user what the line needs
- Required: Python 3 and git. Tested on macOS with Python 3.9; say so if
pythonis older. Iftools.gitis false, stop. - Optional:
ghadds merged and closed PRs, checks, and conflicts. Taskwarrior adds a task chip. Name the ones thattoolsshows as missing, and say that those items do not show. Do not offer to install them unless asked. - Usage row: Claude Code gives the 5-hour and 7-day numbers to subscribers. With an API key, this row can stay empty.
3. Show the preview
The colors need the user's own terminal. Ask them to run this, with the real path of this skill's folder:
! python3 "${CLAUDE_SKILL_DIR}/statusline/preview.py" 140Ask: "Can you read it? Do the colors and the symbols show correctly?"
The colors assume a dark terminal. The line cannot detect a light one, so if theme is light, or is unset or auto and you do not know, ask about this first. The calm items have no background of their own, so on a light terminal the white text can be hard to read. If the user cannot read it, do not install. Offer to change sl/theme.py first, or stop.
4. Say what will change, and get a yes
Use state:
not-installed: a new install.up-to-date: say so. Stop unless the user wants to install it again.update-available: a new version is ready.not-active: the code is current, butsettings.jsonruns another line, for example after an undo. Installing makes this line active again.no-record: code is in the folder, but this skill did not install it.
If changed_by_user has files, name them. Warning: the update replaces those files. The old folder stays as a backup, and the user can copy their changes back from it.
If current_status_line holds a line that is not this one, show its command, and say that this replaces it and that /lets-statusline undo brings it back.
Say what changes: the code folder, and the statusLine key with a 10-second refresh in settings.json. All other settings stay the same, and a backup comes first. Ask for a clear yes, and wait for it.
5. Install
python3 "${CLAUDE_SKILL_DIR}/install.py" installIf it fails, show the message. It stops before it changes settings that it cannot read.
Report the backup paths from the output, and say that the line shows after the next reply. If it does not, start a new session.
6. Tell the user that the line is theirs
Say this in your own words: "You can customize this line however you like: colors, icons, rows, and what each row shows. Ask me to change it, or edit the files yourself. ~/.claude/statusline/README.md says which file holds what. python3 ~/.claude/statusline/preview.py shows the result. To get a new version later, run /lets-statusline again; it names the files that you changed and keeps a backup."
Undo
python3 "${CLAUDE_SKILL_DIR}/install.py" undoThis puts the earlier statusLine back, or removes the key if there was none. It keeps all other settings and makes a backup. The code stays in ~/.claude/statusline/; the user can delete that folder. Ask before you delete it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

