theme

A command for restyling an OwnYourCode dashboard from a written design brief. It regenerates the inline CSS and font link in dashboard.html and keeps backups so a previous theme can be restored.

In plain words
What is it for?
Use /own:theme to view or change the design brief, regenerate the dashboard theme, reroll the current look, or revert to an earlier version.
Why use it?
It avoids manually editing the dashboard's embedded styles when the visual direction changes. The history files provide a way to revert earlier theme changes.

Command for Claude Code

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 commands/danielpodolsky/ownyourcode/theme
Clone the repo
git clone --depth 1 https://github.com/DanielPodolsky/ownyourcode

Made for: Claude Code.

Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,508 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.00028 $0.02508
Opus 5 $0.00014 $0.01254
Sonnet 5 $0.00006 $0.00502
Haiku 4.5 $0.00003 $0.00251

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

Security

Grade A, and why

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

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.

.claude/commands/own/theme.md · 254 lines

How it starts

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

/own:theme

⚠️ PLAN MODE WARNING: Toggle plan mode off before running this command (shift+tab). OwnYourCode commands don't work correctly with plan mode.

Restyle your project dashboard. The dashboard is self-styled — its CSS lives inline in dashboard.html. This command re-cooks that inline <style> block (and the Google-Fonts <link>) from your design brief, using the frontend-design plugin when you have it, otherwise Claude's own design skills.

Overview

  1. View the current design brief
  2. Change the brief (free-text design description) → regenerate
  3. Regenerate from the existing brief (re-roll the look)
  4. Revert to a previous design via /own:theme --revert

Files affected

  • ownyourcode/.theme/theme-prompt.md — the active design brief (you edit this)
  • ownyourcode/dashboard/dashboard.html — its <style> block + font <link> are regenerated
  • ownyourcode/.theme/.history/[ISO-timestamp]/ — backup of the prior dashboard.html + theme-prompt.md (created on every write; enables revert)
  • .claude/ownyourcode-manifest.jsontheme.system, theme.last_updated

Hard constraints

  • Visual only. Restyle, never restructure. The dashboard's render JS expects a fixed set of class names and the window.PROJECT contract — NEVER rename, remove, or add classes, change the HTML structure, or touch the <script> blocks. If a brief asks for layout/behavior/data changes, refuse those parts and warn.
  • Never touch dashboard-data.js. That's project content, not styling.
  • file:// rules: CSS stays inline (no external stylesheet <link>); web fonts via <link> in <head> are fine (the page is always online).
  • Backup-before-write is non-negotiable. Copy the current dashboard.html + theme-prompt.md to .history/[timestamp]/ BEFORE regenerating.

Execution Flow

Phase 0: Argument detection

  • /own:theme --revert → jump to Revert Flow below
  • /own:theme (no args) → continue to Phase 1

Read the full file on GitHub · 254 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. yesterday First seen · 254 lines · 28 tokens per session scan A bd5a27f68ee4

Subscribe to this mod's changes

theme is a command published in the GitHub repository DanielPodolsky/ownyourcode (276 stars, last pushed 2mo ago), licensed MIT. It adds 28 tokens to every session and 2,508 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-08-30.