pr-quiz

Installation
SKILL.md

PR Quiz

Writes a multiple-choice quiz into a PR description, with each option as a task-list checkbox. A reviewer answers by ticking one box per question (or by commenting /answer 1B 2D 3A). A GitHub Action (.github/workflows/pr-quiz.yml) grades the answers, posts the result in a single comment that it updates in place, and sets the pr-quiz commit status. Branch protection that requires pr-quiz blocks the merge until someone passes.

This is a discipline tool, not a security boundary. The answer key sits base64-encoded in the PR description.

1. Find the PR

  • If the user passed a number, use it.
  • Otherwise use the PR for the current branch: gh pr view --json number,title,baseRefName,headRefName,url.
  • If there's no PR, stop and say so. Don't create one unless the user asked for that.

2. Check the repo is set up

Check whether .github/workflows/pr-quiz.yml exists on the default branch:

gh api "repos/{owner}/{repo}/contents/.github/workflows/pr-quiz.yml" --silent && echo present
Installs
9
First Seen
Oct 15, 2026