Logo Matlab Generate Grader Assessments

Matlab Generate Grader Assessments

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

Generate MATLAB Grader assessment items that are suitability-gated, profile-driven, feedback-aware, and validated through MATLAB MCP. Produces Script, Function, Class Definition, Class Inheritance, Object Usage, and Class Methods items with MATLAB Grader assessment setup instructions.

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
10
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ộ.

  • 10 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/assessment-generation-for-matlab-grader/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/assessment-generation-for-matlab-grader/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, reviewable MATLAB Grader assessment items from an observable MATLAB-code learning objective. This skill supports Script, Function, Class Definition, Class Inheritance, Object Usage, and Class Methods items.

An item folder contains description.txt, solution.m, template.m, and assessments.md; for Function, Class Definition, Class Inheritance, and Class Methods items, it also contains function_call.m. tests.m is created only when the item needs one or more MATLAB Code assessments. Referenced class, helper, and data files must be human-readable source or data files and must be documented in assessments.md; do not generate .p files.

Staged loading

Read matlab-grader-course-profile.md in the course-material root before proposing an item. If it is absent, complete the one-time setup below first.

Load reference files only for the current stage:

StageLoad
Suitability and proposalreferences/assessment-item-types.md, references/options-prompt.md
Student artifactsreferences/description-prompt.md, solution-prompt.md, template-prompt.md
Function and class run artifactsreferences/function-call-prompt.md
Assessment configurationreferences/tests-prompt.md
Assessment rationale or feedback designreferences/assessment-research.md
QTI exportreferences/qti3-prompt.md
Combined outputreferences/all-grader-items-template.md

Do not preload references for later stages.

MATLAB MCP is mandatory. Confirm that a working MATLAB MCP session can run a small MATLAB command before proposing or generating an item. If it cannot, stop and say that generation is blocked; do not claim that code or assessments have been validated.

Use matlab-read-doc when current MATLAB Grader behavior or MATLAB syntax needs verification. Use matlab-debugging only to diagnose a failed MATLAB MCP validation.

One-time course profile setup

Create matlab-grader-course-profile.md with YAML front matter and readable Markdown body. Ask explicit questions for only missing values; never present “press Enter for defaults.”

The front matter must include:

yaml
---
profile_version: 1
output_location: assessments
assessment_purpose: summative
qti3_export: false
require_matlab_mcp: true
content_language: auto
language_policy:
  comments: match_content_language
  feedback: match_content_language
  assessment_names: match_content_language
  instructor_setup: english
  preserve_code_identifiers: true
coding_practice_progression:
  enabled: true
  low: [descriptive names, string literals for new text]
  moderate: [descriptive names, string literals for new text, avoid unsafe dynamic-workspace functions]
  high: [descriptive names, string literals for new text, avoid unsafe dynamic-workspace functions, concise functions]
learning_objectives:
  - objective: "..."
    allowed_complexity: [low, moderate]
    preferred_submission: Script
---

Document that low, moderate, and high are the only complexity labels. The coding-practice progression is an authoring gate and learner guidance; it is not a student scoring criterion unless a future objective explicitly makes it assessable.

content_language controls student-facing language. Use auto to infer the resolved content language from the approved problem description or task statement for each item. Use a BCP 47 or ISO-style language code such as en, es, or ko to force all generated items to that language. If an older profile omits content_language, default to auto. When auto-detection is ambiguous or the prompt mixes languages, use the dominant language of the student-facing problem description.

Apply language_policy after resolving the content language. Generate student-facing prose, code comments, learner-visible assessment names, and optional feedback in the resolved content language. Preserve MATLAB code, identifiers, function signatures, class names, variable names, file names, MATLAB keywords, MATLAB Grader test type labels, and instructor-facing setup headings unless the user explicitly asks to localize them.

Suitability and proposal gate

Before generation, determine whether the objective has observable MATLAB-code evidence: a workspace variable, function output, required construct, prohibited shortcut, or input-contract behavior.

  • If it does not, stop. Explain why MATLAB Grader cannot directly observe the objective, propose an assessable rewording, or recommend another modality such as a written explanation, design review, or manual rubric.
  • If it does, recommend Script, Function, Class Definition, Class Inheritance, Object Usage, or Class Methods and give a brief rationale.
  • For learner-authored classdef work, warn that class definitions must be submitted as plain .m files, not Live Script .m or .mlx files. The submitted class must be concrete whenever assessments instantiate it.
  • Do not generate a directly auto-graded learner-authored abstract-class item when validation depends on instantiation. Abstract classes are allowed as referenced superclasses; recommend a concrete subclass, object-usage task, manual review, or design rubric when the learner's submitted class itself is abstract.
  • Read the objective’s allowed complexity from the profile. If the requested level is not supported, report that it is unsupported and do not add unrelated requirements to inflate complexity.

For each objective, present exactly one recommended title and task statement. Titles must describe the learning behavior and must not include a command or keyword checked by an assessment for that item. Ask only for approval or revision, and for a complexity decision only when the profile leaves it undecided. Explain “both” only when it is selected: the same item is designed for formative revision and later summative use.

Combined single-file output

After the requested item proposals are approved and before generating artifacts, ask once per batch whether the user wants a combined AllGraderItems.md output. Do not ask again when the user has already explicitly requested or declined it.

  • If the user selects combined output, read references/all-grader-items-template.md and create AllGraderItems.md in the profile output location.
  • The file is an instructor-facing companion, not a replacement for the native item folders. Include each generated item’s title, student description, submission type, referenced files, reference solution, learner template, template line-lock setup, assessment setup, and only optional feedback entries supported by validated incorrect variants. When the item is Function, Class Definition, Class Inheritance, or Class Methods, also include the standard field How to call the function (when the learner clicks 'Run') containing the function_call.m content.
  • In combined output, every fenced Copy block for an assessment must contain only the exact value to paste into the corresponding MATLAB Grader field. Do not include UI labels inside the fenced block. For MATLAB Code, the block contains only MATLAB assessment code. For Variable equals reference solution, surrounding prose may identify the field as the variable-name field, but the fenced block must contain only the single variable identifier, such as result, never Variable name: result. For Function or Keyword is present and Function or Keyword is absent, the fenced block must contain only the checked command or keyword, not a label.
  • If the user declines combined output, generate only the native item folders and their enabled QTI companions.

Generate the native artifacts

Create one folder named with a snake_case title under the profile output location.

Description, solution, template, and call block

  • Before writing artifacts, resolve the item language from content_language. Student-facing descriptions, MATLAB comments in generated code, learner-visible assessment names, and optional feedback must use that resolved content language.
  • Generate only code matching the approved item mode. Use descriptive names, modern string syntax for new text outside class-property defaults, and no shadowed built-ins, eval, evalin, or assignin.
  • For Class Definition, Class Inheritance, and Class Methods items, generate a plain .m classdef reference solution and learner template. The class name must match the submitted file name and any run-block constructor call exactly.
  • For Object Usage items, generate a Script submission that instantiates or modifies objects from referenced class files; do not ask learners to redefine the referenced class in the script.
  • Keep description and template requirements consistent with the solution.
  • After finalizing template.m, derive the student-template line-lock guidance from that exact file. Use 1-based line numbers and include the guidance in assessments.md; do not place hidden lock markers in template.m.
  • For summative items, descriptions must contain no hints, self-checks, suggested functions, solution approaches, or answer-revealing implementation guidance. State a function, construct, or approach directly in the numbered instructions only when the learning objective explicitly requires it.
  • For formative items, a brief non-answer-revealing self-check is allowed. For both, include only the formative guidance explicitly approved for revision use and do not reveal summative assessment details.
  • For Function and class-submission items, create function_call.m as a short student-facing run block with representative inputs, object construction, or method calls and no assertions. In combined single-file output, present this block under How to call the function (when the learner clicks 'Run').
  • For items that require referenced files such as SignalClass.m, TimeSignalClass.m, MeasurementXYZ.mat, or a readable helper such as constructor_pretest.m, list them in assessments.md and instruct instructors to upload them as MATLAB Grader Referenced Files. Do not create .p files; when hidden helper logic is desired, say that educators may manually pcode reviewed .m helpers before uploading.
  • Create QTI 3 as an optional companion only when enabled by the profile. It preserves native artifacts but does not execute MATLAB Grader logic in a generic QTI player.

MATLAB Grader assessment model

assessments.md is the authoritative MATLAB Grader setup guide. It must contain a Student Template Line Locks section, a requirement-to-assessment matrix, and one row per configured assessment.

The Student Template Line Locks section must appear before the requirement-to-assessment matrix and use this structure:

markdown
## Student Template Line Locks

Line numbers are 1-based and refer to the final `template.m` exactly as generated. After pasting `template.m` into MATLAB Grader, lock the listed lines in the student template editor.

| Line(s) | Lock? | Exact template text | Reason |
| --- | --- | --- | --- |

List every template line instructors should lock. Use inclusive ranges for contiguous locked lines, such as 1-3, and comma-separated groups only when needed, such as 1-3, 7, 11-12. For a single locked line, include that exact line text. For a range, include the first and last line text. Lock instructor-provided scaffolding that students should not change: required task comments, fixed function signatures, fixed class names and inheritance declarations, required property or method signatures, provided setup values, end lines that preserve required structure, and referenced-file usage scaffolding that must remain intact. Do not lock learner implementation placeholders, blank lines intended for student work, or code regions where students must edit. If no lines should be locked, write: No template lines need to be locked for this item.

The requirement-to-assessment matrix must use this table:

Requirement / LO evidenceGrader Test TypeMATLAB Grader UI fieldsCode to pasteExpected evidenceOptional feedback on incorrect submissionTraceability

Use these test types precisely:

  • Variable equals reference solution only for direct equality of exactly one student variable in a Script submission. Put that single variable in the relevant UI field; do not recreate expected logic in code. Do not use this test type for Function or class-submission items. For Object Usage Script items, prefer targeted MATLAB Code checks for object properties when they provide clearer feedback than whole-object equality.
  • MATLAB Code for custom checks that direct equality cannot express, including one assessment that compares multiple student variables, every Function-submission output check, and class-submission checks for inheritance, properties, constructor behavior, and method behavior. A Function assessment must be self-contained: assign its test inputs, call the learner function, call the matching reference function through reference.<functionName>, then compare the learner output with assessVariableEqual. For example, greeting = greetUser(name); greetingReference = reference.greetUser(name); assessVariableEqual('greeting', greetingReference);. A class assessment must instantiate the learner class when concrete, instantiate reference.<ClassName> when a reference object is needed, run the same method calls and referenced-file setup, and compare observable properties, methods, classes, or superclass lists. Never recreate reference-solution logic or assume that function_call.m variables or referenceVariables exist in the assessment workspace. For class-sensitive Function results, compare the learner class with class(reference.<functionName>(...)), never a hard-coded class literal.
  • Function or Keyword is present only when the objective explicitly requires that named construct.
  • Function or Keyword is absent only when the objective explicitly requires implementation rather than a named prohibited shortcut.

For Script submissions, Variable equals reference solution passes a learner value within ±0.1% relative tolerance or ±0.0001 absolute tolerance of the reference value. Use this default for ordinary numeric comparisons, including floating-point roundoff. To override either tolerance, configure the assessment as MATLAB Code and call assessVariableEqual with the full parameter names RelativeTolerance or AbsoluteTolerance, for example assessVariableEqual('result', expected, 'RelativeTolerance', 1e-6) or assessVariableEqual('result', expected, 'AbsoluteTolerance', 1e-9). Never use shortened names such as RelTol or AbsTol; they are not accepted for this MATLAB Grader usage.

For every configured assessment, provide a concise learner-visible assessment name in its MATLAB Grader UI fields. An assessment name for a Function or Keyword is present or Function or Keyword is absent row must describe the behavior being assessed and must not include the command or keyword checked by that row. Put the checked command or keyword only in the relevant configuration field.

Create tests.m only for MATLAB Code rows. Split it into clearly labeled sections, one per custom assessment. Do not use a fixed number of tests. Every check must be distinct, objective-aligned, and traceable. Reject duplicated test logic.

Fail generation when the description, template, solution, stated requirements, and assessments.md disagree.

Optional feedback on incorrect submissions

During item development, create and validate targeted incorrect variants for plausible conceptual or syntactic mistakes. For each distinct assessment row, generate feedback only when a validated variant reveals a useful misconception. Do not add generic or duplicate feedback merely to fill every row.

  • For formative items, feedback identifies the failed requirement and a productive next check. A guided correction is allowed when it is educationally useful.
  • For summative items, feedback is diagnosis only: identify the unmet requirement or misconception without code, expected values, solution steps, or hidden-test details.
  • For both items, label any guided feedback as formative-only so instructors can omit it in a summative deployment.
  • Put the optional text in the matrix column and tell the instructor to paste it into the feedback field for that MATLAB Grader assessment. Use — when feedback is not appropriate.

Quality gates and validation

Before marking output ready:

  1. Use matlab-review-code for every generated reference solution, template, function-call block, referenced helper .m file, and temporary validation code. Run MATLAB Code Analyzer and consult the MATLAB coding guidelines. Errors fail generation. Resolve warnings or report why they remain. Enforce descriptive names, modern string usage outside required character-array defaults, no shadowed built-ins, and no unsafe dynamic-workspace functions.
  2. Invoke matlab-validate-function-arguments only for Function items whose objective or profile explicitly includes an input contract or argument-validation outcome. Do not add an arguments block merely because an item is a Function item.
  3. Inspect generated assessments.md and tests.m files for invalid tolerance parameter names. AbsTol and RelTol fail generation; replace them with AbsoluteTolerance and RelativeTolerance before validation.
  4. Inspect generated student-facing prose, MATLAB comments, learner-visible assessment names, and optional feedback for the resolved content language. If the resolved content language is not English and these surfaces are obviously still English, generation is not ready; localize them before validation. Do not translate MATLAB code, identifiers, Grader test type labels, or instructor-facing setup headings.
  5. Validate the Student Template Line Locks section against the final template.m. Every listed line number must exist, ranges must be valid, and the quoted template text must match the generated file. Stale line numbers or mismatched text fail generation.
  6. If combined AllGraderItems.md output is generated, inspect every assessment Copy block. UI labels such as Variable name:, Command or keyword:, and Code to paste: must appear outside the fenced block only. For Variable equals reference solution, any fenced assessment field block containing anything other than the single variable identifier fails generation.
  7. In an operating-system temporary directory outside the repository and instructor-facing item folder, create a class-based matlab.unittest harness. Use matlab-testing and run it through MATLAB MCP against the reference solution, a completed learner template, and targeted incorrect variants. Confirm the reference and completed template pass, concept-specific mutants fail, every requirement in the matrix is represented, and every nonempty feedback entry is backed by its linked mutant.
  8. Do not leave the transient harness in the instructor-facing item folder. Report the MCP run result and its limits: it validates MATLAB behavior and the documented configuration model, while the instructor still pastes/configures the rows in MATLAB Grader.

Output summary

For each item, report its title, resolved content language, approved complexity, item mode, folder, files, referenced files, number of template lines to lock, number and type of configured assessments, number of optional feedback entries, and the completed MATLAB MCP validation result. When created, also report the path to AllGraderItems.md. Never claim validation when MATLAB MCP did not complete.

Credits

This skill is inspired by Andre Knoesen’s MATLAB Grader Problem Generator, a web application built on the Anthropic API.

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 items that are suitability-gated, profile-driven, feedback-aware, and validated through MATLAB MCP. Produces Script, Function, Class Definition, Class Inheritance, Object Usage, and Class Methods items with MATLAB Grader assessment setup instructions.

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/assessment-generation-for-matlab-grader/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 👇