ownyourcode: Command for Claude Code

.claude/commands/own/theme.md

theme is a command for Claude Code from DanielPodolsky/ownyourcode. It costs 28 tokens per session (2,508 once invoked), scanned A, original, MIT.

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

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

This is DanielPodolsky/ownyourcode's own configuration. It tells Claude Code how to work on ownyourcode 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 ownyourcode configures →

Reuse

Borrowing it

Nothing to install: this file belongs to DanielPodolsky/ownyourcode. 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/DanielPodolsky/ownyourcode/main/.claude/commands/own/theme.md
Clone the repo
git clone --depth 1 https://github.com/DanielPodolsky/ownyourcode

Made for: Claude Code.

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 theme

README.md
[![agentmods](https://agentmods.dev/badge/commands/danielpodolsky/ownyourcode/theme/github.svg)](https://agentmods.dev/commands/danielpodolsky/ownyourcode/theme)
Your own site
<a href="https://agentmods.dev/commands/danielpodolsky/ownyourcode/theme"><img src="https://agentmods.dev/badge/commands/danielpodolsky/ownyourcode/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.

agentmods 80×15 button for theme

Your own site · 80×15
<a href="https://agentmods.dev/commands/danielpodolsky/ownyourcode/theme"><img src="https://agentmods.dev/badge/commands/danielpodolsky/ownyourcode/theme.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00028 $0.02508
Opus 5.5 $0.00011 $0.01003
Sonnet 5.5 $0.00006 $0.00502
Haiku 4.5 $0.00003 $0.00251

Measured 1mo ago against content hash bd5a27f68ee4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

.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.json — theme.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. 1mo ago 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 (292 stars, last pushed 4mo ago), licensed MIT. It adds 28 tokens to every session and 2,508 once invoked, about $0.0001 per session on Opus 5.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.