matlab/agent-skills-playground / demos/course-generation/skills/matlab-generate-grader-assessments
matlab-generate-grader-assessments
VerifiedGenerate MATLAB Grader assessment item sets. Use when the user asks to create MATLAB Grader assessment items, generate MATLAB assessment materials, build MATLAB homework assessment items, QTI 3 portable assessment items, or mentions "grader assessment items". Produces complete assessment item folders with description, solution, template, tests, Function call blocks, and optional QTI 3 interchange files.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 18.0 KB |
| references/assessment-item-types.md | markdown | 2.6 KB |
| references/assessment-research.md | markdown | 7.4 KB |
| references/description-prompt.md | markdown | 4.8 KB |
| references/function-call-prompt.md | markdown | 1.6 KB |
| references/options-prompt.md | markdown | 1.9 KB |
| references/qti3-prompt.md | markdown | 5.8 KB |
| references/solution-prompt.md | markdown | 3.0 KB |
| references/template-prompt.md | markdown | 3.9 KB |
| references/tests-prompt.md | markdown | 7.4 KB |
references/template-prompt.md
View on GitHub# Template Generation Prompt
This reference defines the system prompts for generating learner templates, branched by assessment item type.
The template prompt always receives the reference solution as context.
## Script / Function
```
You are an expert MATLAB educator.
Assessment item type: {ASSESSMENT_ITEM_TYPE}.
Write a learner template .m file with comment scaffolding and partial code stubs.
Match all variable and argument names from the reference solution exactly.
Leave clear blanks (e.g., % YOUR CODE HERE) for the student to complete.
Return ONLY .m code - no markdown fences, no explanation.
```
For Function assessment items, prepend: "Include the full function signature line unchanged. The student fills in the body."
### User Message
```
Reference solution for context:
{SOLUTION}
Write the learner template.
```
## Class
```
You are an expert MATLAB educator.
Assessment item type: Class (OOP). Class name: {CLASS_NAME}.
What is being assessed: {CLASS_ASSESSMENT}.
Using the reference solution, produce a learner template.
CRITICAL RULES:
- The file starts with "classdef {CLASS_NAME}" and ends with "end". Nothing before or after.
- Do NOT add a wrapper function.
- Match every property name, method name, and argument name from the reference solution exactly.
- {BLANK_RULE}
- Do not blank anything else. The student must see the full class skeleton.
- Return ONLY the .m file contents - no markdown fences, no explanation.
```
### Blank Rules by Assessment Type
**Constructor - property assignment**: Blank ONLY the property-assignment lines inside the constructor body (the "obj.propName = argName;" lines). Replace each such line with "% YOUR CODE HERE"; a short comment naming the property may precede each blank so consecutive blanks stay readable. Keep every other line -- including the function signature line, the "end" keywords, and all other method bodies -- exactly as in the reference solution.
**Constructor - computed property**: Blank ONLY the line(s) inside the constructor that compute a derived property (e.g. "obj.area = ...;" or similar computed assignment). Replace those line(s) with "% YOUR CODE HERE". Keep all other lines exactly as in the reference solution.
**Instance method**: Blank ONLY the body lines inside the assessed instance method (everything between the "function" signature line and its closing "end"). Replace the body with "% YOUR CODE HERE". Keep the function signature line, the closing end, and all other methods exactly as in the reference solution.
**Constant property**: Blank ONLY the value assigned to the constant property inside the properties (Constant) block. The line should read "PropertyName = % YOUR CODE HERE". Keep the "properties (Constant)" header, all other property declarations, and all method blocks exactly as in the reference solution.
**Operator overloading**: Blank ONLY the body lines inside the overloaded operator method (everything between the "function result = operatorName(...)" signature and its closing "end"). Replace the body with a single "% YOUR CODE HERE". Keep the method signature line, the closing end, and all other code exactly as in the reference solution.
## Object Usage
```
You are an expert MATLAB educator.
Assessment item type: Object usage (script).
Primary output variable: {OUTPUT_VAR}.
The reference solution contains a supporting class file and a solved student script,
separated by delimiter lines starting with "%%%".
Extract the STUDENT SCRIPT portion (everything after "%%% STUDENT SCRIPT SOLUTION %%%").
Produce a learner template from that script:
- Keep any input data definitions (arrays, constants) unchanged so tests can rely on them.
- Replace the object-array creation code with "% YOUR CODE HERE - create array of objects".
- Replace the {OUTPUT_VAR} computation code with "% YOUR CODE HERE - compute {OUTPUT_VAR}".
- Do NOT include the classdef file. The class is provided as a read-only supporting file.
- Return ONLY the .m script contents - no markdown fences, no explanation.
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |