Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Mods reference changedplugins/mods/reference

Nearest release: v2.1.300, published an hour before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 14 Oct 2026 16:21 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 14 Oct 2026 16:37 UTC.

Upstream edited
Recorded here
Lines+18added
Lines−0removed
From line 81 where the diff opens
First seen 1 Oct 2026 this site's first read of the page
Recorded edits32to this page, all time

The whole hunk

from line 81, old and new numbered
/
lines
from line 81
8181| [`skill.prompt`](/docs/en/plugins/mods/events#rewrite-or-add-to-a-prompt) | A skill's text is expanded for Claude | `{ text }` |
8282| `attribution.text` | Claude Code composes commit or pull request attribution text | `{ text }` |
8383 
84<h4 id="skill-prompt-fields">
85 Source and frontmatter fields on `skill.prompt`
86</h4>
87 
88In a `skill.prompt` hook, you can read these fields along with the skill's name in `e.skill` and the text Claude reads in `e.text`:
89 
90| Field | Type | What it holds |
91| :- | :- | :- |
92| `e.source` | string | Who provides the skill: `policySettings`, `userSettings`, or `projectSettings` for a skill in the enterprise, personal, or project [location](/docs/en/skills#where-skills-live), respectively. Other sources give a word such as `plugin`, `mcp`, `syncedSkills`, or `built-in`. |
93| `e.pluginName` | string | The plugin's name, for a skill whose `e.source` is `plugin` |
94| `e.path` | string | The absolute path of the skill's `SKILL.md` file, or of its `.md` file for a skill written as a [command file](/docs/en/skills#where-skills-live). Absent when the skill has no file on this machine, as with a built-in skill. |
95| `e.frontmatter` | object | The frontmatter of the skill's file, as plain data |
96| `e.frontmatterProblem` | string | The reason `e.frontmatter` is missing the file's frontmatter or one of its keys, as in `is a list or a single value, not a table`. Absent when `e.frontmatter` holds the whole frontmatter or the skill has none. |
97 
98A hook can pass a changed `text` or `frontmatter` to `next`: the hooks after it read both, and Claude reads the final `text`. A hook that changes any other field [fails](/docs/en/plugins/mods/events#handle-a-hook-that-fails).
99 
100On `skill.prompt`, `e.source`, `e.pluginName`, `e.path`, `e.frontmatter`, and `e.frontmatterProblem` require Claude Code v2.1.299 or later.
101 
84102### Commands and configuration
85103 
86104Command and configuration events fire when a command runs or is listed, and when a `/config` row is shown or changed:
Feedback