prairielearn-questions
БесплатноБез исполняемых скриптовНе проверенWrite, edit, review, or debug PrairieLearn questions (questions/<qid>/ with info.json, question.html, server.py and pl-* elements such as pl-number-input or…
от PrairieLearn★ 539 звёзд на GitHubОб этом скилле
PrairieLearn questions
The staff request decides what the question asks. The course's existing questions decide how it looks. The rules below hold regardless of either, except where a rule says otherwise.
Workflow
- To change an existing question, read "Editing existing questions" first.
- For a new question, read the two or three existing questions most like the request (same topic, assessment, or input type). Staff expect new questions to look like these. If they share a layout, start from a copy of the closest one and adapt it (give the copy a new
uuid, and don't carry oversharePublicly,shareSourcePublicly, orsharingSetsunless staff ask), keeping its structure, wording style, labels and units, worked-solution format, QID andanswers-namenaming,info.jsontopics and tags, helpers andclientFiles, and grading tolerances. If the course has no similar questions, write a plain question. - Look up each element you use in PrairieLearn's documentation at docs.prairielearn.com.
- Write the question following the rules below.
- Before requesting review, check the files against this list, even where the course's existing questions differ:
- every input element is outside all panels;
- TeX in attributes uses single backslashes;
- no Mustache tag sits directly inside TeX braces;
correct_answersis set only for elements that read it;- no key that
server.pysets indata["params"]has the same name as anyanswers-nameinquestion.html; - the grading tolerance accepts an answer computed from the displayed values and rounded sensibly;
- nothing gives away the answer or how to get it, unless the request asks for that.
- In your summary, name each course pattern you deliberately didn't follow and why, for example "the existing questions put the input inside the question panel, which hides the correct answer after grading, so this one puts it outside". Offer to fix the pattern in other questions instead of fixing it unasked.
Rules
- Files. Each question lives in its own directory under
questions/(questions/<qid>/withinfo.json,question.html, and optionallyserver.py).info.jsonneeds"uuid","title","topic", and"type": "v3". - Panels. Input elements (
pl-number-input,pl-multiple-choice,pl-checkbox, …) must not be placed insidepl-question-panel,pl-answer-panel, orpl-submission-panel; they render their own question, submission, and answer views. Put the question text inside onepl-question-panel, since text outside every panel is repeated in the answer and submission views. - Correct answers.
generate(data)inserver.pyputs random values indata["params"]. Setdata["correct_answers"][answers-name]only for elements that read it, such aspl-number-input; check each element's documentation. Elements that set their own answer, such aspl-multiple-choiceandpl-checkbox(throughcorrect="true"on their options), make every variant fail if you setcorrect_answersfor them. They also store their options underdata["params"][answers-name], so never use theiranswers-nameas a params key. - Numbers. Mustache only substitutes values, so do anything that depends on them in
server.py: computing, rounding, formatting numbers, and choosing how an expression is written (signs, coefficients of 1, so students see3x - 2rather than3x + -2or1x). Never show Python e-notation such as1.2e-05; write1.2 \times 10^{-5}. Show given values with the precision used to compute the answer, and choose a tolerance that accepts a sensibly rounded answer. - Math. Write math as MathJax: inline
$...$or\(...\), display$$...$$or\[...\]. A literal dollar sign, such as a price, starts math mode; write it as<span class="mathjax_ignore">$</span>. Never put a Mustache tag directly inside TeX braces, as in\frac{{params.a}}{{params.b}}; write\frac{ {{params.a}} }{ {{params.b}} }or build the expression inserver.py. In HTML attributes, use single backslashes (suffix="$\mathrm{m/s}$"): a doubled backslash is a TeX line break, so$\\text{MPa}$renders as "textMPa". - Escaping. Mustache HTML-escapes
{{...}}; triple braces ({{{...}}}) insert raw HTML. Use triple braces only for HTML you build inserver.py, never for anything students control, such assubmitted_answersorraw_submitted_answers. To show student-provided HTML, usepl-xss-safe. - Content. Present given values as facts without mentioning randomization. Give students the model, relationships, and constants they need, but don't explain how to solve it or hint at the answer (including how many options are correct) unless staff ask. A formula in the request that defines the correct answer is for computing it in
server.py; show it only if the request says to. Unless the course's questions do otherwise, put a worked solution inpl-answer-panel.
Editing existing questions
Read the question's
Установить prairielearn-questions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл prairielearn-questions?
Write, edit, review, or debug PrairieLearn questions (questions/<qid>/ with info.json, question.html, server.py and pl-* elements such as pl-number-input or pl-multiple-choice). Use for any task that creates or changes a question.
Как установить скилл prairielearn-questions?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prairielearn-questions запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic