matlab-apply-assignmen…
Use when a learner asks for help with MATLAB homework, labs, projects, graded assignments, take-home exams, quizzes, or any programming task where academic…
Use this skill when the user wants to author, design, scope, or refine an Agent Skill (a SKILL.md file). Trigger phrases include "build a new skill", "design an agent skill", "scope a SKILL.md", "how should I structure this skill", "write a skill for X", "my skill isn't working
$ npx -y skills add matlab/agent-skills-playground --skill agent-skill-author --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/agent-skill-authorContext preview
The summary Claude sees to decide when to auto-load this skill.
Use this skill when the user wants to author, design, scope, or refine an Agent Skill (a SKILL.md file). Trigger phrases include "build a new skill", "design an agent skill", "scope a SKILL.md", "how should I structure this skill", "write a skill for X", "my skill isn't working
name: agent-skill-author description: Use this skill when the user wants to author, design, scope, or refine an Agent Skill (a SKILL.md file). Trigger phrases include "build a new skill", "design an agent skill", "scope a SKILL.md", "how should I structure this skill", "write a skill for X", "my skill isn't working well", or any request to improve an existing SKILL.md. Walks the user through an empirical, test-first process — probe the agent for real failures, design only for genuine knowledge gaps, iterate against runnable examples, and verify across models. license: https://www.mathworks.com/content/dam/mathworks/license/pmrl/license.md metadata: author: MathWorks version: "1.0"
You are helping a user author or improve an Agent Skill. Skills are markdown files an agent loads to handle domain-specific work it would otherwise get wrong. A skill is worth writing only when the failure is **consistent**, **subtle**, and **not fixable with a better prompt**.
Follow the five-stage process below. Do not skip stages.
Before designing anything, find out what the agent actually gets wrong.
code or output.
fails: missing functions, wrong superclass names, swallowed errors, wrong default arguments, hallucinated APIs.
knowledge-gap.
Only knowledge-gap failures justify a skill. If a better prompt fixes it, use a better prompt.
Group the failures from Stage 1 by root cause. Common categories:
same idiom exists in Python or Java (the blog's example: an `ormdelete()` that doesn't exist in MATLAB).
(`database.orm.Mappable` vs. `database.orm.mixin.Mappable`).
`nargin == 0` guard for objects an ORM creates empty).
documentation doesn't make obvious.
the one the user actually has.
For each category, write down the **specific rule** the skill needs to teach. One rule per failure.
Apply these structural rules. The agent may not read your whole skill, so structure matters.
1. **Frontmatter description is a trigger spec, not a summary.** It should describe when to invoke the skill, with concrete trigger phrases the agent will match on. The agent reads this to decide whether to load you. Avoid `: ` (colon followed by space) inside the description value — strict YAML parsers will read it as a nested mapping and fail to load the skill. Use an em dash or comma instead. 2. **Most critical rules first.** Put the rules that fix the most failures at the top of the body. Don't bury the load-bearing rule. 3. **Progressive disclosure.** Common cases up front. Edge cases, exceptions, and variant APIs in later sections or in `references/`. 4. **One topic per section.** Use H2 (`##`) per topic. Consistent section order across your skill family makes it predictable for the agent. 5. **Show, don't tell.** Where a rule is about syntax, include a 2-to-5 line code example with the failing pattern and the corrected pattern side by side. 6. **Leave out what the agent gets right.** If your probing showed the agent handles `addComponent` correctly, don't document `addComponent`. Skills are compensators for failure, not API reference. 7. **Name common pitfalls explicitly.** A "Common pitfalls" section near the bottom for known gotchas the user might hit even with the skill loaded.
Suggested section order:
## When this skill applies (1-2 paragraphs) ## Core rules (the load-bearing rules, in priority order) ## API patterns (code examples per category) ## Common pitfalls (gotchas, including known limitations) ## See also (links to references/ and related skills)
Use the template at [`templates/SKILL-template.md`](templates/SKILL-template.md) as a starting point.
Run the same Stage 1 prompts **with the skill loaded** and the failures should drop.
documented pitfall), or escalate (the failure isn't a skill problem).
that works for one model can be ignored by another.
Keep a short test log: prompt, model, pre-skill result, post-skill result. The log is the evidence that the skill works; without it, you're guessing.
Skills aren't done. Models change, APIs change, and yesterday's failure becomes today's strength (and vice versa).
ships, or when users report fresh failures.
attention budget.
the main body.
running the agent.
A sandbox for prototyping and demonstrating Agent Skills for MATLAB and Simulink work. Skills here are experimental. They may be incomplete, change without notice, or migrate to an official toolkit over time.
Repo: matlab/agent-skills-playground
Use when a learner asks for help with MATLAB homework, labs, projects, graded assignments, take-home exams, quizzes, or any programming task where academic…
Use when tutoring a learner through MATLAB debugging, error interpretation, failed tests, incorrect outputs, array-shape problems, indexing mistakes, function…
Use when an AI tutor session concerns MATLAB programming concepts, MATLAB syntax, MATLAB errors, MATLAB code style, MATLAB projects, or MATLAB toolbox…
Use when an instructor wants to create, interview for, configure, install, update, or review a course AI-use policy for MATLAB AI tutoring. Produces an…
Use when prompting a learner to complete hands-on MATLAB coding exercises, guided practice, debugging drills, code tracing, small MATLAB projects, or…
Use when creating, asking, grading, or explaining multiple choice questions for MATLAB programming practice, concept checks, quizzes, or tutoring exercises.