tidyfactor-design: Command for Claude Code

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

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

A command for designing and checking the different appearances and behaviours of interactive interface elements.

In plain words
What is it for?
Use it to cover states such as hover, keyboard focus, pressed, disabled, loading, empty, error, and success for components like dropdowns, tabs, modals, and notifications.
Why use it?
It prevents a prototype from showing only its normal view while leaving unclear what happens when users hover, focus, disable, load, or encounter an error.

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/states.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 states

README.md
[![agentmods](https://agentmods.dev/badge/commands/alwkala/tidyfactor-design/states.svg)](https://agentmods.dev/commands/alwkala/tidyfactor-design/states)
Your own site
<a href="https://agentmods.dev/commands/alwkala/tidyfactor-design/states"><img src="https://agentmods.dev/badge/commands/alwkala/tidyfactor-design/states.svg" alt="Measured on agentmods" 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 497 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.1 $0.00000 $0.00497
Opus 5 $0.00000 $0.00249
Sonnet 5 $0.00000 $0.00099
Haiku 4.5 $0.00000 $0.00050

Measured 6d ago against content hash 53fe715c1177, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

states 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 6d 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/states.md · 49 lines

How it starts

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

Command: states — Interactive States, Not a Static Mockup

Purpose

This is what separates an "interactive prototype" from a picture of a website — the difference the whole positioning of this skill depends on. Kept as its own command because states are easy to skip under time pressure and easy to audit for once isolated.

When to run it

  • After a component/page/screen has its default look — always follow with a states pass before calling it done.
  • User phrasing: "add hover states", "what does this look like empty/ loading", states.

What it does

  1. For every interactive component in scope, confirm the full matrix applies where relevant: default, hover, focus-visible, active/pressed, disabled, loading, empty, error, success.
  2. Implement via interactions.js (shared) for stateful JS behavior (dropdown open/close, tab switching, modal show/hide, toast dismiss) and CSS pseudo-classes for the rest — never a per-page <script> for one page's interactive widget.
  3. Empty states are a design decision, not a placeholder: what caused it, what the user should do next — same principle as frontend-design's "an empty screen is an invitation to act", applied consistently across the whole prototype rather than per page.
  4. Loading states: skeleton shapes matching the eventual content's layout, not a generic spinner-only blank — this is what makes a dashboard prototype credible.
  5. Keyboard/focus-visible states are not optional — every interactive element needs a visible focus ring using a token color, not the browser default.

Output convention

design-system/
  components.css     ← :hover, :focus-visible, [disabled], .is-loading, .is-empty, .is-error
  interactions.js      ← shared stateful behavior (toggle/modal/dropdown/tab)

Checklist

  • Hover, focus-visible, active, and disabled states present on every interactive component
  • Empty and loading states designed deliberately, not left as placeholders
  • Stateful behavior lives in shared interactions.js, never a per-page script
  • Focus ring visible and token-colored on every focusable element

Read the full file on GitHub · 49 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. 6d ago First seen · 49 lines · 0 tokens per session scan A 53fe715c1177

Subscribe to this mod's changes

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