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.304, published 6 hours 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 20 Oct 2026 02:14 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 20 Oct 2026 18:37 UTC.

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

#### Source and frontmatter fields on `skill.prompt` ### Session ### `Box` border styles ### `Box` spacing steps ### `Text` typography props #### Replace `bold` with `weight`

The whole hunk

from line 4, old and new numbered
/
lines
from line 4
44 
55Look up any event a [mod](/docs/en/plugins/mods/overview) can handle, mods API method it can call, or render site it can draw in. Entries cover the Claude Code CLI and the Desktop app as of v2.1.290, and the VS Code extension as of v2.1.299. Each entry gives the name and a one-line description, and links to the guide section that explains it where there is one.
66 
7<Note>
8 The complete reference is Claude Code's [TypeScript declarations for mods](https://github.com/anthropics/claude-code/blob/main/mods/types/claude-code.d.ts), which describe every event, method, and element, with examples. The copy on GitHub can be older than the Claude Code version you have installed. When the two disagree, trust [the copy Claude Code writes for your version](/docs/en/plugins/mods/create#get-the-types-for-your-build).
9</Note>
7> [!NOTE]
8>
9> The complete reference is Claude Code's [TypeScript declarations for mods](https://github.com/anthropics/claude-code/blob/main/mods/types/claude-code.d.ts), which describe every event, method, and element, with examples. The copy on GitHub can be older than the Claude Code version you have installed. When the two disagree, trust [the copy Claude Code writes for your version](/docs/en/plugins/mods/create#get-the-types-for-your-build).
1010 
1111## Files
1212 
from line 82
8282| [`skill.prompt`](/docs/en/plugins/mods/events#rewrite-or-add-to-a-prompt) | A skill's text is expanded for Claude | `{ text }` |
8383| `attribution.text` | Claude Code composes commit or pull request attribution text | `{ text }` |
8484 
85<h4 id="skill-prompt-fields">
86 Source and frontmatter fields on `skill.prompt`
87</h4>
85#### Source and frontmatter fields on `skill.prompt`
8886 
8987In 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`:
9088 
from line 119
121119| [`turn.step`](/docs/en/plugins/mods/events#follow-a-turn) | One request is about to go to the model | `yield* next(e)`, or `next({ ...e, model })`, `next({ ...e, effort })` |
122120| [`turn.complete`](/docs/en/plugins/mods/events#follow-a-turn) | A turn ended | `next(e)`, or `{ text }` to show a line under the answer |
123121 
124<h3 id="session">
125 Session
126</h3>
122### Session
127123 
128124Session events mark the session starting, ending, compacting, and exchanging messages with other sessions:
129125 
from line 274
278274* **`Code`**: `language`, `path`, `startLine`, `format`, and `wrap`, so code draws without colors or line numbers, and a `format: 'diff'` block shows the diff's raw text
279275* **`Input` and `Select`**: `autoFocus`
280276 
281<h3 id="box-border-styles">
282 `Box` border styles
283</h3>
277### `Box` border styles
284278 
285279To draw a border around a `Box`, set its `borderStyle` to one of these names, as in `borderStyle: 'round'`. Each row says what the terminal draws for that name and shows the top edge of the border.
286280 
from line 293
299293 
300294A `Box` whose `borderStyle` names anything else, such as `'rounded'`, draws with no border.
301295 
302<h3 id="box-spacing-steps">
303 `Box` spacing steps
304</h3>
296### `Box` spacing steps
305297 
306298The `Box` spacing props are `gap`, `columnGap`, `rowGap`, `padding`, `margin`, and the one-side and one-axis forms of `padding` and `margin`, such as `paddingX` and `marginTop`. Each takes a number of terminal cells such as `gap: 1`, or a step name such as `gap: 'md'`. In the terminal and the VS Code extension, each step is this many cells:
307299 
from line 309
317309 
318310Step names require Claude Code v2.1.299 or later. On an earlier release, Claude Code [draws its own version of the site](/docs/en/plugins/mods/interface#build-a-tree-from-elements) in place of a tree that uses a step name.
319311 
320<h3 id="text-typography">
321 `Text` typography props
322</h3>
312### `Text` typography props
323313 
324314Set `size`, `weight`, `mono`, or `tabular` on a `Text` to ask the app drawing your tree for a text size, a weight, a monospaced typeface, or equal-width digits. Before you rely on a prop, check what the terminal and the VS Code extension do with it. If an app ignores a prop you set, your tree still draws there, with the text as if you'd left that prop out.
325315 
from line 322
332322 
333323These four props require Claude Code v2.1.299 or later. On an earlier release, Claude Code [draws its own version of the site](/docs/en/plugins/mods/interface#build-a-tree-from-elements) in place of a tree that sets `size`, `weight`, `mono`, or `tabular`.
334324 
335<h4 id="text-bold">
336 Replace `bold` with `weight`
337</h4>
325#### Replace `bold` with `weight`
338326 
339327`bold` on a `Text` is deprecated in favor of `weight` and still works. To replace it on a `Text` with no `weight`, change `bold: true` to `weight: 'semibold'` for the same result on Claude Code v2.1.299 or later.
340328 
Feedback