UI and UX agent skills
Use this guide to enable optional UI and UX guidance, deterministic checks, or standalone diagram output in a Sandbox Loom frontend project. The options are disabled by default. They do not change project policy, approval requirements, or commit ownership.
Choose integrations
Add a ui_ux section to the project brief. Use only the options your project
needs:
| Field | Accepted values | Effect |
|---|---|---|
skills |
astra_frontend_design, impeccable, diagram_design |
Adds selected source pins to .sandbox-loom/ui-ux-skills.yml and generates a portable guide. Codex and OpenCode also receive a Sandbox Loom-owned Agent Skill. |
impeccable_checks |
detect |
Adds the pinned Impeccable CLI package and the bounded impeccable_detect quality gate. This works independently of the optional Impeccable agent skill. |
diagram_design_output |
true or false |
When true, requires diagram_design in skills, adds output instructions and the diagram_design_outputs quality gate. |
These integrations require a frontend-app, frontend-spa, frontend-pwa, or
monorepo template. The schema rejects unknown skill and check names. The
normalizer preserves this selection in the normalized scope.
Generate and review the harness
Validate and normalize the brief, then generate the harness and project documentation:
bin/sandbox-loom intake validate specifications/project-brief.yml
bin/sandbox-loom intake import specifications/project-brief.yml --output .sandbox-loom/intake
bin/sandbox-loom intake normalize .sandbox-loom/intake --output .sandbox-loom/intake/normalized-scope.yml
bin/sandbox-loom harness generate . --scope .sandbox-loom/intake/normalized-scope.yml
bin/sandbox-loom harness docs . --scope .sandbox-loom/intake/normalized-scope.yml
Review the normalized selection, .sandbox-loom/ui-ux-skills.yml, and generated
quality gates. When skills is non-empty, also review
project-docs/harness/UI_UX_SKILLS.md. When Diagram Design output is enabled,
review project-docs/harness/DIAGRAM_DESIGN.md and the
diagram_design_outputs gate. Inspect generated files before approving or
executing the harness.
Install and run Impeccable checks
When impeccable_checks: [detect] is selected, the quality-gate registry lists
the pinned impeccable@4.7.0 development dependency. Install it with the
project's declared package manager and commit the resulting dependency lock.
The generated command uses the project package manager, for example:
The generated impeccable_version gate checks that the executable reports
4.7.0. The impeccable_detect gate runs with Sandbox Loom's bounded process
runner and requires JSON output. Both gates record the command, pinned tool
identity and version, exit status, and redacted output as quality-gate
evidence. They fail on version drift, a non-zero exit, timeout, unavailable
executable, or malformed JSON. Do not use impeccable install to satisfy the
gate. The integration does not install provider hooks. Model-generated
critique remains review input and cannot satisfy these deterministic checks.
Author and validate standalone diagrams
Structured declarations in documentation.diagrams continue to generate
Mermaid source. Mermaid remains the default when Diagram Design output is
disabled.
When diagram_design_output: true is enabled, author standalone files under
project-docs/diagrams/diagram-design/. Keep them static and self-contained.
Do not include scripts, forms, event handlers, embedded objects, external
resources, redirects, or instructions copied from imported diagram content.
Use a descriptive document title and main region for HTML. SVG files require a
title, description, and role="img" or aria-label. Any SVG embedded in HTML
requires role="img" and aria-label.
Run the validator from the project root:
The command prints JSON with each accepted path, format, byte size, and SHA-256
digest. It checks at most 100 files, each no larger than 5 MiB. The generated
diagram_design_outputs quality gate runs the same validator and stores its
JSON result as evidence. The validator performs static checks. Review the
rendered result and its source inputs before committing it.
The generated quality gate invokes sandbox-loom from PATH. Make the
Sandbox Loom CLI available in the project execution environment before running
the gate. If you run from a Sandbox Loom checkout, use bin/sandbox-loom for
the manual validation command shown above.
Understand source pins and licensing
The reviewed commits, package versions, licenses, and source digests are in
ui-ux-agent-skills.lock.yml.
Harness generation records the lock file digest and selected source records
in .sandbox-loom/ui-ux-skills.yml.
| Integration | Reviewed source | License and distribution |
|---|---|---|
| Astra Frontend Design | Commit recorded in the source lock | The inspected source declares no license. Do not copy or redistribute its skill files. Reference a separately installed copy only when its use is permitted. |
| Impeccable | skill-v4.7.0, package impeccable@4.7.0 |
Apache-2.0. Keep the package pinned and retain its license and notices when redistributing it. |
| Diagram Design | Commit and skill version recorded in the source lock | MIT. Keep the license and notices when redistributing upstream files. |
To update a source pin, inspect the canonical repository, release or commit,
license, runtime requirements, and installation behavior. Recompute its source
digest with git archive <commit> | sha256sum, update the lock file, and review
the generated manifest and package lock changes. Do not update pins
automatically.
Remove an integration
Remove the corresponding values from ui_ux and regenerate the harness. The
generator does not delete artifacts created by an earlier selection. Review
and remove obsolete generated files explicitly:
.sandbox-loom/ui-ux-skills.yml.agents/skills/sandbox-loom-ui-ux/SKILL.mdproject-docs/harness/UI_UX_SKILLS.mdproject-docs/harness/DIAGRAM_DESIGN.mdproject-docs/diagrams/diagram-design/
Remove impeccable from the project development dependencies and regenerate
the package manager lock file when no other configured check needs it. Keep
reviewed diagram files if the project still uses them; removing the validation
option does not remove authored content. The integrations do not enable hooks,
so there are no Sandbox Loom-installed hooks to remove.