Skip to content
Back to skills

Course Context

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
ai-agents

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add spandan11106/tminus --skill course-context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Course Context?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Course Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/spandan11106-course-context/badge)](https://www.skillsdirectory.com/skills/spandan11106-course-context)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: course-context
description: "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."
user-invocable: false
---

# Course context (run first)

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

0. **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.
1. **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.
2. **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.
3. **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.
4. **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).
5. **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.
6. **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]`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.