/ontrack-cli:ontrack-clifrom ontrack-cli
Reads OnTrack and Doubtfire units, tasks, task sheets and tutor chats from the terminal; sets task status, submits files and messages tutors when asked. Use when the user names OnTrack or Doubtfire, or asks about portfolio tasks, task sheets, task status, a target grade or tutor feedback on a task: "which tasks are overdue", "what does 3.1P ask for", "did my tutor reply", "mark 2.1P ready for feedback", "submit my pass task". Moodle assignments, quizzes and the gradebook belong to moodle-cli; Ed forum threads and lessons belong to edstem-cli.
Ships in ontrack-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use ontrack to inspect and update OnTrack from a terminal. Start from what the user said, not from ids.
UNIT is a project ID, or the unit's code or name exactly as OnTrack shows it; ontrack courses is the vocabulary for this site. TASK is the task abbreviation shown by ontrack tasks UNIT, or a task definition ID. Never assume what a code or abbreviation looks like; if a reference matches several units the CLI lists their project IDs, so pick one rather than guess.
| The user says | CLI | Then |
|---|---|---|
| which units am I in / how are units named here | ontrack courses | --include-inactive for past units |
| what's in UNIT / my target grade / overall progress | ontrack courses show UNIT | |
| which tasks / what's due / what needs work | ontrack tasks UNIT | --status <status...> to narrow |
| what does task X say / the task sheet | ontrack tasks read UNIT TASK | tasks show for status only |
| download the task sheet / task resources | ontrack tasks get UNIT TASK [--resources] --dest PATH | ontrack courses get UNIT for the whole unit |
| any tutor feedback / unread messages | ontrack chats UNIT | |
| read the tutor's comments on a task | ontrack chats read UNIT TASK --yes | tell the user before running it |
| mark a task ready / working on it / need help | ontrack tasks set UNIT TASK STATE | |
| submit files for a task | ontrack tasks submit UNIT TASK --file F | |
| message the tutor on a task | ontrack chats send UNIT TASK --message "..." | |
| am I signed in / is it working | ontrack auth status | ontrack auth login to sign in; ontrack doctor --live --cookies when access still fails |
| my teaching roles | ontrack roles | --all includes inactive roles |
| use OnTrack from Claude on the web, ChatGPT or a phone | ontrack mcp deploy | follow "Set up remote MCP" below |
| connect another AI app / the pairing code expired | ontrack mcp pair | |
| is the remote MCP still signed in | ontrack mcp status |
Copy the checklist into your reply and tick each step as it is done; the last step is what shows the change landed.
- [ ] Check the user asked for this change, on these targets
- [ ] Run the command with `--dry-run` and show the plan
- [ ] Get the user's yes to that plan
- [ ] Run it again with `--yes`
- [ ] Read the result back with the matching `list` or `show` and report what changed
- [ ] `ontrack auth status` works, so the site is configured
- [ ] `okta-auth --help` runs; otherwise `npm install -g okta-auth-cli`
- [ ] Run `okta-auth setup`. PERSON: saves their Okta username, password and authenticator secret on the page it opens
- [ ] Run `npx wrangler whoami`; if signed out, run `npx wrangler login`. PERSON: approves Cloudflare in the browser
- [ ] Run `ontrack mcp deploy` and give the person the `url` and `pairing_code` it prints
- [ ] PERSON: adds the URL as a custom connector in their AI app and types the code on the approval page
- [ ] Run `ontrack mcp status` and confirm `session.username` is theirs
--fields a,b keeps only those top-level fields, which keeps long lists cheap.read prints Markdown and changes nothing upstream, so it is safe to run unasked.hint on stderr; follow the hint before retrying.courses, units and projects are interchangeable.chats read is the exception to the read rule: it marks the comments read upstream, so ontrack chats stops flagging them; it needs --yes.ontrack auth login: --browser opens a private CLI browser, --reuse-browser reuses the everyday browser's cookies, --paste reads credentials from stdin. auth status --local reads the cache without a network call, auth renew renews once, and auth logout ends the session and deletes the cache. Credentials set in the environment or config override the cache.okta-auth export. A pairing code lasts ten minutes and approves one client. Running mcp deploy again updates the server in place.auth status --local and doctor report renewal_expires_at. Under 24 hours left, ask the user to sign in on the OnTrack website or run auth login, because renewal stops working once it lapses. doctor exits 3 when a check fails.ontrack commands --json is the source of truth.npm install -g ontrack
export ONTRACK_BASE_URL="https://ontrack.example.edu" # your institution's OnTrack site
ontrack auth login
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bunizao/ontrack-cli --plugin ontrack-cli