- Add CCGS Skill Testing Framework: self-contained QA layer with 72 skill specs, 49 agent specs, catalog.yaml, quality-rubric.md, templates, README, CLAUDE.md - Add /skill-improve: test-fix-retest loop covering static + category checks - Add 4 missing skills: /art-bible, /asset-spec, /day-one-patch, /security-audit - Add /skill-test category mode (Phase 2D) with quality rubric evaluation - Extend /skill-test audit to cover agent specs alongside skill specs - Update all skill-test and skill-improve path refs to CCGS Skill Testing Framework/ - Remove stale tests/skills/ directory (superseded by CCGS Skill Testing Framework) - Add director gate intensity modes (full/lean/solo) to gate-check and related skills Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6.1 KiB
Skill Test Spec: /ux-review
Skill Summary
/ux-review validates an existing UX spec or HUD design document against
accessibility and interaction standards. It checks for required sections
(User Flows, Interaction States, Wireframe Description, Accessibility Notes),
completeness of interaction state definitions (hover, focus, disabled, error),
accessibility compliance (keyboard navigation, color contrast notes, screen
reader considerations), and consistency with the art bible or design system
if those documents exist.
The skill is read-only — it produces no file writes. Verdicts: APPROVED
(all checks pass), NEEDS REVISION (fixable issues found), or MAJOR REVISION
NEEDED (structural or accessibility failures). No director gates apply —
/ux-review IS the review gate for UX specs.
Static Assertions (Structural)
Verified automatically by /skill-test static — no fixture needed.
- Has required frontmatter fields:
name,description,argument-hint,user-invocable,allowed-tools - Has ≥2 phase headings
- Contains verdict keywords: APPROVED, NEEDS REVISION, MAJOR REVISION NEEDED
- Does NOT contain "May I write" language (skill is read-only)
- Has a next-step handoff (e.g., back to
/ux-designfor revision, or proceed to implementation)
Director Gate Checks
None. /ux-review is itself the review gate for UX specs. No additional director
gates are invoked within this skill.
Test Cases
Case 1: Happy Path — Complete UX spec with all required sections, APPROVED
Fixture:
design/ux/hud.mdexists with all required sections populated:- User Flows: complete player flow diagrams
- Interaction States: normal, hover, focus, disabled, error all defined
- Wireframe Description: layout described
- Accessibility Notes: keyboard nav, contrast ratios, screen reader notes
Input: /ux-review hud
Expected behavior:
- Skill reads
design/ux/hud.md - Skill checks all 4 required sections — all present and non-empty
- Skill checks interaction states — all 5 states defined
- Skill checks accessibility notes — keyboard, contrast, and screen reader covered
- Skill outputs: checklist of all passed checks
- Verdict is APPROVED
Assertions:
- All 4 required sections are checked
- All 5 interaction states are verified present
- Verdict is APPROVED
- No files are written
Case 2: Missing Accessibility Section — NEEDS REVISION
Fixture:
design/ux/hud.mdexists but the Accessibility Notes section is empty- All other sections are fully populated
Input: /ux-review hud
Expected behavior:
- Skill reads the file and checks all sections
- Accessibility Notes section is empty — check fails
- Skill outputs: "NEEDS REVISION — Accessibility Notes section is empty"
- Skill lists specific items to add: keyboard navigation, color contrast ratios, screen reader labels
- Verdict is NEEDS REVISION
- Handoff suggests returning to
/ux-design hudto fill in the section
Assertions:
- NEEDS REVISION verdict is returned (not APPROVED or MAJOR REVISION NEEDED)
- Specific missing content items are listed
- Handoff points back to
/ux-design hudfor revision - No files are written
Case 3: Interaction States Incomplete — NEEDS REVISION
Fixture:
design/ux/settings-menu.mdexists- Interaction States section only defines: normal and hover
- Missing: focus, disabled, error states
Input: /ux-review settings-menu
Expected behavior:
- Skill reads the file and checks interaction states
- Only 2 of 5 required states are defined
- Skill reports: "NEEDS REVISION — Interaction states incomplete: missing focus, disabled, error"
- Verdict is NEEDS REVISION with specific missing states named
Assertions:
- NEEDS REVISION verdict returned
- All 3 missing states are named explicitly in the output
- Skill does not return MAJOR REVISION NEEDED for a fixable gap
- Handoff suggests returning to
/ux-design settings-menu
Case 4: File Not Found — Error with remediation
Fixture:
design/ux/inventory-screen.mddoes not exist
Input: /ux-review inventory-screen
Expected behavior:
- Skill attempts to read
design/ux/inventory-screen.md— file not found - Skill outputs: "UX spec not found: design/ux/inventory-screen.md"
- Skill suggests running
/ux-design inventory-screento create the spec first - No review is performed; no verdict is issued
Assertions:
- Error message names the missing file with full path
/ux-design inventory-screenis suggested as the remediation- No review checklist is produced
- No verdict is issued (error state, not APPROVED/NEEDS REVISION)
Case 5: Director Gate Check — No gate; ux-review is itself the review
Fixture:
- Valid UX spec file
Input: /ux-review hud
Expected behavior:
- Skill performs the review and issues a verdict
- No additional director agents are spawned
- No gate IDs appear in output
Assertions:
- No director gate is invoked
- No gate skip messages appear
- Verdict is APPROVED, NEEDS REVISION, or MAJOR REVISION NEEDED — no gate verdict
Protocol Compliance
- Checks all 4 required sections (User Flows, Interaction States, Wireframe, Accessibility Notes)
- Checks all 5 interaction states (normal, hover, focus, disabled, error)
- Checks accessibility coverage (keyboard nav, contrast, screen reader)
- Does not write any files
- Issues specific, actionable feedback when verdict is not APPROVED
- Ends with next-step handoff to
/ux-designfor revision or implementation
Coverage Notes
- MAJOR REVISION NEEDED is triggered when structural sections are entirely absent (not just empty) or when fundamental interaction flows are missing entirely; not tested with a separate fixture here.
- Art bible / design system consistency check (color palette alignment) is mentioned as a capability but not separately fixture-tested.
- The case where an existing spec was written for a now-renamed screen is not tested; the skill would review the file by path regardless of the name.