agentleFS
RohanMuppaRohanMuppa/brightspace-mcp-server/skills/download-course/SKILL.md

download-course

Skill71 starsChanged 10 months agoMITView on GitHub

Use when a student asks to download, save, back up or sync a Brightspace course (the whole course, one module, or only what is new). Covers choosing a folder, previewing with a dry run, what the whole-course option includes, and how to report what could not be read.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use download_course_files.

    line 8
  2. Very specific:

    Run it for real with the same arguments and dryRun off.

    line 15
  3. Distinctive:

    If the run stopped early (file cap, size cap, time limit, cancelled), call it again with the same arguments to continue.

    line 16
  4. Distinctive:

    Never report something that could not be read as if there were none.

    line 42
  5. Very specific:

    When a student asks "what don't I have yet?", call get_unsaved_course_files with the course id.

    line 52
  6. Very specific:

    If the student already has some of the files, record them with mark_course_files_saved so they stop being listed.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Downloading a Brightspace course

Use download_course_files. It saves the course's files into folders named after its modules, and running it again only fetches what is new. It only reads from Brightspace; nothing in the course is changed.

Steps

  1. Get the course id. Call get_my_courses if the student named the course instead.
  2. Ask where to save. Never guess a folder. It must be an absolute path to a folder that already exists, written out in full. Some places are refused: the home folder itself, a drive root, hidden folders such as ~/.ssh, ~/Library, and system folders. If a folder is refused, the answer names the rule; pick another folder with the student.
  3. On a large course, preview first: call download_course_files with dryRun set to true. It lists what would be saved and downloads nothing. Show the student the count and ask before the real run.
  4. Run it for real with the same arguments and dryRun off.
  5. If the run stopped early (file cap, size cap, time limit, cancelled), call it again with the same arguments to continue. Files already on disk are skipped.

What the whole course means

By default only the Content area is saved. When the student asks for "everything" or "the whole course", set everything. That turns on three options you can also set one by one:

  • includeSubmissions: the student's own submitted files, plus a feedback.md per assignment with the score, the instructor's comments and the rubric.
  • includeAssignmentFiles: the instructor's attachments on each assignment.
  • includeAnnouncementFiles: files attached to announcements.

The syllabus is never part of it. Fetch it separately with get_syllabus.

For a single module, pass moduleId from get_course_content. The extra options still cover the whole course.

Files that are already there

existing decides what happens to a file already in the folder:

  • skip (the default) leaves it alone, which protects the student's annotated copies.
  • replace downloads again, but only over files the sync saved and the student has not edited.
  • keep_both saves the new copy as name (1).ext beside the old one.

A file the student put there themselves is never overwritten.

Reading the answer honestly

Never report something that could not be read as if there were none.

  • The answer counts downloaded, already on disk, failed and not attempted. Report all four, not just the first.
  • Anything listed as unknown or listUnreadable, or any phase marked notRun, was not checked. Say the course is not fully saved, say which part, and offer to run it again.
  • Links and embedded videos are not files. They are counted separately, not as failures.
  • A sign-in that expired partway keeps the files already saved. Follow the sign-in guidance in the answer (the sign-in-help skill covers it), then call again.
  • The closing scope line says what the run did not look at. Pass that on to the student.

What is new since last time

When a student asks "what don't I have yet?", call get_unsaved_course_files with the course id. It checks the Content area only.

  • An empty unsaved list means "nothing new" only when complete is true. If complete is false, something could not be read and the answer is unknown.
  • It does not cover submissions, assignment or announcement files, or the syllabus. Its notCovered list says so.
  • A file the student got another way (a browser download, a copy they made) shows as unsaved. Ask before downloading everything again.

If the student already has some of the files, record them with mark_course_files_saved so they stop being listed. It writes only the server's own record, never a course file. Use allUnsaved only after the student says to mark everything that is currently unsaved.

For one file only, use download_file.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.