{"version":"2.1.287","anchor":"plugin-types-removed-from-the-open-state-map-skill-folder","canonical_anchor":"plugin-types-removed-from-the-open-state-map-skill-folder","heading":"Plugin type declarations now placed in .claude-plugin\/types instead of via \/plugin-types","tier":"notice","area":"Plugins","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.287\/e\/plugin-types-removed-from-the-open-state-map-skill-folder","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.287","markdown":"### Plugin type declarations now placed in .claude-plugin\/types instead of via \/plugin-types\n\nPlugin, Claude Code and MCP tool type declarations now appear under .claude-plugin\/types when a mod loads or is saved, and texts no longer point to \/plugin-types\n\n**Unclear.** It is not clear whether the `\/plugin-types` command itself still exists.\n\n**What**\n\nA type contract is a declaration file that describes what a plugin offers, so the editor can check code written against it, for example in a hooks module or mod. Claude Code now places these files inside the mod itself, and its own texts no longer send you to `\/plugin-types`:\n\n- Contracts for plugins you depend on: a mod that lists a plugin under `dependencies` gets that plugin's contract at `.claude-plugin\/types\/<plugin>\/index.d.ts` when the engine loads the mod from a folder you own. Before, `\/plugin-types` copied each enabled plugin's contract to `.claude\/types\/claude-code-plugins\/<plugin>.d.ts`.\n\n- Claude Code's own declarations: the error about a skill folder the engine could not write now says the same declarations are in the mod's `.claude-plugin\/types\/claude-code\/index.d.ts` once the engine has loaded it. It no longer mentions `\/plugin-types <dir>`, which used to write `claude-code.d.ts` into a folder you chose.\n\n- MCP tool types: the header of the generated file now says the types reflect the MCP tools the session had connected when the mod was last saved, and that the file is written again whenever the mod is saved with a server connected. It no longer says it is written by `\/plugin-types` or tells you to regenerate rather than edit.\n\n- The `pluginTypes` entry is removed from an internal state map.\n\n**Why**\n\nIf you write hooks modules or mods, the type files you rely on now come from loading and saving the mod rather than from running `\/plugin-types`, so look for them under `.claude-plugin\/types` instead of `.claude\/types`.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 3\/5"}