@vesviet/agent-skills 5.6.0 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INDEX.md +5 -5
- package/README.md +1 -1
- package/VERSION +1 -1
- package/adapters/antigravity/a2a-config.template.yaml +1 -1
- package/adapters/antigravity/role-skill-index.json +12 -12
- package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
- package/adapters/cursor/README.md +185 -185
- package/bin/agent-skills.mjs +17 -14
- package/core/contracts/README.md +1 -1
- package/core/contracts/schemas/api-contract-spec.json +191 -191
- package/core/contracts/schemas/data-pipeline-spec.json +1 -1
- package/core/contracts/schemas/design-tokens-spec.json +19 -0
- package/core/contracts/schemas/feature-ticket.json +1293 -1293
- package/core/contracts/schemas/pull-request-spec.json +338 -338
- package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
- package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
- package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
- package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
- package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
- package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
- package/core/contracts/schemas/security-audit.json +143 -12
- package/core/contracts/schemas/system-design-spec.json +9 -1
- package/core/contracts/schemas/test-report.json +530 -530
- package/core/contracts/schemas/ux-flow-spec.json +66 -0
- package/core/roles/ai-systems-engineer.md +31 -18
- package/core/roles/aws-engineer.md +33 -29
- package/core/roles/backend-developer.md +6 -4
- package/core/roles/content-manager.md +7 -7
- package/core/roles/data-engineer.md +39 -36
- package/core/roles/qa-engineer.md +18 -18
- package/core/roles/references/ai-systems-engineer-review-checklist.md +11 -3
- package/core/roles/references/aws-engineer-review-checklist.md +29 -16
- package/core/roles/references/business-analyst-responsibilities.md +207 -207
- package/core/roles/references/content-manager-governance-standards.md +2 -2
- package/core/roles/references/content-manager-review-checklist.md +7 -1
- package/core/roles/references/data-engineer-review-checklist.md +11 -3
- package/core/roles/references/frontend-developer-responsibilities.md +275 -275
- package/core/roles/references/qa-engineer-review-checklist.md +10 -5
- package/core/roles/references/security-engineer-review-checklist.md +8 -0
- package/core/roles/references/solution-architect-review-checklist.md +6 -1
- package/core/roles/references/system-engineer-review-checklist.md +11 -0
- package/core/roles/references/ui-ux-designer-review-checklist.md +12 -0
- package/core/roles/security-engineer.md +35 -5
- package/core/roles/solution-architect.md +7 -7
- package/core/roles/system-engineer.md +470 -465
- package/core/roles/ui-ux-designer.md +17 -3
- package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
- package/core/skills/agent/architect-mcp-server/SKILL.md +3 -3
- package/core/skills/agent/decompose-agentic-system/SKILL.md +1 -1
- package/core/skills/ai/deploy-vllm-inference/SKILL.md +14 -14
- package/core/skills/ai-agent/agent-evaluation/SKILL.md +5 -0
- package/core/skills/ai-agent/context-optimization/SKILL.md +9 -0
- package/core/skills/backend/add-api-endpoint/SKILL.md +1 -0
- package/core/skills/backend/add-event-handler/SKILL.md +1 -0
- package/core/skills/backend/add-service-client/SKILL.md +1 -0
- package/core/skills/backend/build-mcp-server/SKILL.md +101 -100
- package/core/skills/backend/implement-auth/SKILL.md +1 -0
- package/core/skills/backend/implement-structured-outputs/SKILL.md +95 -94
- package/core/skills/backend/optimize-postgres/SKILL.md +1 -0
- package/core/skills/backend/scaffold-new-service/SKILL.md +1 -0
- package/core/skills/business/elicit-requirements/SKILL.md +102 -102
- package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
- package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
- package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
- package/core/skills/business/write-use-cases/SKILL.md +106 -106
- package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
- package/core/skills/content/audit-content/SKILL.md +3 -2
- package/core/skills/content/audit-content/references/information-gain-rubric.md +1 -1
- package/core/skills/content/design-content-strategy/SKILL.md +6 -5
- package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +2 -2
- package/core/skills/content/optimize-seo/SKILL.md +6 -5
- package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +2 -2
- package/core/skills/content/optimize-seo/references/process-and-checklist.md +1 -1
- package/core/skills/content/repurpose-content/SKILL.md +4 -3
- package/core/skills/content/write-article/SKILL.md +6 -5
- package/core/skills/content/write-copy/SKILL.md +3 -2
- package/core/skills/document/pptx/SKILL.md +1 -0
- package/core/skills/document/pptx/scripts/add_slide.py +0 -0
- package/core/skills/document/pptx/scripts/clean.py +0 -0
- package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
- package/core/skills/document/xlsx/scripts/recalc.py +0 -0
- package/core/skills/documentation/write-documentation/SKILL.md +143 -143
- package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
- package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
- package/core/skills/foundation/design-review/SKILL.md +11 -1
- package/core/skills/foundation/design-ux-flow/SKILL.md +13 -1
- package/core/skills/foundation/performance-profiling/SKILL.md +3 -1
- package/core/skills/foundation/release-notes/SKILL.md +192 -192
- package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
- package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
- package/core/skills/foundation/write-tests/SKILL.md +11 -10
- package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +5 -0
- package/core/skills/frontend/design-md-specification/SKILL.md +1 -0
- package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
- package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -1
- package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -1
- package/core/skills/platform/aws-infrastructure/SKILL.md +12 -11
- package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
- package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
- package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -0
- package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
- package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
- package/core/skills/platform/setup-gpu-finops/SKILL.md +111 -107
- package/core/skills/platform/setup-llm-gateway/SKILL.md +110 -108
- package/core/skills/platform/supply-chain-security/SKILL.md +1 -0
- package/core/skills/platform/system-design/SKILL.md +7 -0
- package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
- package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
- package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
- package/core/skills/platform/web-perf/SKILL.md +151 -151
- package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
- package/core/skills/product/build-story-map/SKILL.md +104 -104
- package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
- package/core/skills/product/define-product-strategy/SKILL.md +105 -105
- package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
- package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
- package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
- package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
- package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
- package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
- package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
- package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
- package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
- package/core/skills/repo-ops/review-service/SKILL.md +186 -186
- package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
- package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
- package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
- package/core/skills/security-data/build-data-pipeline/SKILL.md +15 -14
- package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +5 -5
- package/core/skills/security-data/database-maintenance/SKILL.md +1 -0
- package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +5 -5
- package/core/skills/security-data/manage-secrets/SKILL.md +3 -0
- package/core/skills/security-data/optimize-olap-database/SKILL.md +14 -13
- package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +2 -2
- package/core/skills/security-data/prompt-injection-defense/SKILL.md +3 -0
- package/core/skills/security-data/query-analytical-engine/SKILL.md +8 -7
- package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +3 -3
- package/core/skills/security-data/security-audit/SKILL.md +126 -119
- package/core/workflows/add-new-feature.md +212 -212
- package/core/workflows/agent-a2a-delegation.md +142 -142
- package/core/workflows/bug-fix.md +147 -147
- package/core/workflows/build-deploy.md +208 -208
- package/core/workflows/code-review.md +137 -137
- package/core/workflows/curriculum-delivery.md +1 -1
- package/core/workflows/dependency-upgrade.md +193 -193
- package/core/workflows/feature-delivery.md +149 -149
- package/core/workflows/hotfix-production.md +172 -172
- package/core/workflows/qa-validation.md +231 -231
- package/core/workflows/refactoring.md +154 -154
- package/core/workflows/revert-deployment.md +147 -147
- package/core/workflows/security-incident-response.md +191 -191
- package/core/workflows/seo-content-lifecycle.md +91 -91
- package/core/workflows/service-review-release.md +223 -223
- package/core/workflows/setup-new-service.md +214 -214
- package/core/workflows/tech-repo-review.md +245 -245
- package/core/workflows/troubleshooting.md +241 -241
- package/overlays/astro-cloudflare/README.md +93 -93
- package/overlays/data-analyst-stack/README.md +109 -109
- package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
- package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
- package/overlays/ecommerce-microservices/README.md +65 -65
- package/overlays/go-microservices/README.md +78 -78
- package/overlays/go-microservices/rules/go-conventions.md +223 -223
- package/overlays/laravel-filament/README.md +90 -90
- package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
- package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
- package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
- package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
- package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
- package/overlays/r3f-stack/README.md +89 -89
- package/overlays/r3f-stack/rules/stub.md +43 -43
- package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
- package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
- package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
- package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
- package/package.json +2 -2
- package/core/README.md +0 -53
|
@@ -1,160 +1,160 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: accessibility-review
|
|
3
|
-
description: Audit UI for keyboard navigation, focus order, screen-reader labels, color contrast, motion preferences, and ARIA correctness against WCAG 2.2 criteria (including Focus Not Obscured 2.4.11, Target Size 2.5.8, Accessible Authentication 3.3.8, Dragging Movements 2.5.7, Redundant Entry 3.3.7). Use automated CI gates via @axe-core/playwright for regression detection alongside manual screen-reader testing. Use when validating user-facing flows before release, after design specs land, or when fixing reported a11y defects.
|
|
4
|
-
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Accessibility Review
|
|
8
|
-
|
|
9
|
-
Use this skill with **QA Engineer**, **Frontend Developer**, or **UI/UX Designer** when accessibility conformance must be verified explicitly.
|
|
10
|
-
|
|
11
|
-
## When to Use
|
|
12
|
-
|
|
13
|
-
- validating user-facing flows before release
|
|
14
|
-
- after design specs land
|
|
15
|
-
- fixing reported a11y defects
|
|
16
|
-
- running @axe-core/playwright gates + screen-reader checks
|
|
17
|
-
|
|
18
|
-
## Core Rules
|
|
19
|
-
|
|
20
|
-
- target WCAG 2.2 Level AA as the default baseline unless the repo documents a different bar; WCAG 2.2 AA is a superset of 2.1 AA, so a 2.1 AA obligation is satisfied by meeting 2.2 AA
|
|
21
|
-
- confirm which conformance target actually binds the project before reporting: regulatory regimes lag the latest WCAG release (see the regulatory note below)
|
|
22
|
-
- **CI gate mandate**: all PR builds must run `new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag22a', 'wcag22aa']).analyze()` and fail CI if `violations.length > 0` — automated axe scans catch ~30–50% of defects; pair with manual keyboard-only and screen reader testing
|
|
23
|
-
- use WAI-ARIA Authoring Practices Guide (APG) 2.2 keyboard interaction patterns as the authoritative reference for widget types (combobox, dialog, menu, tabs, tree) — do not invent ad-hoc keyboard patterns
|
|
24
|
-
- audit the Success Criteria added in WCAG 2.2 at Level A/AA:
|
|
25
|
-
- **3.3.8 Accessible Authentication (AA)**: Ensure cognitive function tests (such as memorizing passwords/usernames or solving puzzles) are not required for login processes without alternatives. (3.3.9 is the AAA variant — out of scope for an AA baseline.)
|
|
26
|
-
- **3.3.7 Redundant Entry (A)**: Avoid requiring users to re-enter information previously entered in the same process; instead, auto-populate or provide selectable choices.
|
|
27
|
-
- **2.4.11 Focus Not Obscured (Minimum) (AA)**: Verify the focused component is not entirely hidden by author-created content such as sticky headers, cookie banners, or floating chat widgets. (2.4.12 Focus Not Obscured (Enhanced) is AAA.)
|
|
28
|
-
- **2.4.13 Focus Appearance (AAA)**: Focus indicator minimum area and 3:1 contrast against adjacent colors. This is **Level AAA** — report it as an enhancement, not an AA failure.
|
|
29
|
-
- **2.5.7 Dragging Movements (AA)**: Provide a single-pointer alternative (e.g. click/tap controls) for any functionality requiring dragging.
|
|
30
|
-
- **2.5.8 Target Size (Minimum) (AA)**: Pointer targets are at least 24x24 CSS pixels, or meet one of the spacing/inline/essential exceptions.
|
|
31
|
-
- evaluate Cognitive Accessibility (COGA) requirements:
|
|
32
|
-
- **Plain Language**: Keep instructions and UI labels simple and concise.
|
|
33
|
-
- **Error Prevention**: Provide automatic suggestions, warnings, and clear instructions before submission.
|
|
34
|
-
- **Memory Aids**: Avoid placeholder-only labels; maintain persistent context and visual cues.
|
|
35
|
-
- audit ARIA annotation roles and attributes on dynamic elements, treating them as progressive enhancement (WAI-ARIA 1.3 is still a Working Draft and support is uneven):
|
|
36
|
-
- Use `suggestion`, `comment`, and `mark` roles for editorial markup and user feedback panels.
|
|
37
|
-
- Use `aria-description` for a detailed text description, and `aria-braillelabel` / `aria-brailleroledescription` for braille readers.
|
|
38
|
-
- Never rely on an annotation role as the only accessible name or state; keep a 1.2-compatible fallback.
|
|
39
|
-
- test keyboard-only paths for every primary task in scope; `Tab`, `Shift+Tab`, `Enter`, `Space`, `Escape` must be 100% operable with visible, non-obscured focus indicators (3:1 contrast ratio minimum)
|
|
40
|
-
- verify visible focus indicators and logical tab order
|
|
41
|
-
- ensure images, icons, and controls have accessible names (text or aria-label)
|
|
42
|
-
- check color contrast for text and interactive states; do not rely on color alone
|
|
43
|
-
- respect `prefers-reduced-motion` when animations are present
|
|
44
|
-
- cite concrete selectors, routes, or component names for every finding
|
|
45
|
-
- route visual/IA issues without a11y impact to `design-review`; route logic bugs to `review-code`
|
|
46
|
-
|
|
47
|
-
## Suggested Process
|
|
48
|
-
|
|
49
|
-
### 1. Define Scope
|
|
50
|
-
|
|
51
|
-
- routes, components, or ux-flow-spec screens in scope
|
|
52
|
-
- supported browsers and assistive tech assumptions from repo docs
|
|
53
|
-
- whether design specs already document a11y behavior
|
|
54
|
-
|
|
55
|
-
### 2. Static Spec Review
|
|
56
|
-
|
|
57
|
-
When specs exist:
|
|
58
|
-
|
|
59
|
-
- copy_per_state includes announcements for dynamic updates
|
|
60
|
-
- focus trap and escape behavior documented for modals
|
|
61
|
-
- error messages associated with fields (aria-describedby pattern)
|
|
62
|
-
|
|
63
|
-
### 3. Implementation Review
|
|
64
|
-
|
|
65
|
-
- semantic HTML landmarks (main, nav, heading order)
|
|
66
|
-
- form labels, grouping, and error association
|
|
67
|
-
- custom widgets: roles, states, keyboard handlers
|
|
68
|
-
- live regions for toasts and async status
|
|
69
|
-
|
|
70
|
-
### 4. Manual Checks
|
|
71
|
-
|
|
72
|
-
- tab through primary flow without mouse
|
|
73
|
-
- activate controls with Enter/Space where expected
|
|
74
|
-
- screen reader spot-check on critical path (if tooling available)
|
|
75
|
-
|
|
76
|
-
### 5. Report
|
|
77
|
-
|
|
78
|
-
List violations by severity: critical (blocks task) | serious | moderate | minor.
|
|
79
|
-
|
|
80
|
-
Recommend fix pattern, not only failure description.
|
|
81
|
-
|
|
82
|
-
### WCAG 2.2 AA Baseline
|
|
83
|
-
|
|
84
|
-
Audit these Success Criteria as the AA baseline. Levels are stated explicitly so AAA enhancements are never reported as AA failures:
|
|
85
|
-
- **3.3.8 Accessible Authentication (AA)**: Do not require cognitive tests (e.g., copy-paste blocks, security questions, puzzles) for authentication without a mechanism that does not require one or provides support.
|
|
86
|
-
- **3.3.7 Redundant Entry (A)**: Previously entered data in a single multi-step workflow must be auto-populated or selectable (except for security/re-verification inputs).
|
|
87
|
-
- **2.4.11 Focus Not Obscured (Minimum) (AA)**: The focused component must not be entirely hidden by author-created content (sticky headers, banners, floating widgets).
|
|
88
|
-
- **2.5.7 Dragging Movements (AA)**: Provide click or tap alternatives for dragging functions (e.g. sliders, canvas manipulation).
|
|
89
|
-
- **2.5.8 Target Size (Minimum) (AA)**: Pointer targets at least 24x24 CSS px unless a spacing, inline, or essential exception applies.
|
|
90
|
-
- **2.4.13 Focus Appearance (AAA)**: Focus indicator minimum area and 3:1 contrast. Report as an enhancement.
|
|
91
|
-
|
|
92
|
-
### Regulatory Baseline (verify before citing)
|
|
93
|
-
|
|
94
|
-
Regulatory obligations lag the latest WCAG release. State which version actually binds the project rather than assuming 2.2:
|
|
95
|
-
- **ISO/IEC 40500:2025** ratifies **WCAG 2.2** as an international standard.
|
|
96
|
-
- **EU European Accessibility Act** has applied since **28 June 2025**; the harmonised standard is **EN 301 549**, whose current version maps to **WCAG 2.1 AA**. The update to WCAG 2.2 is still pending, so do not cite the EAA as a WCAG 2.2 mandate.
|
|
97
|
-
- **US DOJ ADA Title II final rule** specifies **WCAG 2.1 AA** and binds state and local government entities only. An interim final rule issued **20 April 2026** extended the compliance deadline to **26 April 2027** (2028 for small entities). It is not a WCAG 2.2 driver.
|
|
98
|
-
|
|
99
|
-
Targeting 2.2 AA still satisfies all of the above, because 2.2 AA is a superset of 2.1 AA. Cite the binding regime accurately when justifying the bar.
|
|
100
|
-
|
|
101
|
-
### 2026: Cognitive Accessibility (COGA)
|
|
102
|
-
Design and review UIs with COGA guidelines to assist users with cognitive and learning disabilities:
|
|
103
|
-
- **Plain Language**: Avoid jargon, keep paragraphs short, and structure text logically.
|
|
104
|
-
- **Error Prevention**: Provide contextual help, input format suggestions, and clear error notifications with actionable recovery steps.
|
|
105
|
-
- **Memory Aids**: Display persistent labels, ensure context remains visible across steps, and do not rely on short-term memory (e.g. keep instructions visible during input).
|
|
106
|
-
|
|
107
|
-
### ARIA Annotations (progressive enhancement)
|
|
108
|
-
|
|
109
|
-
WAI-ARIA 1.3 is a Working Draft and these annotation roles are still marked proposed by implementers. Use them additively, never as the sole carrier of a name, role, or state:
|
|
110
|
-
- **suggestion**: Use to mark up proposed additions or deletions in collaborative text fields.
|
|
111
|
-
- **comment**: Use to identify user-submitted commentary, annotations, or discussion threads.
|
|
112
|
-
- **mark**: Use to indicate text marked or highlighted for relevance or reference.
|
|
113
|
-
- **aria-description**: Provide an explicit descriptive string to assistive devices without needing an ID reference.
|
|
114
|
-
- **aria-braillelabel** and **aria-brailleroledescription**: Provide braille-optimized label and role description text. These are the only two braille ARIA attributes that exist — there is no `aria-braillevaluedescription`.
|
|
115
|
-
|
|
116
|
-
## Checklist
|
|
117
|
-
|
|
118
|
-
- [ ] scope routes/components listed
|
|
119
|
-
- [ ] keyboard path completes primary user task
|
|
120
|
-
- [ ] focus order is logical and focus visible
|
|
121
|
-
- [ ] interactive elements have accessible names
|
|
122
|
-
- [ ] images and icons have alt text or are marked decorative
|
|
123
|
-
- [ ] color contrast checked for text and controls
|
|
124
|
-
- [ ] motion respects reduced-motion preference when applicable
|
|
125
|
-
- [ ] findings tied to files or components with severity
|
|
126
|
-
- [ ] WCAG 2.2 A/AA new SCs verified (Accessible Auth 3.3.8, Redundant Entry 3.3.7, Focus Not Obscured 2.4.11, Dragging Movements 2.5.7, Target Size 2.5.8)
|
|
127
|
-
- [ ] AAA items (2.4.13 Focus Appearance) reported as enhancements, not AA failures
|
|
128
|
-
- [ ] binding regulatory target confirmed (EN 301 549 / DOJ Title II map to WCAG 2.1 AA; ISO/IEC 40500:2025 maps to 2.2)
|
|
129
|
-
- [ ] Cognitive accessibility (COGA) principles (plain language, error prevention, memory aids) reviewed
|
|
130
|
-
- [ ] ARIA annotation roles (suggestion, comment, mark) and attributes (aria-description, aria-braillelabel, aria-brailleroledescription) verified as additive only
|
|
131
|
-
|
|
132
|
-
## Failure Modes
|
|
133
|
-
|
|
134
|
-
- **A11y regression undetected**: a UI change introduces a contrast or focus issue. **Mitigation:** run axe-core on every component; surface findings as blocking; require human review for components that fail.
|
|
135
|
-
- **WCAG version drift**: the review references a deprecated WCAG criterion. **Mitigation:** validate every reference against the current WCAG version; surface the drift in the review.
|
|
136
|
-
- **Screen reader not tested**: a component passes automated checks but fails screen reader. **Mitigation:** require a manual screen reader pass on critical components; surface the missing test in the review.
|
|
137
|
-
- **Color-only signal**: a component conveys state by color alone. **Mitigation:** require an alternative signal (icon, text, ARIA); reject components with color-only state.
|
|
138
|
-
|
|
139
|
-
## Output Contracts
|
|
140
|
-
|
|
141
|
-
When the a11y review produces a structured handoff (CI gate, pre-merge
|
|
142
|
-
audit, or multi-role delivery), emit:
|
|
143
|
-
|
|
144
|
-
- **`contracts/schemas/code-review-finding.json`** adapted for a11y: each finding gets a `severity`, an `owner` (Frontend or QA), a `category` (perceivable, operable, understandable, robust), and the WCAG criterion.
|
|
145
|
-
- For human-readable reports, the markdown findings table already documented is the canonical format.
|
|
146
|
-
|
|
147
|
-
Skip emission for a single-component a11y walkthrough that does not cross a role boundary.
|
|
148
|
-
|
|
149
|
-
## Security Guardrails (OWASP ASI)
|
|
150
|
-
|
|
151
|
-
- **ASI07 Inter-Agent Communication**: a11y findings are consumed by Frontend and QA; emit a structured contract so each role can validate.
|
|
152
|
-
- **ASI09 Human-Agent Trust Exploitation**: do not present a component as "WCAG-compliant" without the actual scan output; surface the residual risk honestly.
|
|
153
|
-
|
|
154
|
-
## Related Skills
|
|
155
|
-
|
|
156
|
-
- **design-ux-flow**: Add a11y notes to specs when gaps found early
|
|
157
|
-
- **design-review**: Visual hierarchy and pattern consistency
|
|
158
|
-
- **frontend-testing**: Automate regression tests for a11y fixes
|
|
159
|
-
- **review-code**: Broader code review including non-a11y risks
|
|
160
|
-
- **write-tests**: Add axe or similar checks when repo supports them
|
|
1
|
+
---
|
|
2
|
+
name: accessibility-review
|
|
3
|
+
description: Audit UI for keyboard navigation, focus order, screen-reader labels, color contrast, motion preferences, and ARIA correctness against WCAG 2.2 criteria (including Focus Not Obscured 2.4.11, Target Size 2.5.8, Accessible Authentication 3.3.8, Dragging Movements 2.5.7, Redundant Entry 3.3.7). Use automated CI gates via @axe-core/playwright for regression detection alongside manual screen-reader testing. Use when validating user-facing flows before release, after design specs land, or when fixing reported a11y defects.
|
|
4
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Accessibility Review
|
|
8
|
+
|
|
9
|
+
Use this skill with **QA Engineer**, **Frontend Developer**, or **UI/UX Designer** when accessibility conformance must be verified explicitly.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- validating user-facing flows before release
|
|
14
|
+
- after design specs land
|
|
15
|
+
- fixing reported a11y defects
|
|
16
|
+
- running @axe-core/playwright gates + screen-reader checks
|
|
17
|
+
|
|
18
|
+
## Core Rules
|
|
19
|
+
|
|
20
|
+
- target WCAG 2.2 Level AA as the default baseline unless the repo documents a different bar; WCAG 2.2 AA is a superset of 2.1 AA, so a 2.1 AA obligation is satisfied by meeting 2.2 AA
|
|
21
|
+
- confirm which conformance target actually binds the project before reporting: regulatory regimes lag the latest WCAG release (see the regulatory note below)
|
|
22
|
+
- **CI gate mandate**: all PR builds must run `new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag22a', 'wcag22aa']).analyze()` and fail CI if `violations.length > 0` — automated axe scans catch ~30–50% of defects; pair with manual keyboard-only and screen reader testing
|
|
23
|
+
- use WAI-ARIA Authoring Practices Guide (APG) 2.2 keyboard interaction patterns as the authoritative reference for widget types (combobox, dialog, menu, tabs, tree) — do not invent ad-hoc keyboard patterns
|
|
24
|
+
- audit the Success Criteria added in WCAG 2.2 at Level A/AA:
|
|
25
|
+
- **3.3.8 Accessible Authentication (AA)**: Ensure cognitive function tests (such as memorizing passwords/usernames or solving puzzles) are not required for login processes without alternatives. (3.3.9 is the AAA variant — out of scope for an AA baseline.)
|
|
26
|
+
- **3.3.7 Redundant Entry (A)**: Avoid requiring users to re-enter information previously entered in the same process; instead, auto-populate or provide selectable choices.
|
|
27
|
+
- **2.4.11 Focus Not Obscured (Minimum) (AA)**: Verify the focused component is not entirely hidden by author-created content such as sticky headers, cookie banners, or floating chat widgets. (2.4.12 Focus Not Obscured (Enhanced) is AAA.)
|
|
28
|
+
- **2.4.13 Focus Appearance (AAA)**: Focus indicator minimum area and 3:1 contrast against adjacent colors. This is **Level AAA** — report it as an enhancement, not an AA failure.
|
|
29
|
+
- **2.5.7 Dragging Movements (AA)**: Provide a single-pointer alternative (e.g. click/tap controls) for any functionality requiring dragging.
|
|
30
|
+
- **2.5.8 Target Size (Minimum) (AA)**: Pointer targets are at least 24x24 CSS pixels, or meet one of the spacing/inline/essential exceptions.
|
|
31
|
+
- evaluate Cognitive Accessibility (COGA) requirements:
|
|
32
|
+
- **Plain Language**: Keep instructions and UI labels simple and concise.
|
|
33
|
+
- **Error Prevention**: Provide automatic suggestions, warnings, and clear instructions before submission.
|
|
34
|
+
- **Memory Aids**: Avoid placeholder-only labels; maintain persistent context and visual cues.
|
|
35
|
+
- audit ARIA annotation roles and attributes on dynamic elements, treating them as progressive enhancement (WAI-ARIA 1.3 is still a Working Draft and support is uneven):
|
|
36
|
+
- Use `suggestion`, `comment`, and `mark` roles for editorial markup and user feedback panels.
|
|
37
|
+
- Use `aria-description` for a detailed text description, and `aria-braillelabel` / `aria-brailleroledescription` for braille readers.
|
|
38
|
+
- Never rely on an annotation role as the only accessible name or state; keep a 1.2-compatible fallback.
|
|
39
|
+
- test keyboard-only paths for every primary task in scope; `Tab`, `Shift+Tab`, `Enter`, `Space`, `Escape` must be 100% operable with visible, non-obscured focus indicators (3:1 contrast ratio minimum)
|
|
40
|
+
- verify visible focus indicators and logical tab order
|
|
41
|
+
- ensure images, icons, and controls have accessible names (text or aria-label)
|
|
42
|
+
- check color contrast for text and interactive states; do not rely on color alone
|
|
43
|
+
- respect `prefers-reduced-motion` when animations are present
|
|
44
|
+
- cite concrete selectors, routes, or component names for every finding
|
|
45
|
+
- route visual/IA issues without a11y impact to `design-review`; route logic bugs to `review-code`
|
|
46
|
+
|
|
47
|
+
## Suggested Process
|
|
48
|
+
|
|
49
|
+
### 1. Define Scope
|
|
50
|
+
|
|
51
|
+
- routes, components, or ux-flow-spec screens in scope
|
|
52
|
+
- supported browsers and assistive tech assumptions from repo docs
|
|
53
|
+
- whether design specs already document a11y behavior
|
|
54
|
+
|
|
55
|
+
### 2. Static Spec Review
|
|
56
|
+
|
|
57
|
+
When specs exist:
|
|
58
|
+
|
|
59
|
+
- copy_per_state includes announcements for dynamic updates
|
|
60
|
+
- focus trap and escape behavior documented for modals
|
|
61
|
+
- error messages associated with fields (aria-describedby pattern)
|
|
62
|
+
|
|
63
|
+
### 3. Implementation Review
|
|
64
|
+
|
|
65
|
+
- semantic HTML landmarks (main, nav, heading order)
|
|
66
|
+
- form labels, grouping, and error association
|
|
67
|
+
- custom widgets: roles, states, keyboard handlers
|
|
68
|
+
- live regions for toasts and async status
|
|
69
|
+
|
|
70
|
+
### 4. Manual Checks
|
|
71
|
+
|
|
72
|
+
- tab through primary flow without mouse
|
|
73
|
+
- activate controls with Enter/Space where expected
|
|
74
|
+
- screen reader spot-check on critical path (if tooling available)
|
|
75
|
+
|
|
76
|
+
### 5. Report
|
|
77
|
+
|
|
78
|
+
List violations by severity: critical (blocks task) | serious | moderate | minor.
|
|
79
|
+
|
|
80
|
+
Recommend fix pattern, not only failure description.
|
|
81
|
+
|
|
82
|
+
### WCAG 2.2 AA Baseline
|
|
83
|
+
|
|
84
|
+
Audit these Success Criteria as the AA baseline. Levels are stated explicitly so AAA enhancements are never reported as AA failures:
|
|
85
|
+
- **3.3.8 Accessible Authentication (AA)**: Do not require cognitive tests (e.g., copy-paste blocks, security questions, puzzles) for authentication without a mechanism that does not require one or provides support.
|
|
86
|
+
- **3.3.7 Redundant Entry (A)**: Previously entered data in a single multi-step workflow must be auto-populated or selectable (except for security/re-verification inputs).
|
|
87
|
+
- **2.4.11 Focus Not Obscured (Minimum) (AA)**: The focused component must not be entirely hidden by author-created content (sticky headers, banners, floating widgets).
|
|
88
|
+
- **2.5.7 Dragging Movements (AA)**: Provide click or tap alternatives for dragging functions (e.g. sliders, canvas manipulation).
|
|
89
|
+
- **2.5.8 Target Size (Minimum) (AA)**: Pointer targets at least 24x24 CSS px unless a spacing, inline, or essential exception applies.
|
|
90
|
+
- **2.4.13 Focus Appearance (AAA)**: Focus indicator minimum area and 3:1 contrast. Report as an enhancement.
|
|
91
|
+
|
|
92
|
+
### Regulatory Baseline (verify before citing)
|
|
93
|
+
|
|
94
|
+
Regulatory obligations lag the latest WCAG release. State which version actually binds the project rather than assuming 2.2:
|
|
95
|
+
- **ISO/IEC 40500:2025** ratifies **WCAG 2.2** as an international standard.
|
|
96
|
+
- **EU European Accessibility Act** has applied since **28 June 2025**; the harmonised standard is **EN 301 549**, whose current version maps to **WCAG 2.1 AA**. The update to WCAG 2.2 is still pending, so do not cite the EAA as a WCAG 2.2 mandate.
|
|
97
|
+
- **US DOJ ADA Title II final rule** specifies **WCAG 2.1 AA** and binds state and local government entities only. An interim final rule issued **20 April 2026** extended the compliance deadline to **26 April 2027** (2028 for small entities). It is not a WCAG 2.2 driver.
|
|
98
|
+
|
|
99
|
+
Targeting 2.2 AA still satisfies all of the above, because 2.2 AA is a superset of 2.1 AA. Cite the binding regime accurately when justifying the bar.
|
|
100
|
+
|
|
101
|
+
### 2026: Cognitive Accessibility (COGA)
|
|
102
|
+
Design and review UIs with COGA guidelines to assist users with cognitive and learning disabilities:
|
|
103
|
+
- **Plain Language**: Avoid jargon, keep paragraphs short, and structure text logically.
|
|
104
|
+
- **Error Prevention**: Provide contextual help, input format suggestions, and clear error notifications with actionable recovery steps.
|
|
105
|
+
- **Memory Aids**: Display persistent labels, ensure context remains visible across steps, and do not rely on short-term memory (e.g. keep instructions visible during input).
|
|
106
|
+
|
|
107
|
+
### ARIA Annotations (progressive enhancement)
|
|
108
|
+
|
|
109
|
+
WAI-ARIA 1.3 is a Working Draft and these annotation roles are still marked proposed by implementers. Use them additively, never as the sole carrier of a name, role, or state:
|
|
110
|
+
- **suggestion**: Use to mark up proposed additions or deletions in collaborative text fields.
|
|
111
|
+
- **comment**: Use to identify user-submitted commentary, annotations, or discussion threads.
|
|
112
|
+
- **mark**: Use to indicate text marked or highlighted for relevance or reference.
|
|
113
|
+
- **aria-description**: Provide an explicit descriptive string to assistive devices without needing an ID reference.
|
|
114
|
+
- **aria-braillelabel** and **aria-brailleroledescription**: Provide braille-optimized label and role description text. These are the only two braille ARIA attributes that exist — there is no `aria-braillevaluedescription`.
|
|
115
|
+
|
|
116
|
+
## Checklist
|
|
117
|
+
|
|
118
|
+
- [ ] scope routes/components listed
|
|
119
|
+
- [ ] keyboard path completes primary user task
|
|
120
|
+
- [ ] focus order is logical and focus visible
|
|
121
|
+
- [ ] interactive elements have accessible names
|
|
122
|
+
- [ ] images and icons have alt text or are marked decorative
|
|
123
|
+
- [ ] color contrast checked for text and controls
|
|
124
|
+
- [ ] motion respects reduced-motion preference when applicable
|
|
125
|
+
- [ ] findings tied to files or components with severity
|
|
126
|
+
- [ ] WCAG 2.2 A/AA new SCs verified (Accessible Auth 3.3.8, Redundant Entry 3.3.7, Focus Not Obscured 2.4.11, Dragging Movements 2.5.7, Target Size 2.5.8)
|
|
127
|
+
- [ ] AAA items (2.4.13 Focus Appearance) reported as enhancements, not AA failures
|
|
128
|
+
- [ ] binding regulatory target confirmed (EN 301 549 / DOJ Title II map to WCAG 2.1 AA; ISO/IEC 40500:2025 maps to 2.2)
|
|
129
|
+
- [ ] Cognitive accessibility (COGA) principles (plain language, error prevention, memory aids) reviewed
|
|
130
|
+
- [ ] ARIA annotation roles (suggestion, comment, mark) and attributes (aria-description, aria-braillelabel, aria-brailleroledescription) verified as additive only
|
|
131
|
+
|
|
132
|
+
## Failure Modes
|
|
133
|
+
|
|
134
|
+
- **A11y regression undetected**: a UI change introduces a contrast or focus issue. **Mitigation:** run axe-core on every component; surface findings as blocking; require human review for components that fail.
|
|
135
|
+
- **WCAG version drift**: the review references a deprecated WCAG criterion. **Mitigation:** validate every reference against the current WCAG version; surface the drift in the review.
|
|
136
|
+
- **Screen reader not tested**: a component passes automated checks but fails screen reader. **Mitigation:** require a manual screen reader pass on critical components; surface the missing test in the review.
|
|
137
|
+
- **Color-only signal**: a component conveys state by color alone. **Mitigation:** require an alternative signal (icon, text, ARIA); reject components with color-only state.
|
|
138
|
+
|
|
139
|
+
## Output Contracts
|
|
140
|
+
|
|
141
|
+
When the a11y review produces a structured handoff (CI gate, pre-merge
|
|
142
|
+
audit, or multi-role delivery), emit:
|
|
143
|
+
|
|
144
|
+
- **`contracts/schemas/code-review-finding.json`** adapted for a11y: each finding gets a `severity`, an `owner` (Frontend or QA), a `category` (perceivable, operable, understandable, robust), and the WCAG criterion.
|
|
145
|
+
- For human-readable reports, the markdown findings table already documented is the canonical format.
|
|
146
|
+
|
|
147
|
+
Skip emission for a single-component a11y walkthrough that does not cross a role boundary.
|
|
148
|
+
|
|
149
|
+
## Security Guardrails (OWASP ASI)
|
|
150
|
+
|
|
151
|
+
- **ASI07 Inter-Agent Communication**: a11y findings are consumed by Frontend and QA; emit a structured contract so each role can validate.
|
|
152
|
+
- **ASI09 Human-Agent Trust Exploitation**: do not present a component as "WCAG-compliant" without the actual scan output; surface the residual risk honestly.
|
|
153
|
+
|
|
154
|
+
## Related Skills
|
|
155
|
+
|
|
156
|
+
- **design-ux-flow**: Add a11y notes to specs when gaps found early
|
|
157
|
+
- **design-review**: Visual hierarchy and pattern consistency
|
|
158
|
+
- **frontend-testing**: Automate regression tests for a11y fixes
|
|
159
|
+
- **review-code**: Broader code review including non-a11y risks
|
|
160
|
+
- **write-tests**: Add axe or similar checks when repo supports them
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: design-review
|
|
3
3
|
description: Review UX flows, visual hierarchy, interaction patterns, and design-system alignment against specs and user goals. Use when validating ui-component-spec or ux-flow-spec before implementation, or critiquing marketing/product UI without reviewing application code.
|
|
4
|
+
version: 2.0.0
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -21,7 +22,7 @@ Use this skill with **UI/UX Designer** or **Reviewer** when the deliverable is d
|
|
|
21
22
|
- consume `ux-flow-spec.json` and `ui-component-spec.json` when present; do not invent missing states
|
|
22
23
|
- separate blocking UX defects from polish or preference; classify findings as blocking | should-fix | suggestion
|
|
23
24
|
- every screen spec must define all 5 critical UI states: Empty, Loading/Skeleton, Populated, Error (with actionable recovery), and Unauthorized/Permission — specs missing any of these states are incomplete
|
|
24
|
-
- verify design-system tokens — all styles must reference tokens; zero hardcoded hex colors, magic spacing numbers, or raw typography values are acceptable (
|
|
25
|
+
- verify design-system tokens — all styles must reference tokens; zero hardcoded hex colors, magic spacing numbers, or raw typography values are acceptable (DTCG Design Tokens Format Module 2025.10, `$value`/`$type` syntax)
|
|
25
26
|
- for AI-generated UI (v0.dev, Galileo, Builder.io, Copilot): run token conformance check (no hardcoded values), axe-core accessibility scan, and style namespace pollution check before development handoff
|
|
26
27
|
- require interactive Figma prototype links for flows with more than 2 screens before Frontend implementation begins
|
|
27
28
|
- do not implement UI; emit findings for Frontend or UI/UX to fix
|
|
@@ -73,6 +74,13 @@ Note spec gaps (missing state, missing api_field, ambiguous transition).
|
|
|
73
74
|
- Conduct automated accessibility checks on the generated component outputs before development handoff.
|
|
74
75
|
- Verify that generated component variations adhere strictly to the repository's styling conventions and do not pollute global CSS namespaces.
|
|
75
76
|
|
|
77
|
+
### 2026: AI-Assisted Usability Research Review
|
|
78
|
+
|
|
79
|
+
- AI-moderated interviews (real participants, AI asks unscripted follow-ups at scale) are admissible usability evidence; record tool, participant count, and method in the review notes.
|
|
80
|
+
- **Synthetic-user validity lock**: results from simulated (synthetic) users may inform hypothesis generation only — never accept synthetic-user findings as evidence for blocking design decisions or compliance sign-off.
|
|
81
|
+
- Prefer lightweight validated instruments for quantitative signals: UMUX-Lite or single-ease-question (SEQ) alongside task success rates; do not invent custom scores when a validated instrument exists.
|
|
82
|
+
- Route deep research synthesis through the Researcher role (`research-report.json`); design review consumes it, it does not replace it.
|
|
83
|
+
|
|
76
84
|
### 2026: Dark Mode Review Checklist
|
|
77
85
|
- Check semantic design tokens to ensure appropriate color contrast under dark mode.
|
|
78
86
|
- Test UI components with OS-level dark mode forced settings to verify text readability and asset/image visibility.
|
|
@@ -100,6 +108,8 @@ Note spec gaps (missing state, missing api_field, ambiguous transition).
|
|
|
100
108
|
- [ ] loading, empty, error, and permission paths reviewed
|
|
101
109
|
- [ ] design-system or overlay tokens applied consistently
|
|
102
110
|
- [ ] findings classified with severity and owner (design vs engineering)
|
|
111
|
+
- [ ] usability evidence source identified (AI-moderated, human-moderated, or synthetic-hypothesis-only)
|
|
112
|
+
- [ ] dark-pattern compliance review present when flow involves consent, cancellation, or upsell surfaces
|
|
103
113
|
- [ ] no code review scope creep into style-only code nitpicks
|
|
104
114
|
- [ ] handoff states whether Frontend may start implementation
|
|
105
115
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: design-ux-flow
|
|
3
3
|
description: Design or refine a UX flow by defining user goals, preserved behavior, screen states, interaction rules, edge cases, and adjacent flow impact. Use when a feature, bug fix, or behavior change needs a UX/UI brief that frontend and QA can implement and validate reliably.
|
|
4
|
+
version: 2.0.0
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -28,7 +29,9 @@ Use this skill with the **UI/UX Designer** role when user-facing behavior must b
|
|
|
28
29
|
- do not implement production UI — hand off specs to Frontend Developer
|
|
29
30
|
- apply progressive disclosure to hide secondary options until primary actions are taken
|
|
30
31
|
- design agent UX flows to include delegation confirmations, progress indicators, and recoverable interrupts — users must always have a cancel/undo path for agent-initiated state changes
|
|
31
|
-
- use Figma Variables (linked to
|
|
32
|
+
- use Figma Variables (linked to DTCG Design Tokens Format Module 2025.10 tokens via Tokens Studio, `$value`/`$type` syntax) to prototype dynamic, real-world data states including empty states and error messages; require interactive prototype for any flow with more than 2 screens
|
|
33
|
+
- design dual-audience operability when AI agents operate the UI alongside human users: declare `agent_operability` (agent entry points, machine-readable affordances, agent courtesy rules) in ux-flow-spec.json (Agents-as-Users, NN/g 2026)
|
|
34
|
+
- run a dark-pattern compliance review on every flow: check nagging, obstruction, sneaking, forced action, confirmshaming, and trick questions against DSA Art 25/26 and FTC standards; record findings in ux-flow-spec.json `dark_pattern_review`
|
|
32
35
|
|
|
33
36
|
|
|
34
37
|
## Deliverable Decision
|
|
@@ -82,6 +85,13 @@ Publish UX handoff manifest (flow path + component paths) for Frontend and QA.
|
|
|
82
85
|
- Create prototypes representing long names, empty states, and validation error messages before engineering handoff.
|
|
83
86
|
- Link state transitions to interactive component parameters to test UX responsiveness.
|
|
84
87
|
|
|
88
|
+
### 2026: Agents-as-Users (Dual-Audience Operability)
|
|
89
|
+
|
|
90
|
+
- Treat AI agents as a second user class when they operate the product UI: every agent-operable action needs a semantic label, an ARIA role, and a machine-actionable endpoint (WebMCP where applicable).
|
|
91
|
+
- Declare `agent_operability.agent_entry_points` in ux-flow-spec.json so Frontend and QA can test both audiences.
|
|
92
|
+
- Specify agent courtesy rules (rate limits, idempotency keys, feedback surfaces) so agent traffic never degrades human UX.
|
|
93
|
+
- Keep approval gates and undo for agent-initiated state changes; agents act on behalf of users, they do not inherit blanket consent.
|
|
94
|
+
|
|
85
95
|
### 2026: Progressive Disclosure UX Design
|
|
86
96
|
|
|
87
97
|
- Keep the initial view clean by showing only the obvious primary action.
|
|
@@ -111,6 +121,8 @@ Markdown brief (see `core/roles/ui-ux-designer.md` template) **plus** JSON contr
|
|
|
111
121
|
- [ ] handoff manifest complete
|
|
112
122
|
- [ ] brief inference executed (1-line Design Read stated, Three Dials declared, anti-slop rules checked)
|
|
113
123
|
- [ ] agent UX flow patterns (delegation confirmations, progress indicators, cancelability) specified
|
|
124
|
+
- [ ] agents-as-users operability declared when agents operate the UI (agent_operability in ux-flow-spec.json)
|
|
125
|
+
- [ ] dark-pattern compliance review recorded (dark_pattern_review in ux-flow-spec.json)
|
|
114
126
|
- [ ] Figma variables used to prototype dynamic data states (empty states, errors, long values)
|
|
115
127
|
- [ ] progressive disclosure applied to separate primary actions from advanced configuration options
|
|
116
128
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: performance-profiling
|
|
3
3
|
description: Investigate latency, throughput, memory, and contention issues by baselining, profiling hot paths, and validating improvements with repo-local tools. Use when performance, capacity, or resource usage needs evidence-based diagnosis.
|
|
4
|
+
version: 2.0.0
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -20,13 +21,14 @@ Use this skill when investigating slow paths, memory growth, concurrency bottlen
|
|
|
20
21
|
## Core Rules
|
|
21
22
|
|
|
22
23
|
- baseline before optimizing — no optimization may be merged without before/after flame graphs or benchmark evidence
|
|
23
|
-
- profile the real hot path, not an assumed one; use eBPF zero-instrumentation profiling (
|
|
24
|
+
- profile the real hot path, not an assumed one; use eBPF zero-instrumentation profiling (OTel Profiles — public Alpha since 2026-03 — with Pyroscope or Parca backends) for always-on continuous profiling alongside traces
|
|
24
25
|
- prefer repo-local and language-native tooling first; escalate to eBPF agents when system-wide profiling across runtimes is needed
|
|
25
26
|
- do not profile production without explicit approval and a safety plan — continuous profilers must stay under 1.5% CPU overhead with bounded memory limits
|
|
26
27
|
- validate improvements with repeatable measurements, not intuition — report p50/p95/p99 before and after, not mean alone
|
|
27
28
|
- correlate profiling data with distributed traces via `trace_id` using OTel Profiles OTLP format to avoid vendor lock-in
|
|
28
29
|
- for AI inference paths: measure and baseline model latency p50/p95/p99 separately from service latency — LLM calls are often the dominant latency source
|
|
29
30
|
- for GPU services (vLLM, Ollama, ONNX Runtime): profile GPU utilization, VRAM usage, KV cache hit rate, and time-to-first-token (TTFT) — use `nvitop` or PyTorch Profiler
|
|
31
|
+
- when speculative decoding is enabled (EAGLE-3 / MTP drafters): profile draft acceptance rate — acceptance below ~70% makes speculative decoding a net throughput loss; report acceptance alongside TTFT/ITL
|
|
30
32
|
- for batch inference services: profile queue depth and batch fill efficiency — under-batching wastes GPU; over-batching increases tail latency
|
|
31
33
|
- for RAG / semantic search: measure embedding cache hit rate — redundant embedding calls are the most common preventable AI cost spike
|
|
32
34
|
- report AI inference cost per request (\$ per call) alongside latency so optimization decisions weigh both UX and cost impact
|