lint-design-system

lint-design-system is a command for Claude Code from kumaran-is/claude-code-onboarding. It costs 27 tokens per session (1,360 once invoked), scanned C, original, MIT.

A scanner for design-system violations in Flutter and Angular code. It checks for hardcoded colors, raw spacing and typography values, and interactive elements with small touch targets.

In plain words
What is it for?
Use it to scan changed Flutter or Angular files for design-token and touch-target problems.
Why use it?
It catches inconsistent styling and difficult-to-use controls before those issues spread through the interface.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to scan changed Flutter or Angular files for design-token and touch-target problems.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kumaran-is/claude-code-onboarding/lint-design-system
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.

Clone the repo
git clone --depth 1 https://github.com/kumaran-is/claude-code-onboarding

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 lint-design-system

README.md
[![agentmods](https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/lint-design-system/github.svg)](https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/lint-design-system)
Your own site
<a href="https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/lint-design-system"><img src="https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/lint-design-system/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 lint-design-system

Your own site · 80×15
<a href="https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/lint-design-system"><img src="https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/lint-design-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,360 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00027 $0.01360
Opus 5 $0.00014 $0.00680
Sonnet 5 $0.00005 $0.00272
Haiku 4.5 $0.00003 $0.00136

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

Security

Grade C, and why

lint-design-system scanned grade C with 1 finding 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 5d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

grep -rn "bg-\[#\|text-\[#\|border-\[#\|color:\s*#" src/app/ --include="*.html" --include="*.scss" --include="*.css" | grep -v "// ignore-design" | grep -v "<!-- ignore-design" # Hardcoded rgb/hsl grep -rn "rgba\?\s*(\\|
.claude/commands/lint-design-system.md · 105 lines

How it starts

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

/lint-design-system

Scan changed files for design system violations. Detects hardcoded colors, raw spacing values, inline typography, and touch target issues.

Process

1. Detect Stack

Determine which stack to scan:

  • If *.dart files exist in lib/ → run Flutter checks
  • If *.html, *.scss, *.ts files exist in src/ → run Angular checks
  • If both → run both

2. Flutter Design Checks

Scan lib/**/*.dart (exclude *.g.dart, *.freezed.dart):

Check Pattern Violation
Hardcoded colors Color(0x...), Colors.xxx Use Theme.of(context).colorScheme tokens
Raw spacing EdgeInsets.all(N), SizedBox(height: N) with numeric literals Use AppSpacing.xs/sm/md/lg/xl/xxl
Raw TextStyle TextStyle(fontSize: N) Use Theme.of(context).textTheme
Small touch targets SizedBox with width/height < 48 wrapping GestureDetector/InkWell Minimum 48x48dp for interactive elements

Commands to run:

# Hardcoded colors
grep -rn "Color(0x\|Colors\." lib/ --include="*.dart" | grep -v ".g.dart" | grep -v ".freezed.dart" | grep -v "test/" | grep -v "// ignore-design"

# Raw spacing
grep -rn "EdgeInsets\.\(all\|symmetric\|only\)([0-9]" lib/ --include="*.dart" | grep -v ".g.dart" | grep -v ".freezed.dart" | grep -v "// ignore-design"

# Raw TextStyle
grep -rn "TextStyle(fontSize:" lib/ --include="*.dart" | grep -v ".g.dart" | grep -v ".freezed.dart" | grep -v "// ignore-design"

3. Angular Design Checks

Scan src/app/**/*.{html,scss,css,ts}:

Check Pattern Violation
Hardcoded hex colors bg-[#...], text-[#...], color: #... Use daisyUI semantic tokens (bg-primary, text-base-content)
Hardcoded rgb/hsl colors rgb(...), rgba(...), hsl(...), hsla(...) Use daisyUI semantic tokens or CSS custom properties
Raw spacing utilities mt-3, px-4, gap-2 (numeric) Use Tailwind's semantic scale or daisyUI component spacing
Raw typography text-[14px], font-[...], font-size: N Use Tailwind typography scale (text-sm, text-lg)
Raw form inputs <input> without formControl, bare <select> Use daisyUI form classes + reactive form bindings
Inline styles style="..." in templates Use TailwindCSS utilities or SCSS

Read the full file on GitHub · 105 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. 5d ago First seen · 105 lines · 27 tokens per session scan C d78362859d5c

Subscribe to this mod's changes

lint-design-system is a command published in the GitHub repository kumaran-is/claude-code-onboarding (35 stars, last pushed 2mo ago), licensed MIT. It adds 27 tokens to every session and 1,360 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.