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 | $0.00014 | $0.00252 |
| Sonnet 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 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.
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.
- 9d 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 (36 stars, last pushed 2mo ago), licensed MIT. It adds 27 tokens to every session and 504 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
standard-integration-tests-structure-and-patterns
Define testing patterns for integration tests in the Packmind monorepo to ensure consistent organization, proper resource management, and comprehensive test coverage using hexagonal architecture princ... .
standard-back-end-repositories-sql-queries-using-typeorm
This standard provides guidelines for writing SQL queries using TypeORM in back-end repositories located in /infra/repositories/\Repository.ts. TypeORM offers multiple approaches to query data, but f... .
standard-scoped-repository-patterns
Enforce data isolation and consistent query patterns in repositories extending SpaceScopedRepository or OrganizationScopedRepository, ensuring tenant-safe data access across the Packmind codebase. .
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.
ecoconception-sql
Règles d'écoconception pour SQL et PL/SQL, sobriété des lectures, index, pagination, traitements ensemblistes, cycle de vie des données.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.