agentleFS
spandan11106spandan11106/tminus/skills/course-context/SKILL.md

course-context

Skill3 starsChanged 10 days agoMITView on GitHub

Step 1 of every tminus command except doctor. Runs the fast preflight, finds and validates course.md, and loads the professor's conventions as authoritative over the book. Use whenever a tminus command starts work on a course folder.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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
  1. Very specific:

    Course folder = the directory the session started in: Run pwd once and use that absolute path for every later command (cd "<path>" && ...).

    line 11
  2. Very specific:

    Run TM validate_course_md course.md --json.

    line 17
  3. Distinctive:

    Read course.md fully: Keep in mind:

    line 18
  4. Distinctive:

    Professor conventions override the book: When the book and the slides or the examiner disagree, use the convention, and say in the output …

    line 20
  5. Very specific:

    Never silently fix the book: If you find an error in the book or slides, flag it in the output and append a candidate row to …

    line 27
  6. Distinctive:

    Only the user moves a candidate into the corrections log.

    line 29

≈ “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

Course context (run first)

Let TM be ${CLAUDE_PLUGIN_ROOT}/scripts/tm.

  1. Course folder = the directory the session started in. Run pwd once and use that absolute path for every later command (cd "<path>" && ...); never search other folders for a course. If it has no course.md, say so and suggest /tminus:setup there.
  2. Fast preflight. From the course folder run TM preflight --fast --cache-dir .tminus. Exit 1: stop and tell the user to run /tminus:doctor. Exit 2: continue; if no TeX engine, use Markdown output.
  3. Find course.md in the current folder (else ask for the path; suggest /tminus:setup if none exists). Run TM validate_course_md course.md --json. If it fails, show the errors and stop. Do not guess around them.
  4. Read course.md fully. Keep in mind:
    • format (pdf or md) decides the template: templates/*.tex or templates/pack.md.tmpl.
    • Professor conventions override the book. When the book and the slides or the examiner disagree, use the convention, and say in the output which source you followed ("examiner's method, L22 slide 7; the book uses ...").
    • Given-vs-must-remember lists decide which formulas get \examgiven / \examremember (Markdown: [given] / [remember]).
    • The verified corrections log lists known book or slide errors. Never repeat a logged error.
  5. Page references. The book's printed page numbers differ from PDF page numbers. PDF page = printed page + page_offset. Convert with TM pdf_pages to-pdf <printed> --course course.md. Cite printed pages to the user ("p. 141") and use PDF pages only for tools (pdftotext, crop_figure).
  6. Never silently fix the book. If you find an error in the book or slides, flag it in the output and append a candidate row to progress/corrections_candidates.md (the recompute script does this for numbers). Only the user moves a candidate into the corrections log.
  7. Read source text, not memory. Extract pages with TM pdf_text book.pdf --pages N (OCR fallback for scanned pages) or pdftotext -f N -l N -layout book.pdf - before stating a fact, limit, table value or printed answer. If you cannot find the source, mark it [UNVERIFIED].

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.