add-theme

add-theme is a skill for Claude Code, Codex from nicknisi/dotfiles. It costs 58 tokens per session (1,787 once invoked), scanned A, original, MIT.

Instructions for adding a self-contained named theme pack to a dotfiles theme system.

In plain words
What is it for?
Use it to import a theme from a repository or image, add the required theme files, and make it selectable alongside existing themes.
Why use it?
It makes a new color scheme available to the system while keeping its palette, wallpapers, and related configuration together.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nicknisi/dotfiles/add-theme
Any agent
npx skills add nicknisi/dotfiles --skill add-theme
Clone the repo
git clone --depth 1 https://github.com/nicknisi/dotfiles

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for add-theme

README.md
[![agentmods](https://agentmods.dev/badge/skills/nicknisi/dotfiles/add-theme.svg)](https://agentmods.dev/skills/nicknisi/dotfiles/add-theme)
Your own site
<a href="https://agentmods.dev/skills/nicknisi/dotfiles/add-theme"><img src="https://agentmods.dev/badge/skills/nicknisi/dotfiles/add-theme.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,787 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00058 $0.01787
Opus 5 $0.00029 $0.00894
Sonnet 5 $0.00012 $0.00357
Haiku 4.5 $0.00006 $0.00179

Measured 4d ago against content hash f2cce2d157c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

add-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 4d 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.

home/.pi/agent/skills/add-theme/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add a theme pack

One command themes everything: bin/theme <name> swaps ~/.config/theme/current -> themes/<name>/ and nudges consumers. A pack is FULLY self-contained in themes/<name>/ — deleting the directory deletes the theme (theme regenerates starship palettes from whatever packs remain). ALL files below are required — every past pack forgot one (starship was missed for shadesofjade).

Work directly in the repo (subagent worktrees don't see uncommitted theme files and have flipped the user's live theme by running theme from the wrong tree — do NOT run theme for validation until told, and never from a worktree).

1. Source the palette

Two entry points:

  • Upstream repo (the common case): fetch it (fetch_content clones to /tmp/pi-github-repos/), take colors.toml and backgrounds/.
  • Just a wallpaper, no repo: run bin/theme from-image <name> <image> first. It extracts colors.toml + backgrounds/ from the image; continue below with what it wrote. Eyeball the palette first — the hue mapping is heuristic, hand-tune colors.toml if a slot looks wrong.

The repo's colors.toml (accent, background, foreground, color0-15) drives everything. If it ships a neovim.lua using bjarneo/aether.nvim, that file holds the extended palette (bg variants, muted, bright_*) needed for nvim + pi + claude JSONs.

2. themes// files

Copy from the closest existing pack (tokyo-night = dark+light reference, shadesofjade = dark-only reference):

  • colors.toml — copied verbatim from upstream
  • backgrounds/ — all images (theme [N] picks one). Rename each to <index>-<description>.<ext> (1-first keeps the upstream default first): read every image and describe its content, e.g. 1-jade-dragon-statue.jpg, 2-monk-moon-umbrella.jpg. The fzf wallpaper picker previews the filename, so numbered-only names (BG1, 1.jpg) are a miss.
  • theme.conf — PI_DARK, PI_LIGHT, CLAUDE_DARK, CLAUDE_LIGHT, TAGLINE (one-line whimsy, printed on switch). Dark-only: PI_LIGHT= and CLAUDE_LIGHT= empty.
  • ghostty.conf — check ghostty +list-themes | grep -i <name>: built-in exists -> theme = dark:X,light:Y line; no built-in -> inline keys (background, foreground, cursor-color, selection-background/foreground, palette = N=#hex for 0-15). Always append the dock icon block: macos-icon = custom-style, ghost-color = accent, screen-color = background.
  • nvim-dark — one line: the colorscheme name. nvim-light too if the theme has a light variant. If upstream uses aether.nvim, the name is aether AND you must write nvim-aether.json (the full colors table from upstream neovim.lua) — aether is shared by several packs, the palette lives in the pack, not the plugin spec. Other colorschemes need their plugin present in config/nvim/lua/nisi/plugins/colorscheme.lua (lazy); add if missing.
  • tmux-dark.shtmux set -g @thm_* setters, exact style of themes/tokyo-night/tmux-dark.sh (thm_blue <- accent). tmux-light.sh only if a light variant exists.
  • sketchybar.sh — FULL var set from themes/tokyo-night/sketchybar.sh (FG, GLOW_* = accent at ff/d9/40/24/14 alphas, BAR_COLOR 0xcc+bg, hues with _BORDER 0xe6 / _FILL 0x1f, CALM_GREEN 0x8c+green, INK 0xff+bg, TRANSPARENT). Accent = colors.toml accent.
  • borders.sh — ACTIVE_COLOR=0xff, INACTIVE_COLOR=0xff
  • btop.themetheme[key]="#hex" rows, mechanical from colors.toml (copy themes/void/btop.theme's shape): main_bg/bg, main_fg+title/fg, hi_fg+selected_fg/accent, selected_bg+meter_bg/ color0, boxes+div_line+inactive_fg+graph_text/color8, every meter+graph trio start=colorN, mid=color3, end=color1
  • wezterm.luareturn { foreground, background, cursor_bg, cursor_border, cursor_fg, selection_bg, selection_fg, ansi = {color0-7}, brights = {color8-15} } — straight from colors.toml (copy themes/sakura/wezterm.lua's shape). theme copies it to ~/.config/wezterm/theme-current.lua, which wezterm.lua watches.
  • slack.txt — 8 comma-separated hexes: columnBG, menuBGHover, activeItem (accent), activeItemText (bg), hoverItem, text (fg), presence (green), mentionBadge (red)

Read the full file on GitHub · 130 lines

Changes

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.

  1. 4d ago First seen · 130 lines · 58 tokens per session scan A f2cce2d157c7

Subscribe to this mod's changes

add-theme is a skill published in the GitHub repository nicknisi/dotfiles (2,987 stars, last pushed yesterday), licensed MIT. It adds 58 tokens to every session and 1,787 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

coding

Principles for writing and designing code, covering API and abstraction design, naming, comment discipline, and standards of evidence for claims about code behavior. Use whenever the task is to write or modify code, design an API or software architecture, or review code.

ryota2357/dotfiles · 53 tokens

assess-quality

Foundational quality framework: the five questions (readable, easy to start, expands without bloat, consistent, intentional) every other dev skill is judged against, plus the dual-audience and workshop principles. Use when onboarding to a project, defining a quality bar, setting an assessment checklist, or arbitrating…

urmzd/dotfiles · 120 tokens

create-oss-skill

Create well-formed Agent Skills following the agentskills.io specification. Scaffold directories, write SKILL.md files, bundle scripts, and structure instructions for progressive disclosure. Use when creating a new skill, reviewing skill structure, optimizing a skill description, or setting up evals for skill quality.

urmzd/dotfiles · 63 tokens

extend-oss-skills-to-claude

Extend standard agentskills.io skills with Claude Code-specific features. Invocation control, subagent execution, dynamic context injection, string substitutions, model/effort overrides, and deployment scoping. Use when adapting a portable skill for Claude Code, adding Claude-specific frontmatter, setting up subagent…

urmzd/dotfiles · 74 tokens

orchestrate-agents

Orchestrate multiple agent CLIs (Claude, Codex, Antigravity) via tmux with a shared fleet store, dispatching one guardian subagent per pane. Survey-first: inspects and adopts existing tmux sessions, windows, and agent panes before creating anything new. Use when running a multi-agent session, dispatching parallel…

urmzd/dotfiles · 83 tokens

scaffold-project

Generates cross-language standard files (README, AGENTS.md, LICENSE, CONTRIBUTING.md, SECURITY.md, sr.yaml, .envrc, llms.txt), documentation conventions, and project structure, then dispatches to language-specific scaffolds. Use first for cross-language standard files and structure, THEN load the matching scaffold…

urmzd/dotfiles · 137 tokens