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.
npx agentmods add commands/alwkala/tidyfactor-design/componentsgit clone --depth 1 https://github.com/alwkala/tidyfactor-designWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00527 |
| Opus 5 | $0.00000 | $0.00264 |
| Sonnet 5 | $0.00000 | $0.00105 |
| Haiku 4.5 | $0.00000 | $0.00053 |
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 2d 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.
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
- Confirm
cssFoundationfrombrand.jsonand read matching foundation file. - Author reusable class in
design-system/components.cssreferencing tokens intokens.css. - Support all 8 states in CSS using both pseudo-classes and preview helper classes (
.is-hover,.is-focus,.is-active). - Generate
<Component>.preview.htmlfor single-file visual validation. - 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
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.
- 2d ago First seen · 47 lines · 0 tokens per session scan A 307c8e05ae31
components 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 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.
Other commands, from other repositories
github-issue
Create a GitHub issue from a natural language description.
test
Hello world test command.
discover
Run a full user research cycle — persona creation, empathy mapping, and journey mapping for a product or feature.
coograph-verify
Verify that the described work is complete and correct. Provide evidence for every claim. You verify — you do not implement or fix style.
api-gen
Generate REST API endpoints with routes, validation, error handling, and tests.
component-gen
Generate React or Vue components with prop types, styling, accessibility, and tests.