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/commands/saadrahman01/claude-moodle-dev/moodle-security-review)<a href="https://agentmods.dev/commands/saadrahman01/claude-moodle-dev/moodle-security-review"><img src="https://agentmods.dev/badge/commands/saadrahman01/claude-moodle-dev/moodle-security-review/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/commands/saadrahman01/claude-moodle-dev/moodle-security-review"><img src="https://agentmods.dev/badge/commands/saadrahman01/claude-moodle-dev/moodle-security-review.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.00000 | $0.00690 |
| Opus 5 | $0.00000 | $0.00345 |
| Sonnet 5 | $0.00000 | $0.00138 |
| Haiku 4.5 | $0.00000 | $0.00069 |
Grade A, and why
moodle-security-review scanned grade A with 1 finding 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 10d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
15. Uses `\curl` wrapper, not raw `curl_exec()` / `file_get_contents($url)` How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/moodle-security-review
Run the Moodle security checklist on a file, directory, or entire plugin.
You will perform a Moodle-specific security review.
User's input:
Activate the moodle-security-audit skill for context.
If <args> is empty, ask for a file or plugin path.
Audit each PHP file in scope against this checklist. Report findings as:
[FILE]:[LINE] [SEVERITY] [CATEGORY] — [issue]
FIX: [actionable fix]
Severities: CRITICAL (exploitable now), HIGH (privilege escalation / data leak), MEDIUM (defense in depth), LOW (style / hardening).
Checklist
For every entry script (file with require('config.php') or similar):
require_login()present and called earlyrequire_capability()against the object's context (not arbitrary system context)require_sesskey()on every state-changing request (POST or mutating GET)- All input via
required_param/optional_paramwith appropriatePARAM_*type — flag any$_GET/$_POST/$_REQUESTusage
For every DB call:
5. Uses $DB->... — flag any mysqli_*, PDO, mysql_*
6. Placeholders (? / :name) — flag string concatenation in SQL
7. LIKE patterns use $DB->sql_like() + sql_like_escape()
8. IN (...) uses $DB->get_in_or_equal()
For every output:
9. User text rendered via s(), format_string(), format_text() — flag direct echo $var
10. format_string/format_text is called with a context
11. Mustache {{{var}}} raw output is justified (text already passed through format_text)
For file APIs:
12. pluginfile.php callback re-checks capability inside callback
13. Files are served via \file_storage + send_stored_file, never raw $CFG->dataroot
14. Uploads use file_save_draft_area_files with maxfiles, maxbytes, accepted_types
For HTTP / external:
15. Uses \curl wrapper, not raw curl_exec() / file_get_contents($url)
16. Open redirects: redirect($next) with $next from user input is validated against site host
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.
- 10d ago First seen · 64 lines · 0 tokens per session scan A 7cf7a3a13bf6
moodle-security-review is a command published in the GitHub repository SaadRahman01/claude-moodle-dev (36 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 690 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
discuss
5-phase requirements-elicitation interview that produces an EARS-validated context/ .md.
brand-setup
Configure a new brand profile with colors, fonts, logo, visual style, platforms, and compliance rules.
qa
Smoke or browser-walk a running app. Report only. Do not implement. Do not merge.
compile
Compile a FIBER decision context (world + query) and report the oracle verdict, omission accounting, and certificate digest faithfully.
status
Show whether senior mode is on, and how much you've leaned on it.
draft-plan
Produce a versioned plan under .claude/plans/ /v .md from the active spec for that slug. Each step has a goal, files, expected outcome, and verification criteria. Plans pin to a specific spec version. The drafted plan is presented for review (accept / edit / reject) before it is written to disk.