brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Generate and deliver a graded comprehension quiz from the current Git branch diff, either in the local terminal or through Google Forms. Use when a user asks to prove, test, or verify understanding of branch changes, a feature branch, or a pull request.
Claude Code
$ npx -y skills add jamestkelly/diffler --skill diffler --agent claude-code
Codex
$ npx skills add jamestkelly/diffler --skill diffler -a codex -y
Cursor
$ npx skills add jamestkelly/diffler --skill diffler -a cursor -y
Gemini CLI
$ npx skills add jamestkelly/diffler --skill diffler -a gemini-cli -y
GitHub Copilot
$ npx skills add jamestkelly/diffler --skill diffler -a github-copilot -y
OpenCode
$ npx skills add jamestkelly/diffler --skill diffler -a opencode -y
Windsurf
$ npx skills add jamestkelly/diffler --skill diffler -a windsurf -y
name: diffler description: Generate and deliver a graded comprehension quiz from the current Git branch diff, either in the local terminal or through Google Forms. Use when a user asks to prove, test, or verify understanding of branch changes, a feature branch, or a pull request. compatibility: Requires Git and the diffler CLI. Google authentication is required only for Google Forms delivery and must be configured outside the agent session. metadata: author: Diffler version: "1"
Generate a quiz that tests whether the developer understands the behavior and consequences of the current branch diff, then deliver it in the user's local terminal or through Google Forms. Use the CLI as the authority for Git comparison, validation, local quiz delivery, authentication, and Google Forms publication. Do not reimplement those operations in shell commands or prompts.
tokens, access tokens, keychain contents, environment files, private keys, or credentials in model context or quiz output.
`diffler auth status` fails, stop and ask the user to authenticate outside the agent session using the documented flow.
adding one `--exclude <repository-relative-path>` per path to `context`.
omission has reason `sensitive`, do not recover its contents with other tools. Tell the user which repository-relative file needs review.
artifacts. `.diffler/quiz.json` necessarily contains the grading key. Never reveal or summarize that file, its questions, or its grading key in chat, prompts, command arguments, or logs. Never stage or commit them.
delivery, the user runs the quiz command in their own interactive terminal; do not invoke it through a noninteractive agent shell.
Diffler automatically omits common environment, credential, secret-directory, private-key, lockfile, generated, and binary paths, plus patches matching common credential signatures. This is defense in depth, not a substitute for telling Diffler about repository-specific sensitive paths. Omissions remain visible as metadata but omitted contents must not be recovered with other tools.
Run this command from the repository root:
diffler --help
Stop on failure. Do not search for credentials or attempt an alternate Google authentication mechanism.
If the user named a base ref, use it:
diffler context --base <ref> --output .diffler/context.json
Otherwise let Diffler resolve the local default branch:
diffler context --output .diffler/context.json
Append user-requested `--exclude` options when needed. Do not fetch refs or construct a separate Git diff. Read only `.diffler/context.json` for branch content.
Inspect the context summary and omission metadata before generating questions:
stop: cosmetic or trivial changes do not support a meaningful quiz.
another tool to inspect it. Continue only when the remaining included source independently supports a meaningful quiz.
nonzero, do not silently quiz incomplete source. Ask whether to narrow the change set with exclusions. Increase `--max-bytes` only when narrowing cannot preserve the relevant behavior, the user approves it, and the new value is no greater than `1000000` bytes.
will not cover them and continue only when included text is independently sufficient.
Write `.diffler/quiz.json`. Copy these values exactly from context:
Set `schemaVersion` to `1` and use the canonical schema URL. Create 3-7 questions when the diff supports them. Every question must:
head-side (`+`) hunk line numbers; use nearby added replacement lines to ground questions about deletions;
Prefer coverage across different files and concepts over several variants of the same fact. Distractors must be plausible and unambiguously wrong. Do not ask about generated files, omitted content, unchanged implementation trivia, or facts that require hidden project history.
Optionally add `closingRiddle`: a single whimsical riddle inspired only by the included diff. Do not include its answer, secrets, or omitted-content details. Diffler renders it as an ungraded ending after the graded questions.
Use this top-level shape:
{
"$schema": "https://raw.githubusercontent.com/jamestkelly/diffler/main/schemas/quiz-document.schema.json",
"schemaVersion": 1,
"repository": { "name": "owner/repository" },
"baseRef": "main",
"headSha": "full Git object ID",
"diffHasProve you understand the diff. Diffler generates comprehension quizzes from Git branch diffs for Claude Code, OpenCode, and pull-request workflows.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.