Repository navigation
Expand file tree
/
Copy pathplugin-schema.json
More file actions
231 lines (231 loc) · 7.23 KB
/
Copy pathplugin-schema.json
File metadata and controls
231 lines (231 loc) · 7.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "plugin-schema.json",
"title": "Claude Code Plugin Manifest",
"description": "Schema for .claude-plugin/plugin.json — the manifest file that defines a Claude Code plugin's metadata and component configuration.",
"type": "object",
"required": ["name"],
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"description": "Reference to this JSON Schema file."
},
"name": {
"type": "string",
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
"description": "Unique plugin identifier in kebab-case (no spaces)."
},
"displayName": {
"type": "string",
"description": "Human-readable name shown in UI surfaces. Falls back to name when omitted."
},
"defaultEnabled": {
"type": "boolean",
"description": "Whether the plugin starts enabled when the user has not set a preference. Defaults to true."
},
"version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+",
"description": "Semantic version (MAJOR.MINOR.PATCH). If omitted, the git commit SHA is used instead."
},
"description": {
"type": "string",
"description": "Brief explanation of the plugin's purpose."
},
"author": {
"type": "object",
"description": "Author information.",
"properties": {
"name": { "type": "string" },
"email": { "type": "string", "format": "email" },
"url": { "type": "string", "format": "uri" }
},
"additionalProperties": false
},
"homepage": {
"type": "string",
"format": "uri",
"description": "Documentation URL."
},
"repository": {
"type": "string",
"format": "uri",
"description": "Source code URL."
},
"license": {
"type": "string",
"description": "License identifier (e.g. \"MIT\", \"Apache-2.0\")."
},
"keywords": {
"type": "array",
"items": { "type": "string" },
"description": "Discovery tags."
},
"skills": {
"$ref": "#/definitions/stringOrStringArray",
"description": "Skill directories containing <name>/SKILL.md (replaces default skills/)."
},
"commands": {
"$ref": "#/definitions/stringOrStringArray",
"description": "Flat .md skill files or directories (replaces default commands/)."
},
"agents": {
"$ref": "#/definitions/stringOrStringArray",
"description": "Agent markdown files or directories (replaces default agents/)."
},
"hooks": {
"$ref": "#/definitions/stringOrStringArrayOrObject",
"description": "Hook config paths or inline hook configuration."
},
"mcpServers": {
"$ref": "#/definitions/stringOrStringArrayOrObject",
"description": "MCP server config paths or inline MCP server configuration."
},
"lspServers": {
"$ref": "#/definitions/stringOrStringArrayOrObject",
"description": "LSP server config paths or inline LSP server configuration."
},
"outputStyles": {
"$ref": "#/definitions/stringOrStringArray",
"description": "Output style files or directories (replaces default output-styles/)."
},
"themes": {
"$ref": "#/definitions/stringOrStringArray",
"description": "Color theme files or directories (replaces default themes/)."
},
"monitors": {
"$ref": "#/definitions/stringOrStringArray",
"description": "Background monitor config paths (replaces default monitors/monitors.json). Deprecated in favour of experimental.monitors."
},
"experimental": {
"type": "object",
"description": "Components whose schema may change between releases.",
"properties": {
"themes": {
"$ref": "#/definitions/stringOrStringArray",
"description": "Color theme files or directories (replaces default themes/)."
},
"monitors": {
"$ref": "#/definitions/stringOrStringArray",
"description": "Background monitor config paths (replaces default monitors/monitors.json)."
}
},
"additionalProperties": false
},
"userConfig": {
"type": "object",
"description": "User-configurable values prompted at enable time.",
"additionalProperties": {
"$ref": "#/definitions/userConfigField"
}
},
"channels": {
"type": "array",
"description": "Channel declarations for message injection.",
"items": {
"type": "object",
"required": ["server"],
"properties": {
"server": {
"type": "string",
"description": "Must match a key in the plugin's mcpServers."
},
"userConfig": {
"type": "object",
"description": "Per-channel user-configurable values.",
"additionalProperties": {
"$ref": "#/definitions/userConfigField"
}
}
},
"additionalProperties": false
}
},
"dependencies": {
"type": "array",
"description": "Other plugins this plugin requires, optionally with semver version constraints.",
"items": {
"oneOf": [
{ "type": "string" },
{
"type": "object",
"required": ["name"],
"properties": {
"name": { "type": "string" },
"version": {
"type": "string",
"description": "Semver version constraint (e.g. \"~2.1.0\")."
}
},
"additionalProperties": false
}
]
}
}
},
"definitions": {
"stringOrStringArray": {
"oneOf": [
{ "type": "string" },
{
"type": "array",
"items": { "type": "string" }
}
]
},
"stringOrStringArrayOrObject": {
"oneOf": [
{ "type": "string" },
{
"type": "array",
"items": { "type": "string" }
},
{ "type": "object" }
]
},
"userConfigField": {
"type": "object",
"required": ["type", "title", "description"],
"properties": {
"type": {
"type": "string",
"enum": ["string", "number", "boolean", "directory", "file"],
"description": "The value type."
},
"title": {
"type": "string",
"description": "Label shown in the configuration dialog."
},
"description": {
"type": "string",
"description": "Help text shown beneath the field."
},
"sensitive": {
"type": "boolean",
"description": "If true, masks input and stores in secure storage."
},
"required": {
"type": "boolean",
"description": "If true, validation fails when the field is empty."
},
"default": {
"description": "Value used when the user provides nothing."
},
"multiple": {
"type": "boolean",
"description": "For string type, allow an array of strings."
},
"min": {
"type": "number",
"description": "Lower bound for number type."
},
"max": {
"type": "number",
"description": "Upper bound for number type."
}
},
"additionalProperties": false
}
}
}