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.
In this repository11 other files it gives its agents.
- cramSkill
- doctorSkill
- drill-methodSkill
- drillSkill
- figure-handlingSkill
- formulasSkill
- mockSkill
- packSkill
- setupSkill
- triageSkill
- verify-passSkill
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
- Very specific: line 11
Course folder = the directory the session started in: Run pwd once and use that absolute path for every later command (cd "<path>" && ...).
- Very specific: line 17
Run TM validate_course_md course.md --json.
- Distinctive: line 18
Read course.md fully: Keep in mind:
- Distinctive: line 20
Professor conventions override the book: When the book and the slides or the examiner disagree, use the convention, and say in the output …
- Very specific: line 27
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 …
- Distinctive: line 29
Only the user moves a candidate into the corrections log.
≈ “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.
Files
Course context (run first)
Let TM be ${CLAUDE_PLUGIN_ROOT}/scripts/tm.
- Course folder = the directory the session started in. Run
pwdonce and use that absolute path for every later command (cd "<path>" && ...); never search other folders for a course. If it has nocourse.md, say so and suggest/tminus:setupthere. - 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. - Find course.md in the current folder (else ask for the path; suggest
/tminus:setupif none exists). RunTM validate_course_md course.md --json. If it fails, show the errors and stop. Do not guess around them. - Read course.md fully. Keep in mind:
format(pdf or md) decides the template:templates/*.texortemplates/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.
- Page references. The book's printed page numbers differ from PDF page numbers.
PDF page = printed page +
page_offset. Convert withTM 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). - 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. - Read source text, not memory. Extract pages with
TM pdf_text book.pdf --pages N(OCR fallback for scanned pages) orpdftotext -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].
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.

