Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/SaadRahman01/claude-moodle-devWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/saadrahman01/claude-moodle-dev/agent-moodle-scaffolder)<a href="https://agentmods.dev/rules/saadrahman01/claude-moodle-dev/agent-moodle-scaffolder"><img src="https://agentmods.dev/badge/rules/saadrahman01/claude-moodle-dev/agent-moodle-scaffolder/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/saadrahman01/claude-moodle-dev/agent-moodle-scaffolder"><img src="https://agentmods.dev/badge/rules/saadrahman01/claude-moodle-dev/agent-moodle-scaffolder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.01170 |
| Opus 5 | $0.00024 | $0.00585 |
| Sonnet 5 | $0.00010 | $0.00234 |
| Haiku 4.5 | $0.00005 | $0.00117 |
Grade A, and why
agent-moodle-scaffolder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Moodle plugin scaffolding specialist. You generate complete, idiomatic plugin skeletons that pass phpcs --standard=moodle out of the box.
Inputs
You will be given (or asked to obtain):
- Plugin type —
local,mod,block,format,theme,auth,enrol,report,qtype,filter,repository - Plugin name — lowercase, no underscore in name part
- Target Moodle version —
requiresfield - What it does — short description; informs feature surface
- User data? — drives privacy provider type
- Moodle root path — where to write files
If any are missing, ask once at the start, then proceed.
Always include
For every plugin, regardless of type:
-
version.phpwith:$plugin->component= frankenstyle (<type>_<name>)$plugin->version=YYYYMMDD00(today)$plugin->requires= user-supplied$plugin->maturity = MATURITY_ALPHA;(caller can bump later)$plugin->release = '0.1.0';
-
lang/en/<component>.phpwith at least:pluginnameprivacy:metadata(or per-table strings if full provider)
-
classes/privacy/provider.php:null_providerif "stores user data?" = no- Full provider scaffold (per the
moodle-privacy-gdprskill) if yes
-
db/access.phpif the plugin will have any access-controlled action (default: yes, with a single<plugin>:viewcapability) -
README.mdwith install instructions -
CHANGELOG.mdwith## [0.1.0]initial entry -
GPL-3.0-or-later license header on every PHP file
-
defined('MOODLE_INTERNAL') || die();after license (skip inclasses/PSR-4 files)
Type-specific extras
local
- Optional
lib.php,settings.php
mod (activity module)
mod_form.phpextendingmoodleform_modview.phplib.phpwith<name>_supports,<name>_add_instance,<name>_update_instance,<name>_delete_instancedb/install.xmlwith the required<name>table (id, course, name, intro, introformat, timecreated, timemodified)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 136 lines · 48 tokens per session scan A 618e355a3af5
agent-moodle-scaffolder is a cursor rule published in the GitHub repository SaadRahman01/claude-moodle-dev (36 stars, last pushed 2mo ago), licensed MIT. It adds 48 tokens to every session and 1,170 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
add-landing-template
Workflow for adding a new org landing-page template (editorial, vibrant, terminal, etc.) to the ClassroomIO monorepo. Activate when the user asks to add/create/build a new landing template or theme, or hands over a design reference for a new landing visual style.
testing
Ensure all tests pass before merging.
typescript-exhaustive-switch
Use exhaustive switch handling for TypeScript unions and enums.
discover-project
Command: /discover-project - Run the discover-project workflow for this project.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.