mirea-moodle-download
Skill1 starsChanged 12 days agoMITView on GitHub
Use for Moodle pluginfile.php downloads using MoodleSession, including resume/PDF checks. Not for public files, credentials, or administration.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- vladcheck/skillsword for word, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 1
- vladcheck/skills★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- analyze-session-pingpong-logsSkill
- create-glossarySkill
- deepseek-reasoning-tier-clarifierSkill
- defineSkill
- find-alternativesSkill
- get-note-links-from-textSkill
- gitlab-eas-tickets-publishSkill
- gitlab-mr-roundtripSkill
- git-rebuild-branchSkill
- git-sequentialSkill
- gost-report-rebuildSkill
- mattpocock-skills-researchSkill
- obsidian-add-links-to-noteSkill
- opsx-spec-validateSkill
- paretto-principleSkill
- publish-spec-gitlab-milestoneSkill
- publish-tickets-gitlabSkill
- solidSkill
- update-skills-via-skills-shSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Ask the user for a fresh MoodleSession cookie value from browser DevTools: Application → Cookies.
- Very specific: line 20
If the server cuts the connection early, resume the same output file.
- Very specific: line 29
Stop when a pass reports HTTP:200 and bytes:0.
- Distinctive: line 30
Verify the downloaded file:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Authenticated Moodle File Download
Download authentication-protected pluginfile.php resources from <moodle-host> without mistaking login HTML or truncated data for the requested file.
Procedure
- Ask the user for a fresh
MoodleSessioncookie value from browser DevTools: Application → Cookies. Treat the value as a secret and do not persist it in files or logs. If requests redirect with HTTP 303 to/login/index.php, ask for a fresh value. Download with HTTP/1.1:
curl -sS --http1.1 -b "MoodleSession=<moodle-session>" -o "<out.pdf>" "<pluginfile-url>"URL-encode non-ASCII path segments, including Cyrillic text. Keep
?forcedownload=1in the URL.If the server cuts the connection early, resume the same output file. Symptoms include
curl: (18), HTTP/2INTERNAL_ERROR,pdfinforeportingInvalid XRef entry, orCouldn't read xref table.for i in $(seq 1 8); do curl -sS --http1.1 -C - -b "MoodleSession=<moodle-session>" -o "<out.pdf>" "<pluginfile-url>" -w 'HTTP:%{http_code} bytes:%{size_download}\n' sleep 1 doneStop when a pass reports
HTTP:200andbytes:0. If eight passes do not complete the file, report the incomplete transfer instead of treating it as valid.Verify the downloaded file:
pdfinfo "<out.pdf>" pdftotext -l 1 -q "<out.pdf>" - | head -c 600 file "<out.pdf>"Require
pdfinfoto exit 0 with a plausible page count, the text sample to be readable, andfileto identify a PDF document rather than HTML. HTML output, often approximately 39 KB and identified asHTML document text, indicates an expired session; obtain a fresh cookie and repeat the download.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

