/jiachen:pr-quizfrom Jiachen's MCode Stack
Generates multiple-choice questions that verify a PR author understands their change, covering design intent, impact surface, boundary conditions, and failure modes.
Ships in Jiachen's MCode Stack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The quiz asks the author of a PR (on GitLab, a merge request) a few questions about their own change. The author ticks an answer in the PR, may read code while answering, and can open the answer key right after. The quiz never blocks a merge, so a question is worth asking only if a reviewer would want the author to have thought it through.
Each question probes one dimension:
design-intent: why the change does it this way and not another way;impact-surface: which callers, flows or stored data it affects;boundary: empty values, concurrency, ordering, repeated calls, old data;failure-mode: what happens when a step fails, times out or is retried, and how it degrades or rolls back.At least half of the questions are design-intent or failure-mode.
The correct answer follows from the code and the diff. Do not ask about intent the code cannot show.
No memory questions: never ask which file, function or variable changed, or anything the author could copy from the diff.
Give 3 to 5 options. Exactly one is correct. Each wrong option is a mistake a hurried author would plausibly make: a missed error branch, a forgotten second caller, two similar concepts mixed up. No absurd options.
Keep the options alike in length and detail. The correct option must not be the longest.
The author reads the quiz between other comments on the PR. Write each question the way a teammate asks at your desk, in the language the prompt asks for, and follow the section below for that language. In both languages a question uses at most one code name, in backticks, and only when there is no plain name for the thing.
Bad, a dense stem full of code names, and an option that gives a reason:
When the mobile NoteEditor flushes the drafts that the user wrote while offline through syncQueue.flush, and the SyncWorker has already started but the lastSyncedAt field of the current notebook has not been written yet, what does the header at the top of the editor render at this point?
- Falls back to rendering the local draftCache because its isDirty flag starts as true
Good rewrite of the same question:
A draft written offline needs to sync, but this notebook has never synced. What does the user see?
- The draft, updated after the sync
- Nothing until the sync finishes
- A sync error and a retry button
More rewrites:
| Bad | Good |
|---|---|
| When the retry budget is exhausted, how does the system handle the request? | Three retries in a row failed. What does the user see? |
| What happens when you rename a session that another window deleted but that is still in the local cache? | Another window deleted the session, but this window still shows it. What happens on rename? |
| What does the service do when the setting is missing, malformed or out of range? | The setting is missing from the config. What happens when the service starts? |
| Not an immediate failure but a degradation to read-only mode | It turns read-only and edits stop |
The pipeline drops a question whose stem is longer than 45 words, has more than 2 code names, uses "at this point" or "at this moment", or opens with a "When", "While" or "Once" clause longer than 8 words, and a question with an option longer than 20 words, with more than 1 code name, or with a reason in it. It also drops a question that asks which file, function, method, variable, class or line, or what something is called. Stay well inside these limits.
Write the question in Simplified Chinese.
Bad, a dense stem full of code names, and an option that gives a reason:
手机端 NoteEditor 通过 syncQueue.flush 提交用户离线时写下的草稿,SyncWorker 已经启动但当前笔记本的 lastSyncedAt 字段还没写入,此时编辑器顶部呈现回执怎样?
- 回退为本地 draftCache 呈现,因为它的 isDirty 初始为 true
Good rewrite of the same question:
离线时写的草稿要同步上去,但这个笔记本还从没同步过。用户这时会看到什么?
- 先显示草稿,同步完再更新
- 先不显示,等同步完再显示
- 提示同步失败,让用户重试
More rewrites:
| Bad | Good |
|---|---|
| 当重试次数耗尽时,系统会如何处理该请求? | 连续重试三次都失败了。用户会看到什么? |
| 对已经被另一个窗口删除但仍留在本地缓存中的会话执行重命名会怎样? | 会话在另一个窗口里删掉了,这个窗口还显示着它。这时改名会怎样? |
| 配置项缺失、格式错误、取值越界时服务会怎样? | 配置里少了这一项,服务启动后会怎样? |
| 不是立刻失败,而是退化为只读模式 | 先变成只读,不能再改 |
The pipeline drops a question whose stem is longer than 100 characters, has more than 2 code names, uses 此时 or opens with 当……时, and a question with an option longer than 45 characters, with more than 1 code name, or with a reason in it. Stay well inside these limits.
dimension: one of the four dimensions above.prompt: the stem.options: the option texts without letters. The pipeline adds the letters and shuffles the order.answer_index: the zero-based index of the correct option in options.explanation: why the correct option is right and the main wrong ones are wrong, in two or three plain sentences. It is shown after the author answers. Refer to options by their content, never by letter or position, because the order changes.evidence: up to three changed places that support the answer, each a path and a new-side line.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/lifting-loopsFinds loops where the user keeps acting as a manual step for agents (retrying, judging output, approving, carrying context, starting the same task by hand, doing the agent's work) and proposes how to lift the user out: delete a stale rule, change a skill / AGENTS.md / playbook, add a script or metric, add a skill or scheduled task, or advise the user. Keeps a private loop ledger and promotes Claude Code auto-memory into artifacts. With a task already in the session, reflects on that session; in an empty session, scans recent local Claude Code, MiniMax Code, omp, pi and Codex sessions, a claude.ai export and an Obsidian vault. Triggers: /lifting-loops, retro, post-task reflection, "find repeated work", 反思一下, 复盘这次会话, 总结最近的会话, 找找重复劳动, 哪些事可以不用我; the weekly scheduled run; settling a proposal ("accept P-003", 采纳 P-003, 拒绝 P-003)./making-contentContent production in three modes: rewrite, Xiaohongshu (小红书) image post, short video. Rewrite (default): turns an AI-sounding Chinese or mixed Chinese-English draft (post, newsletter, engineering blog, commentary) into the author's restrained style: few emoji, short paragraphs, hedged claims, neutral wording, English terms split by spaces. Triggers: 按我的风格改, 去 AI 味, 润色, 改改这篇, or a vague 帮我改改 when the context is a structured draft. Also for a Xiaohongshu image post from scratch (title, cover, cards, body, hooks); read references/xhs-post.md first. Also turns a document, research, notes or an article into a 60-180 s vertical video (抖音, 小红书, 视频号, B站: real sources, voice-over, captions, cover). Triggers: 做成视频, 做个短视频, 剪个 90 秒版本, 配音, 换成我的声音, or complaints of 字太密, AI 味太重, 容易走神; read references/video-pipeline.md first./pr-descriptionDraft or check a pull request description in a fixed format (background, changes, behavior changes, out of scope, verification, rollback, not done, related) for GitHub or GitLab. Use when opening a PR, when the MCode Review summary reports missing description sections, or when the user asks for a PR description./pr-reviewReview a pull request or the current branch with the MCode Review rules (severity, evidence ladder, lens checklists, review principles) and the repository's own .mcode-review.json and .mcode-review.md. Works with GitHub pull requests and GitLab merge requests. Use when the MCode Review CI pipeline starts a review pass, or when a developer asks to review their PR or branch before asking a person to review it./pr-review-ciConnects a GitHub or GitLab repository to the MCode Review CI and keeps the setup current. Use when someone adds MCode Review to a repository on GitHub Actions or GitLab CI, upgrades or rolls back the pinned plugin commit, changes the repository's rule pack, language, models, shadow or enforce phase, author quiz or Feishu card, checks the security setup, or troubleshoots a review run that failed./pr-review-tuningThe weekly self-tuning loop for the MCode Review bot on GitHub or GitLab. Measures the bot on a repository's recent PRs (threads per PR, which kinds people answer or dismiss, what was unanswered at merge, cost per round, time to merge, follow-up fixes), finds noise and misses, proposes at most three rule changes with their expected effect on each goal, backtests them on past PRs with known outcomes within an agreed token budget, has an independent check recompute the numbers, and changes rules only after a person approves. The first run only measures. Use for requests to run pr-review-tuning or to measure or tune the review bot, for the weekly scheduled run, and for settling a proposal (approve or reject P1).npx claudepluginhub minimax-ai/mcode-stack --plugin jiachenOther plugins' skills for the same job