# Moodle accessibility

> Moodle accessibility is an open-source agent skill for developer tools. Guides agents to build Moodle plugin UI that meets WCAG 2.1 AA accessibility rules. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/SaadRahman01/claude-moodle-dev/tree/main/skills/moodle-accessibility
- **Repository:** https://github.com/saadrahman01/claude-moodle-dev
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** moodle-accessibility
- **Collection:** https://github.com/SaadRahman01/claude-moodle-dev
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill gives an AI coding agent a checklist and reference patterns for making Moodle plugin interfaces accessible under WCAG 2.1 AA. It covers semantic markup in Mustache templates, form labelling through formslib, button and link choices, icon handling, table structure, and colour contrast in SCSS themes. It also points the agent to Moodle's own core components such as the modal, focus manager and toast helpers, so it reuses built-in focus trapping and live regions rather than writing custom ones.

The skill also covers keyboard behaviour, a screen reader testing matrix with quick manual checks, and automated scanning with axe-core and Pa11y run against a local Moodle URL. A common mistakes table and a list of issues reviewers raise during moodle.org plugin directory submission round it out.

It is written for developers working in Moodle, so the examples assume PHP, Mustache, JavaScript modules and SCSS in a plugin folder. The skill contains no scripts; the automation commands are run by the developer.

## When your agent uses it

> Use when ensuring Moodle plugin UI meets WCAG 2.1 AA — semantic HTML in Mustache, ARIA via core helpers, keyboard navigation, color contrast in SCSS, focus management in modals, screen reader testing, and Pa11y/axe automation.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/SaadRahman01/claude-moodle-dev/tree/HEAD/skills/moodle-accessibility)
- [License: MIT](https://github.com/SaadRahman01/claude-moodle-dev/tree/HEAD/skills/moodle-accessibility)

## Features

- **Semantic Mustache markup:** Patterns for using native buttons, headings, sections and tables so screen readers get correct structure.
- **Formslib labelling:** Shows how Moodle's quick form output links labels, help buttons and required-field attributes to inputs.
- **Colour contrast in SCSS:** Explains the 4.5:1 text and 3:1 UI contrast targets and how to check theme palette colours.
- **Modal and focus management:** Describes using core modal and focus manager helpers so focus is trapped and restored on close.
- **Live region announcements:** Covers core toast notifications and when to use polite versus assertive live regions.
- **Automated accessibility scans:** Lists axe-core and Pa11y commands for checking a Moodle page against WCAG2AA.

## Good for

- Make a new Moodle plugin settings form accessible to screen readers
- Review a pull request for accessibility regressions in Mustache templates
- Fix colour contrast problems in a plugin's SCSS theme overrides
- Add an accessible modal dialog that traps focus using Moodle core helpers
- Prepare a plugin for moodle.org directory submission with accessibility checks

## Install

### Claude Code

This skill ships in the `moodle-dev` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add SaadRahman01/claude-moodle-dev
/plugin install moodle-dev@moodle-dev
```

Or copy only this skill to `~/.claude/skills/moodle-accessibility`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SaadRahman01/claude-moodle-dev.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/moodle-accessibility &&
cp -R "$tmp/skills/moodle-accessibility" ~/.claude/skills/moodle-accessibility &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/moodle-accessibility` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/moodle-accessibility` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SaadRahman01/claude-moodle-dev.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/moodle-accessibility &&
cp -R "$tmp/skills/moodle-accessibility" ~/.agents/skills/moodle-accessibility &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/moodle-accessibility` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/moodle-accessibility` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SaadRahman01/claude-moodle-dev.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/moodle-accessibility &&
cp -R "$tmp/skills/moodle-accessibility" ~/.cursor/skills/moodle-accessibility &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/moodle-accessibility` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/SaadRahman01/claude-moodle-dev.git --path skills/moodle-accessibility
```

Or copy the folder to `~/.gemini/skills/moodle-accessibility` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/moodle-accessibility`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SaadRahman01/claude-moodle-dev.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/moodle-accessibility &&
cp -R "$tmp/skills/moodle-accessibility" ~/.copilot/skills/moodle-accessibility &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/moodle-accessibility` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/SaadRahman01/claude-moodle-dev.git
```

Then copy `claude-moodle-dev/skills/moodle-accessibility` into your agent's skills folder as `moodle-accessibility`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which Moodle version and framework does Moodle accessibility assume?

It assumes the Boost theme, Bootstrap 5 and Moodle's component library, and refers to the Bootstrap 5 class names used there.

### Does Moodle accessibility run any scripts or change files?

No. The skill contains only its instructions file and gives reference code and commands for the developer to use.

### What tools does Moodle accessibility need for testing?

It names axe-core via npm, Pa11y via npm, and screen readers such as NVDA, VoiceOver, Orca and TalkBack for manual testing.

### When does the skill apply?

It applies when building Moodle plugin UI, reviewing pull requests for accessibility, preparing directory submissions, or responding to accessibility bug reports.

### How do I install Moodle accessibility in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/moodle-accessibility to use it in all your projects, or to .claude/skills/moodle-accessibility in one project. Or install the moodle-dev plugin, which includes it: /plugin marketplace add SaadRahman01/claude-moodle-dev, then /plugin install moodle-dev@moodle-dev.

### Does Moodle accessibility run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Moodle accessibility?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Moodle accessibility?

The closest alternatives to Moodle accessibility are Moodle plugin development, Moodle security audit, Frontend a11y, Moodle performance and Moodle theme development.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Moodle plugin development](https://ai-powered.com/skills/moodle-plugin-development): Moodle plugin development is an open-source agent skill for developer tools.
- [Moodle security audit](https://ai-powered.com/skills/moodle-security-audit): Moodle security audit is an open-source agent skill for security.
- [Frontend a11y](https://ai-powered.com/skills/frontend-a11y): Frontend a11y is an open-source agent skill for developer tools.
- [Moodle performance](https://ai-powered.com/skills/moodle-performance): Moodle performance is an open-source agent skill for developer tools.
- [Moodle theme development](https://ai-powered.com/skills/moodle-theme-development): Moodle theme development is an open-source agent skill for developer tools.
- [Accessibility](https://ai-powered.com/skills/accessibility): Accessibility is an open-source agent skill for developer tools.
- [Moodle phpunit testing](https://ai-powered.com/skills/moodle-phpunit-testing): Moodle phpunit testing is an open-source agent skill for developer tools.
- [Moodle behat testing](https://ai-powered.com/skills/moodle-behat-testing): Moodle behat testing is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/moodle-accessibility
