Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/mengrru/Sphersenpx agentmods add skills/mengrru/spherse/spherse-create-agent-chat-themeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mengrru/spherse/spherse-create-agent-chat-theme)<a href="https://agentmods.dev/skills/mengrru/spherse/spherse-create-agent-chat-theme"><img src="https://agentmods.dev/badge/skills/mengrru/spherse/spherse-create-agent-chat-theme/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mengrru/spherse/spherse-create-agent-chat-theme"><img src="https://agentmods.dev/badge/skills/mengrru/spherse/spherse-create-agent-chat-theme.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.03761 |
| Opus 5 | $0.00023 | $0.01880 |
| Sonnet 5 | $0.00009 | $0.00752 |
| Haiku 4.5 | $0.00005 | $0.00376 |
Grade A, and why
spherse-create-agent-chat-theme scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 268 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Chat Theme
Agent chat themes live in the agent directory as theme.css (.spherse/agents/{agent-slug}/theme.css).
写法:原生 CSS Nesting
用原生 CSS nesting 编写,最外层包裹 [data-chat-root] { ... },所有规则嵌套其中。Electron 渲染进程跑在现代 Chromium 上(Chrome 112+ 起原生支持 CSS nesting)。主题以 <link rel="stylesheet"> 从项目 preview 路由载入(与项目级主题一致),不做任何转换。
[data-chat-root] {
/* 根级变量 */
--sp-background: #0c0b12;
/* 嵌套选择器——自动作用域到 chat 内 */
[data-chat-header] { border-bottom: 1px solid #2a2932; }
[data-chat-bubble] { border-radius: 12px; }
}
不要把根级变量 / 背景声明写在最外层之外。它们必须落在 [data-chat-root] { ... } 内,才能作用于聊天窗口。
层叠关系
聊天主题遵循三级层叠(低 → 高优先级):
- App defaults(
styles.css)— 内置:root/--sp-*变量 - Project theme(
.spherse/theme.css,通过document.head的<link>注入)— 可覆盖 UI 变量,也可写[data-chat-root] { ... }块,作为所有 chat 窗口的全局默认样式 - Agent theme(本文件,chat 容器内后载入的
<link>)— 相同特异性下覆盖 project theme 的 chat 规则
优先级原理:agent theme 的 <link> 渲染在 chat 容器内,DOM 顺序上比 project theme 的 <link>(位于 document.head)更靠后。CSS 层叠规则下,相同特异性的规则后者胜出,因此 agent theme 自然覆盖 project theme 的 chat 规则。
想给所有 agent 设统一聊天默认样式,优先写进项目级
.spherse/theme.css的[data-chat-root] { ... }块;单个 agent 覆盖默认值,写在本文件里。
选择器速查
| 目标 | 选择器 |
|---|---|
| Chat 根级颜色变量 | 在 [data-chat-root] { ... } 内声明 --sp-* 变量 |
| Chat 根级渐变/图片背景 | 在 [data-chat-root] { ... } 内写 background: / background-image: |
| Header | [data-chat-header] |
| 消息外层行 | [data-chat-message][data-role="user"] 或 [data-role="assistant"] |
| 消息气泡 | [data-chat-bubble] |
| Trigger 对话轮折叠摘要条 | [data-chat-turn-collapse] |
| 助手头像 | [data-chat-message][data-role="assistant"]::before |
| Composer 外层 | [data-chat-composer] |
| 输入框外框 | [data-chat-composer-input] |
| 文本输入区文字 | [data-chat-composer] textarea |
| Placeholder | [data-chat-composer] textarea::placeholder |
| 代码块 | [data-md-code] |
| 行内代码 | [data-md-code-inline] |
| 引用块 | [data-md-quote] |
滚动条:在
[data-chat-root] { ... }内覆盖--sp-scrollbar-*变量(--sp-scrollbar-thumb/--sp-scrollbar-thumb-hover/--sp-scrollbar-size/--sp-scrollbar-track)即可只改变聊天窗口的滚动条外观;变量与默认值详见spherse-create-ui-themeskill 的「滚动条」一节。agent theme 的<link>在 DOM 中比 project theme 更靠后,相同特异性下自然覆盖项目级滚动条设置。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 268 lines · 45 tokens per session scan A 1cd099683021
spherse-create-agent-chat-theme is a skill published in the GitHub repository mengrru/Spherse (71 stars, last pushed 4d ago), licensed MIT. It adds 45 tokens to every session and 3,761 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
web-design
Penguin visual language for generated web pages and app UIs — GitHub-style simplicity with a single blue accent, light and pure-black dark themes, design tokens, component and chat-interface recipes, plus an opt-in warm paper editorial theme.
popular-web-designs
54 real-world design systems (Stripe, Linear, Vercel, Notion, Apple…) as ready-to-paste HTML/CSS — exact colors, typography, components, and spacing for styling a page after a known brand.
prototype
A clickable HTML and CSS mock-up for testing one main user journey before building the real software. It uses sample data and can contain one to three connected screens.
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
design-system
A skill for defining an app's visual rules and implementing them with NativeWind and Tailwind, tools for styling interfaces with reusable settings. It covers colors, text styles, reusable component variants, and screen layouts.
design-taste-frontend-v1
The original v1 taste-skill, preserved for projects depending on its exact behavior. The current default is design-taste-frontend (v2 experimental), which is a substantial rewrite. Use this v1 install name only if you need exact backward compatibility.