شعار Axe Rules

Axe Rules

المجتمع
mgifford
axe-rules

حمّل هذه المهارة عند إعداد عمليات الفحص باستخدام axe-core، أو مراجعة نتائج اختبارات إمكانية الوصول الآلية، أو كتابة اختبارات تستخدم @axe-core/playwright أو @axe-core/react أو عمليات تكامل مشابهة. توفر مرجعًا سريعًا لمعرّفات قواعد axe 4.x، وربطها بمعايير WCAG، ومستويات الخطورة الافتراضية.

Add to TypingMind

نظرة عامة

الناشرmgifford
المستودعaccessibility-skills
اسم المهارةaxe-rules
النجوم
57
التفريعات
5
الملفات المرفقة
1
الترخيصAGPL-3.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • الملفات المرفقة: 1

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

يُحمّل النموذج مهارة Axe Rules تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

Axe-Core Rules Reference Skill

Canonical source: examples/AXE_RULES_REFERENCE.md and examples/AXE_RULES_COVERAGE.md in mgifford/ACCESSIBILITY.md This skill is derived from those files. When in doubt, the example is authoritative. Note: the canonical files are organized around a specific test-fixture scanner project (numbered test pages). This skill re-presents the same rule set and severities as a general-purpose reference, independent of any particular fixture.

Apply these rules when writing, reviewing, or debugging axe-core scans.


Core Principle

Axe-core catches ~30–40% of WCAG issues automatically. It is the baseline, not the ceiling. Always pair automated scanning with manual keyboard and screen reader testing.

An axe-core result is evidence, not a conformance decision. Preserve the rule's raw outcome (violations, incomplete, passes, inapplicable) exactly as axe reports it — do not overwrite or discard it when converting to a project finding. Cite this file, AXE_RULES_REFERENCE.md, or the rule's own dequeuniversity.com/rules/axe/ page as the authority for a WCAG mapping; do not invent a mapping axe-core does not document for that rule. Record an unreviewed violations result as evidence_status: automated-indicator with handling: review — never as a confirmed standards failure — until a human confirms it. See Accessibility Finding Tracking: Policy Classification.

Key tags to include in scans:

typescript
.withTags(['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa'])

Axe-core 4.11 includes 100+ automated checks across these categories: WCAG 2.0 A/AA (68 rules), WCAG 2.1 A/AA (26 rules), WCAG 2.2 A/AA (1 rule, disabled by default), Best Practices (30+ rules), WCAG AAA (3 rules, disabled by default), Experimental (9 rules, disabled by default), and Deprecated (7 rules, disabled by default).


Severity Scale (axe-core)

axe severityMeaning
criticalBlocks access for one or more disability groups
seriousSignificantly impairs access
moderateCreates friction; workaround exists
minorBest-practice gap; marginal impact

Critical Rules — must never appear in production

Rule IDCategoryDescription
image-altText alternatives<img> missing alt attribute
area-altText alternativesImage map <area> missing alt text
input-image-altText alternatives<input type="image"> missing alt
video-captionText alternatives<video> without captions
aria-allowed-attrARIAElement has unsupported ARIA attributes for its role
aria-hidden-bodyARIAaria-hidden applied to <body>
aria-required-attrARIARequired ARIA attribute missing
aria-required-childrenARIARequired child ARIA roles missing
aria-required-parentARIARequired parent ARIA role missing
aria-rolesARIAInvalid ARIA role value
aria-valid-attrARIAInvalid ARIA attribute name
aria-valid-attr-valueARIAARIA attribute has invalid value
labelFormsForm input without associated <label>
select-nameForms<select> without accessible name
button-nameButtons/LinksButton without discernible text
input-button-nameButtons/Links<input type="button"> without text
duplicate-id-ariaStructureDuplicate id values referenced by ARIA
meta-refreshMeta<meta http-equiv="refresh"> causes timed redirect

Serious Rules — fix before release

Rule IDCategoryDescription
object-altText alternatives<object> without accessible text
svg-img-altText alternativesSVG with role="img" and no accessible name
role-img-altText alternativesElement with role="img" lacks alt text
aria-braille-equivalentARIABraille label without non-braille equivalent
aria-command-nameARIAButton, link, or menu item without accessible name
aria-conditional-attrARIAARIA attribute used contrary to role spec
aria-hidden-focusARIAaria-hidden element contains focusable content
aria-input-field-nameARIAARIA input field without accessible name
aria-meter-nameARIAARIA meter element without accessible name
aria-progressbar-nameARIAARIA progressbar element without accessible name
aria-prohibited-attrARIAProhibited ARIA attribute used
aria-toggle-field-nameARIAARIA toggle field without accessible name
aria-tooltip-nameARIAARIA tooltip without accessible name
aria-dialog-nameARIADialog without accessible name
aria-treeitem-nameARIATree item without accessible name
color-contrastColorText contrast below 4.5:1 (normal) or 3:1 (large)
frame-titleFrames<iframe> without accessible name
frame-title-uniqueFramesFrame titles are not unique
frame-focusable-contentFramesFrame with focusable content is tabindex="-1"
html-has-langLanguage<html> missing lang attribute
html-lang-validLanguagelang attribute has invalid BCP 47 value
valid-langLanguageInline lang value is invalid
document-titleLanguage<title> element missing
listStructure<ul>/<ol> contains elements other than <li>
listitemStructure<li> outside <ul> or <ol>
definition-listStructure<dl> contains elements other than <dt>/<dd>
dlitemStructure<dt>/<dd> outside <dl>
bypassKeyboardNo skip navigation mechanism present
scrollable-region-focusableKeyboardScrollable region not keyboard accessible
link-nameButtons/LinksLink without discernible text
link-in-text-blockButtons/LinksLink not distinguishable from surrounding text
avoid-inline-spacingContent sizingText spacing overrides not adjustable
autocomplete-validFormsautocomplete attribute invalid or missing
tabindexBest practicestabindex value > 0 used
label-title-onlyBest practicesForm field labeled only via title attribute
label-content-name-mismatchBest practices (experimental)Visible label text doesn't match accessible name
td-has-headerTables (experimental)Large table cells lack associated headers
table-fake-captionTables (experimental)Table caption not marked up with <caption>
p-as-headingBest practices (experimental)Paragraph styled to look like a heading

Moderate Rules — fix in near-term backlog

Rule IDCategoryDescription
heading-orderHeadingsHeading levels skipped (e.g., h1 → h3)
empty-headingHeadingsHeading has no discernible text
th-has-data-cellsTablesTable headers have no associated data cells
td-headers-attrTablesTable cells reference invalid header IDs
meta-viewportMetaViewport user-scalable=no disables zoom
html-xml-lang-mismatchLanguagelang and xml:lang attributes disagree
form-field-multiple-labelsFormsForm field has multiple conflicting labels
landmark-one-mainBest practicesPage has no <main> landmark
landmark-banner-is-top-levelBest practicesbanner landmark not at top level
landmark-contentinfo-is-top-levelBest practicescontentinfo landmark not at top level
landmark-main-is-top-levelBest practicesmain landmark not at top level
landmark-no-duplicate-bannerBest practicesMore than one banner landmark
landmark-no-duplicate-contentinfoBest practicesMore than one contentinfo landmark
landmark-no-duplicate-mainBest practicesMore than one main landmark
regionBest practicesContent exists outside landmark regions
page-has-heading-oneBest practicesPage has no <h1>
scope-attr-validBest practicesscope attribute has invalid value
accesskeysBest practicesaccesskey values are not unique

Minor Rules

Rule IDCategoryDescription
table-duplicate-nameTables<caption> text duplicates summary attribute
aria-deprecated-roleARIADeprecated ARIA role used
server-side-image-mapKeyboardServer-side image map used
aria-textARIA (best practice)role="text" on an element with focusable descendants

Disabled-by-default rules (deprecated marquee/blink/audio-caption) are not listed above — flag them if encountered, but they are not enabled in a default scan.

The three WCAG AAA rules axe-core disables by default report against a level the project's AA target does not require. If enabled and a project has not declared a broader target, classify a confirmed finding from one of these rules as obligation: aspirational, not advisory — it is still a real AAA-level finding, just not part of the AA baseline. Do not report satisfying one of these rules as WCAG AAA conformance.


Running axe-core in CI (Playwright)

typescript
import { test, expect } from '@playwright/test';
import AxeBuilder from '@axe-core/playwright';

test('No WCAG 2.x AA violations', async ({ page }) => {
  await page.goto('/');
  const results = await new AxeBuilder({ page })
    .withTags(['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa'])
    .analyze();
  expect(results.violations).toEqual([]);
});

Common configuration options:

typescript
// Exclude a specific element (use sparingly — document the reason)
.exclude('#known-false-positive')

// Include only a specific element
.include('#component-under-test')

// Disable a specific rule (document the reason and JIRA/issue link)
.disableRules(['color-contrast'])

Definition of Done Checklist

  • axe-core scans run on every PR with wcag2a, wcag2aa, wcag21aa, wcag22aa tags
  • Zero critical violations in production code
  • Zero serious violations in production code (or explicit waiver with issue link)
  • All rule exclusions documented with reason and associated issue
  • Light and dark colour schemes both tested
  • Mobile viewport tested
  • axe results published as CI artifact for reference

Key WCAG Criteria (automation coverage)

  • 1.1.1 Non-text Content (A)
  • 1.3.1 Info and Relationships (A)
  • 1.4.3 Contrast Minimum (AA)
  • 2.4.2 Page Titled (A)
  • 3.1.1 Language of Page (A)
  • 4.1.2 Name, Role, Value (A)
  • 4.1.3 Status Messages (AA) — partial coverage

Automation covers ~30–40% of WCAG issues. Always pair with manual testing.


References

Standards horizon: These rules target WCAG 2.2 AA. Monitor: https://www.w3.org/TR/wcag-3.0/

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

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

ماذا تفعل مهارة الذكاء الاصطناعي Axe Rules؟

حمّل هذه المهارة عند إعداد عمليات الفحص باستخدام axe-core، أو مراجعة نتائج اختبارات إمكانية الوصول الآلية، أو كتابة اختبارات تستخدم @axe-core/playwright أو @axe-core/react أو عمليات تكامل مشابهة. توفر مرجعًا سريعًا لمعرّفات قواعد axe 4.x، وربطها بمعايير WCAG، ومستويات الخطورة الافتراضية.

لماذا تستخدم Axe Rules على TypingMind؟

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

كيف أثبّت Axe Rules في TypingMind؟

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

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Axe Rules؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Axe Rules؟

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

هل مهارة الذكاء الاصطناعي Axe Rules مجانية؟

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

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

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

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

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

عرض الكل

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

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