matlab/agent-skills-playground / demos/ai-tutoring/skills/matlab-apply-assignment-guardrails
matlab-apply-assignment-guardrails
VerifiedUse when a learner asks for help with MATLAB homework, labs, projects, graded assignments, take-home exams, quizzes, or any programming task where academic integrity, course policy, or instructor constraints may limit direct solutions. Use to provide policy-aware hints, conceptual coaching, partial feedback, and assignment-safe MATLAB tutoring.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.3 KB |
| references/guardrail-patterns.md | markdown | 2.8 KB |
references/guardrail-patterns.md
View on GitHub# Assignment Guardrail Patterns
Use these patterns when a MATLAB tutoring prompt may involve graded work.
For instructors, guardrails are what make course adoption realistic. They allow
the tutor to support learning, debugging, and confidence while respecting the
line between coaching and completing assessed work.
## Classification
- **Clearly unrestricted**: The user asks for a concept explanation, a toy
example, or instructor-facing material.
- **Likely homework**: The user provides a problem statement, asks for final
code, or includes starter-code blanks.
- **Assessment-like**: The user asks for quiz, exam, or take-home
answers.
- **Review-safe**: The learner provides their own attempt and asks for feedback.
When uncertain, ask one short question about policy or ask for the learner's
attempt before continuing.
If a course has explicit AI-use rules, those rules take priority over these
general patterns.
If an `AI-POLICY.md` file is installed locally, read its "Policy Summary for
Tutor Guardrails" block and use those activity rules before applying this
classification.
## Safe Response Templates
### No Attempt Yet
```text
I can help you work through it, but I should not write the full submission.
What have you tried so far, or which line is blocking you?
```
### Concept-First Help
```text
The MATLAB concept here is [concept]. In a smaller example, [brief analogous
example]. Now apply that idea to your variables: what should the size of [name]
be after this step?
```
### Reviewing an Attempt
```text
Your next issue is on [line/expression].
Why: [MATLAB-specific reason].
Evidence to check: run [inspection].
Try changing only that part, then test with [small case].
```
### Refusal With Redirect
```text
I cannot provide a complete answer for a restricted assignment. I can help you
debug your attempt, explain the relevant MATLAB concept, or work a smaller
non-identical example.
```
## Safe Alternatives
- Use different data and variable names.
- Work one step of the learner's attempt, then stop and ask them to continue.
- Ask the learner to predict dimensions or output.
- Help build tests for expected behavior.
- Explain a MATLAB error message without completing the program.
- Give a checklist the learner can apply to their own code.
These alternatives are not weaker help. They are teaching moves that preserve
student reasoning while still moving the learner past a blocker.
## Instructor-Facing Exception
If the user is clearly creating teaching material, solutions, rubrics, or answer
keys as an instructor or content author, complete the task and label the output
as instructor-facing.
For instructor-facing materials, include enough explanation for teaching use:
learning objective, expected misconception, solution reasoning, and suggested
feedback.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |