Logo Matlab Generate Grader Assessments

Matlab Generate Grader Assessments

Tổ chức
matlab
matlab-generate-grader-assessments

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.

Add to TypingMind

Tổng quan

Nhà phát hànhmatlab
Kho mãagent-skills-playground
Tên kỹ năngmatlab-generate-grader-assessments
Sao
179
Bản fork
32
Tệp đi kèm
9
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 9 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được matlab công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Matlab Generate Grader Assessments trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/matlab/agent-skills-playground/tree/main/demos/course-generation/skills/matlab-generate-grader-assessments
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/matlab/agent-skills-playground.git /tmp/agent-skills-playground
mkdir -p .claude/skills
cp -r /tmp/agent-skills-playground/demos/course-generation/skills/matlab-generate-grader-assessments .claude/skills/matlab-generate-grader-assessments
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Matlab Generate Grader Assessments trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Matlab Generate Grader Assessments ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Matlab Generate Grader Assessments với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

MATLAB Grader Assessment Item Generator

Generate complete MATLAB Grader assessment item sets in the current agent session. Each assessment item produces a subfolder with native artifact files (description, solution, template, tests) ready to paste into MATLAB Grader. Function assessment items also include function_call.m for MATLAB Grader's "Code to call your function" area. An optional QTI 3 interchange package can be created for portability and sharing.

Terminology note: use "assessment item" in user-facing text. "Problem" may still appear only in legacy compatibility identifiers or when explaining older MATLAB Grader terminology.

Input

The user may have provided a learning objective in their request. If they did not, collect it in Step 1.

Reference Files

Before generating any artifacts, read the appropriate reference files from the references/ directory alongside this skill:

  • references/assessment-item-types.md — assessment item type definitions, class assessments, output structure
  • references/assessment-research.md — research-informed formative and summative assessment method
  • references/options-prompt.md — how to generate assessment item options
  • references/description-prompt.md — how to generate descriptions (by assessment item type)
  • references/solution-prompt.md — how to generate solutions (by assessment item type)
  • references/template-prompt.md — how to generate templates (by assessment item type)
  • references/function-call-prompt.md — how to generate the student call block for Function assessment items
  • references/tests-prompt.md — how to generate test cases (by assessment item type)
  • references/qti3-prompt.md — how to generate optional QTI 3 item and manifest files

Read references/assessment-item-types.md and references/assessment-research.md now to load the type definitions and assessment method.

Pipeline Overview

Step 1: Collect inputs (objective, assessment item type, class assessment if applicable, assessment purpose, output format)
Step 2: Generate 4 assessment item options (varied difficulty)
Step 3: User selects which assessment items to develop
Step 4: For each selected assessment item, generate artifacts sequentially
Step 5: Write files to output subfolders and optional QTI 3 package

Step 1: Collect Inputs

If the user provided a learning objective, confirm it. Otherwise, ask for one.

Collect the following one at a time:

1a. Learning Objective

If the user has not already provided one, ask: "What is the learning objective for these MATLAB Grader assessment items?"

1b. Assessment Item Type

Ask the user to choose an assessment item type:

  • Script — student submits a .m script; assessed by workspace variables
  • Function — student submits a .m function; assessed by input/output values
  • Class — student submits a classdef .m file; assessed via instantiation
  • Object usage — student submits a .m script that uses a provided class

1c. Class Assessment (only if assessment item type is Class)

If the user chose "Class", ask which aspect to assess:

  1. Constructor - property assignment (blank: obj.prop = arg lines)
  2. Constructor - computed property (blank: derived property computation)
  3. Instance method (blank: method body)
  4. Constant property (blank: value in properties (Constant) block)
  5. Operator overloading (blank: overloaded operator method body)

1d. Number of Options

Ask: "How many assessment item options should I generate? (default: 4)" Accept 2-6. Default to 4 if the user just presses enter or says "default".

1e. Output Directory

Ask: "Where should I write the assessment item folders? (default: current directory)" Default to the current working directory. The user can specify a path.

1f. Assessment Purpose

Ask: "Is this assessment primarily formative, summative, or both? (default: summative)" Default to:

  • Formative if the user says practice, feedback, homework draft, tutoring, self-check, revision, lab prep, or low-stakes.
  • Summative if the user says exam, grade, final submission, high-stakes, or does not specify.
  • Both if the user explicitly wants practice and grading reuse.

Use references/assessment-research.md to apply the correct design rules:

  • Formative: smaller scope, self-checks, diagnostic test names, and feedback-oriented evidence.
  • Summative: objective-aligned independent tests, randomized hardcoding detection, edge cases, and minimal answer-revealing hints.
  • Both: formative self-checks plus summative-grade tests.

1g. Optional QTI 3 Export

Ask: "Should I also create QTI 3 interchange files for portability? (default: no)" Default to no unless the user asks for QTI, portability, standards-based assessment items, interchange files, import/export payloads, or sharing between instructional designers.

If enabled, tell the user: "I will create the normal MATLAB Grader files plus a QTI 3 package. The QTI files preserve the prompt, template, function call block when applicable, solution, tests, and metadata for interchange; they do not make a generic QTI player execute MATLAB grading logic."


Step 2: Generate Assessment Item Options

Read references/options-prompt.md to construct the prompt.

Build the system prompt by:

  1. Starting with the base system prompt from the reference
  2. Replacing {NUM_OPTIONS} with the user's choice
  3. Appending the assessment-item-type-specific note (Class, Function, Object usage, or nothing for Script)

Build the user message with the learning objective and assessment item type. Use the assessment purpose to vary options:

  • Formative options should be short, diagnosable, and suitable for revision.
  • Summative options should measure a clear objective with reproducible evidence and enough complexity to distinguish levels of mastery.
  • Both should be usable for practice first and grading later.

You ARE the AI generating these options. Do not make an API call. Instead, directly generate the JSON array of assessment item options yourself, following the system prompt instructions exactly.

Generate exactly {NUM_OPTIONS} assessment item options as a JSON array. Each must have:

  • id (1-based integer)
  • title (descriptive assessment item name)
  • difficulty ("Easy", "Medium", or "Hard" — spread across options)
  • concept_focus (the MATLAB concept being tested)
  • brief_description (1-2 sentence summary)
  • suggested_variable (the primary variable/class name)
  • assessment_item_type (must match the user's selected type)
  • assessment_purpose ("Formative", "Summative", or "Both")

Present the options to the user in a readable table format:

| # | Title | Difficulty | Concept Focus | Description |
|---|---|---|---|---|

Step 3: User Selects Assessment Items

Ask the user: "Which assessment items would you like me to develop? Enter the numbers separated by commas (e.g., 1,3,4), or 'all' for all of them."

Parse the selection into a list of assessment item IDs.


Step 4: Generate Artifacts for Each Selected Assessment Item

For each selected assessment item, generate artifacts sequentially (each builds on the previous). Tell the user which assessment item you're working on: "Generating artifacts for Assessment Item N: {title}..."

4a. Description

Read references/description-prompt.md. Select the correct branch for the assessment item type. Construct the system prompt by filling in {TITLE}, {DIFFICULTY}, {OBJECTIVE}, {ASSESSMENT_ITEM_TYPE}, {ASSESSMENT_PURPOSE}, and for Class assessment items: {CLASS_NAME}, {ASSESSMENT_CONTEXT}, and the assessment-specific extra rules. For Object usage: {OUTPUT_VAR}. Placeholder definitions used across the reference prompts: {ASSESSMENT_CONTEXT} is a one-sentence restatement of the class aspect selected in Step 1c; {CLASS_ASSESSMENT} is that Step 1c option label verbatim.

Generate the description following the prompt instructions exactly. The output must be plain text — no markdown headers, no bold/italic markers.

4b. Solution

Read references/solution-prompt.md. Select the correct branch for the assessment item type. Fill in {TITLE}, {DIFFICULTY}, {OBJECTIVE}, {SUGGESTED_VARIABLE}. For Function: compute {SNAKE_TITLE} from the assessment item title (lowercase, spaces to underscores, strip non-alphanumeric). For Class: {CLASS_NAME}. For Object usage: {OUTPUT_VAR}.

Generate the solution following the prompt instructions exactly. The output must be pure MATLAB code — no markdown fences, no explanation text.

4c. Template

Read references/template-prompt.md. Select the correct branch for the assessment item type. The template prompt REQUIRES the solution from step 4b as context. For Class: select the correct blank rule based on the class assessment type. For Object usage: extract only the student script portion.

Generate the template following the prompt instructions exactly. The output must be pure MATLAB code with % YOUR CODE HERE blanks.

4d. Function Call (only if assessment item type is Function)

Read references/function-call-prompt.md.

Generate function_call.m, the student-facing pre-submit run block used in MATLAB Grader's "Code to call your function" area. Use the required function name and representative sample inputs from the generated solution. The output must be pure MATLAB code: comments plus a simple call that assigns the function output to the primary output variable. Do not include grading assertions, randomized hidden tests, or assessment logic.

4e. Tests

Read references/tests-prompt.md. Select the correct branch for the assessment item type. The tests prompt REQUIRES the solution from step 4b as context. Always include the shared quality rules. Select the correct test order based on assessment item type and class assessment. Apply the assessment-purpose rules from references/assessment-research.md:

  • Formative tests should be diagnostic and interpretable.
  • Summative tests should be independent, objective-aligned, randomized, and robust against hardcoding.
  • Both should include a basic correctness test plus summative-grade edge and transfer tests.

Generate the tests following the prompt instructions exactly. The output must be pure MATLAB code with %% Test N: section headers and assessVariableEqual calls.

4f. QTI 3 Item (only if QTI export is enabled)

Read references/qti3-prompt.md.

Generate one QTI 3 item XML document and one QTI 3 manifest for each selected assessment item after the description, solution, template, optional function call, and tests exist. Use those generated artifacts as source content.

QTI 3 export intent:

  • Support portability, review, and sharing of self-describing assessment items.
  • Preserve enough MATLAB Grader-specific content for a future MATLAB Grader importer or agent workflow to reconstruct the native assessment item folder.
  • Do not claim that a generic QTI runtime can execute MATLAB code or MATLAB Grader tests.

Required source fields:

  • {TITLE}, {SNAKE_TITLE}, {DIFFICULTY}, {OBJECTIVE}, {ASSESSMENT_ITEM_TYPE}
  • {ASSESSMENT_PURPOSE}
  • {CLASS_ASSESSMENT} if applicable
  • {DESCRIPTION}, {TEMPLATE}, {SOLUTION}, {TESTS}
  • {FUNCTION_CALL} if assessment item type is Function
  • {SUPPORTING_CLASS} if object usage

Generate the QTI item XML following the reference exactly. The output must be XML only: no markdown fences and no explanation text.


Step 5: Write Output Files

For each generated assessment item, create one self-contained assessment item folder and write the native MATLAB Grader files at the folder root. If QTI 3 export is enabled, write the QTI 3 package inside that same assessment item folder.

Folder Naming

Convert the assessment item title to snake_case:

  • Lowercase all characters
  • Replace spaces with underscores
  • Remove non-alphanumeric characters (except underscores)

File Structure

Create one {snake_title} assessment item folder under the output directory with these native MATLAB Grader files at the folder root:

FileSource
description.txtGenerated description artifact
solution.mGenerated reference solution artifact
template.mGenerated learner template artifact
function_call.mGenerated student pre-submit function-call block (Function assessment items only)
tests.mGenerated tests artifact

For Object usage assessment items, the solution contains two sections separated by %%% delimiter lines. Split them so supporting_class.m contains everything between the "%%% SUPPORTING FILE ... %%%" line and the "%%% STUDENT SCRIPT SOLUTION %%%" line, and solution.m contains everything after the "%%% STUDENT SCRIPT SOLUTION %%%" line. Exclude the delimiter lines themselves from both files.

If QTI 3 export is enabled, also create a nested qti3 package in the same assessment item folder: imsmanifest.xml at the package root and the item XML under qti3/items/.

For Object usage QTI 3 exports, keep supporting_class.m at the assessment item folder root alongside the other native MATLAB Grader files.

The QTI imsmanifest.xml inside each assessment item folder must reference that folder's item XML using package-relative paths such as items/{snake_title}.xml. Use stable identifiers derived from {snake_title}.

Do not delete or replace the native MATLAB Grader files when QTI export is enabled. QTI 3 is a companion interchange representation, not the authoritative MATLAB Grader runtime format.

Writing Files

Create each file. Strip any leading/trailing markdown fences from generated code before writing (matlab, , etc.).

After writing all files for an assessment item, confirm to the user: "Wrote {N} files to {output_dir}/{snake_title}/"

After writing QTI files, confirm: "Wrote QTI 3 package to {output_dir}/{snake_title}/qti3/ with 1 item file."


Step 6: Summary

After all selected assessment items are generated and written, present a summary:

MATLAB Grader Assessment Item Generation Complete

Generated {N} assessment item(s):

  1. {title} ({difficulty}) -> {snake_title}/
     - description.txt
     - solution.m
     - template.m
     - function_call.m (Function assessment items only)
     - supporting_class.m (Object usage assessment items only)
     - tests.m
     - qti3/items/{snake_title}.xml (if QTI 3 export was enabled)

List only the lines that apply to the generated assessment item type; drop the
parenthetical qualifiers from the printed summary.

  2. ...

Output directory: {output_dir}
QTI 3 package(s): inside each generated {snake_title}/qti3/ folder (if enabled)

Remind the user:

  • Review all generated materials before using them in MATLAB Grader
  • The description goes into the "Assessment Item Description & Instructions" field
  • The solution goes into "Reference Solution"
  • The template goes into "Learner Template"
  • For Function assessment items, function_call.m goes into "Code to call your function"
  • Each %% Test N: section in tests.m becomes a separate "Assessment" test in MATLAB Grader
  • For Object usage assessment items: the supporting_class.m goes into "Supporting Files". Upload or save it under the class's own name ({ClassName}.m); MATLAB resolves a class only from a file whose name matches the classdef name, so supporting_class.m is a packaging name, not a runnable filename
  • QTI 3 output is for interchange and review; MATLAB execution semantics are preserved as metadata/supporting content for a future importer or agent workflow

Error Handling

  • If artifact generation produces markdown fences, strip them before writing
  • If the user wants to regenerate a specific artifact, regenerate just that one
  • If QTI XML generation produces markdown fences, strip them before writing
  • If QTI export is requested after native files already exist, generate only the QTI package from the existing artifacts unless the user asks to regenerate native artifacts
  • If the user wants to modify an artifact, use Edit on the written file
  • If an assessment item title conflicts with an existing folder, ask the user before overwriting. Exception: a QTI-only export into an existing item folder is additive, not an overwrite, so the QTI-only rule above takes precedence and no confirmation is needed

Quality Checklist

Before writing each artifact, verify:

Description: Plain text, no markdown formatting, includes all required sections for the assessment item type Solution: Pure MATLAB code, no fences, correct structure for assessment item type Template: Matches solution's variable/function/class names exactly, has % YOUR CODE HERE blanks only where assessed Function Call: For Function assessment items only, pure MATLAB code, calls the submitted function by its exact name with representative sample inputs, and contains no grading assertions Tests: 3-5 tests, uses %% Test N: sections, assessVariableEqual only, random inputs (randi/randperm), includes hardcoding detection test (exception: Constant property class items use the literal constant value and need no hardcoding test) Assessment method: Purpose is identified as formative, summative, or both; tests and hints follow references/assessment-research.md QTI 3: XML only, well-formed, one item per assessment item, manifest references the item XML inside {snake_title}/qti3/, native MATLAB Grader artifacts preserved in metadata/support blocks

Credits

The concept of generating complete MATLAB Grader assessment items from a learning objective comes from Andre Knoesen (UC Davis) and his MATLAB Grader Problem Generator, a web application built on the Anthropic API. This skill reimplements that idea as a portable agent skill.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Matlab Generate Grader Assessments làm được gì?

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.

Vì sao nên dùng Matlab Generate Grader Assessments trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Matlab Generate Grader Assessments là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Matlab Generate Grader Assessments trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/matlab/agent-skills-playground/tree/main/demos/course-generation/skills/matlab-generate-grader-assessments. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Matlab Generate Grader Assessments?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Matlab Generate Grader Assessments với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Matlab Generate Grader Assessments với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Matlab Generate Grader Assessments có miễn phí không?

Kỹ năng này được matlab phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇