# Moodle theme development

> Moodle theme development is an open-source agent skill for developer tools. Guides building Moodle themes: Boost child themes, SCSS hooks, layouts and templates. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/SaadRahman01/claude-moodle-dev/tree/main/skills/moodle-theme-development
- **Repository:** https://github.com/saadrahman01/claude-moodle-dev
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** moodle-theme-development
- **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 walks an agent through creating a Moodle theme as a child of the bundled Boost theme, so branding changes sit on top of core rather than replacing it. It covers the theme folder layout, the config.php manifest, and how lib.php wires SCSS together, with pre-Boost variables and post-Boost overrides.

The guidance also covers theme settings in settings.php, layout file overrides, Mustache template overrides, and renderer overrides activated through the theme renderer factory. It explains development-only theme designer mode, cache purging after SCSS edits, and per-category theme assignment. A short table lists common mistakes and their fixes.

The skill expects a Moodle codebase where the agent can edit files under theme/ and run the Moodle CLI scripts for cache purging and CSS building. The examples are PHP, Mustache and SCSS.

## When your agent uses it

> Use when developing Moodle themes — Boost child themes, theme/yourtheme/config.php, SCSS pre/post hooks, layouts, Mustache template overrides, theme settings, $OUTPUT renderer overrides, and theme designer mode.

## 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-theme-development)
- [License: MIT](https://github.com/SaadRahman01/claude-moodle-dev/tree/HEAD/skills/moodle-theme-development)

## Features

- **Boost child theme setup:** Covers the theme folder skeleton and the config.php manifest that inherits from Boost.
- **SCSS pre and post hooks:** Explains how variables are injected before Boost styles and overrides added after them.
- **Theme settings pages:** Shows admin settings for colours, logos and raw SCSS in settings.php.
- **Layout and template overrides:** Describes replacing layout files and core Mustache templates from the theme.
- **Renderer override pattern:** Demonstrates extending the Boost core renderer and enabling it in config.php.
- **Cache and designer mode:** Explains development-only theme designer mode and purging theme caches.

## Good for

- Rebrand a Moodle site with custom colours and a logo
- Override the navbar template in a Moodle theme
- Add a theme setting that admins can configure
- Change the favicon through a Moodle theme renderer
- Assign a different theme to a course category

## 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-theme-development`:

```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-theme-development &&
cp -R "$tmp/skills/moodle-theme-development" ~/.claude/skills/moodle-theme-development &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/moodle-theme-development` 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-theme-development &&
cp -R "$tmp/skills/moodle-theme-development" ~/.agents/skills/moodle-theme-development &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/moodle-theme-development` 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-theme-development &&
cp -R "$tmp/skills/moodle-theme-development" ~/.cursor/skills/moodle-theme-development &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/moodle-theme-development` 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-theme-development
```

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

### VS Code

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

```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-theme-development &&
cp -R "$tmp/skills/moodle-theme-development" ~/.copilot/skills/moodle-theme-development &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/moodle-theme-development` 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-theme-development` into your agent's skills folder as `moodle-theme-development`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Moodle theme development need to be useful?

It assumes a Moodle codebase where you can edit files under theme/ and run the Moodle CLI scripts for purging caches and building theme CSS.

### Should I edit the Boost theme directly?

No. The skill says to create a child theme that inherits from Boost and override only what changes.

### When should theme designer mode be used?

Only in development. It disables CSS caching and rebuilds SCSS on every page, which hurts performance, so it should not be used in production.

### What should I do after changing SCSS on a live site?

Purge the theme caches from Site administration under Development, or run the purge_caches CLI script.

### How do I install Moodle theme development in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/moodle-theme-development to use it in all your projects, or to .claude/skills/moodle-theme-development 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 theme development 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 theme development?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Moodle theme development?

The closest alternatives to Moodle theme development are Moodle plugin development, Moodle accessibility, Moodle phpunit testing, Moodle behat testing and Moodle performance.

## 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 accessibility](https://ai-powered.com/skills/moodle-accessibility): Moodle 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.
- [Moodle performance](https://ai-powered.com/skills/moodle-performance): Moodle performance is an open-source agent skill for developer tools.
- [Moodle mobile app](https://ai-powered.com/skills/moodle-mobile-app): Moodle mobile app 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.
- [Moodle upgrade migration](https://ai-powered.com/skills/moodle-upgrade-migration): Moodle upgrade migration is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/moodle-theme-development
