agent-moodle-scaffolder

agent-moodle-scaffolder is a cursor rule for Cursor from SaadRahman01/claude-moodle-dev. It costs 48 tokens per session (1,170 once invoked), scanned A, original, MIT.

A Moodle plugin starter that creates the files and settings required for a new plugin. Moodle is an online learning platform, and plugins add features to it.

In plain words
What is it for?
Use it to start local, activity, block, theme, authentication, enrolment, report, quiz, filter, or repository plugins from a short description.
Why use it?
It avoids assembling the plugin structure, permissions, language text, privacy declarations, and basic test by hand.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to start local, activity, block, theme, authentication, enrolment, report, quiz, filter, or repository plugins from a short description.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/saadrahman01/claude-moodle-dev/agent-moodle-scaffolder
Install

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.

Clone the repo
git clone --depth 1 https://github.com/SaadRahman01/claude-moodle-dev

Made for: Cursor.

Wrote 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.

agentmods badge for agent-moodle-scaffolder

README.md
[![agentmods](https://agentmods.dev/badge/rules/saadrahman01/claude-moodle-dev/agent-moodle-scaffolder/github.svg)](https://agentmods.dev/rules/saadrahman01/claude-moodle-dev/agent-moodle-scaffolder)
Your own site
<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.

agentmods 80×15 button for agent-moodle-scaffolder

Your own site · 80×15
<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>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,170 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 9d ago against content hash 618e355a3af5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

adapters/cursor/.cursor/rules/agent-moodle-scaffolder.mdc · 136 lines

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 typelocal, mod, block, format, theme, auth, enrol, report, qtype, filter, repository
  • Plugin name — lowercase, no underscore in name part
  • Target Moodle versionrequires field
  • 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:

  1. version.php with:

    • $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';
  2. lang/en/<component>.php with at least:

    • pluginname
    • privacy:metadata (or per-table strings if full provider)
  3. classes/privacy/provider.php:

    • null_provider if "stores user data?" = no
    • Full provider scaffold (per the moodle-privacy-gdpr skill) if yes
  4. db/access.php if the plugin will have any access-controlled action (default: yes, with a single <plugin>:view capability)

  5. README.md with install instructions

  6. CHANGELOG.md with ## [0.1.0] initial entry

  7. GPL-3.0-or-later license header on every PHP file

  8. defined('MOODLE_INTERNAL') || die(); after license (skip in classes/ PSR-4 files)

Type-specific extras

local

  • Optional lib.php, settings.php

mod (activity module)

  • mod_form.php extending moodleform_mod
  • view.php
  • lib.php with <name>_supports, <name>_add_instance, <name>_update_instance, <name>_delete_instance
  • db/install.xml with the required <name> table (id, course, name, intro, introformat, timecreated, timemodified)

Read the full file on GitHub · 136 lines

Changes

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.

  1. 9d ago First seen · 136 lines · 48 tokens per session scan A 618e355a3af5

Subscribe to this mod's changes

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.