canvas-lms-api — Claude Code skill: what it does, how to install
The canvas-lms-api skill guides Python work with the Canvas LMS REST API, from updating course modules and pages to uploading files. Use it to build or troubleshoot course content sync scripts.
no license ★ 165 updated 2026-08-21
npx skills add aspi6246/Claude-Code-Skills-for-Academics --skill canvas-lms-api -a claude-codeWhat canvas-lms-api does
The skill is a reference for using Python to manage course content through the Canvas LMS REST API. It covers creating and editing modules and pages, uploading files, and placing those files in modules. Its examples also describe syncing local HTML content against a course structure configuration.
The patterns use API requests authenticated with an access token and course ID. Before creating an object, the examples check whether it already exists, which helps avoid duplicates on repeated runs. List requests need pagination handling. For a page module item, pass its slug as page_url; using content_id causes the operation to fail silently.
Canvas access requires a domain, course ID, and API token. The examples keep credentials in config.py and warn against committing that file to GitHub. They create modules and pages as unpublished, so publication status matters when adapting the patterns.
What it helps with
- create or update course modules through the API
- sync local HTML pages with Canvas
- upload files and attach them to a module
- retrieve paginated API results
Example prompts for the agent
- Write a Python script to sync my course's HTML pages with Canvas LMS.
- Add the uploaded files to the right module, checking for existing items first.
- Handle pagination when fetching modules through the Canvas API.
How to install canvas-lms-api
1Skills CLI (Vercel)
npx skills add aspi6246/Claude-Code-Skills-for-Academics --skill canvas-lms-api -a claude-code2Manually: put the files in place
~/.claude/skills/canvas-lms-api/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/canvas-lms-api/
1Skills CLI (Vercel)
npx skills add aspi6246/Claude-Code-Skills-for-Academics --skill canvas-lms-api -a codex2Manually: put the files in place
.agents/skills/canvas-lms-api/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aspi6246/Claude-Code-Skills-for-Academics --skill canvas-lms-api -a cursor2Manually: put the files in place
.cursor/skills/canvas-lms-api/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aspi6246/Claude-Code-Skills-for-Academics canvas-lms-api2Manually: put the files in place
.github/skills/canvas-lms-api/SKILL.md1Skills CLI (Vercel)
npx skills add aspi6246/Claude-Code-Skills-for-Academics --skill canvas-lms-api -a gemini-cli2Platform CLI
gemini skills install https://github.com/aspi6246/Claude-Code-Skills-for-Academics --path canvas-lms-apiManually: put the files in place
.devin/skills/canvas-lms-api/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about canvas-lms-api
How do I install canvas-lms-api in Claude Code?
Run npx skills add aspi6246/Claude-Code-Skills-for-Academics --skill canvas-lms-api -a claude-code, then use ~/.claude/skills/canvas-lms-api/SKILL.md.
What does canvas-lms-api do?
It guides Python work with the Canvas LMS REST API, including course modules, pages, file uploads, and content sync scripts.
Which field links a page to a Canvas module?
Use page_url with the page slug for an item of type Page. The examples warn that content_id fails silently for pages.