theme-init

theme-init is a command for coding agents from obiwancenobi/klamben. It costs 22 tokens per session (287 once invoked), scanned A, original, Apache-2.0.

A command that creates a Flutter theme scaffold from a seed color. Flutter is a framework for building apps, and the scaffold includes light and dark colors, text styles, spacing, motion settings, and font setup.

In plain words
What is it for?
Use it to create the theme files, connect the theme to the app, add light and dark modes, set up a font, and define reusable spacing and motion values.
Why use it?
It gives a new Flutter project a shared visual foundation instead of leaving colors, fonts, spacing, and animation timings scattered across the app.

Command

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/obiwancenobi/klamben/theme-init
Clone the repo
git clone --depth 1 https://github.com/obiwancenobi/klamben

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-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/obiwancenobi/klamben/theme-init.svg)](https://agentmods.dev/commands/obiwancenobi/klamben/theme-init)
Your own site
<a href="https://agentmods.dev/commands/obiwancenobi/klamben/theme-init"><img src="https://agentmods.dev/badge/commands/obiwancenobi/klamben/theme-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 287 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.00022 $0.00287
Opus 5 $0.00011 $0.00143
Sonnet 5 $0.00004 $0.00057
Haiku 4.5 $0.00002 $0.00029

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

Security

Grade A, and why

theme-init 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.

src/commands/theme-init.md · 36 lines

What it actually says

/theme-init

Generate a theme scaffold for a new project.

Actions

  1. Check design context: If .klamben.md exists in the project root, read it first. Apply the project's brand, platform targets, accessibility tier, and existing patterns to your work below.
  2. Create lib/theme/app_theme.dart with:
    • ColorScheme.fromSeed for light and dark
    • TextTheme via google_fonts (ask user for font; default Inter)
    • Spacing theme extension
    • Full ThemeData.light() and ThemeData.dark() builders
  3. Wire into MaterialApp in lib/main.dart
  4. Create lib/theme/spacing.dart with the Spacing extension class
  5. Create lib/theme/motion.dart with Durations tokens

Interaction

Ask user:

  • Seed color (default 0xFF6750A4)
  • Font (default Inter)

Output

List every file created + diff summary.

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 · 36 lines · 22 tokens per session scan A 67d5939295eb

Subscribe to this mod's changes

theme-init is a command published in the GitHub repository obiwancenobi/klamben (2 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 22 tokens to every session and 287 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-31.