@soleri/domain-design-qa
v1.0.0
Published
Design QA intelligence domain pack for Soleri agents.
Maintainers
Readme
@soleri/domain-design-qa
Design QA intelligence domain pack for Soleri agents. Provides 5 algorithmic ops for token drift detection, hardcoded color detection, component sync, accessibility prechecks, and handoff audits. All ops process pre-extracted data -- no external API calls required.
Ops
| Op | Description |
|----|-------------|
| detect_token_drift | Compare design tokens against a token map. Returns matched, unmatched, and drifted lists with a health score. |
| detect_hardcoded_colors | Reverse-index hex colors against a token map. Returns which colors have tokens and which are hardcoded. |
| sync_components | Match design components against code components by name. Reports sync status with multi-strategy matching. |
| accessibility_precheck | WCAG contrast check on foreground/background color pairs. Supports text, large-text, and graphics contexts. |
| handoff_audit | Audit component metadata completeness. With full inputs, returns a composite score (40% token drift, 30% component sync, 30% accessibility). |
Install
npm install @soleri/domain-design-qaRequires @soleri/core >= 9.0.0 as a peer dependency.
Usage
Add the pack to your agent.yaml:
packs:
- name: design-qa
package: "@soleri/domain-design-qa"The pack registers under the design-qa domain and activates automatically when the agent starts.
Development
npm install
npm run build
npm test
npm run typecheckPublishing
Tag and push to trigger CI:
git tag v<version>
git push origin v<version>License
Apache-2.0
