add_class_learning
Add a learn-skill-at-level entry to a class, validating the skill ID and sorting by level. Warns when the skill's type lacks an Add Skill Type trait to prevent unusable skills.
Instructions
Add a "learn skill at level" entry to a class (replaces the hack of attaching skills to an actor via an Add-Skill trait). Validates the skillId exists and keeps the learnings sorted by level. Warns (never blocks) when the skill's stypeId is not covered by an Add Skill Type trait ({ code: 41, dataId: stypeId, value: 1 }) on the class — without it the skill-type command never appears and actors cannot use the skill.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional note for the learning entry | |
| level | Yes | Level at which the skill is learned | |
| dryRun | No | Preview only: return a diff of what would change without writing to disk. | |
| classId | Yes | The ID of the class to add the learning to | |
| skillId | Yes | The skill learned (must exist in data/Skills.json) |