Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add jncraton/skills --skill "generating-qti"
Install specific skill from multi-skill repository
# Description
Apply this skills to generate a quiz or test for an LMS in QTI format
# SKILL.md
name: generating-qti
description: Apply this skills to generate a quiz or test for an LMS in QTI format
Only use multiple choice questions with four possible answers. A variety of questions should be provided focusing different levels of Bloom's revised taxonomy (remember, understand, apply, analyze, evaluate, create).
Steps
Two files are created based on the base name provided by the user. They must be generated in the following order:
- Directly generate the json for a quiz as the user-supplied filename with a .json extension.
- Build the qti zip file for the quiz using the following shell command:
pipx run json2qti {quiz json from step 1}
Text File Format
The output json file should be in this format.
- Quiz Title: The top-level key.
- Questions: Keys inside the object.
- Answers: A list of strings. The first answer is always the correct one.
{
"Basic Math Quiz": {
"What is 1+1?": ["2", "3", "4", "5"],
"What is 1+2?": ["3", "4", "5", "6"]
}
}
You can include code snippets using markdown-style syntax:
- Inline Code: Wrap text in single backticks (`).
- Block Code: Wrap text in triple backticks (```).
{
"Python Quiz": {
"What does `print('hello')` output?": [
"`hello` to stdout",
"`hello` to stderr",
"Nothing"
],
"What does this function do?\n```\ndef add(a, b):\n return a + b\n```": [
"Returns the sum of two numbers",
"Returns the product of two numbers",
"Prints the numbers"
]
}
}
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.