@pugi/cli 1.0.0-alpha.26 → 1.0.0-alpha.261
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 +19 -8
- package/THIRD_PARTY_NOTICES.md +39 -0
- package/bin/pugi +95 -8
- package/models.json +1 -0
- package/package.json +30 -10
- package/postinstall.mjs +158 -23
- 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,42 @@
|
|
|
1
|
+
# Checklist — Waitlist Page
|
|
2
|
+
|
|
3
|
+
## P0 — Must pass before emitting `<artifact>`
|
|
4
|
+
|
|
5
|
+
- [ ] Page has exactly one primary CTA (the email field + submit button)
|
|
6
|
+
- [ ] No hero gradient that spans more than 20% of the viewport height
|
|
7
|
+
- [ ] Email input has a visible label or meaningful placeholder — not just "Email"
|
|
8
|
+
- [ ] No invented social proof numbers (e.g., "10,000 people waiting")
|
|
9
|
+
- [ ] **No countdown timer present** — countdown timers are an explicit anti-pattern for this skill (see SKILL.md §Quality gates)
|
|
10
|
+
- [ ] No horizontal scroll at 375px viewport
|
|
11
|
+
- [ ] No generic emoji icons used as decorative elements
|
|
12
|
+
- [ ] Typography uses at most two font families (display + body)
|
|
13
|
+
- [ ] First name field has no `required` attribute
|
|
14
|
+
- [ ] Work email field has `type="email"` and `required`
|
|
15
|
+
- [ ] Form does **not** use `novalidate`; JS guard calls `checkValidity()` before showing success state
|
|
16
|
+
- [ ] Success message uses `role="status"` or `aria-live="polite"` so screen readers announce it
|
|
17
|
+
- [ ] All color values derived from DESIGN.md; only allowed hardcoded exception is `#2D6A4F` for `--success`
|
|
18
|
+
- [ ] All user-supplied text tokens are HTML-escaped; color tokens adhere to strict grammar (`#hex`, `rgb/hsl/oklch`, `color-mix()`) and contain no unsafe characters (`;`, `{}`, `<`, `>`, `/*`, `@`, `url(`); font name tokens are URL-encoded in the Google Fonts URL; `{{LOGO_MARK}}` is escaped text initials or strictly sanitized inline SVG (no scripts/events)
|
|
19
|
+
|
|
20
|
+
## P1 — Should pass for quality submission
|
|
21
|
+
|
|
22
|
+
- [ ] Hero section is visually distinct and above-the-fold
|
|
23
|
+
- [ ] Email submit button has hover and active states
|
|
24
|
+
- [ ] Form validation provides clear inline feedback on error (native `reportValidity()` is acceptable)
|
|
25
|
+
- [ ] Page is scrollable (not clipped) at 375×667 and 390×844; CTA visible without scroll at those sizes
|
|
26
|
+
- [ ] Ticker animation is paused or removed under `prefers-reduced-motion: reduce`
|
|
27
|
+
- [ ] All interactive elements have visible focus styles (not just `outline: none`)
|
|
28
|
+
- [ ] Keyboard: Tab reaches each form field and the submit button; Enter submits the form
|
|
29
|
+
- [ ] Color contrast of body text on background meets WCAG AA (≥ 4.5:1)
|
|
30
|
+
- [ ] Color contrast of button label on button background meets WCAG AA (≥ 4.5:1)
|
|
31
|
+
- [ ] Color contrast of logo text/initials on logo container background meets WCAG AA (≥ 4.5:1)
|
|
32
|
+
- [ ] Logo alt text or `aria-label` present if logo is an `<img>` or meaningful SVG
|
|
33
|
+
- [ ] Ticker ribbon has `aria-hidden="true"` (decorative, not meaningful content)
|
|
34
|
+
- [ ] `<html lang="">` attribute is set to the correct language code
|
|
35
|
+
|
|
36
|
+
## P2 — Nice-to-have polish
|
|
37
|
+
|
|
38
|
+
- [ ] Google Fonts loaded with `display=swap` to avoid FOIT
|
|
39
|
+
- [ ] Form inputs have matching `autocomplete` attributes (`given-name`, `email`)
|
|
40
|
+
- [ ] Subtle micro-animation on button hover (scale or opacity only — no layout shift)
|
|
41
|
+
- [ ] Decoration zone does not cover or overlap the form at any viewport width
|
|
42
|
+
- [ ] Page title is `{{PRODUCT_NAME}} — Coming Soon`, not a generic placeholder
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Vercel Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Support. While redistributing the Work or
|
|
166
|
+
Derivative Works thereof, You may choose to offer, and charge a
|
|
167
|
+
fee for, acceptance of support, warranty, indemnity, or other
|
|
168
|
+
liability obligations and/or rights consistent with this License.
|
|
169
|
+
However, in accepting such obligations, You may act only on Your
|
|
170
|
+
own behalf and on Your sole responsibility, not on behalf of any
|
|
171
|
+
other Contributor, and only if You agree to indemnify, defend,
|
|
172
|
+
and hold each Contributor harmless for any liability incurred by,
|
|
173
|
+
or claims asserted against, such Contributor by reason of your
|
|
174
|
+
accepting any such warranty or support.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Open Design contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -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,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: od-web-design-guidelines
|
|
3
|
+
description: |
|
|
4
|
+
Review UI code for Web Interface Guidelines compliance by the Vercel engineering team. Covers layout, typography, color, motion, and accessibility for product UI.
|
|
5
|
+
triggers:
|
|
6
|
+
- "web design guidelines"
|
|
7
|
+
- "vercel design"
|
|
8
|
+
- "product ui standards"
|
|
9
|
+
- "design checklist"
|
|
10
|
+
- "review my UI"
|
|
11
|
+
- "check accessibility"
|
|
12
|
+
- "audit design"
|
|
13
|
+
- "review UX"
|
|
14
|
+
- "设计审查"
|
|
15
|
+
metadata:
|
|
16
|
+
author: vercel
|
|
17
|
+
version: "1.0.0"
|
|
18
|
+
argument-hint: <file-or-pattern>
|
|
19
|
+
od:
|
|
20
|
+
mode: design-system
|
|
21
|
+
surface: web
|
|
22
|
+
platform: desktop
|
|
23
|
+
category: design-systems
|
|
24
|
+
upstream: "https://github.com/vercel-labs/web-interface-guidelines"
|
|
25
|
+
source-commit: 4e799d45c17aec1498c269287a83b9dba22b966b
|
|
26
|
+
preview:
|
|
27
|
+
type: markdown
|
|
28
|
+
example_prompt: |
|
|
29
|
+
Review my UI code against the Vercel Web Interface Guidelines — check layout, typography, color, motion, and accessibility compliance.
|
|
30
|
+
---
|
|
31
|
+
<!-- Vendored from nexu-io/open-design@3b0df90f305c (skills/web-design-guidelines), MIT (its `LICENSE` is copied beside this file). Modified by Pugi: frontmatter `name` changed from `web-design-guidelines` to `od-web-design-guidelines`; example files omitted. See NOTICE.md in this directory. Where this skill conflicts with the Pugi plan-gate prototype contract in the designer persona prompt, the Pugi contract wins. -->
|
|
32
|
+
|
|
33
|
+
# Web Interface Guidelines
|
|
34
|
+
|
|
35
|
+
Review files for compliance with Web Interface Guidelines.
|
|
36
|
+
|
|
37
|
+
## How It Works
|
|
38
|
+
|
|
39
|
+
1. Load the pinned guidelines from [`references/guidelines.md`](references/guidelines.md) — this is the default, reproducible execution path
|
|
40
|
+
2. Optionally, fetch the latest guidelines from the upstream URL below and diff against the pinned snapshot to see if anything has changed
|
|
41
|
+
3. Read the specified files (or prompt user for files/pattern)
|
|
42
|
+
4. Check against all rules in the guidelines
|
|
43
|
+
5. Output findings in the terse `file:line` format
|
|
44
|
+
|
|
45
|
+
## Guidelines Source
|
|
46
|
+
|
|
47
|
+
**Default (pinned):** The vendored copy at [`references/guidelines.md`](references/guidelines.md) is the default execution path. It is a pinned snapshot of the upstream guidelines and guarantees the skill produces reproducible results in any runtime environment.
|
|
48
|
+
|
|
49
|
+
**Upstream (live):** For users who want the very latest rules, the live source is available at:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Fetching the live version is optional — the pinned snapshot is always the baseline.
|
|
56
|
+
|
|
57
|
+
## Usage
|
|
58
|
+
|
|
59
|
+
When a user provides a file or pattern argument:
|
|
60
|
+
1. Load [`references/guidelines.md`](references/guidelines.md) as the default source
|
|
61
|
+
2. Optionally fetch the upstream URL to check for updates
|
|
62
|
+
3. Read the specified files
|
|
63
|
+
4. Apply all rules from the guidelines
|
|
64
|
+
5. Output findings using the format specified in the guidelines
|
|
65
|
+
|
|
66
|
+
If no files specified, ask the user which files to review.
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review UI code for Vercel Web Interface Guidelines compliance
|
|
3
|
+
argument-hint: <file-or-pattern>
|
|
4
|
+
---
|
|
5
|
+
# Web Interface Guidelines
|
|
6
|
+
Review these files for compliance: $ARGUMENTS
|
|
7
|
+
Read files, check against rules below. Output concise but comprehensive—sacrifice grammar for brevity. High signal-to-noise.
|
|
8
|
+
## Rules
|
|
9
|
+
### Accessibility
|
|
10
|
+
- Icon-only buttons need `aria-label`
|
|
11
|
+
- Form controls need `<label>` or `aria-label`
|
|
12
|
+
- Interactive elements need keyboard handlers (`onKeyDown`/`onKeyUp`)
|
|
13
|
+
- `<button>` for actions, `<a>`/`<Link>` for navigation (not `<div onClick>`)
|
|
14
|
+
- Images need `alt` (or `alt=""` if decorative)
|
|
15
|
+
- Decorative icons need `aria-hidden="true"`
|
|
16
|
+
- Async updates (toasts, validation) need `aria-live="polite"`
|
|
17
|
+
- Use semantic HTML (`<button>`, `<a>`, `<label>`, `<table>`) before ARIA
|
|
18
|
+
- Headings hierarchical `<h1>`–`<h6>`; include skip link for main content
|
|
19
|
+
- `scroll-margin-top` on heading anchors
|
|
20
|
+
### Focus States
|
|
21
|
+
- Interactive elements need visible focus: `focus-visible:ring-*` or equivalent
|
|
22
|
+
- Never `outline-none` / `outline: none` without focus replacement
|
|
23
|
+
- Use `:focus-visible` over `:focus` (avoid focus ring on click)
|
|
24
|
+
- Group focus with `:focus-within` for compound controls
|
|
25
|
+
### Forms
|
|
26
|
+
- Inputs need `autocomplete` and meaningful `name`
|
|
27
|
+
- Use correct `type` (`email`, `tel`, `url`, `number`) and `inputmode`
|
|
28
|
+
- Never block paste (`onPaste` + `preventDefault`)
|
|
29
|
+
- Labels clickable (`htmlFor` or wrapping control)
|
|
30
|
+
- Disable spellcheck on emails, codes, usernames (`spellCheck={false}`)
|
|
31
|
+
- Checkboxes/radios: label + control share single hit target (no dead zones)
|
|
32
|
+
- Submit button stays enabled until request starts; spinner during request
|
|
33
|
+
- Errors inline next to fields; focus first error on submit
|
|
34
|
+
- Placeholders end with `…` and show example pattern
|
|
35
|
+
- `autocomplete="off"` on non-auth fields to avoid password manager triggers
|
|
36
|
+
- Warn before navigation with unsaved changes (`beforeunload` or router guard)
|
|
37
|
+
### Animation
|
|
38
|
+
- Honor `prefers-reduced-motion` (provide reduced variant or disable)
|
|
39
|
+
- Animate `transform`/`opacity` only (compositor-friendly)
|
|
40
|
+
- Never `transition: all`—list properties explicitly
|
|
41
|
+
- Set correct `transform-origin`
|
|
42
|
+
- SVG: transforms on `<g>` wrapper with `transform-box: fill-box; transform-origin: center`
|
|
43
|
+
- Animations interruptible—respond to user input mid-animation
|
|
44
|
+
### Typography
|
|
45
|
+
- `…` not `...`
|
|
46
|
+
- Curly quotes `"` `"` not straight `"`
|
|
47
|
+
- Non-breaking spaces: `10 MB`, `⌘ K`, brand names
|
|
48
|
+
- Loading states end with `…`: `"Loading…"`, `"Saving…"`
|
|
49
|
+
- `font-variant-numeric: tabular-nums` for number columns/comparisons
|
|
50
|
+
- Use `text-wrap: balance` or `text-pretty` on headings (prevents widows)
|
|
51
|
+
### Content Handling
|
|
52
|
+
- Text containers handle long content: `truncate`, `line-clamp-*`, or `break-words`
|
|
53
|
+
- Flex children need `min-w-0` to allow text truncation
|
|
54
|
+
- Handle empty states—don't render broken UI for empty strings/arrays
|
|
55
|
+
- User-generated content: anticipate short, average, and very long inputs
|
|
56
|
+
### Images
|
|
57
|
+
- `<img>` needs explicit `width` and `height` (prevents CLS)
|
|
58
|
+
- Below-fold images: `loading="lazy"`
|
|
59
|
+
- Above-fold critical images: `priority` or `fetchpriority="high"`
|
|
60
|
+
### Performance
|
|
61
|
+
- Large lists (>50 items): virtualize (`virtua`, `content-visibility: auto`)
|
|
62
|
+
- No layout reads in render (`getBoundingClientRect`, `offsetHeight`, `offsetWidth`, `scrollTop`)
|
|
63
|
+
- Batch DOM reads/writes; avoid interleaving
|
|
64
|
+
- Prefer uncontrolled inputs; controlled inputs must be cheap per keystroke
|
|
65
|
+
- Add `<link rel="preconnect">` for CDN/asset domains
|
|
66
|
+
- Critical fonts: `<link rel="preload" as="font">` with `font-display: swap`
|
|
67
|
+
### Navigation & State
|
|
68
|
+
- URL reflects state—filters, tabs, pagination, expanded panels in query params
|
|
69
|
+
- Links use `<a>`/`<Link>` (Cmd/Ctrl+click, middle-click support)
|
|
70
|
+
- Deep-link all stateful UI (if uses `useState`, consider URL sync via nuqs or similar)
|
|
71
|
+
- Destructive actions need confirmation modal or undo window—never immediate
|
|
72
|
+
### Touch & Interaction
|
|
73
|
+
- `touch-action: manipulation` (prevents double-tap zoom delay)
|
|
74
|
+
- `-webkit-tap-highlight-color` set intentionally
|
|
75
|
+
- `overscroll-behavior: contain` in modals/drawers/sheets
|
|
76
|
+
- During drag: disable text selection, `inert` on dragged elements
|
|
77
|
+
- `autoFocus` sparingly—desktop only, single primary input; avoid on mobile
|
|
78
|
+
### Safe Areas & Layout
|
|
79
|
+
- Full-bleed layouts need `env(safe-area-inset-*)` for notches
|
|
80
|
+
- Avoid unwanted scrollbars: `overflow-x-hidden` on containers, fix content overflow
|
|
81
|
+
- Flex/grid over JS measurement for layout
|
|
82
|
+
### Dark Mode & Theming
|
|
83
|
+
- `color-scheme: dark` on `<html>` for dark themes (fixes scrollbar, inputs)
|
|
84
|
+
- `<meta name="theme-color">` matches page background
|
|
85
|
+
- Native `<select>`: explicit `background-color` and `color` (Windows dark mode)
|
|
86
|
+
### Locale & i18n
|
|
87
|
+
- Dates/times: use `Intl.DateTimeFormat` not hardcoded formats
|
|
88
|
+
- Numbers/currency: use `Intl.NumberFormat` not hardcoded formats
|
|
89
|
+
- Detect language via `Accept-Language` / `navigator.languages`, not IP
|
|
90
|
+
- Brand names, code tokens, identifiers: wrap with `translate="no"` to prevent garbled auto-translation
|
|
91
|
+
### Hydration Safety
|
|
92
|
+
- Inputs with `value` need `onChange` (or use `defaultValue` for uncontrolled)
|
|
93
|
+
- Date/time rendering: guard against hydration mismatch (server vs client)
|
|
94
|
+
- `suppressHydrationWarning` only where truly needed
|
|
95
|
+
### Hover & Interactive States
|
|
96
|
+
- Buttons/links need `hover:` state (visual feedback)
|
|
97
|
+
- Interactive states increase contrast: hover/active/focus more prominent than rest
|
|
98
|
+
### Content & Copy
|
|
99
|
+
- Active voice: "Install the CLI" not "The CLI will be installed"
|
|
100
|
+
- Title Case for headings/buttons (Chicago style)
|
|
101
|
+
- Numerals for counts: "8 deployments" not "eight"
|
|
102
|
+
- Specific button labels: "Save API Key" not "Continue"
|
|
103
|
+
- Error messages include fix/next step, not just problem
|
|
104
|
+
- Second person; avoid first person
|
|
105
|
+
- `&` over "and" where space-constrained
|
|
106
|
+
### Anti-patterns (flag these)
|
|
107
|
+
- `user-scalable=no` or `maximum-scale=1` disabling zoom
|
|
108
|
+
- `onPaste` with `preventDefault`
|
|
109
|
+
- `transition: all`
|
|
110
|
+
- `outline-none` without focus-visible replacement
|
|
111
|
+
- Inline `onClick` navigation without `<a>`
|
|
112
|
+
- `<div>` or `<span>` with click handlers (should be `<button>`)
|
|
113
|
+
- Images without dimensions
|
|
114
|
+
- Large arrays `.map()` without virtualization
|
|
115
|
+
- Form inputs without labels
|
|
116
|
+
- Icon buttons without `aria-label`
|
|
117
|
+
- Hardcoded date/number formats (use `Intl.*`)
|
|
118
|
+
- `autoFocus` without clear justification
|
|
119
|
+
## Output Format
|
|
120
|
+
Group by file. Use `file:line` format (VS Code clickable). Terse findings.
|
|
121
|
+
```text
|
|
122
|
+
## src/Button.tsx
|
|
123
|
+
src/Button.tsx:42 - icon button missing aria-label
|
|
124
|
+
src/Button.tsx:18 - input lacks label
|
|
125
|
+
src/Button.tsx:55 - animation missing prefers-reduced-motion
|
|
126
|
+
src/Button.tsx:67 - transition: all → list properties
|
|
127
|
+
## src/Modal.tsx
|
|
128
|
+
src/Modal.tsx:12 - missing overscroll-behavior: contain
|
|
129
|
+
src/Modal.tsx:34 - "..." → "…"
|
|
130
|
+
## src/Card.tsx
|
|
131
|
+
✓ pass
|
|
132
|
+
```
|
|
133
|
+
State issue + location. Skip explanation unless fix non-obvious. No preamble.
|