AGENT SKILL

statusline

Change the look of the status line - its style, its colors, among them the chat's (the person's and Claude's) - each shown before it is chosen. Use when the user wants another status line, other colors for it, or from `/repo:look`.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 3
Forks
3

01 前言 Front Matter

name
statusline
description
Change the look of the status line - its style, its colors, among them the chat's (the person's and Claude's) - each shown before it is chosen. Use when the user wants another status line, other colors for it, or from `/repo:look`.
argument-hint
[a style] [a palette]

03 SKILL.md 正文

Talk to the user in their language. The choice is made with ion-repo's machine settings, nothing else is touched.

The status line is plugins/repo/scripts/statusline.py of ion-repo. Its style and its palette are machine settings (ion repo set statusline=… statusline_palette=…), read at each redraw: a change shows within 5 seconds, no restart. ion repo set without a value, run in ~ (a repo ion-repo did not generate refuses it), lists the choices and the current ones.

  1. Read the current choices: cd ~ && ion repo set (lines statusline and statusline_palette).

  2. With $ARGUMENTS, a known style and/or palette is the choice: go to 4.

  3. Ask both with the AskUserQuestion tool, in one call, two questions. <script> is the path in the statusLine command of ~/.claude/settings.json; python3 <script> --help lists its options.

    The style. Options: the current one first, then the others of plain, band, classic, classic-band (none: no status line; custom: their own, left as it is, both through "Other"). Each option's preview is the script's own drawing of this repo for a sample session, plain text sized for the preview box: python3 <script> --preview --style <style>.

    The colors, a choice of hue, since the person picks a color, not a theme. Options: chat first (the person's color and Claude's from the chat), then three one-hue palettes that stand apart, the current one among them if it is one; the question names the others. One-hue palettes: red, orange, yellow, green, teal, blue, violet, pink, a gray then the hue from the least to the most striking. "Other" takes any of them, or any palette ion repo set lists (the terminal themes, nord, dracula…).

    • A palette's name says nothing to the person: offer it by its colors, from python3 <script> --levels (each palette's four levels in the current theme, #rrggbb).
    • Label: a one-hue palette's is its hue (Bleu); the others name their four colors in plain words, in the user's language (Gris, jaune, orange, rouge). (Recommended) after the first.
    • Description: what each color means, one level each: all well (the neutral one, most of the line), to watch (not urgent), to handle (fairly urgent), urgent (in French: Normal, À surveiller, À traiter, Urgent), then the palette's name for ion repo set.
    • Preview: the four levels, one a line, each with its color's name and hex. chat adds that the person's color is theirs in the chat, and Claude's color (orange unless /repo:color changed it) Claude's.

    A preview has no colors (the question shows plain text): say so in the colors question, the real colors showing at step 5.

  4. ion repo set statusline=<style> statusline_palette=<palette> (only what changed).

  5. Ask whether it suits, the status line being redrawn already in its real colors; if not, back to 3. With chat, say it follows /repo:color: a new color for their messages is the status line's too.

04 同仓库更多 Skills