شعار Hatch3r Ui Ux Verify

Hatch3r Ui Ux Verify

مؤسسة
hatch3r
hatch3r-ui-ux-verify

UI/UX verification gate before declaring a feature done — axe-core, scripted keyboard trace, accessibility-tree snapshot, four-state coverage, visual-regression baseline, one human screen-reader pass per release

نظرة عامة

الناشرhatch3r
المستودعhatch3r
اسم المهارةhatch3r-ui-ux-verify
النجوم
26
التفريعات
7
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها hatch3r على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Hatch3r Ui Ux Verify في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-ui-ux-verify
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hatch3r/hatch3r.git /tmp/hatch3r
mkdir -p .claude/skills
cp -r /tmp/hatch3r/skills/hatch3r-ui-ux-verify .claude/skills/hatch3r-ui-ux-verify
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Hatch3r Ui Ux Verify في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Hatch3r Ui Ux Verify تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Hatch3r Ui Ux Verify بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

UI/UX Verification Gate

Quick Start

This skill defines what "done" means for any feature shipping UI. Run before declaring a feature complete. The 9 gates below mix automated checks (machine-checkable on every PR) with one manual gate (one human screen-reader pass per release). Skipping any gate = the feature is not done. Browser tests and screenshots from hatch3r-qa-validation alone do not satisfy this bar.

Step 0 — Detect Ambiguity (P8 B1)

Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target environment, or irreversibility. If any are found, ask the user via the platform-native question tool per agents/shared/user-question-protocol.md. Do not proceed under silent assumption. Default path, not an exception. Triggers for THIS skill: routes in scope (single vs all interactive), WCAG target (2.1 AA vs 2.2 AA), visual-regression baseline policy (regenerate vs keep), AI-UX gate applicability, and whether Gate 9 (manual SR pass) is required this run.

Fan-out Discipline (P8 B2)

Fan-out scales with task size; token cost never justifies serializing independent work (rules/hatch3r-fan-out-discipline.md P8 B2; agents/shared/efficiency-patterns.md). Emit sub_agents_spawned: { count, rationale, task_structure } in your output.

Invoked by

This skill is the verification HARNESS — it declares HOW each UI/UX gate is checked. The DISPATCHERS that decide WHEN to run it are the CQ specialist agents:

  • agents/hatch3r-ui.md — invokes this skill as the axe-core + keyboard-trace + four-state + visual-regression + Core Web Vitals gate (CQ1). The agent contributes trigger conditions and Phase-4 dispatch; this skill contributes the 9-gate procedure.
  • agents/hatch3r-ux.md — invokes this skill when keyboard-trace, microcopy-lint, or human-screen-reader-pass gates flag a UX-pillar delta (CQ2).

No duplication: the agent decides WHEN, this skill defines HOW. The agent bodies cite this skill in their Phase-4 output contract; this subsection is the symmetric upstream citation per rules/hatch3r-agent-orchestration.md (Phase-4 dispatch).

Gate 1: Automated a11y scan (axe-core via Playwright)

  • Command: npx playwright test --grep @a11y with @axe-core/playwright integration on every interactive route.
  • Pass criteria: 0 serious / 0 critical violations.
  • WCAG 2.2 AA target with explicit checks for the new success criteria:
    • SC 2.5.8 Target Size: assert minimum 24x24 CSS px on every focusable element.
    • SC 2.4.11 Focus Not Obscured: assert the focus ring is fully visible — not hidden behind sticky headers, banners, or chatbots.
    • SC 2.5.7 Dragging Movements: assert a non-drag alternative exists for any drag operation.
  • Output: a11y report committed to PR. Merge gate: 0 violations.
  • Setup: import AxeBuilder from '@axe-core/playwright'; call new AxeBuilder({ page }).analyze() inside each route test and assert results.violations.length === 0 after filtering for impact in ['serious', 'critical'].

Gate 2: Scripted keyboard trace

  • Playwright script Tabs / Shift+Tabs / Enter / Space / Escape / Arrows through every interactive element on every route.
  • Per-element assertions:
    • Focus is visible (computed outline width > 0 or detectable focus ring).
    • Focused element is within the viewport (scroll into view if not).
    • No keyboard trap — Tab on the last element exits to the next region.
  • Pass criteria: 100% interactive elements reached + 0 traps + 0 focus-visibility failures.
  • Implementation: enumerate focusable elements via page.locator('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])'); iterate Tab presses up to count + 5 and record the activeElement chain. Diff against the enumeration; any unreached element fails the gate.

Gate 3: Accessibility-tree snapshot

  • Playwright captures the accessibility tree on each route via await expect(page.locator('body')).toMatchAriaSnapshot() (Playwright 1.49+). The committed ariaSnapshot YAML is the baseline; the legacy page.accessibility.snapshot() API was removed — its docs page returns HTTP 404. Regenerate baselines with --update-snapshots (-u) and review the emitted diff before committing (--update-source-method patch writes a git apply-able patch).
  • Per-route assertions via getByRole queries alongside the committed aria snapshot:
    • Exactly one <h1> — await expect(page.getByRole('heading', { level: 1 })).toHaveCount(1).
    • Landmark coverage: banner, main, navigation, contentinfo roles present — e.g. await expect(page.getByRole('main')).toBeVisible(), one assertion per landmark.
    • Every form input has an accessible name — resolve each field with getByRole for its role (textbox, combobox, checkbox, radio, spinbutton) plus { name }; a field with no accessible name is unresolvable and fails the gate.
    • Every image has an alt attribute or role="presentation".
  • The committed aria snapshot diffs on every PR to surface structural a11y regression (heading order, landmarks, accessible names). axe-core (Gate 1) covers the semantic-violation half; this gate covers structure.

Gate 4: Four-state coverage check

  • For every async surface, assert snapshots exist for all four states:
    • loading (skeleton)
    • empty (with CTA)
    • error (cause + retry)
    • partial (banner + degraded data) — the only state needing two concurrent requests at opposite outcomes; fixture it via the partial-state recipe (MSW 200+500 in one worker, or Promise.allSettled with a forced rejection) in rules/hatch3r-ux-states-and-flows.md -> Partial-state fixture recipe.
  • Missing snapshot = blocker.
  • Convention: src/__tests__/states/<feature>.<state>.spec.ts.
  • Discovery (reviewer-driven; no shipped script): grep the project for async data hooks — rg -l 'useQuery|useSWR|\bfetch\(|axios' — and list the surfaces that read remote data. Each listed surface must have all four state files under the convention path above. The reviewer flags any surface missing a state file as a Gate-4 failure. Projects that want this enforced pre-test author their own discovery check wired into CI; hatch3r ships the pattern, not the script (the framework does not own the project's data-fetch taxonomy).

Gate 5: Visual regression baseline

  • playwright.toHaveScreenshot() for component-library projects; Chromatic or Percy for Storybook-heavy projects.
  • Baselines committed to git or stored in the registry. Never auto-regenerated in CI on the same commit that introduces a visual change.
  • Pass criteria: 0 unintentional drift. Intentional drift requires a reviewer to update the baseline.
  • Pixel threshold: maxDiffPixels: 0 for layout-critical screens (header, nav, primary CTA); maxDiffPixelRatio: 0.001 for content-heavy screens. Tighter thresholds catch silent regressions; looser thresholds tolerate font-rendering noise on content text.

Gate 6: Microcopy lint

  • Forbid filler tokens in user-facing strings: "oops", "whoops", "something went wrong", "uh oh".
  • Require a corrective verb on error strings — scan the messages files for error messages, fail when no imperative verb appears.
  • Require the autocomplete attribute on every input matching email, password, name, or address. axe-core covers part of this; add a custom rule for the rest.

Gate 7: Core Web Vitals (2026 thresholds)

  • Lighthouse CI or the web-vitals library in a synthetic environment.
  • p75 thresholds, measured on mobile with slow-4G + 4x CPU throttle:
    • LCP <= 2.5s
    • INP <= 200ms
    • CLS <= 0.1
  • Failure on any metric = merge blocker.
  • Field data follow-up: when production has RUM (Real User Monitoring) wired via web-vitals posting to an analytics endpoint, compare p75 field values to synthetic budgets weekly. A 25% gap between synthetic and field is a finding — re-tune the synthetic environment.

Gate 8: AI-UX checks (when applicable)

Applies only when the feature ships LLM-driven UI. These 7 checks mirror the Verification Gate in rules/hatch3r-ai-ux-patterns.md one-for-one — running Gate 8 means executing all 7, not just the streaming/tool-call subset:

  • Streaming hooks in use — grep for useChat, useCompletion, streamUI, or the framework equivalent.
  • Tool-call cards visible by default — assert at least one rendered card per tool invocation in fixtures, with a snapshot per state (pending, in-progress, complete, failed).
  • Human-approval gates present for side-effectful tools — assert an approval card before write, send, or post tool calls.
  • Cancel/abort/undo controls present and wired to an AbortController — cancellation produces a transcript marker, not a silent terminate.
  • Citation rendering — a grounded response renders an inline citation with source URL or anchor (snapshot test); an ungroundable claim renders the not-found flag string rather than emitting silently.
  • Failure-mode coverage — at least one test per AI failure mode: timeout, rate limit, token budget, tool unavailability, stream interruption, content-policy refusal, stale session. Missing coverage on any mode is a blocker.
  • Accessibility on AI states — axe-core scan against each AI surface state (idle, streaming, tool-call pending, approval-card open, error) returns 0 serious or critical violations.

Cross-reference: rules/hatch3r-ai-ux-patterns.md — the "Verification Gate" section is the canonical 7-item list this gate executes; the "Cancel / Abort / Undo", "Citations and Grounding", and "Failure Modes and Degradation" sections define the expected behavior each check asserts.

Gate 9: Manual screen-reader pass (per release, not per PR)

  • One human pass with VoiceOver (macOS or iOS) or NVDA (Windows) per release on the key user flow.
  • Document the trace in the release notes: route walked, issues found, fixes applied.
  • This gate cannot be skipped or automated away.
  • Trace template: open route, enable screen reader, navigate by heading / by landmark / by form control. Record three things — what was announced, what was missing, what was wrong. Fix or file before release.

Verdict

All 9 gates pass = the feature is "done". Anything less = not done.

The orchestrator running this skill emits a single-line verdict per gate (GATE_N: PASS|FAIL <evidence-path>) and aggregates them. One FAIL on a required gate blocks the merge regardless of QA validation status.

When this skill runs

  • After hatch3r-implementer finishes feature code and before hatch3r-qa-validation runs.
  • On every PR that touches src/components/, src/pages/, src/routes/, or any file matched by the design-system glob.
  • Gate 9 (manual screen-reader pass) skipped on PR runs and required at release-cut time only.

Cross-References

  • rules/hatch3r-accessibility-standards.md
  • rules/hatch3r-ux-states-and-flows.md
  • rules/hatch3r-ai-ux-patterns.md
  • rules/hatch3r-design-system-detection.md
  • rules/hatch3r-performance-budgets.md

References

  • Playwright accessibility testing — playwright.dev/docs/accessibility-testing
  • Deque axe-core — github.com/dequelabs/axe-core
  • Google Core Web Vitals 2026 thresholds — web.dev/articles/vitals
  • Vercel AI SDK UI documentation — ai-sdk.dev/docs/ai-sdk-ui
  • WCAG 2.2 — www.w3.org/TR/WCAG22/

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Hatch3r Ui Ux Verify؟

UI/UX verification gate before declaring a feature done — axe-core, scripted keyboard trace, accessibility-tree snapshot, four-state coverage, visual-regression baseline, one human screen-reader pass per release

لماذا تستخدم Hatch3r Ui Ux Verify على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Hatch3r Ui Ux Verify عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Hatch3r Ui Ux Verify في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-ui-ux-verify. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Hatch3r Ui Ux Verify؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Hatch3r Ui Ux Verify؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Hatch3r Ui Ux Verify معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Hatch3r Ui Ux Verify مجانية؟

نعم. نشرها hatch3r على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇