tidyfactor-design: Command for Claude Code

.agents/skills/tidyfactor-design/references/commands/components.md

components is a command for Claude Code from alwkala/tidyfactor-design. It costs 0 tokens per session (527 once invoked), scanned A, original, MIT.

A command for building shared interface components in a CSS file and making a temporary page that shows each component in eight states, such as hover, focus, disabled, loading, and error.

In plain words
What is it for?
Use it when creating or updating buttons, forms, or other shared interface pieces. The preview helps inspect normal, interactive, disabled, loading, and error states together.
Why use it?
It keeps reusable visual patterns in one place and makes it easier to check how they look and behave in different situations.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: installed under .agents/ (shared by several agents).

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

Reuse

Borrowing it

Nothing to install: this file belongs to alwkala/tidyfactor-design. 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/alwkala/tidyfactor-design/main/.agents/skills/tidyfactor-design/references/commands/components.md
Clone the repo
git clone --depth 1 https://github.com/alwkala/tidyfactor-design

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 components

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/alwkala/tidyfactor-design/components"><img src="https://agentmods.dev/badge/commands/alwkala/tidyfactor-design/components.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 527 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.00000 $0.00527
Opus 5.5 $0.00000 $0.00211
Sonnet 5.5 $0.00000 $0.00105
Haiku 4.5 $0.00000 $0.00053

Measured 2mo ago against content hash 307c8e05ae31, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

components 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 2mo 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.

.agents/skills/tidyfactor-design/references/commands/components.md · 47 lines

How it starts

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

Command: components — The Shared Component Library & 8-State Demo Wrapper

Runtime entry point for authoring shared component classes in components.css and generating an 8-state demo preview.

Purpose

The mechanism that makes the consistency guarantee real: one place where every reusable visual pattern lives. When building a standalone component, this command authors components.css AND generates a temporary 8-state preview wrapper (<Component>.preview.html) rendering all interactive states.

8-State Component Matrix & Demo Wrapper (<Component>.preview.html)

When a component is created or updated, generate <Component>.preview.html rendering all 8 interactive states vertically stacked:

┌──── Component — 8 states ────────────────────────┐
│ default       [ Component default state   ]    │
│ hover         [ Component hover state     ]    │  ← .is-hover
│ focus         [ Component focus state     ]    │  ← .is-focus
│ active        [ Component active state    ]    │  ← .is-active
│ disabled      [ Component disabled state  ]    │  ← disabled / aria-disabled
│ loading       [ Component loading state   ]    │  ← data-state="loading"
│ error         [ Component error state     ]    │  ← data-state="error"
│ success       [ Component success state   ]    │  ... data-state="success"
└────────────────────────────────────────────────┘

What it does

  1. Confirm cssFoundation from brand.json and read matching foundation file.
  2. Author reusable class in design-system/components.css referencing tokens in tokens.css.
  3. Support all 8 states in CSS using both pseudo-classes and preview helper classes (.is-hover, .is-focus, .is-active).
  4. Generate <Component>.preview.html for single-file visual validation.
  5. Never duplicate an existing component under a new name—extend with a modifier class (.card--compact, .btn--accent).

Output Convention

design-system/
├── components.css              ← Reusable component styling with 8-state support
└── Button.preview.html         ← 8-state vertical demo preview wrapper

Read the full file on GitHub · 47 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. 2mo ago First seen · 47 lines · 0 tokens per session scan A 307c8e05ae31

Subscribe to this mod's changes

components is a command published in the GitHub repository alwkala/tidyfactor-design (6 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 527 tokens. 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.

Related

components compared with commands from other repositories

components next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
componentsalwkala/tidyfactor-designCommand63mo agoMITA0Claude Code
responsive-auditOwl-Listener/designer-skillsCommand3.3k2mo agoMITA20Claude Code
color-paletteOwl-Listener/designer-skillsCommand3.3k2mo agoMITA28Claude Code
design-screenOwl-Listener/designer-skillsCommand3.3k2mo agoMITA11Claude Code
type-systemOwl-Listener/designer-skillsCommand3.3k2mo agoMITA21Claude Code
critique-screenOwl-Listener/designer-skillsCommand3.3k2mo agoMITA16Claude Code
critique-uxOwl-Listener/designer-skillsCommand3.3k2mo agoMITA26Claude Code