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/cmd-moodle-privacy-audit)<a href="https://agentmods.dev/rules/saadrahman01/claude-moodle-dev/cmd-moodle-privacy-audit"><img src="https://agentmods.dev/badge/rules/saadrahman01/claude-moodle-dev/cmd-moodle-privacy-audit/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/cmd-moodle-privacy-audit"><img src="https://agentmods.dev/badge/rules/saadrahman01/claude-moodle-dev/cmd-moodle-privacy-audit.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.00027 | $0.00504 |
| Opus 5.5 | $0.00011 | $0.00202 |
| Sonnet 5.5 | $0.00005 | $0.00101 |
| Haiku 4.5 | $0.00003 | $0.00050 |
Grade A, and why
cmd-moodle-privacy-audit 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 3mo 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 audit the privacy provider of a Moodle plugin.
User's input: {user_input}
Activate the moodle-privacy-gdpr skill for context.
Steps:
- Locate the plugin directory. If unclear, ask.
- Read
db/install.xml(ordb/upgrade.phpif no install.xml) — list every table and column. - Identify columns that store user-identifying data:
userid,user_id,createdby,modifiedby,usermodified,relateduserid- Free-text fields a user authored (
content,comment,description,note) - File pointers (
itemidreferencingmdl_files) - Identifiers from external systems linked to a user
- Read
classes/privacy/provider.php. - For each user-identifying column, check:
- It is declared in
get_metadata()viaadd_database_tablewith a lang string - The column has an entry in
lang/en/<component>.phpof the formprivacy:metadata:<table>:<column> get_contexts_for_useridreturns contexts where the user has dataget_users_in_contextreturns users who have data in a given contextexport_user_dataexports the data per contextdelete_data_for_useranddelete_data_for_usersdelete it correctlydelete_data_for_all_users_in_contexthonors context level
- It is declared in
- Check for subsystem usage:
- If plugin attaches files via the Moodle Files API,
add_subsystem_link('core_files', ...)must be present - Same for
core_comment,core_rating,core_tagif used
- If plugin attaches files via the Moodle Files API,
- If plugin stores no user data, check it implements
null_providercorrectly (get_reasonreturns lang string key,privacy:metadatalang string defined). - Output findings:
- GREEN: present and correct
- YELLOW: present but incomplete / missing lang strings
- RED: missing entirely
Propose a fixed provider.php and the missing lang strings if there are issues. Don't write the changes without user confirmation if the plugin is non-trivial.
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.
- 3mo ago First seen · 39 lines · 504 tokens per session scan A 65055084be7c
cmd-moodle-privacy-audit is a cursor rule published in the GitHub repository SaadRahman01/claude-moodle-dev (43 stars, last pushed 5mo ago), licensed MIT. It adds 27 tokens to every session and 504 once invoked, about $0.0001 per session on Opus 5.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.
cmd-moodle-privacy-audit compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cmd-moodle-privacy-auditSaadRahman01/claude-moodle-dev | Cursor rule | 43 | 5mo ago | MIT | A | 27 | Cursor |
| standard-back-end-repositories-sql-queries-using-typeormPackmindHub/packmind | Cursor rule | 327 | 20d ago | Apache-2.0 | A | 216 | Cursor |
| add-landing-templateclassroomio/classroomio | Cursor rule | 1.8k | today | AGPL-3.0 | A | 0 | Cursor |
| sqlAcKeskin/contexture | Cursor rule | 2 | 7d ago | MIT | A | 1,138 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 201k | 8d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | 4d ago | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | today | Apache-2.0 | A | 1,147 | Cursor |