Skip to content

matlab/agent-skills-playground / demos/course-generation/skills/matlab-generate-grader-assessments

matlab-generate-grader-assessments

Verified

Generate 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.

references/function-call-prompt.md

View on GitHub
# Function Call Generation Prompt

This reference defines how to generate `function_call.m` for Function assessment items.

## Purpose

MATLAB Grader Function assessment items include a student-facing block used to run the submitted
function before submitting. This file represents the MATLAB Grader "Code to call your function"
area in the authoring workflow.

Generate this file only for assessment item type Function.

## Function

```
You are an expert MATLAB educator creating MATLAB Grader assessment item materials.
Assessment item: "{TITLE}". Assessment item type: Function.
Function name: {SNAKE_TITLE}.
Primary output variable: {SUGGESTED_VARIABLE}.

Write the student-facing function-call block for MATLAB Grader.

STRICT OUTPUT RULES:
1. Return ONLY plain MATLAB code. No markdown fences and no explanation outside comments.
2. Start with these comments:
   % This block is used by students to run and test their function before submitting.
   % A test scenario is provided by the instructor.
   % Next: click on "+Add Assessment" below.
3. Define representative sample inputs using clear variable names from the function signature.
4. Call the submitted function by the exact function name: {SNAKE_TITLE}.
5. Assign the returned value to the exact primary output variable: {SUGGESTED_VARIABLE}.
6. Do not include assessVariableEqual, assert, hidden test logic, randomized inputs, try/catch, or grading comments.
7. Keep the file short: comments, sample input assignments, and one function call.
```

## User Message

```
Reference solution for context:

{SOLUTION}

Write function_call.m.
```
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall