canvas-quiz

canvas-quiz is a skill for Claude Code, Codex from 98ping/chip. It costs 117 tokens per session (1,000 once invoked), scanned A, original, MIT.

A workflow for reading and completing a Canvas Classic Quiz, an online quiz built into the Canvas learning system, while stopping before submission. It finds the quiz, opens the attempt, records the questions, and fills answers when approved.

In plain words
What is it for?
Use it to locate a quiz, inspect its questions, save them for reference, enter answers, and stop without submitting.
Why use it?
It helps avoid confusing a Canvas quiz with an external MyOpenMath assignment and keeps irreversible actions under the user's control. It checks attempt limits and timing before opening an attempt.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/98ping/chip/canvas-quiz
Any agent
npx skills add 98ping/chip --skill canvas-quiz
Clone the repo
git clone --depth 1 https://github.com/98ping/chip

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for canvas-quiz

README.md
[![agentmods](https://agentmods.dev/badge/skills/98ping/chip/canvas-quiz.svg)](https://agentmods.dev/skills/98ping/chip/canvas-quiz)
Your own site
<a href="https://agentmods.dev/skills/98ping/chip/canvas-quiz"><img src="https://agentmods.dev/badge/skills/98ping/chip/canvas-quiz.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,000 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00117 $0.01000
Opus 5 $0.00059 $0.00500
Sonnet 5 $0.00023 $0.00200
Haiku 4.5 $0.00012 $0.00100

Measured 4d ago against content hash 677c31fde118, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

canvas-quiz scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/canvas-quiz/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Canvas quizzes

Drives a Canvas Classic Quiz end to end with the Claude in Chrome tools. The full runbook — every trap, with the fix — is tooling/CANVAS_QUIZZES.md. Read it before the first interaction; what follows is the shape of the job.

The page helper is tooling/canvas-quiz.js, the CLI is scripts/canvas-quiz.mjs.

Which runbook

Check the assignment's submission_types:

  • ["online_quiz"] + a quiz_idthis skill.
  • ["external_tool"] at myopenmath.com → myopenmath skill. Different machinery entirely (LTI iframe, MathQuill, per-question submits).

Ask first

Three separate asks, and they do not imply each other:

  1. Opening the attempt — the one people underestimate. On a 1-attempt or timed quiz this is the irreversible step, not the submit. Always check info first and quote the numbers when you ask.
  2. Typing answers.
  3. Submitting. Never on your own initiative.

Never enter credentials anywhere.

Steps

  1. Find itnode scripts/canvas-quiz.mjs list <courseId>. The /quizzes API index is disabled on many courses; this walks assignments instead, which always works.

  2. Pre-flightnode scripts/canvas-quiz.mjs info <courseId> <quizId> and attempts <courseId> <quizId>. Read allowed_attempts and time_limit out loud before doing anything. A timed quiz means the clock runs while you think — plan the answers before opening it.

  3. Open the attempt — a real click on Take the Quiz. A GET on /take silently re-renders the landing page and starts nothing; it looks broken but isn't. Confirm #submit_quiz_form exists and the .display_question count matches question_count.

  4. Read and save, before answering. Paste tooling/canvas-quiz.js, call __QDUMP(). javascript_tool truncates around 1 KB — chunk via JSON.stringify(__QDUMP()).match(/[\s\S]{1,900}/g). Then node scripts/canvas-quiz.mjs render <dump.json> output/<name>.md.

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 81 lines · 117 tokens per session scan A 677c31fde118

Subscribe to this mod's changes

canvas-quiz is a skill published in the GitHub repository 98ping/chip (2 stars, last pushed 10d ago), licensed MIT. It adds 117 tokens to every session and 1,000 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.