Borrowing it
Nothing to install: this file belongs to Carlos-Dominguez-faber/criterio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Carlos-Dominguez-faber/criterio/main/.claude/commands/design-init.mdgit clone --depth 1 https://github.com/Carlos-Dominguez-faber/criterioWrote 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.
[](https://agentmods.dev/commands/carlos-dominguez-faber/criterio/design-init)<a href="https://agentmods.dev/commands/carlos-dominguez-faber/criterio/design-init"><img src="https://agentmods.dev/badge/commands/carlos-dominguez-faber/criterio/design-init/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.
<a href="https://agentmods.dev/commands/carlos-dominguez-faber/criterio/design-init"><img src="https://agentmods.dev/badge/commands/carlos-dominguez-faber/criterio/design-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.01141 |
| Opus 5 | $0.00016 | $0.00571 |
| Sonnet 5 | $0.00006 | $0.00228 |
| Haiku 4.5 | $0.00003 | $0.00114 |
Grade A, and why
design-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 11d 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 — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/design-init — crear el contrato de diseño
Argumento recibido (puede venir vacío): $ARGUMENTS
Tu trabajo es dejar al usuario con un contrato de diseño escrito en disco, y que entienda qué acaba de generar. No es solo correr un script: es acompañar la entrevista y traducir el resultado.
Paso 1 — Ubica el script
Busca scripts/init.mjs. Rutas probables, en orden:
.criterio/scripts/init.mjs(instalación normal, víanpx degit)scripts/init.mjs(si están trabajando dentro del propio repo de criterio)
Si no lo encuentras en ninguna, detente y dile al usuario:
No encuentro
scripts/init.mjs. Trae criterio a este proyecto con:npx degit Carlos-Dominguez-faber/criterio .criterio
Paso 2 — Revisa si ya hay contrato
Busca un brand.json existente en la raíz del proyecto.
Si ya existe, no lo sobrescribas sin preguntar. Dile al usuario qué encontró (nombre del producto y el preset o los seis ejes, en una línea) y pregunta si quiere:
- actualizarlo — corren la entrevista de nuevo y se reemplaza
- auditarlo — mejor usar
/design-check - cancelar
Paso 3 — Corre la entrevista
node <ruta>/scripts/init.mjs
Si el usuario pasó un preset en $ARGUMENTS, menciónalo antes de correr: la
entrevista lo va a proponer como punto de partida y el usuario puede ajustar los
ejes desde ahí.
Son 8 preguntas. No las contestes tú. Estas decisiones son del usuario — ese es el punto entero de la herramienta. Si el script pide input y el usuario duda, ayúdalo a decidir explicándole qué consecuencia tiene cada opción, pero deja que él elija.
Requisito: Node 18+. Si el script falla por versión, dilo con el número exacto que tiene instalado.
Paso 4 — Traduce lo que se generó
Aquí está el valor de este comando. Después de que el script termine, no digas "listo". Lee los archivos generados y explica en una tabla corta:
| Archivo | Qué contiene | Quién lo lee |
|---|---|---|
design.md |
El contrato en prosa | Tú, tu cliente, cualquier agente |
brand.json |
Tokens, component_rules, anti_slop, validation |
Claude Code y el gate |
voice.json |
Dialecto, ejes de tono, avoid_words[] |
El agente cuando escribe copy |
motion.json |
Duraciones, easings, safe_props / unsafe_props |
El agente cuando anima |
brand.css |
Tokens en 3 niveles: primitivos → semánticos → componente | El navegador |
COMPONENT_RULES.md |
Las reglas que el agente relee antes de cada componente | El agente, cada sesión |
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.
- 11d ago First seen · 110 lines · 32 tokens per session scan A b478207d1fdd
design-init is a command published in the GitHub repository Carlos-Dominguez-faber/criterio (55 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 1,141 once invoked, about $0.0002 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-30.
Other commands, from other repositories
profile
Save, load, inspect, update, reset, or delete diagram-design client profiles.
ui-flow-review
Review menus, HUD, navigation, and player flow from a UX perspective.
responsive-design-specialist
Use when a layout breaks between sizes. Arbitrary breakpoints, type that does not scale, images that blow out the grid, or a desktop design retrofitted onto mobile.
ppt-image2-editable-rebuild
Rebuild image2 or imagegen reference slides as editable PowerPoint decks.
p3-ux-wireframes
Creates wireframes (ASCII art) for the most important screens with interaction descriptions.
team-ui
Orchestrate UI/UX design team.