canvas
Installation
SKILL.md
canvas
Wraps the canvaslms PyPI CLI (https://github.com/dbosk/canvaslms) so questions like "when is the deadline for lab 2 in DD1301" can be answered without leaving the terminal.
Prerequisites
canvaslmsinstalled (via pipx, withcryptographyinjected).- Login configured. One-time setup, run by the user:
Enter server (e.g.canvaslms logincanvas.kth.se) and an access token from Canvas → Account → Settings → "New Access Token". Stored in the macOS keyring.
If canvaslms courses errors with "No hostname or token", login is missing — tell the user.
How to answer questions
Translate the user's natural-language question into one or two canvaslms invocations. Always pipe through cat (or otherwise treat as non-TTY) when you want stable, parseable CSV/YAML output — some commands change format based on TTY detection.