color
Change the color of the bar beside the person's messages in the chat, or of the gray one of a task or another session - a palette, more on request, any color named. Use when the user wants another color for their messages or the gray ones, or from `/repo:look`.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 3
- Forks
- 3
01 前言 Front Matter
- name
- color
- description
- Change the color of the bar beside the person's messages in the chat, or of the gray one of a task or another session - a palette, more on request, any color named. Use when the user wants another color for their messages or the gray ones, or from `/repo:look`.
- argument-hint
- [a color, by name or #rrggbb]
03 SKILL.md 正文
Talk to the user in their language; nothing outside ~/.claude/ is touched.
The bar takes its color from the theme: professionalBlue (the bar, chat.tsx) and
briefLabelYou (Claude Code's own label on the person's messages), both set to the color chosen.
A theme is a JSON file in ~/.claude/themes/<slug>.json (name, base, overrides), chosen by
"theme": "custom:<slug>" in ~/.claude/settings.json.
-
Read
themein~/.claude/settings.json(absent:dark). Acustom:<slug>theme is edited in place, itsbasekept; a preset (dark,light, their-daltonizedand-ansiforms) becomes thebaseof a new thememine("name": "Mine"). Light bases take the light column below. -
With
$ARGUMENTS, that color is the choice: go to 3. Otherwise show the whole palette as a short list (name and hex), then ask with the AskUserQuestion tool: three colors that stand apart from the current one, and "Other colors". Any name or#rrggbbthe user types in "Other" is taken; "Other colors" asks again with three colors not offered yet, then with colors of the user's own description ("a deep green"), as long as they want.Color Dark base Light base Blue #4c8dff#1d4ed8Cyan #22d3ee#0e7490Teal #2dd4bf#0f766eGreen #4ade80#15803dLime #a3e635#4d7c0fYellow #facc15#a16207Coral #fb7185#be123cPink #f472b6#be185dViolet #a78bfa#6d28d9Lavender #c4b5fd#7c3aedSilver #d1d5db#4b5563Claude's orange (
claude) is never offered: the two bars must stay apart.The gray bar of what came from elsewhere (a task, another session), only when the user asks for it: same palette and questions,
Gray (Recommended)first for the default, and none of the person's color nor Claude's orange. The theme has no key of its own for it (inactivewould gray all of Claude Code), so it goes to~/.claude/chat-colors.jsonas{"others": "#rrggbb"}, other keys kept; gray chosen: the key removed, the file too once empty. The mod reads it within ten seconds; skip 3. -
Write the theme with both overrides (other keys of an existing theme kept), then set
themetocustom:<slug>in~/.claude/settings.json, every other key unchanged (python3 -Iwithjson, indent 2). Whenchezmoi source-path <file>answers for one of the two files, update its source too (chezmoi add ~/.claude/themes/<slug>.json,chezmoi re-add ~/.claude/settings.json) and say chezmoi's repo has it to commit. -
Claude Code reloads
~/.claude/themes/live: the bar changes at once, and the status line too when its palette ischat(/repo:statusline). If the folder did not exist when the session started, say a restart of Claude Code is needed once. Ask whether it suits; if not, back to 2.
04 同仓库更多 Skills
worktree
Create a work branch in a ready-to-use git worktree. The normal way to start a branch, so as not to cross another session in the main tree.
update
Update ion-repo - the ion-repo tool of the machine and its plugins, then the open repo (ion repo update, on a branch merged right away into develop). Use when the user asks to update ion-repo, or accepts the update offered at session start.
token
Set up a service's credentials (PyPI, Stripe, an API, a host…) in a `.<service>/` folder at the repo root (`token`, chmod 600, and `config` on its scope), with one command that pastes the token unseen. Use when a task needs an API key or a token, or when the user wants to give one.
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`.
skill
Write or sharpen a skill of an Ion tool's plugin - intent, SKILL.md in the right craft's plugin, one trigger case, docs; tested with `claude plugin eval` only on request. Use when the user wants a new skill, to fix one, or to check one fires and does its job.
review
暂无简介