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.
npx agentmods add rules/saadrahman01/claude-moodle-dev/cmd-moodle-new-plugingit 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/cmd-moodle-new-plugin)<a href="https://agentmods.dev/rules/saadrahman01/claude-moodle-dev/cmd-moodle-new-plugin"><img src="https://agentmods.dev/badge/rules/saadrahman01/claude-moodle-dev/cmd-moodle-new-plugin.svg" alt="Measured on agentmods" 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.00024 | $0.00499 |
| Opus 5 | $0.00012 | $0.00249 |
| Sonnet 5 | $0.00005 | $0.00100 |
| Haiku 4.5 | $0.00002 | $0.00050 |
Grade A, and why
cmd-moodle-new-plugin 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 5d 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.
What it actually says
You will scaffold a new Moodle plugin.
User's input: {user_input}
If {user_input} is empty or missing required values, ask the user:
- Plugin type (one of:
local,mod,block,format,theme,auth,enrol,report,qtype,filter,repository) - Plugin name (lowercase, no underscores in the name part — frankenstyle becomes
<type>_<name>) - Target Moodle minimum version (default: latest LTS)
- Whether the plugin will store user data (affects privacy provider choice)
Then:
- Activate the
moodle-plugin-developmentskill for conventions. - Create the directory under
<moodle-root>/<typedir>/<name>/(e.g.,local/attendance/). If<moodle-root>is unknown, ask. - Generate the minimum required files for the chosen plugin type using the cheatsheet in the
moodle-plugin-developmentskill. - Always include:
version.phpwith correct frankenstyle component, today's date as version (YYYYMMDD00), and the user'srequiresvaluelang/en/<component>.phpwith at leastpluginnameclasses/privacy/provider.php—null_providerif no user data, otherwise scaffold the full provider per themoodle-privacy-gdprskill- GPL-3.0-or-later license header on every PHP file
defined('MOODLE_INTERNAL') || die();after the license block (skip inclasses/PSR-4 files)
- If the plugin type has type-specific required files (e.g.,
mod_form.phpfor activity modules,block_<name>.phpfor blocks), include them. - Print a summary of what was created and the next steps the user should take (run
php admin/cli/upgrade.php, register capabilities, write tests).
Coding standards: 4-space indent, no closing ?>, snake_case functions, PascalCase classes.
If unsure about a Moodle version difference, prefer the convention used in Moodle 4.5+ and note any back-compat concerns.
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.
- 5d ago First seen · 32 lines · 499 tokens per session scan A 1c1b7a3ba4e5
cmd-moodle-new-plugin is a cursor rule published in the GitHub repository SaadRahman01/claude-moodle-dev (35 stars, last pushed 2mo ago), licensed MIT. It adds 24 tokens to every session and 499 once invoked, about $0.0001 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.
no-inline-imports
Keep imports at top of file and avoid inline imports.
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.