Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Craft Guard?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/bandersnatch0x-craft-guard)
---
name: craft-guard
description: UI craft and feedback quality. Use when polishing product UI (motion, loading and error feedback) or when a page reads as AI slop.
---
# craft-guard
**Craft** declaration for cross-product quality: hierarchy, wait feedback, purposeful motion, CJK-safe type. Does not own business risk (`domain`) or token inventory (`design`).
When a verified design-baseline binding exists (`status: ready`), use that path as the project-specific visual baseline. Report clear divergence (density, type, spacing, shape, motion, or shared component treatment) to `ui-evaluator` with source set to the bound path. Do not replace valid project choices with this skill's generic taste defaults.
When a persistent contract v1 is bound for the run (`contract-bind.json` / `scripts/contract_v1.py`), honor decided visual and craft constraints from that contract and reject unknown contract schema versions. Do not invent page or component inheritance layers.
## Check intensity
Read check intensity from the registry's `authority`, `severity-default`, and `status`. Keep the existing severity axis: S3 is highest, S2 is intermediate, S1 is observation, and S0 is positive or info. These labels add no field or parallel severity schema.
| Intensity | Registry mapping | Recording duty |
| --- | --- | --- |
| Hard check | An unresolved S3 / fact constraint for safety, accessibility, or factual accuracy | Do not waive the violation within the run. Hand the evidence and owning constraint to the evaluator for its existing blocking-fact check. Missing proof is `blocked`, not a failed observation or a waiver. |
| Waiver-recorded check | S2 entries eligible for a run-level exemption under their `status` | If leaving a hit unfixed under an exemption, record `ID@version`, an observable reason, and an evidence reference in the audit row or finding. Keep the hit visible; an exemption is not a `clear` result. |
| Observation check | S1, or S0 for positive or info | Report the observation with evidence. Do not add a blocking contribution. |
`status` controls execution and exemption authority, not severity. An `advisory` entry permits an evidence-bound run exemption where eligible. A persistent exemption of a `machine-enforced` entry requires user governance and its paired decision-log record, as defined by the [registry](../design-playbook/references/rules.md). Do not execute draft or deprecated entries as active constraints, promote a rule, waive a structural gate, or change the evaluator's severity, disposition, or verdict rules here.
Registered examples: `A11Y-01@1` requires accessible names as an S3 / fact hard check. `CRAFT-01@1` is an S2 / judgment check with an evidence-bound run-exemption path. `CRAFT-05@1` is an S1 / judgment observation.
"By design" without a cited declaration and evidence is not a waiver. An entry's `exceptions` field is a rule-internal exception, not a run exemption. Verify its declared condition against the spec, bound baseline, or reference contract and cite that condition. Neither a waiver nor an exception can turn missing required proof into a pass.
## Apply (checklist)
Treat as exhaustive for the surface under edit.
### Hierarchy and type
- One clear primary. Secondary recedes via density and space, not rainbow chrome.
- CJK UI uses the project Chinese stack (`var(--font-cn)` or equivalent).
- Brand solid + brand-gradient **≤ 3** emphasis hits per viewport. Neutrals carry the rest.
**Done when:** a cold reader can name the primary action and region in one glance.
### Loading tiers
Tiers and their boundaries are the `threshold` of `PERF-01@2` in [`../design-playbook/references/rules.md`](../design-playbook/references/rules.md), the single source for these numbers:
```text
below placeholder-from no indicator
placeholder-from to indicator-from skeleton (layout stable)
past indicator-from loader + what is happening
past timeout-at timeout + retry (or cancel)
```
**Done when:** every async path in scope maps to a tier with a next action on failure/timeout.
### Motion
- UI motion stays within `motion-max`, and hover, focus and typing feedback within `high-frequency-motion-max` (the `threshold` of `CRAFT-08@2`). Animate `transform` / `opacity` only.
- Each animation names the state change it explains.
- Honor `prefers-reduced-motion`. Keyboard-triggered actions stay free of decorative motion.
**Done when:** every motion in scope states the state change it explains.
### Replace AI slop with the target look
For implemented UI, evaluate registry-entry applicability predicates in the registry index [`../design-playbook/references/rules.md`](../design-playbook/references/rules.md) and its `rules/` part files. Use the subset declared by the active spec and contract, or the full catalog when none is declared. Run every entry whose predicate evaluates to `applicable` against rendered UI plus relevant source. Execution protocol and the row format live in [`references/detectors.md`](references/detectors.md). Write exactly one seven-column audit row per **applicable** entry to `.scratch/<run>/craft-guard.md`:
| ID@ver | Applicability | Predicate reason / missing proof | Result | Rendered evidence | Source evidence | Exception check | Positive fix |
| --- | --- | --- | --- | --- | --- | --- | --- |
`Applicability` is the entry's three-state predicate outcome: `applicable`, `not-applicable`, or `blocked`. **not-applicable and blocked both require an observable reason** (blank is invalid, never a silent skip). `Result` is `clear|hit` only for applicable rows, `-` otherwise; `Positive fix` is required on hit rows. Missing rendered or source proof is `blocked`, not a silent clear. Unknown registry IDs fail at this stage. Audit rows are advisory: record evidence, exception check, and positive fix. Leave declaration source, severity, and verdict to `ui-evaluator`.
The host model may have no vision (text-only input). Renders stay **path-bound**: the `Rendered evidence` column cites the artifact path; never read the image. Assertions run on the **text face**: HTML and CSS source, `a11y tree` text, and interaction-trace action records. An interaction trace is a Playwright trace **ZIP**. Unzip before reading; the artifact is not JSON. A no-vision run evaluates the same registry protocol this way without degrading it. Genuinely missing rendered proof still records `blocked` honestly.
| Push toward | Instead of default sludge |
| --- | --- |
| Accent on key noun + primary CTA | Purple–blue gradient wallpaper |
| Glass only on rare floating layers | Blur on every card |
| Project CJK stack | Inter and Roboto as Chinese body |
| Weighted modules | Equal white card grid |
| State-explaining motion | Bounce and elastic decoration |
[`references/craft.md`](references/craft.md) contains Craft value checks for corners, boundaries, icon weight, hover capability, and motion timing. Read it for those properties and whenever the surface has L4 interactive zones. Its affordance checks have their own Done when. Baseline tokens take precedence; an undeclared value becomes a confirmation question, not a universal number. The reference also covers failure and permission feedback and charts.
## Completion
**Done when:** hierarchy, every in-scope wait and fail path, and every animation pass their checks. If the surface has L4 interactive zones, every zone's affordance passes its checks (per `references/craft.md`). Implemented UI also records exactly one seven-column audit row for every registry craft entry whose applicability predicate evaluates to `applicable`, with no unexplained missing proof. Residual hits and blocked proof are handed to `ui-evaluator`. Audit rows do not assign source, severity, or verdict. Machine check right after writing craft-guard.md: `python scripts/g8_run_registry.py .scratch/<run>/craft-guard.md`.
## Excuse table
Every row is an excuse for skipping a row or a run, paired with the consequence that already applies. No row adds a penalty.
| Excuse | Why it does not hold | Existing consequence |
| --- | --- | --- |
| "There is no rendered proof to check" | Missing rendered or source proof is `blocked`, never a silent clear | The row records `blocked`; that proof gap reaches evaluation and cannot be a craft pass |
| "The surface has no interactive zones, so affordance checks do not apply" | `not-applicable` requires an observable reason | The blank or unexplained row is invalid |
| "I did not recognize the registry ID, so I skipped the entry" | Unknown registry IDs fail at this stage | The detector run fails; there is no partial pass |
| "Human eye said it is better now" | Judgment is not a row, and a row needs its two evidence columns | Without that proof the row is `blocked`, never a silent clear |
| "Good enough to ship, polish comes later" | Proof, not polish, is the gate here | Unproved rows stay `blocked` and are handed to `ui-evaluator` |