pixtuoid: Command for GitHub Copilot

.github/prompts/add-theme.prompt.md

add-theme is a command for GitHub Copilot from IvanWng97/pixtuoid. It costs 10 tokens per session (587 once invoked), scanned A, original, MIT.

Add a new color theme to pixtuoid.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: reads .claude/ paths; mentions CLAUDE.md.

This is IvanWng97/pixtuoid's own configuration. It tells GitHub Copilot how to work on pixtuoid itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pixtuoid configures →

Reuse

Borrowing it

Nothing to install: this file belongs to IvanWng97/pixtuoid. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/IvanWng97/pixtuoid/main/.github/prompts/add-theme.prompt.md
Clone the repo
git clone --depth 1 https://github.com/IvanWng97/pixtuoid

Made for: GitHub Copilot.

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/commands/ivanwng97/pixtuoid/add-theme.svg)](https://agentmods.dev/commands/ivanwng97/pixtuoid/add-theme)
Your own site
<a href="https://agentmods.dev/commands/ivanwng97/pixtuoid/add-theme"><img src="https://agentmods.dev/badge/commands/ivanwng97/pixtuoid/add-theme.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 587 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.1 $0.00010 $0.00587
Opus 5 $0.00005 $0.00293
Sonnet 5 $0.00002 $0.00117
Haiku 4.5 $0.00001 $0.00059

Measured today against content hash 212f3ff587e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 today.

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.

.github/prompts/add-theme.prompt.md · 42 lines

What it actually says

Add a new theme

Add a new color theme named ${input:name} to pixtuoid.

  1. Read an existing theme for the full field set — e.g. crates/pixtuoid-scene/src/theme/dracula.rs. A theme is a pub static Theme with ~90 color roles across 9 groups (including ApplianceColors for the vending machine / printer / coat rack, and SourceColors for the per-CLI dashboard badge hues).
  2. Create crates/pixtuoid-scene/src/theme/<name>.rs defining pub static <NAME>: Theme = Theme { ... }. Fill every field — each appliance/UI color must be supplied; never fall back to the normal palette (corridor appliances rendered wrong until each theme supplied its own set).
  3. Register it: add the mod in theme/mod.rs, append &<NAME> to the ALL_THEMES slice, and make sure theme_by_name() resolves the kebab-case name.
  4. Add a row to site/src/themes.json (id = the kebab-case name, plus its presentation fields). theme_gallery_manifest_matches_all_themes (theme/mod.rs) asserts the manifest ids == ALL_THEMES names, so the theme fails just test until the row exists; then run just gen-media to regenerate the committed theme stills (else the smoke gen-check reds the PR).
  5. Theme roles may share an RGB (every bundled theme does) — the unique-RGB rule belongs to sprite packs (RECOLOR_KEYS B/H/S/P, enforced at pack load by validate_recolor_palette), not to themes. What binds you are the per-theme legibility guards in theme/mod.rs.
  6. Run just test. The appliance_palette_is_legible_for_every_theme, source_badges_legible_for_every_theme, token_paper_is_legible_on_the_desk_for_every_theme and sun_and_moon_read_warm_and_cool_for_every_theme guards and the theme snapshot tests must pass; update insta snapshots if the theme list changed.
  7. Visually verify: build and render the snapshot example, then eyeball the new theme's office (see .claude/skills/beautify-decoration/SKILL.md).

Follow .github/instructions/rust.instructions.md and the theme notes in crates/pixtuoid/src/tui/CLAUDE.md.

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. today First seen · 42 lines · 10 tokens per session scan A 212f3ff587e4

Subscribe to this mod's changes

add-theme is a command published in the GitHub repository IvanWng97/pixtuoid (469 stars, last pushed yesterday), licensed MIT. It adds 10 tokens to every session and 587 once invoked, about $0.0001 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-09-06.