@pugi/cli 1.0.0-alpha.25 → 1.0.0-alpha.250
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/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +39 -0
- package/bin/pugi +19 -5
- package/models.json +1 -0
- package/package.json +22 -6
- package/release.json +8 -0
- package/skills/a11y/SKILL.md +27 -0
- package/skills/ab-test-analysis/SKILL.md +15 -0
- package/skills/ai-sdk/SKILL.md +27 -0
- package/skills/api-integration/SKILL.md +27 -0
- package/skills/architecture-review/SKILL.md +19 -0
- package/skills/brand-voice/SKILL.md +27 -0
- package/skills/ci-cd-pipeline/SKILL.md +15 -0
- package/skills/code-review/SKILL.md +27 -0
- package/skills/competitor-analysis/SKILL.md +27 -0
- package/skills/content-design/SKILL.md +35 -0
- package/skills/css-tailwind/SKILL.md +39 -0
- package/skills/css-tailwind/quirks.md +86 -0
- package/skills/db-vector/SKILL.md +27 -0
- package/skills/design-radix/SKILL.md +35 -0
- package/skills/design-system/SKILL.md +35 -0
- package/skills/detecting-data-anomalies/SKILL.md +15 -0
- package/skills/docker-deploy/SKILL.md +15 -0
- package/skills/edge-case-finder/SKILL.md +27 -0
- package/skills/fonts/SKILL.md +34 -0
- package/skills/framework-grammy/SKILL.md +27 -0
- package/skills/framework-mastra/SKILL.md +27 -0
- package/skills/framework-nestjs/SKILL.md +27 -0
- package/skills/framework-prisma/SKILL.md +27 -0
- package/skills/funnel-optimization/SKILL.md +19 -0
- package/skills/ha-prototype-web/LICENSE-APACHE-2.0 +201 -0
- package/skills/ha-prototype-web/NOTICE.md +126 -0
- package/skills/ha-prototype-web/SKILL.md +25 -0
- package/skills/icons/SKILL.md +34 -0
- package/skills/landing-templates/SKILL.md +35 -0
- package/skills/market-research/SKILL.md +27 -0
- package/skills/metrics-dashboard/SKILL.md +19 -0
- package/skills/monitoring-setup/SKILL.md +15 -0
- package/skills/motion/SKILL.md +27 -0
- package/skills/nestjs-api/SKILL.md +38 -0
- package/skills/nestjs-api/quirks.md +36 -0
- package/skills/nextjs-page/SKILL.md +27 -0
- package/skills/od-blog-post/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-blog-post/NOTICE.md +126 -0
- package/skills/od-blog-post/SKILL.md +81 -0
- package/skills/od-contact-widget/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-contact-widget/NOTICE.md +126 -0
- package/skills/od-contact-widget/SKILL.md +132 -0
- package/skills/od-craft/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-craft/NOTICE.md +126 -0
- package/skills/od-craft/SKILL.md +58 -0
- package/skills/od-craft/references/README.md +108 -0
- package/skills/od-craft/references/accessibility-baseline.md +203 -0
- package/skills/od-craft/references/animation-discipline.md +156 -0
- package/skills/od-craft/references/anti-ai-slop.md +86 -0
- package/skills/od-craft/references/color.md +90 -0
- package/skills/od-craft/references/form-validation.md +223 -0
- package/skills/od-craft/references/laws-of-ux.md +298 -0
- package/skills/od-craft/references/rtl-and-bidi.md +188 -0
- package/skills/od-craft/references/state-coverage.md +136 -0
- package/skills/od-craft/references/typography-hierarchy-editorial.md +184 -0
- package/skills/od-craft/references/typography-hierarchy.md +167 -0
- package/skills/od-craft/references/typography.md +124 -0
- package/skills/od-critique/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-critique/NOTICE.md +126 -0
- package/skills/od-critique/SKILL.md +259 -0
- package/skills/od-dashboard/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-dashboard/NOTICE.md +126 -0
- package/skills/od-dashboard/SKILL.md +77 -0
- package/skills/od-design-brief/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-design-brief/NOTICE.md +126 -0
- package/skills/od-design-brief/SKILL.md +260 -0
- package/skills/od-docs-page/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-docs-page/NOTICE.md +126 -0
- package/skills/od-docs-page/SKILL.md +81 -0
- package/skills/od-email-marketing/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-email-marketing/NOTICE.md +126 -0
- package/skills/od-email-marketing/SKILL.md +85 -0
- package/skills/od-eng-runbook/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-eng-runbook/NOTICE.md +126 -0
- package/skills/od-eng-runbook/SKILL.md +52 -0
- package/skills/od-faq-page/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-faq-page/NOTICE.md +126 -0
- package/skills/od-faq-page/SKILL.md +113 -0
- package/skills/od-finance-report/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-finance-report/NOTICE.md +126 -0
- package/skills/od-finance-report/SKILL.md +62 -0
- package/skills/od-frontend-design/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-frontend-design/LICENSE.txt +177 -0
- package/skills/od-frontend-design/NOTICE.md +126 -0
- package/skills/od-frontend-design/SKILL.md +86 -0
- package/skills/od-hr-onboarding/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-hr-onboarding/NOTICE.md +126 -0
- package/skills/od-hr-onboarding/SKILL.md +53 -0
- package/skills/od-invoice/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-invoice/NOTICE.md +126 -0
- package/skills/od-invoice/SKILL.md +49 -0
- package/skills/od-kanban-board/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-kanban-board/NOTICE.md +126 -0
- package/skills/od-kanban-board/SKILL.md +51 -0
- package/skills/od-login-flow/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-login-flow/NOTICE.md +126 -0
- package/skills/od-login-flow/SKILL.md +49 -0
- package/skills/od-login-flow/references/checklist.md +19 -0
- package/skills/od-magazine-poster/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-magazine-poster/NOTICE.md +126 -0
- package/skills/od-magazine-poster/SKILL.md +90 -0
- package/skills/od-meeting-notes/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-meeting-notes/NOTICE.md +126 -0
- package/skills/od-meeting-notes/SKILL.md +48 -0
- package/skills/od-mobile-app/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-mobile-app/NOTICE.md +126 -0
- package/skills/od-mobile-app/SKILL.md +103 -0
- package/skills/od-mobile-app/assets/template.html +442 -0
- package/skills/od-mobile-app/references/checklist.md +46 -0
- package/skills/od-mobile-app/references/layouts.md +312 -0
- package/skills/od-mobile-onboarding/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-mobile-onboarding/NOTICE.md +126 -0
- package/skills/od-mobile-onboarding/SKILL.md +54 -0
- package/skills/od-pm-spec/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-pm-spec/NOTICE.md +126 -0
- package/skills/od-pm-spec/SKILL.md +53 -0
- package/skills/od-pricing-page/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-pricing-page/NOTICE.md +126 -0
- package/skills/od-pricing-page/SKILL.md +80 -0
- package/skills/od-redesign-skill/LICENSE +21 -0
- package/skills/od-redesign-skill/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-redesign-skill/NOTICE.md +126 -0
- package/skills/od-redesign-skill/SKILL.md +205 -0
- package/skills/od-reference-design-contract/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-reference-design-contract/NOTICE.md +126 -0
- package/skills/od-reference-design-contract/SKILL.md +131 -0
- package/skills/od-reference-design-contract/references/checklist.md +26 -0
- package/skills/od-saas-landing/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-saas-landing/NOTICE.md +126 -0
- package/skills/od-saas-landing/SKILL.md +125 -0
- package/skills/od-social-carousel/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-social-carousel/NOTICE.md +126 -0
- package/skills/od-social-carousel/SKILL.md +92 -0
- package/skills/od-team-okrs/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-team-okrs/NOTICE.md +126 -0
- package/skills/od-team-okrs/SKILL.md +48 -0
- package/skills/od-waitlist-page/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-waitlist-page/NOTICE.md +126 -0
- package/skills/od-waitlist-page/SKILL.md +229 -0
- package/skills/od-waitlist-page/assets/template.html +457 -0
- package/skills/od-waitlist-page/references/checklist.md +42 -0
- package/skills/od-web-design-guidelines/LICENSE +21 -0
- package/skills/od-web-design-guidelines/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-web-design-guidelines/NOTICE.md +126 -0
- package/skills/od-web-design-guidelines/SKILL.md +66 -0
- package/skills/od-web-design-guidelines/references/guidelines.md +133 -0
- package/skills/od-web-prototype/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-web-prototype/NOTICE.md +126 -0
- package/skills/od-web-prototype/SKILL.md +102 -0
- package/skills/od-web-prototype/assets/template.html +348 -0
- package/skills/od-web-prototype/references/checklist.md +47 -0
- package/skills/od-web-prototype/references/layouts.md +247 -0
- package/skills/od-web-prototype-taste-brutalist/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-web-prototype-taste-brutalist/LICENSE-MIT-Leonxlnx +21 -0
- package/skills/od-web-prototype-taste-brutalist/NOTICE.md +126 -0
- package/skills/od-web-prototype-taste-brutalist/SKILL.md +64 -0
- package/skills/od-web-prototype-taste-editorial/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-web-prototype-taste-editorial/LICENSE-MIT-Leonxlnx +21 -0
- package/skills/od-web-prototype-taste-editorial/NOTICE.md +126 -0
- package/skills/od-web-prototype-taste-editorial/SKILL.md +61 -0
- package/skills/od-web-prototype-taste-soft/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-web-prototype-taste-soft/LICENSE-MIT-Leonxlnx +21 -0
- package/skills/od-web-prototype-taste-soft/NOTICE.md +126 -0
- package/skills/od-web-prototype-taste-soft/SKILL.md +64 -0
- package/skills/od-webgl-experience/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-webgl-experience/NOTICE.md +126 -0
- package/skills/od-webgl-experience/SKILL.md +81 -0
- package/skills/od-wireframe-annotated/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-wireframe-annotated/NOTICE.md +126 -0
- package/skills/od-wireframe-annotated/SKILL.md +90 -0
- package/skills/od-wireframe-greybox/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-wireframe-greybox/NOTICE.md +126 -0
- package/skills/od-wireframe-greybox/SKILL.md +90 -0
- package/skills/od-wireframe-mobile-flow/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-wireframe-mobile-flow/NOTICE.md +126 -0
- package/skills/od-wireframe-mobile-flow/SKILL.md +96 -0
- package/skills/od-wireframe-sketch/LICENSE-APACHE-2.0 +201 -0
- package/skills/od-wireframe-sketch/NOTICE.md +126 -0
- package/skills/od-wireframe-sketch/SKILL.md +98 -0
- package/skills/orchestrating-multi-agent-systems/SKILL.md +19 -0
- package/skills/preprocessing-data/SKILL.md +15 -0
- package/skills/project-memory-keeper/SKILL.md +19 -0
- package/skills/public-apis/SKILL.md +27 -0
- package/skills/pugi-patterns/SKILL.md +19 -0
- package/skills/react-component/SKILL.md +27 -0
- package/skills/sprint-planning/SKILL.md +19 -0
- package/skills/stack-selection/SKILL.md +15 -0
- package/skills/standup-summary/SKILL.md +15 -0
- package/skills/task-decomposition/SKILL.md +19 -0
- package/skills/team-routing/SKILL.md +15 -0
- package/skills/tech-survey/SKILL.md +15 -0
- package/skills/test-plan/SKILL.md +15 -0
- package/skills/typescript-refactor/SKILL.md +15 -0
- package/skills/ui-components/SKILL.md +35 -0
- package/skills/ux-patterns/SKILL.md +35 -0
- package/skills/web-platform/SKILL.md +27 -0
- package/skills/web-scrape/SKILL.md +27 -0
- package/skills/web-search/SKILL.md +15 -0
- package/skills/webapp-testing/SKILL.md +37 -0
- package/skills/webapp-testing/quirks.md +26 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Third-party skills vendored into the Pugi designer pack
|
|
2
|
+
|
|
3
|
+
These skills are part of Sofia's (designer) skill pack. They help her go from a
|
|
4
|
+
brief to a design system to the clickable HTML prototype that the customer
|
|
5
|
+
approves at the plan gate (`.pugi/artifacts/prototype.html`, BACKLOG AO), and,
|
|
6
|
+
since 2026-10-17, carry the craft rules every build turn is held to.
|
|
7
|
+
|
|
8
|
+
The skill pack generator copies this file and `LICENSE-APACHE-2.0` into every
|
|
9
|
+
vendored skill directory, so each one carries its attribution wherever it is
|
|
10
|
+
baked.
|
|
11
|
+
|
|
12
|
+
Both upstream projects are licensed under the Apache License, Version 2.0. The
|
|
13
|
+
full licence text is in `LICENSE-APACHE-2.0` next to this file. The LICENSE file
|
|
14
|
+
of each repository was checked before anything was copied (2026-10-04 and
|
|
15
|
+
2026-10-17). Neither repository ships a NOTICE file, so this file is the
|
|
16
|
+
attribution.
|
|
17
|
+
|
|
18
|
+
## nexu-io/open-design
|
|
19
|
+
|
|
20
|
+
- Source: https://github.com/nexu-io/open-design
|
|
21
|
+
- Licence: Apache-2.0, "Copyright 2026 Open Design contributors"
|
|
22
|
+
- The upstream `skills/README.md` says skills are Apache-2.0 unless their own
|
|
23
|
+
`LICENSE` says otherwise. No directory copied here has its own licence.
|
|
24
|
+
- Commit 53231d40b778d88eba23f35547bf99485d3ae9fc (2026-09-30) for the two
|
|
25
|
+
prototype skills (re-checked unchanged at 3b0df90f and re-stamped);
|
|
26
|
+
commit 78d5637cb49da07e81314d1544b5fc6d37c95084 (v0.25.1, 2026-10-16) for
|
|
27
|
+
the craft rules and the two ports below; commit
|
|
28
|
+
3b0df90f305c8279e748c292accf336d02b924ef (2026-10-20) for the design
|
|
29
|
+
templates and design skills added 2026-10-21 (CEO: "Open Design inside
|
|
30
|
+
Pugi"). The LICENSE file of the repository was checked again on 2026-10-21.
|
|
31
|
+
|
|
32
|
+
| Pugi skill | Upstream path | Files copied |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| `od-web-prototype` | `design-templates/web-prototype/` | `SKILL.md`, `assets/template.html`, `references/layouts.md`, `references/checklist.md` |
|
|
35
|
+
| `od-reference-design-contract` | `skills/reference-design-contract/` | `SKILL.md`, `references/checklist.md` |
|
|
36
|
+
| `od-craft` | `craft/` | all twelve documents, as `references/<name>.md`: `README.md`, `accessibility-baseline.md`, `animation-discipline.md`, `anti-ai-slop.md`, `color.md`, `form-validation.md`, `laws-of-ux.md`, `rtl-and-bidi.md`, `state-coverage.md`, `typography-hierarchy-editorial.md`, `typography-hierarchy.md`, `typography.md` |
|
|
37
|
+
|
|
38
|
+
### Design templates (added 2026-10-21, commit 3b0df90f) — the "Start from" catalogue
|
|
39
|
+
|
|
40
|
+
Each is `design-templates/<name>/` → `od-<name>/`, `SKILL.md` only unless noted.
|
|
41
|
+
Apache-2.0, nexu-io/open-design contributors, except where a row says otherwise.
|
|
42
|
+
|
|
43
|
+
| Pugi skill | Upstream path | Files copied / licence |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| `od-saas-landing`, `od-dashboard`, `od-mobile-onboarding`, `od-pricing-page`, `od-blog-post`, `od-docs-page`, `od-kanban-board`, `od-invoice`, `od-meeting-notes`, `od-contact-widget`, `od-email-marketing`, `od-social-carousel`, `od-wireframe-annotated`, `od-wireframe-greybox`, `od-wireframe-mobile-flow`, `od-wireframe-sketch`, `od-pm-spec`, `od-team-okrs`, `od-eng-runbook`, `od-finance-report`, `od-hr-onboarding`, `od-magazine-poster`, `od-webgl-experience` | `design-templates/<name>/` | `SKILL.md` |
|
|
46
|
+
| `od-mobile-app` | `design-templates/mobile-app/` | `SKILL.md`, `assets/template.html`, `references/layouts.md`, `references/checklist.md` |
|
|
47
|
+
| `od-waitlist-page` | `design-templates/waitlist-page/` | `SKILL.md`, `assets/template.html`, `references/checklist.md` |
|
|
48
|
+
| `od-web-prototype-taste-soft`, `-editorial`, `-brutalist` | `design-templates/web-prototype-taste-*/` | `SKILL.md`; distilled by open-design from Leonxlnx/taste-skill (MIT, © 2026 Leonxlnx) — that MIT text is carried as `LICENSE-MIT-Leonxlnx` in each directory |
|
|
49
|
+
| `od-login-flow` | `skills/login-flow/` | `SKILL.md`, `references/checklist.md` |
|
|
50
|
+
| `od-faq-page` | `skills/faq-page/` | `SKILL.md` |
|
|
51
|
+
|
|
52
|
+
### Design skills (added 2026-10-21, commit 3b0df90f)
|
|
53
|
+
|
|
54
|
+
| Pugi skill | Upstream path | Files copied / licence |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| `od-design-brief` | `skills/design-brief/` | `SKILL.md` (Apache-2.0, nexu-io) |
|
|
57
|
+
| `od-critique` | `design-templates/critique/` | `SKILL.md` (Apache-2.0, nexu-io) |
|
|
58
|
+
| `od-frontend-design` | `skills/frontend-design/` | `SKILL.md`, `LICENSE.txt` (Apache-2.0; the skill is Anthropic's `frontend-design` as open-design redistributes it) |
|
|
59
|
+
| `od-redesign-skill` | `skills/redesign-skill/` | `SKILL.md`, `LICENSE` (MIT, © 2026 Leonxlnx; upstream frontmatter name `redesign-existing-projects`) |
|
|
60
|
+
| `od-web-design-guidelines` | `skills/web-design-guidelines/` | `SKILL.md`, `LICENSE`, `references/guidelines.md` (MIT, vercel-labs/web-interface-guidelines, as open-design redistributes it) |
|
|
61
|
+
|
|
62
|
+
Looked at and left out on 2026-10-21 (no licence file in the open-design
|
|
63
|
+
directory although the upstream is MIT/Apache; take later with the upstream
|
|
64
|
+
text): `design-md`, `enhance-prompt` (google-labs-code/skills),
|
|
65
|
+
`design-consultation`, `plan-design-review` (garrytan/gstack, MIT),
|
|
66
|
+
`copywriting` (coreyhaines31/marketingskills, MIT), `impeccable-design-polish`
|
|
67
|
+
(pbakaus/impeccable, Apache-2.0), `ui-skills` (ibelick/ui-skills, MIT),
|
|
68
|
+
`emil-design-eng`, `animate`, `review-animations`, `stitch-skill`. Decks,
|
|
69
|
+
video, live-artifact and `tweaks` templates are not Pugi surfaces.
|
|
70
|
+
|
|
71
|
+
Upstream attributions kept inside those files: `craft/` is adapted from
|
|
72
|
+
referodesign/refero_skill (MIT, © Refero Design); the "Adapted from" lines
|
|
73
|
+
stay where upstream put them.
|
|
74
|
+
|
|
75
|
+
### Ports (derivative works, Apache-2.0 §4), not copies
|
|
76
|
+
|
|
77
|
+
| Pugi file | Upstream source | What changed |
|
|
78
|
+
|---|---|---|
|
|
79
|
+
| `packages/opencode/src/session/design-lint.ts` | `apps/daemon/src/lint-artifact.ts` | The seven P0 checks and the external-image advisory are kept; the finding shape is local; it runs over a workspace (source and `dist/`) rather than one artifact body; Tailwind utility-class forms of each sin are added; the deck, `data-od-id`, all-caps tracking and raw-hex checks are dropped; the sans-display check fires only when a serif display token is bound. The daemon's analytics were never in this file. |
|
|
80
|
+
| `packages/opencode/src/scaffold/design-direction.ts` | `apps/daemon/src/prompts/directions.ts` | The five schools are kept as postures; labels no longer name other brands; palettes are hex; faces are the Google fonts the starters link; two directions added; no question form (the direction is decided by the model, never asked of the customer). |
|
|
81
|
+
| `packages/plugin-pugi-personas/src/craft-digest.ts` | `craft/*.md` | A condensed summary written by Pugi from the twelve documents. |
|
|
82
|
+
|
|
83
|
+
Nothing ported touches the network: open-design's PostHog / Langfuse telemetry
|
|
84
|
+
lives in its apps, none of which were taken.
|
|
85
|
+
|
|
86
|
+
## nexu-io/html-anything
|
|
87
|
+
|
|
88
|
+
- Source: https://github.com/nexu-io/html-anything
|
|
89
|
+
- Commit: 553ed98c283f9c0f489902d035416a972d6a9699 (2026-09-15)
|
|
90
|
+
- Licence: Apache-2.0. The upstream copyright line is the unfilled template
|
|
91
|
+
("Copyright [yyyy] [name of copyright owner]"), so the copyright belongs to
|
|
92
|
+
the html-anything contributors.
|
|
93
|
+
|
|
94
|
+
| Pugi skill | Upstream path | Files copied |
|
|
95
|
+
|---|---|---|
|
|
96
|
+
| `ha-prototype-web` | `next/src/lib/templates/skills/prototype-web/` | `SKILL.md` |
|
|
97
|
+
|
|
98
|
+
## Changes made by Pugi (Apache-2.0 §4(b))
|
|
99
|
+
|
|
100
|
+
- The frontmatter `name` of every `SKILL.md` was prefixed (`od-`, `ha-`). Skill
|
|
101
|
+
names are permission patterns in Pugi, and upstream names such as
|
|
102
|
+
`web-prototype` would collide across the two sources.
|
|
103
|
+
- One HTML comment was added under each frontmatter block. It names the source,
|
|
104
|
+
the commit and these changes.
|
|
105
|
+
- `od-craft/SKILL.md` is written by Pugi (upstream has no skill wrapper for
|
|
106
|
+
`craft/`; its daemon injects the files per `od.craft.requires`). Each
|
|
107
|
+
`references/*.md` begins with one added HTML comment naming the source
|
|
108
|
+
commit and stating that the rest is verbatim; the text below it is
|
|
109
|
+
unchanged, including upstream's references to its own paths
|
|
110
|
+
(`apps/daemon/src/lint-artifact.ts`, `pnpm lint:craft`).
|
|
111
|
+
- Example files (`example.html`, `example.md`) were not copied (the sanitised
|
|
112
|
+
example pages live under `scaffold/seeds/` with their own NOTICE).
|
|
113
|
+
- The three `od-web-prototype-taste-*` directories and `od-redesign-skill`
|
|
114
|
+
carry the MIT licence of Leonxlnx next to the Apache-2.0 text, because the
|
|
115
|
+
upstream `skills/README.md` says a skill's own LICENSE prevails.
|
|
116
|
+
- Every other byte of the copied files is unchanged.
|
|
117
|
+
|
|
118
|
+
Where an upstream rule conflicts with the Pugi plan-gate prototype contract in
|
|
119
|
+
Sofia's persona prompt, the Pugi contract wins.
|
|
120
|
+
Two upstream rules conflict on purpose. The output file is
|
|
121
|
+
`.pugi/artifacts/prototype.html`, not `index.html`. Photos are Pexels CDN URLs
|
|
122
|
+
taken from Anvil `/v1/images`, not copies in the project, because the console
|
|
123
|
+
renders the prototype from a single document.
|
|
124
|
+
Where a craft rule names open-design's tokens (`var(--accent)`), the starter's
|
|
125
|
+
own token scheme (`src/globals.css` bare HSL components, `src/theme.css`
|
|
126
|
+
typefaces) wins.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: od-craft
|
|
3
|
+
description: |
|
|
4
|
+
Brand-agnostic craft rules for any screen the build emits: typography
|
|
5
|
+
(tracking, leading, scale), colour (accent budget, contrast), the seven
|
|
6
|
+
AI-slop tells the design lint blocks, state coverage, motion, accessibility,
|
|
7
|
+
forms, RTL and the laws of UX. Load one reference when a rule's exact
|
|
8
|
+
threshold matters; the condensed digest in the system prompt is the summary.
|
|
9
|
+
triggers:
|
|
10
|
+
- "craft"
|
|
11
|
+
- "typography"
|
|
12
|
+
- "letter-spacing"
|
|
13
|
+
- "accent"
|
|
14
|
+
- "contrast"
|
|
15
|
+
- "ai slop"
|
|
16
|
+
- "design lint"
|
|
17
|
+
- "empty state"
|
|
18
|
+
- "reduced motion"
|
|
19
|
+
- "accessibility"
|
|
20
|
+
- "form validation"
|
|
21
|
+
- "rtl"
|
|
22
|
+
---
|
|
23
|
+
<!-- Vendored from nexu-io/open-design@78d5637cb49d (craft/), Apache-2.0, Copyright 2026 Open Design contributors. This SKILL.md is written by Pugi: upstream keeps these rules as loose files its daemon injects per skill (`od.craft.requires`), Pugi ships them as one skill with the full text under references/. Each reference carries its own provenance header. See NOTICE.md in this directory. -->
|
|
24
|
+
|
|
25
|
+
# Craft rules (open-design `craft/`)
|
|
26
|
+
|
|
27
|
+
Twelve dense rulebooks, one per dimension of professional UI craft. They are
|
|
28
|
+
true regardless of brand: the design system says WHICH fonts and colours, these
|
|
29
|
+
say HOW they behave. The engine already injects a condensed digest of them
|
|
30
|
+
(`<design-craft>`) into every build turn; load a reference here only when you
|
|
31
|
+
need the exact rule, table or threshold.
|
|
32
|
+
|
|
33
|
+
## Resource map
|
|
34
|
+
|
|
35
|
+
| Reference | Load it when |
|
|
36
|
+
|---|---|
|
|
37
|
+
| `references/anti-ai-slop.md` | the design lint reported a finding, or before a hero / landing section. The seven cardinal sins it lists are what `design-lint` blocks at P0 |
|
|
38
|
+
| `references/typography.md` | setting any `letter-spacing`, `line-height`, scale or font pairing; CJK text |
|
|
39
|
+
| `references/typography-hierarchy.md` | one element must dominate above the fold; headings read flat or noisy |
|
|
40
|
+
| `references/typography-hierarchy-editorial.md` | a sustained reading surface: blog, docs, long article |
|
|
41
|
+
| `references/color.md` | palette layers, the two-uses-per-screen accent cap, contrast minimums, dark themes |
|
|
42
|
+
| `references/state-coverage.md` | anything that fetches or accepts data: loading / empty / error / edge states |
|
|
43
|
+
| `references/animation-discipline.md` | any transition or micro-interaction; durations, springs, `prefers-reduced-motion` |
|
|
44
|
+
| `references/accessibility-baseline.md` | focus, labels, targets, keyboard paths; WCAG 2.2 AA numbers |
|
|
45
|
+
| `references/form-validation.md` | an interactive form: timing, `:user-invalid`, error wiring, schema |
|
|
46
|
+
| `references/laws-of-ux.md` | composition decisions: pricing (Hick's), dashboards (working memory), onboarding |
|
|
47
|
+
| `references/rtl-and-bidi.md` | Arabic / Hebrew / Persian text or layout; logical CSS properties |
|
|
48
|
+
| `references/README.md` | upstream's own index and attribution |
|
|
49
|
+
|
|
50
|
+
## How Pugi applies them
|
|
51
|
+
|
|
52
|
+
- The condensed digest is always in the prompt; it is the summary, not the rule.
|
|
53
|
+
- `design-lint` (engine, deterministic) checks the built site for the seven
|
|
54
|
+
sins and a few soft tells at the Ready gate; findings come back once as a fix
|
|
55
|
+
round, then the site ships and the findings are logged.
|
|
56
|
+
- Where a rule conflicts with the starter's token scheme (`src/globals.css`
|
|
57
|
+
holds bare HSL components, `src/theme.css` the typefaces), the starter's
|
|
58
|
+
scheme wins: express the rule in those tokens.
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
<!-- Vendored from nexu-io/open-design@78d5637cb49d (craft/README.md), Apache-2.0, Copyright 2026 Open Design contributors. Modified by Pugi: this header line added; the text below is otherwise verbatim. Paths it names (apps/daemon/src/lint-artifact.ts, pnpm lint:craft, od.craft.requires) are upstream's, not Pugi's: the Pugi port of the linter is packages/opencode/src/session/design-lint.ts. See NOTICE.md in the skill root. -->
|
|
2
|
+
|
|
3
|
+
# Craft references
|
|
4
|
+
|
|
5
|
+
Brand-agnostic craft knowledge. Each file is a small, dense rulebook on one
|
|
6
|
+
dimension of professional UI craft (typography, color, motion, …). Skills
|
|
7
|
+
opt into the references they need; the daemon injects only the requested
|
|
8
|
+
ones into the system prompt above the active skill body.
|
|
9
|
+
|
|
10
|
+
## Why a fourth axis next to skills, templates, and design systems
|
|
11
|
+
|
|
12
|
+
| Axis | Scope | Example |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| `skills/` | Functional capabilities invoked while doing work | `design-brief`, `brand-extract`, `imagegen` |
|
|
15
|
+
| `design-templates/` | Packaged artifact shapes | `saas-landing`, `dashboard`, `pricing-page` |
|
|
16
|
+
| `design-systems/` | Brand package: prose, token contract, and optional rich resources | `linear-app`, `apple`, `notion` |
|
|
17
|
+
| `craft/` | **Universal** craft knowledge — true regardless of brand | letter-spacing rules, accent-overuse caps, anti-AI-slop |
|
|
18
|
+
|
|
19
|
+
`DESIGN.md` tells the agent which colors and fonts a brand uses. `craft/`
|
|
20
|
+
tells the agent the universal rules a competent designer applies on top —
|
|
21
|
+
e.g. ALL CAPS always needs ≥0.06em tracking, regardless of the brand.
|
|
22
|
+
|
|
23
|
+
## How a skill opts in
|
|
24
|
+
|
|
25
|
+
Add an `od.craft.requires` array to the skill's front-matter. Only the
|
|
26
|
+
listed sections are injected, so a skill that needs only typography pays
|
|
27
|
+
no token cost for color/motion content.
|
|
28
|
+
|
|
29
|
+
```yaml
|
|
30
|
+
od:
|
|
31
|
+
craft:
|
|
32
|
+
requires: [typography, color, anti-ai-slop]
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Use the layered stack for editorial skills that require authored hierarchy
|
|
36
|
+
and sustained reading behavior:
|
|
37
|
+
|
|
38
|
+
```yaml
|
|
39
|
+
od:
|
|
40
|
+
craft:
|
|
41
|
+
requires: [typography, typography-hierarchy, typography-hierarchy-editorial]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Allowed shipped values match the file names in this directory minus the `.md`
|
|
45
|
+
extension. The runtime skips an absent file for compatibility, but repository
|
|
46
|
+
authoring does not silently accept arbitrary values.
|
|
47
|
+
|
|
48
|
+
Run `pnpm lint:craft` after adding or changing `od.craft.requires`. The
|
|
49
|
+
repository guard reports unresolved slugs with their manifest paths, so typos
|
|
50
|
+
cannot silently drop a craft section from the runtime prompt. If a slug is an
|
|
51
|
+
intentional forward reference, list it in `craft/FUTURE_SECTIONS.md` until the
|
|
52
|
+
matching `craft/<slug>.md` file ships.
|
|
53
|
+
|
|
54
|
+
### Runtime compatibility and authoring failures
|
|
55
|
+
|
|
56
|
+
The loader remains tolerant because externally installed or older bundles may
|
|
57
|
+
reference a section that is unavailable in the current resource set. A missing
|
|
58
|
+
optional paragraph must not make an otherwise usable runtime bundle fail.
|
|
59
|
+
|
|
60
|
+
Checked-in content has a stronger contract: `pnpm lint:craft` and
|
|
61
|
+
`pnpm guard` fail on malformed slugs and unresolved references. A deliberate
|
|
62
|
+
forward reference is valid only when it is listed in
|
|
63
|
+
`craft/FUTURE_SECTIONS.md`; this makes planned work explicit while preserving
|
|
64
|
+
the runtime compatibility behavior.
|
|
65
|
+
|
|
66
|
+
Note for skill authors arriving from older guidance: an earlier draft
|
|
67
|
+
used `motion` as the future-slug placeholder. The shipped equivalent
|
|
68
|
+
today is `animation-discipline`. Use that one if your skill emits
|
|
69
|
+
motion.
|
|
70
|
+
|
|
71
|
+
### Enforcement levels
|
|
72
|
+
|
|
73
|
+
Craft files mix auto-checked rules and guidance.
|
|
74
|
+
|
|
75
|
+
- **Auto-checked.** Rules wired into `apps/daemon/src/lint-artifact.ts` — currently the P0 list in `anti-ai-slop.md` (Tailwind-indigo accent, two-stop hero gradients, emoji-as-icons, etc.). The linter reports these as findings back to the UI (for P0/P1 badges) and to the agent (as a system reminder for self-correction). Artifact persistence is not currently hard-blocked on P0 hits.
|
|
76
|
+
- **Guidance.** The rest. The agent reads the rules, reviewers apply them, the linter doesn't check them.
|
|
77
|
+
|
|
78
|
+
A purely behavioral craft file (state-coverage, animation-discipline) is guidance unless a specific rule is later promoted into `lint-artifact.ts`.
|
|
79
|
+
|
|
80
|
+
## Files
|
|
81
|
+
|
|
82
|
+
| File | Section name | When to require |
|
|
83
|
+
|---|---|---|
|
|
84
|
+
| `typography.md` | `typography` | Any skill that emits typed content (~all skills) |
|
|
85
|
+
| `typography-hierarchy.md` | `typography-hierarchy` | Any skill that emits typed content where hierarchy must feel authored, not assembled — especially surfaces with a strong entry point, varied levels, or intentional rhythm. Compose with `typography`. |
|
|
86
|
+
| `typography-hierarchy-editorial.md` | `typography-hierarchy-editorial` | Skills whose primary artifact is a sustained reading surface: `blog-post`, `docs-page`, `digital-eguide`. Requires `typography` + `typography-hierarchy`. |
|
|
87
|
+
| `color.md` | `color` | Any skill that emits styled output (~all skills) |
|
|
88
|
+
| `anti-ai-slop.md` | `anti-ai-slop` | Marketing pages, landing pages, decks |
|
|
89
|
+
| `state-coverage.md` | `state-coverage` | Any skill with stateful UI (dashboards, mobile apps, forms, list/table views) |
|
|
90
|
+
| `animation-discipline.md` | `animation-discipline` | Any skill that ships motion: mobile apps, multi-screen flows, gamified UI, transitions, microinteractions |
|
|
91
|
+
| `accessibility-baseline.md` | `accessibility-baseline` | Any skill that ships interactive UI: dashboards, forms, mobile flows, anything with focus/labels/keyboard paths |
|
|
92
|
+
| `rtl-and-bidi.md` | `rtl-and-bidi` | Any skill that ships localized text or layout: blogs, docs, financial tables, mobile apps, anything that may render Arabic / Hebrew / Persian |
|
|
93
|
+
| `form-validation.md` | `form-validation` | Any skill whose primary artifact contains an interactive form: lead capture, sign-in, signup, settings, multi-step intake |
|
|
94
|
+
| `laws-of-ux.md` | `laws-of-ux` | Any skill whose composition decisions hit named cognitive limits: pricing pages (Hick's, Choice Overload, Von Restorff), dashboards (Pareto, Selective Attention, Working Memory), onboarding (Goal-Gradient, Zeigarnik, Peak-End), modals (Fitts's, Tesler's). Sibling axis to the rendering-rule files above — covers what to compose, not how to render. |
|
|
95
|
+
|
|
96
|
+
**Partial-stateful skills.** A skill that's mostly static but contains an embedded form, data table, or query surface should opt in. State-coverage rules apply to the stateful component, not the whole page.
|
|
97
|
+
|
|
98
|
+
Planned-but-unshipped slugs are recorded in
|
|
99
|
+
[`FUTURE_SECTIONS.md`](FUTURE_SECTIONS.md); do not hard-code a second future
|
|
100
|
+
list here.
|
|
101
|
+
|
|
102
|
+
## Attribution
|
|
103
|
+
|
|
104
|
+
Craft content is adapted from the MIT-licensed
|
|
105
|
+
[refero_skill](https://github.com/referodesign/refero_skill) project
|
|
106
|
+
(© Refero Design), with edits to fit OpenDesign's house style and link
|
|
107
|
+
back to OD's design tokens (`var(--accent)` etc.) instead of generic
|
|
108
|
+
Tailwind hex values.
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
<!-- Vendored from nexu-io/open-design@78d5637cb49d (craft/accessibility-baseline.md), Apache-2.0, Copyright 2026 Open Design contributors. Modified by Pugi: this header line added; the text below is otherwise verbatim. Paths it names (apps/daemon/src/lint-artifact.ts, pnpm lint:craft, od.craft.requires) are upstream's, not Pugi's: the Pugi port of the linter is packages/opencode/src/session/design-lint.ts. See NOTICE.md in the skill root. -->
|
|
2
|
+
|
|
3
|
+
# Accessibility baseline craft rules
|
|
4
|
+
|
|
5
|
+
Universal rules for the legal floor of accessibility plus the craft
|
|
6
|
+
commitments that go beyond it. The active `DESIGN.md` decides brand
|
|
7
|
+
appearance; this file decides which rules an artifact has to clear
|
|
8
|
+
before it ships.
|
|
9
|
+
|
|
10
|
+
> Grounded in primary sources: WCAG 2.2 Understanding pages,
|
|
11
|
+
> ISO/IEC 40500:2025, ADA Title II 2024 + 2026 IFR, EN 301 549 v3.2.1,
|
|
12
|
+
> WAI-ARIA 1.3 + AccName 1.2 + Core AAM 1.2, WebAIM Million 2026
|
|
13
|
+
> (February 2026 crawl), A11yn (arXiv 2510.13914), APCA W3C silver
|
|
14
|
+
> branch.
|
|
15
|
+
|
|
16
|
+
## Prior art and scope
|
|
17
|
+
|
|
18
|
+
Existing OSS a11y guidance for AI agents (`fecarrico/A11Y.md`,
|
|
19
|
+
`awesome-copilot agents/accessibility.agent.md`,
|
|
20
|
+
`Community-Access/accessibility-agents`) tends to inline a checklist of
|
|
21
|
+
WCAG SCs without versioning the legal floor or specifying which
|
|
22
|
+
constraints survive on iOS / Android / Flutter. This file scopes
|
|
23
|
+
narrower: the compliance floor an OD artifact must clear, with
|
|
24
|
+
jurisdiction notes and native-mobile parity. Heuristic rules and
|
|
25
|
+
linter-checked items live in sibling craft files
|
|
26
|
+
(`anti-ai-slop.md`, `state-coverage.md`); WCAG SC numbers map to
|
|
27
|
+
specific rules below rather than being re-listed.
|
|
28
|
+
|
|
29
|
+
## The legal floor changes by jurisdiction
|
|
30
|
+
|
|
31
|
+
- **EU (EAA, enforcement live 2025-06-28):** EN 301 549 v3.2.1 is the OJ-cited harmonised standard; it references **WCAG 2.1 AA**. EN 301 549 v4.1.1 (which incorporates WCAG 2.2's nine new SCs) is OJ-citation-targeted late 2026 / 2027. Until then, EAA references WCAG 2.1. The Web Accessibility Directive (WAD, EU 2016/2102) covers public-sector bodies separately and also points at EN 301 549.
|
|
32
|
+
- **US public sector — ADA Title II 2024 final rule:** **WCAG 2.1 AA**. The 2026-04-20 IFR slipped deadlines: 2027-04-26 for jurisdictions with population ≥ 50,000; 2028-04-26 for sub-50,000 and special districts.
|
|
33
|
+
- **US federal procurement — Section 508 (Revised 508 Standards):** harmonised with EN 301 549 → references **WCAG 2.0 AA** in the current published rev. The Access Board has WCAG 2.x updates in flight; until they ship, federal IT procurement floor is WCAG 2.0.
|
|
34
|
+
- **US private sector — ADA Title III:** no federal regulation specifies a technical standard. Settlements and DOJ guidance routinely cite **WCAG 2.1 AA** as the de-facto target, but the legal mechanism is case-by-case, not rule-based.
|
|
35
|
+
- **ISO/IEC 40500:2025** (October 2025) ratified WCAG 2.2 verbatim. Does not by itself change EU or US legal floors.
|
|
36
|
+
|
|
37
|
+
**Practical rule for craft:** target **WCAG 2.2 AA** as the working
|
|
38
|
+
ceiling. It clears the WCAG 2.1 AA legal floor in both jurisdictions
|
|
39
|
+
and prepares for v4.1.1. Anything below 2.2 AA is craft debt.
|
|
40
|
+
|
|
41
|
+
## Color contrast
|
|
42
|
+
|
|
43
|
+
| Pair | WCAG 2.x AA minimum |
|
|
44
|
+
|---|---|
|
|
45
|
+
| Normal text below 18 pt regular / 14 pt bold (covers most body and UI text) | 4.5:1 |
|
|
46
|
+
| Large text (≥18 *pt* regular ≈24 px, or ≥14 *pt* bold ≈18.5 px) | 3:1 |
|
|
47
|
+
| Non-text UI components and graphical objects | 3:1 |
|
|
48
|
+
| Focus indicator vs adjacent and unfocused state | 3:1 |
|
|
49
|
+
|
|
50
|
+
Thresholds are **inclusive** — exactly 4.5:1 or 3:1 passes. Don't round
|
|
51
|
+
up: 2.999:1 fails because rounding is not a permitted mechanism.
|
|
52
|
+
|
|
53
|
+
"Large text" means **18 pt** regular, not 18 px. 18 px regular needs
|
|
54
|
+
4.5:1; 14 pt bold (≈18.5 px) qualifies for 3:1, 14 px bold does not.
|
|
55
|
+
|
|
56
|
+
**APCA as a parallel design check.** APCA's Lc value catches font-weight
|
|
57
|
+
and stem-thickness effects that WCAG 2.x luminance ratios miss. Body
|
|
58
|
+
copy at Lc ≥60 is a reasonable parallel pass; APCA's actual lookup
|
|
59
|
+
table is size- and weight-dependent (heavier weights at larger sizes
|
|
60
|
+
clear at lower Lc, thin small text needs Lc ≥75+). APCA is not part
|
|
61
|
+
of WCAG, EN 301 549, ADA, or Section 508 compliance as of 2026-05 —
|
|
62
|
+
keep WCAG 2.2 AA as the compliance floor and treat APCA as
|
|
63
|
+
design-review only. If you ship APCA tooling, use the `apca-w3`
|
|
64
|
+
package; the SAPC repo is non-commercial.
|
|
65
|
+
|
|
66
|
+
## Touch targets
|
|
67
|
+
|
|
68
|
+
| Bar | SC | Size |
|
|
69
|
+
|---|---|---|
|
|
70
|
+
| AA (legal floor) | 2.5.8 Target Size (Minimum) | **24×24 CSS px** |
|
|
71
|
+
| AAA (craft commitment) | 2.5.5 Target Size (Enhanced) | 44×44 CSS px |
|
|
72
|
+
| iOS HIG | — | 44×44 pt |
|
|
73
|
+
| Material 3 | — | 48×48 dp |
|
|
74
|
+
|
|
75
|
+
WCAG 2.5.8 lists five exceptions where the 24×24 minimum doesn't
|
|
76
|
+
apply: **Spacing** (a 24-CSS-px exclusion circle around the target
|
|
77
|
+
doesn't intersect adjacent ones), **Equivalent** (an alternative
|
|
78
|
+
control of sufficient size achieves the same function), **Inline**
|
|
79
|
+
(target sits inside a sentence, e.g. links in body copy), **User
|
|
80
|
+
agent control** (browser default like a native scrollbar), and
|
|
81
|
+
**Essential** (the smaller size is required to convey information,
|
|
82
|
+
e.g. a map pin). The Spacing exception is the one icon-button
|
|
83
|
+
toolbars rely on; the others are narrower than they read and
|
|
84
|
+
shouldn't be used to justify undersized primary actions.
|
|
85
|
+
|
|
86
|
+
## Focus visibility
|
|
87
|
+
|
|
88
|
+
Removing the focus outline via CSS is a **triple failure**: 1.4.11
|
|
89
|
+
Non-text Contrast, 2.4.7 Focus Visible, and 2.4.13 Focus Appearance
|
|
90
|
+
(AAA). Use `:focus-visible` for keyboard users; suppress the outline
|
|
91
|
+
for mouse clicks only when an alternative non-color affordance exists.
|
|
92
|
+
|
|
93
|
+
For AAA (2.4.13): indicator area must equal at least a 2 CSS px
|
|
94
|
+
perimeter of the component, contrast ≥3:1 between focused and
|
|
95
|
+
unfocused states. A 1-px outline at 3:1 doesn't qualify.
|
|
96
|
+
|
|
97
|
+
## Form input labels
|
|
98
|
+
|
|
99
|
+
WebAIM Million 2026 (which uses WAVE, not axe-core): **51% of top 1M
|
|
100
|
+
home pages have at least one missing form-input label; 33.1% of all
|
|
101
|
+
6.9M inputs are unlabeled**. The page-level rate moved from 48.2%
|
|
102
|
+
(2025) to 51% (2026) — missing-label prevalence is one of the few
|
|
103
|
+
categories WebAIM explicitly calls out as rising in 2026, against an
|
|
104
|
+
overall errors-per-page count of 56.1.
|
|
105
|
+
|
|
106
|
+
Default form-error wiring (WCAG 2.2 + ARIA APG):
|
|
107
|
+
|
|
108
|
+
```html
|
|
109
|
+
<label for="email">Email</label>
|
|
110
|
+
<input id="email" type="email" required
|
|
111
|
+
aria-describedby="email-hint email-error"
|
|
112
|
+
aria-invalid="true">
|
|
113
|
+
<span id="email-hint">Used for receipts only.</span>
|
|
114
|
+
<span id="email-error" role="alert">Email must include @ and a domain.</span>
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
`aria-describedby` is the production default; `aria-errormessage` has
|
|
118
|
+
incomplete screen-reader support as of 2026-05 (full on NVDA, partial
|
|
119
|
+
on JAWS / VoiceOver / TalkBack) — treat as progressive enhancement.
|
|
120
|
+
|
|
121
|
+
WCAG 3.3.7 Redundant Entry is **Level A** (legal floor). Re-asking for
|
|
122
|
+
data the user already entered "in the same process" fails unless the
|
|
123
|
+
site auto-populates or offers a selectable shortcut. Browser autofill
|
|
124
|
+
does not satisfy it.
|
|
125
|
+
|
|
126
|
+
## Keyboard operability and semantic structure
|
|
127
|
+
|
|
128
|
+
Visual contrast and labelled inputs don't matter if a keyboard or
|
|
129
|
+
screen-reader user can't reach the control or parse the page. The
|
|
130
|
+
bullets below are Level A / AA WCAG essentials plus a small set of
|
|
131
|
+
structural conventions OD treats as craft commitments. WCAG levels
|
|
132
|
+
are noted per item.
|
|
133
|
+
|
|
134
|
+
- **Tab reachability** (2.1.1 Keyboard, Level A): every interactive element must be reachable and operable via keyboard. `tabindex="-1"` removes from the tab order; `tabindex` values >0 break document order and should not be used. (2.1.3 No Exception extends 2.1.1 to AAA by removing the underlying-function exception.)
|
|
135
|
+
- **Activation keys** (2.1.1, Level A): `<button>` activates on Enter and Space; `<a href="…">` activates on Enter. A bare `<a>` without `href` is not a link, not focusable, and not keyboard-operable — use `<a href="…">` for navigation or `<button>` for actions, never a placeholder anchor. Custom controls must implement the matching key handlers and `role`.
|
|
136
|
+
- **No keyboard trap** (2.1.2, Level A): focus must be able to leave any component via the same standard keys it entered with. Modal dialogs are a focus-trap *by design*, not a violation — they trap until dismissed by Escape or the close button.
|
|
137
|
+
- **Focus order** (2.4.3, Level A): tab order must follow the meaningful reading order. Don't rely on positive `tabindex` to fix DOM that's out of order; fix the DOM.
|
|
138
|
+
- **Native control first** (craft convention, anchored on 4.1.2 Name/Role/Value Level A): a `<button>` is keyboard-operable, focusable, name-resolvable, and announced as a button by every AT for free. `<div role="button" tabindex="0">` requires you to re-implement all of that and most reimplementations miss `aria-pressed`, disabled state, or Space-on-keyup. Reach for ARIA only when no native element fits.
|
|
139
|
+
- **Document language** (3.1.1, Level A): `<html lang="...">` is required. Sub-tree language switches use `lang` on the inner element.
|
|
140
|
+
- **Heading hierarchy** (1.3.1 Info and Relationships Level A; 2.4.6 Headings and Labels Level AA): WCAG requires programmatically-determined structure and descriptive headings, not a specific outline shape. OD craft convention layers on: prefer one `<h1>` per page and don't skip levels (`<h1>` → `<h3>` without `<h2>`). Visual size and heading level are independent.
|
|
141
|
+
- **Landmarks** (1.3.1, 2.4.1 Bypass Blocks Level A): use `<header>` `<nav>` `<main>` `<aside>` `<footer>` rather than `<div role="banner">` etc. AT users navigate by landmark; a page with no landmarks is a wall of divs.
|
|
142
|
+
- **Text alternatives** (1.1.1 Non-text Content, Level A): `<img alt="...">` for content images, `alt=""` for decorative; `aria-label` on icon-only buttons; long-form description for charts and SVG data viz. A chart without a text alternative is unreadable to a screen reader.
|
|
143
|
+
|
|
144
|
+
## ARIA discipline
|
|
145
|
+
|
|
146
|
+
WebAIM Million 2026 shows ARIA pages average **59.1 errors** vs
|
|
147
|
+
**42** on non-ARIA pages — about 17 extra errors on the ARIA side.
|
|
148
|
+
The gap was 30 in 2025 (57 vs 27) and 15 in 2024; YoY direction is
|
|
149
|
+
noisy, but ARIA usage is up (82.7% of home pages in 2026 vs 79.4% in
|
|
150
|
+
2025) while correctness lags. ARIA deployment outpaces ARIA
|
|
151
|
+
correctness.
|
|
152
|
+
|
|
153
|
+
Decision order, per ARIA APG:
|
|
154
|
+
|
|
155
|
+
1. Native HTML element with the right semantics.
|
|
156
|
+
2. Native element under custom visuals if restyling is required.
|
|
157
|
+
3. APG pattern verbatim if neither fits.
|
|
158
|
+
4. Closest APG pattern + documented deviation. Last resort.
|
|
159
|
+
|
|
160
|
+
Never invent ARIA.
|
|
161
|
+
|
|
162
|
+
## Reduced motion and flashing
|
|
163
|
+
|
|
164
|
+
See `animation-discipline.md` for the full rule set. The non-negotiable
|
|
165
|
+
that anchors here: WCAG 2.3.1 (Level A) — flashing more than three
|
|
166
|
+
times per one-second period is non-conformant unless the flash area
|
|
167
|
+
stays below the general and red flash thresholds. Photosensitive
|
|
168
|
+
epilepsy is the protected concern.
|
|
169
|
+
|
|
170
|
+
## Native mobile parity
|
|
171
|
+
|
|
172
|
+
Web ARIA does not auto-translate. Each platform has its own labelling API.
|
|
173
|
+
|
|
174
|
+
| Platform | Label | Role |
|
|
175
|
+
|---|---|---|
|
|
176
|
+
| iOS UIKit | `accessibilityLabel` | `accessibilityTraits` |
|
|
177
|
+
| iOS SwiftUI | `.accessibilityLabel(…)` | `.accessibilityAddTraits(.isButton)` |
|
|
178
|
+
| Android Compose | `Modifier.semantics { contentDescription = … }` | `Modifier.semantics { role = Role.Button }` |
|
|
179
|
+
| Flutter | `Semantics(label: …)` | `Semantics(button: true, …)` |
|
|
180
|
+
| React Native | `accessibilityLabel` | `accessibilityRole` |
|
|
181
|
+
|
|
182
|
+
Use the platform API for each target. AI-generated mobile UI that
|
|
183
|
+
mirrors web ARIA verbatim usually misses the platform-native screen
|
|
184
|
+
reader path.
|
|
185
|
+
|
|
186
|
+
## Common mistakes (lint these)
|
|
187
|
+
|
|
188
|
+
- "Target Size 44×44" cited as the AA bar. 44×44 is **AAA** (2.5.5). AA is **24×24** (2.5.8).
|
|
189
|
+
- "18 px = large text" — wrong. Threshold is 18 *pt* regular (~24 px) or 14 pt bold (~18.5 px).
|
|
190
|
+
- "EAA = WCAG 2.2 AA" — wrong. EN 301 549 v3.2.1 is anchored to WCAG 2.1.
|
|
191
|
+
- "Section 508 = WCAG 2.1 AA" — wrong as of 2026-05. Revised 508 still references WCAG 2.0 AA; the Access Board update is in flight, not shipped.
|
|
192
|
+
- "Tabindex fixes focus order" — `tabindex` >0 reorders against DOM and almost always makes it worse. Fix the DOM.
|
|
193
|
+
- "Modal traps focus → keyboard trap" — confusing 2.1.2. A modal trapping focus until Escape / close is correct behaviour, not a violation.
|
|
194
|
+
- "Heading size = heading level" — visual hierarchy and `<h1>`/`<h2>`/`<h3>` are independent. Style the level you mean.
|
|
195
|
+
- "WebAIM Million uses axe-core" — uses WAVE.
|
|
196
|
+
- "WCAG 3 will use APCA" — APCA was dropped from WCAG 3 in July 2023.
|
|
197
|
+
- "Adding ARIA improves accessibility" — empirically the opposite. WebAIM Million 2026: ARIA pages average 59.1 errors, non-ARIA pages 42.
|
|
198
|
+
- "Bare `<a>` with click handler is a link" — wrong. `<a>` without `href` is not focusable, not keyboard-operable, and not a link. Use `<a href="…">` for navigation, `<button>` for actions.
|
|
199
|
+
- Removing the focus outline via `outline: none` without a replacement. Triple failure: 1.4.11, 2.4.7, 2.4.13.
|
|
200
|
+
- Placeholder text as the only label for a form input. Fails 1.3.1 and 3.3.2; placeholder disappears on input.
|
|
201
|
+
- Using `aria-description` as the sole state-carrier on `role="row"`. JAWS 2025/2026 silently drops it ([FreedomScientific standards-support #927](https://github.com/FreedomScientific/standards-support/issues/927)).
|
|
202
|
+
- Native HTML `<button>` reimplemented as `<div role="button">` without keyboard handling, focus, or `aria-pressed`.
|
|
203
|
+
- A11y treated as web-only. Flutter / iOS / Android have their own labelling APIs that web ARIA doesn't reach.
|