@a1st/aix-schema 0.0.6 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/schema.json CHANGED
@@ -1,1408 +1,1561 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://x.a1st.dev/schemas/v1/ai.json",
4
- "title": "ai.json Configuration",
5
- "description": "Configuration file for aix - unified AI agent and editor configuration",
6
- "$ref": "#/definitions/AiJsonConfig",
7
- "definitions": {
8
- "AiJsonConfig": {
9
- "type": "object",
10
- "properties": {
11
- "$schema": {
12
- "type": "string",
13
- "format": "uri",
14
- "description": "URL to JSON Schema for validation"
15
- },
16
- "extends": {
17
- "anyOf": [
18
- {
19
- "type": "string",
20
- "description": "Single config to extend (npm package or local path)"
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://x.a1st.dev/schemas/v1/ai.json",
4
+ "title": "ai.json Configuration",
5
+ "description": "Configuration file for aix - unified AI agent and editor configuration",
6
+ "$ref": "#/definitions/AiJsonConfig",
7
+ "definitions": {
8
+ "AiJsonConfig": {
9
+ "type": "object",
10
+ "properties": {
11
+ "$schema": {
12
+ "type": "string",
13
+ "format": "uri",
14
+ "description": "URL to JSON Schema for validation"
21
15
  },
22
- {
23
- "type": "array",
24
- "items": {
25
- "type": "string"
26
- },
27
- "description": "Array of configs to extend (resolved in order)"
28
- }
29
- ],
30
- "description": "Extend from other ai.json configs"
31
- },
32
- "skills": {
33
- "type": "object",
34
- "additionalProperties": {
35
- "anyOf": [
36
- {
37
- "anyOf": [
16
+ "extends": {
17
+ "anyOf": [
38
18
  {
39
- "anyOf": [
40
- {
41
- "type": "string",
42
- "description": "Shorthand: version range or local path"
43
- },
44
- {
45
- "type": "object",
46
- "properties": {
47
- "git": {
48
- "type": "string",
49
- "description": "Git URL (e.g., \"github:user/repo\", \"https://...\")"
50
- },
51
- "ref": {
52
- "type": "string",
53
- "description": "Git ref (branch, tag, commit)"
54
- },
55
- "path": {
56
- "type": "string",
57
- "description": "Subdirectory within repo"
58
- }
59
- },
60
- "required": [
61
- "git"
62
- ],
63
- "additionalProperties": false
64
- },
65
- {
66
- "type": "object",
67
- "properties": {
68
- "path": {
69
- "type": "string",
70
- "description": "Local file or directory path"
71
- }
72
- },
73
- "required": [
74
- "path"
75
- ],
76
- "additionalProperties": false
77
- },
78
- {
79
- "type": "object",
80
- "properties": {
81
- "version": {
82
- "type": "string",
83
- "description": "Version range from registry"
84
- },
85
- "registry": {
86
- "type": "string",
87
- "format": "uri",
88
- "description": "Custom registry URL"
89
- }
90
- },
91
- "required": [
92
- "version"
93
- ],
94
- "additionalProperties": false
95
- }
96
- ],
97
- "description": "Reference to a skill, config, or resource"
19
+ "type": "string",
20
+ "description": "Single config to extend (npm package or local path)"
98
21
  },
99
22
  {
100
- "type": "object",
101
- "properties": {
102
- "source": {
103
- "anyOf": [
104
- {
105
- "type": "string",
106
- "description": "Shorthand: version range or local path"
107
- },
108
- {
109
- "type": "object",
110
- "properties": {
111
- "git": {
112
- "type": "string",
113
- "description": "Git URL (e.g., \"github:user/repo\", \"https://...\")"
114
- },
115
- "ref": {
116
- "type": "string",
117
- "description": "Git ref (branch, tag, commit)"
118
- },
119
- "path": {
120
- "type": "string",
121
- "description": "Subdirectory within repo"
122
- }
123
- },
124
- "required": [
125
- "git"
126
- ],
127
- "additionalProperties": false
128
- },
129
- {
130
- "type": "object",
131
- "properties": {
132
- "path": {
133
- "type": "string",
134
- "description": "Local file or directory path"
135
- }
136
- },
137
- "required": [
138
- "path"
139
- ],
140
- "additionalProperties": false
141
- },
142
- {
143
- "type": "object",
144
- "properties": {
145
- "version": {
146
- "type": "string",
147
- "description": "Version range from registry"
148
- },
149
- "registry": {
150
- "type": "string",
151
- "format": "uri",
152
- "description": "Custom registry URL"
153
- }
154
- },
155
- "required": [
156
- "version"
157
- ],
158
- "additionalProperties": false
159
- }
160
- ],
161
- "description": "Where to load the skill from"
162
- },
163
- "enabled": {
164
- "type": "boolean",
165
- "default": true,
166
- "description": "Whether skill is active"
167
- },
168
- "config": {
169
- "type": "object",
170
- "additionalProperties": {},
171
- "description": "Skill-specific configuration"
172
- }
173
- },
174
- "required": [
175
- "source"
176
- ],
177
- "additionalProperties": false
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string"
26
+ },
27
+ "description": "Array of configs to extend (resolved in order)"
178
28
  }
179
- ],
180
- "description": "Skill reference (Agent Skills spec compliant)"
181
- },
182
- {
183
- "type": "boolean",
184
- "const": false
185
- }
186
- ]
187
- },
188
- "propertyNames": {
189
- "minLength": 1,
190
- "maxLength": 64,
191
- "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
192
- },
193
- "description": "Map of skill names to their configurations (or false to disable)",
194
- "default": {}
195
- },
196
- "mcp": {
197
- "type": "object",
198
- "additionalProperties": {
199
- "anyOf": [
200
- {
201
- "anyOf": [
202
- {
203
- "type": "object",
204
- "properties": {
205
- "enabled": {
206
- "type": "boolean",
207
- "description": "Whether server is active (default: true)"
208
- },
209
- "tools": {
210
- "anyOf": [
211
- {
212
- "type": "array",
213
- "items": {
214
- "type": "string"
215
- },
216
- "description": "Allowed tool names"
217
- },
218
- {
219
- "type": "object",
220
- "properties": {
221
- "include": {
222
- "type": "array",
223
- "items": {
224
- "type": "string"
225
- },
226
- "description": "Tools to include"
227
- },
228
- "exclude": {
229
- "type": "array",
230
- "items": {
231
- "type": "string"
232
- },
233
- "description": "Tools to exclude"
234
- }
235
- },
236
- "additionalProperties": false
237
- }
238
- ],
239
- "description": "Tool access control"
240
- },
241
- "disabledTools": {
242
- "type": "array",
243
- "items": {
244
- "type": "string"
245
- },
246
- "description": "Tools to disable (Windsurf format)"
247
- },
248
- "resources": {
249
- "anyOf": [
250
- {
251
- "type": "array",
252
- "items": {
253
- "type": "string"
254
- },
255
- "description": "Allowed resource patterns (glob)"
256
- },
257
- {
258
- "type": "object",
259
- "properties": {
260
- "include": {
261
- "type": "array",
262
- "items": {
263
- "type": "string"
264
- },
265
- "description": "Resource patterns to include"
266
- },
267
- "exclude": {
268
- "type": "array",
269
- "items": {
270
- "type": "string"
271
- },
272
- "description": "Resource patterns to exclude"
273
- }
274
- },
275
- "additionalProperties": false
276
- }
277
- ],
278
- "description": "Resource access control"
279
- },
280
- "autoStart": {
281
- "type": "boolean",
282
- "description": "Start with editor (default: true)"
283
- },
284
- "restartOnFailure": {
285
- "type": "boolean",
286
- "description": "Auto-restart on crash (default: true)"
287
- },
288
- "maxRestarts": {
289
- "type": "integer",
290
- "exclusiveMinimum": 0,
291
- "description": "Max restart attempts (default: 3)"
292
- },
293
- "command": {
294
- "type": "string",
295
- "description": "Command to execute"
296
- },
297
- "args": {
298
- "type": "array",
299
- "items": {
300
- "type": "string"
301
- },
302
- "description": "Command arguments"
303
- },
304
- "env": {
305
- "type": "object",
306
- "additionalProperties": {
307
- "type": "string",
308
- "description": "Environment variable value. Use ${VAR_NAME} for dynamic resolution."
309
- },
310
- "description": "Environment variables"
311
- },
312
- "cwd": {
313
- "type": "string",
314
- "description": "Working directory"
315
- },
316
- "shell": {
317
- "type": "boolean",
318
- "description": "Run in shell"
319
- }
320
- },
321
- "required": [
322
- "command"
323
- ],
324
- "additionalProperties": false
325
- },
326
- {
327
- "type": "object",
328
- "properties": {
329
- "enabled": {
330
- "type": "boolean",
331
- "description": "Whether server is active (default: true)"
332
- },
333
- "tools": {
334
- "anyOf": [
335
- {
336
- "type": "array",
337
- "items": {
338
- "type": "string"
339
- },
340
- "description": "Allowed tool names"
341
- },
342
- {
343
- "type": "object",
344
- "properties": {
345
- "include": {
346
- "type": "array",
347
- "items": {
348
- "type": "string"
349
- },
350
- "description": "Tools to include"
351
- },
352
- "exclude": {
353
- "type": "array",
354
- "items": {
355
- "type": "string"
356
- },
357
- "description": "Tools to exclude"
358
- }
359
- },
360
- "additionalProperties": false
361
- }
362
- ],
363
- "description": "Tool access control"
364
- },
365
- "disabledTools": {
366
- "type": "array",
367
- "items": {
368
- "type": "string"
369
- },
370
- "description": "Tools to disable (Windsurf format)"
371
- },
372
- "resources": {
29
+ ],
30
+ "description": "Extend from other ai.json configs"
31
+ },
32
+ "scope": {
33
+ "type": "string",
34
+ "enum": ["project", "user"],
35
+ "description": "Config scope: \"project\" (default) or \"user\""
36
+ },
37
+ "skills": {
38
+ "type": "object",
39
+ "additionalProperties": {
40
+ "anyOf": [
41
+ {
373
42
  "anyOf": [
374
- {
375
- "type": "array",
376
- "items": {
377
- "type": "string"
378
- },
379
- "description": "Allowed resource patterns (glob)"
380
- },
381
- {
382
- "type": "object",
383
- "properties": {
384
- "include": {
385
- "type": "array",
386
- "items": {
387
- "type": "string"
388
- },
389
- "description": "Resource patterns to include"
390
- },
391
- "exclude": {
392
- "type": "array",
393
- "items": {
394
- "type": "string"
395
- },
396
- "description": "Resource patterns to exclude"
397
- }
398
- },
399
- "additionalProperties": false
400
- }
401
- ],
402
- "description": "Resource access control"
403
- },
404
- "autoStart": {
405
- "type": "boolean",
406
- "description": "Start with editor (default: true)"
407
- },
408
- "restartOnFailure": {
409
- "type": "boolean",
410
- "description": "Auto-restart on crash (default: true)"
411
- },
412
- "maxRestarts": {
413
- "type": "integer",
414
- "exclusiveMinimum": 0,
415
- "description": "Max restart attempts (default: 3)"
416
- },
417
- "url": {
418
- "type": "string",
419
- "format": "uri",
420
- "description": "MCP endpoint URL (Streamable HTTP)"
421
- },
422
- "headers": {
423
- "type": "object",
424
- "additionalProperties": {
425
- "type": "string",
426
- "description": "Environment variable value. Use ${VAR_NAME} for dynamic resolution."
427
- },
428
- "description": "HTTP headers"
429
- },
430
- "timeout": {
431
- "type": "number",
432
- "exclusiveMinimum": 0,
433
- "description": "Connection timeout (ms)"
434
- },
435
- "validateOrigin": {
436
- "type": "boolean",
437
- "description": "Validate Origin header (security)"
438
- }
439
- },
440
- "required": [
441
- "url"
442
- ],
443
- "additionalProperties": false
444
- }
445
- ]
446
- },
447
- {
448
- "type": "boolean",
449
- "const": false
450
- }
451
- ]
452
- },
453
- "propertyNames": {
454
- "minLength": 1
455
- },
456
- "description": "Map of MCP server names to configurations (or false to disable)",
457
- "default": {}
458
- },
459
- "rules": {
460
- "type": "object",
461
- "additionalProperties": {
462
- "anyOf": [
463
- {
464
- "anyOf": [
465
- {
466
- "type": "string",
467
- "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
468
- },
469
- {
470
- "type": "object",
471
- "properties": {
472
- "description": {
473
- "type": "string",
474
- "description": "When the rule should apply (required for auto mode)"
475
- },
476
- "activation": {
477
- "type": "string",
478
- "enum": [
479
- "always",
480
- "auto",
481
- "glob",
482
- "manual"
483
- ],
484
- "default": "always",
485
- "description": "When the rule should be activated"
486
- },
487
- "globs": {
488
- "type": "array",
489
- "items": {
490
- "type": "string"
491
- },
492
- "description": "File patterns (required for glob mode)"
493
- },
494
- "content": {
495
- "type": "string",
496
- "description": "Inline rule content"
497
- },
498
- "path": {
499
- "type": "string",
500
- "description": "Local file path to rule content"
501
- },
502
- "git": {
503
- "type": "object",
504
- "properties": {
505
- "url": {
506
- "type": "string",
507
- "description": "Git repository URL or shorthand (e.g., github:user/repo)"
508
- },
509
- "path": {
510
- "type": "string",
511
- "description": "Path to rule file within repo (default: root)"
512
- },
513
- "ref": {
514
- "type": "string",
515
- "description": "Branch, tag, or commit (default: main/master)"
516
- }
517
- },
518
- "required": [
519
- "url"
520
- ],
521
- "additionalProperties": false,
522
- "description": "Git repository source"
523
- },
524
- "npm": {
525
- "type": "object",
526
- "properties": {
527
- "npm": {
528
- "type": "string",
529
- "description": "NPM package name (e.g., \"@company/rules\")"
530
- },
531
- "path": {
532
- "type": "string",
533
- "description": "Path to file within package (e.g., \"rules/style.md\")"
534
- },
535
- "version": {
536
- "type": "string",
537
- "description": "Version to auto-install (omit to use project node_modules)"
538
- }
539
- },
540
- "required": [
541
- "npm",
542
- "path"
543
- ],
544
- "additionalProperties": false,
545
- "description": "NPM package source"
546
- }
547
- },
548
- "additionalProperties": false,
549
- "description": "Rule with metadata and content source"
550
- }
551
- ]
552
- },
553
- {
554
- "type": "boolean",
555
- "const": false
556
- }
557
- ]
558
- },
559
- "propertyNames": {
560
- "minLength": 1,
561
- "maxLength": 64,
562
- "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
563
- },
564
- "description": "Map of rule names to their definitions (or false to disable)",
565
- "default": {}
566
- },
567
- "prompts": {
568
- "type": "object",
569
- "additionalProperties": {
570
- "anyOf": [
571
- {
572
- "anyOf": [
573
- {
574
- "type": "string",
575
- "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
576
- },
577
- {
578
- "type": "object",
579
- "properties": {
580
- "description": {
581
- "type": "string",
582
- "description": "Shown in command picker"
583
- },
584
- "argumentHint": {
585
- "type": "string",
586
- "description": "Hint for arguments (e.g., \"[file] [message]\")"
587
- },
588
- "content": {
589
- "type": "string",
590
- "description": "Inline prompt content"
591
- },
592
- "path": {
593
- "type": "string",
594
- "description": "Local file path to prompt content"
595
- },
596
- "git": {
597
- "type": "object",
598
- "properties": {
599
- "url": {
600
- "type": "string",
601
- "description": "Git repository URL or shorthand (e.g., github:user/repo)"
602
- },
603
- "path": {
604
- "type": "string",
605
- "description": "Path to rule file within repo (default: root)"
606
- },
607
- "ref": {
608
- "type": "string",
609
- "description": "Branch, tag, or commit (default: main/master)"
610
- }
611
- },
612
- "required": [
613
- "url"
614
- ],
615
- "additionalProperties": false,
616
- "description": "Git repository source"
617
- },
618
- "npm": {
619
- "type": "object",
620
- "properties": {
621
- "npm": {
622
- "type": "string",
623
- "description": "NPM package name (e.g., \"@company/rules\")"
624
- },
625
- "path": {
626
- "type": "string",
627
- "description": "Path to file within package (e.g., \"rules/style.md\")"
628
- },
629
- "version": {
630
- "type": "string",
631
- "description": "Version to auto-install (omit to use project node_modules)"
632
- }
633
- },
634
- "required": [
635
- "npm",
636
- "path"
637
- ],
638
- "additionalProperties": false,
639
- "description": "NPM package source"
640
- }
641
- },
642
- "additionalProperties": false,
643
- "description": "Prompt/command definition"
644
- }
645
- ]
646
- },
647
- {
648
- "type": "boolean",
649
- "const": false
650
- }
651
- ]
652
- },
653
- "propertyNames": {
654
- "minLength": 1,
655
- "maxLength": 64,
656
- "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
657
- },
658
- "description": "Map of prompt names to their definitions (or false to disable)",
659
- "default": {}
660
- },
661
- "editors": {
662
- "anyOf": [
663
- {
664
- "type": "array",
665
- "items": {
666
- "anyOf": [
667
- {
668
- "type": "string",
669
- "enum": [
670
- "windsurf",
671
- "cursor",
672
- "claude-code",
673
- "vscode",
674
- "zed",
675
- "neovim"
676
- ],
677
- "description": "Supported editor/agent"
678
- },
679
- {
680
- "type": "object",
681
- "additionalProperties": {
682
- "type": "object",
683
- "properties": {
684
- "enabled": {
685
- "type": "boolean",
686
- "default": true,
687
- "description": "Whether to configure this editor"
688
- },
689
- "rules": {
690
- "type": "object",
691
- "additionalProperties": {
692
- "anyOf": [
693
- {
694
- "anyOf": [
695
- {
43
+ {
44
+ "anyOf": [
45
+ {
696
46
  "type": "string",
697
- "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
698
- },
699
- {
47
+ "description": "Shorthand: version range or local path"
48
+ },
49
+ {
700
50
  "type": "object",
701
51
  "properties": {
702
- "description": {
703
- "type": "string",
704
- "description": "When the rule should apply (required for auto mode)"
705
- },
706
- "activation": {
707
- "type": "string",
708
- "enum": [
709
- "always",
710
- "auto",
711
- "glob",
712
- "manual"
713
- ],
714
- "default": "always",
715
- "description": "When the rule should be activated"
716
- },
717
- "globs": {
718
- "type": "array",
719
- "items": {
720
- "type": "string"
721
- },
722
- "description": "File patterns (required for glob mode)"
723
- },
724
- "content": {
725
- "type": "string",
726
- "description": "Inline rule content"
727
- },
728
- "path": {
729
- "type": "string",
730
- "description": "Local file path to rule content"
731
- },
732
- "git": {
733
- "type": "object",
734
- "properties": {
735
- "url": {
736
- "type": "string",
737
- "description": "Git repository URL or shorthand (e.g., github:user/repo)"
738
- },
739
- "path": {
740
- "type": "string",
741
- "description": "Path to rule file within repo (default: root)"
52
+ "git": {
53
+ "type": "string",
54
+ "description": "Git URL (e.g., \"github:user/repo\", \"https://...\")"
55
+ },
56
+ "ref": {
57
+ "type": "string",
58
+ "description": "Git ref (branch, tag, commit)"
59
+ },
60
+ "path": {
61
+ "type": "string",
62
+ "description": "Subdirectory within repo"
63
+ }
64
+ },
65
+ "required": ["git"],
66
+ "additionalProperties": false
67
+ },
68
+ {
69
+ "type": "object",
70
+ "properties": {
71
+ "path": {
72
+ "type": "string",
73
+ "description": "Local file or directory path"
74
+ }
75
+ },
76
+ "required": ["path"],
77
+ "additionalProperties": false
78
+ },
79
+ {
80
+ "type": "object",
81
+ "properties": {
82
+ "version": {
83
+ "type": "string",
84
+ "description": "Version range from registry"
85
+ },
86
+ "registry": {
87
+ "type": "string",
88
+ "format": "uri",
89
+ "description": "Custom registry URL"
90
+ }
91
+ },
92
+ "required": ["version"],
93
+ "additionalProperties": false
94
+ }
95
+ ],
96
+ "description": "Reference to a skill, config, or resource"
97
+ },
98
+ {
99
+ "type": "object",
100
+ "properties": {
101
+ "source": {
102
+ "anyOf": [
103
+ {
104
+ "type": "string",
105
+ "description": "Shorthand: version range or local path"
106
+ },
107
+ {
108
+ "type": "object",
109
+ "properties": {
110
+ "git": {
111
+ "type": "string",
112
+ "description": "Git URL (e.g., \"github:user/repo\", \"https://...\")"
113
+ },
114
+ "ref": {
115
+ "type": "string",
116
+ "description": "Git ref (branch, tag, commit)"
117
+ },
118
+ "path": {
119
+ "type": "string",
120
+ "description": "Subdirectory within repo"
121
+ }
742
122
  },
743
- "ref": {
744
- "type": "string",
745
- "description": "Branch, tag, or commit (default: main/master)"
746
- }
747
- },
748
- "required": [
749
- "url"
750
- ],
751
- "additionalProperties": false,
752
- "description": "Git repository source"
753
- },
754
- "npm": {
755
- "type": "object",
756
- "properties": {
757
- "npm": {
758
- "type": "string",
759
- "description": "NPM package name (e.g., \"@company/rules\")"
123
+ "required": ["git"],
124
+ "additionalProperties": false
125
+ },
126
+ {
127
+ "type": "object",
128
+ "properties": {
129
+ "path": {
130
+ "type": "string",
131
+ "description": "Local file or directory path"
132
+ }
760
133
  },
761
- "path": {
762
- "type": "string",
763
- "description": "Path to file within package (e.g., \"rules/style.md\")"
134
+ "required": ["path"],
135
+ "additionalProperties": false
136
+ },
137
+ {
138
+ "type": "object",
139
+ "properties": {
140
+ "version": {
141
+ "type": "string",
142
+ "description": "Version range from registry"
143
+ },
144
+ "registry": {
145
+ "type": "string",
146
+ "format": "uri",
147
+ "description": "Custom registry URL"
148
+ }
764
149
  },
765
- "version": {
766
- "type": "string",
767
- "description": "Version to auto-install (omit to use project node_modules)"
768
- }
769
- },
770
- "required": [
771
- "npm",
772
- "path"
773
- ],
774
- "additionalProperties": false,
775
- "description": "NPM package source"
776
- }
777
- },
778
- "additionalProperties": false,
779
- "description": "Rule with metadata and content source"
780
- }
781
- ]
150
+ "required": ["version"],
151
+ "additionalProperties": false
152
+ }
153
+ ],
154
+ "description": "Where to load the skill from"
155
+ },
156
+ "enabled": {
157
+ "type": "boolean",
158
+ "default": true,
159
+ "description": "Whether skill is active"
160
+ },
161
+ "config": {
162
+ "type": "object",
163
+ "additionalProperties": {},
164
+ "description": "Skill-specific configuration"
165
+ }
782
166
  },
783
- {
784
- "type": "boolean",
785
- "const": false
786
- }
787
- ]
788
- },
789
- "propertyNames": {
790
- "minLength": 1,
791
- "maxLength": 64,
792
- "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
793
- },
794
- "description": "Editor-specific rules (in addition to global rules)"
795
- }
796
- },
797
- "additionalProperties": false
798
- }
799
- }
800
- ]
801
- },
802
- "description": "Shorthand: array of editor names or configs"
167
+ "required": ["source"],
168
+ "additionalProperties": false
169
+ }
170
+ ],
171
+ "description": "Skill reference (Agent Skills spec compliant)"
172
+ },
173
+ {
174
+ "type": "boolean",
175
+ "const": false
176
+ }
177
+ ]
178
+ },
179
+ "propertyNames": {
180
+ "minLength": 1,
181
+ "maxLength": 64,
182
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
183
+ },
184
+ "description": "Map of skill names to their configurations (or false to disable)",
185
+ "default": {}
803
186
  },
804
- {
805
- "type": "object",
806
- "properties": {
807
- "windsurf": {
808
- "type": "object",
809
- "properties": {
810
- "enabled": {
811
- "type": "boolean",
812
- "default": true,
813
- "description": "Whether to configure this editor"
814
- },
815
- "rules": {
816
- "type": "object",
817
- "additionalProperties": {
187
+ "mcp": {
188
+ "type": "object",
189
+ "additionalProperties": {
190
+ "anyOf": [
191
+ {
818
192
  "anyOf": [
819
- {
820
- "anyOf": [
821
- {
822
- "type": "string",
823
- "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
824
- },
825
- {
826
- "type": "object",
827
- "properties": {
828
- "description": {
829
- "type": "string",
830
- "description": "When the rule should apply (required for auto mode)"
831
- },
832
- "activation": {
833
- "type": "string",
834
- "enum": [
835
- "always",
836
- "auto",
837
- "glob",
838
- "manual"
193
+ {
194
+ "type": "object",
195
+ "properties": {
196
+ "enabled": {
197
+ "type": "boolean",
198
+ "description": "Whether server is active (default: true)"
199
+ },
200
+ "tools": {
201
+ "anyOf": [
202
+ {
203
+ "type": "array",
204
+ "items": {
205
+ "type": "string"
206
+ },
207
+ "description": "Allowed tool names"
208
+ },
209
+ {
210
+ "type": "object",
211
+ "properties": {
212
+ "include": {
213
+ "type": "array",
214
+ "items": {
215
+ "type": "string"
216
+ },
217
+ "description": "Tools to include"
218
+ },
219
+ "exclude": {
220
+ "type": "array",
221
+ "items": {
222
+ "type": "string"
223
+ },
224
+ "description": "Tools to exclude"
225
+ }
226
+ },
227
+ "additionalProperties": false
228
+ }
839
229
  ],
840
- "default": "always",
841
- "description": "When the rule should be activated"
842
- },
843
- "globs": {
230
+ "description": "Tool access control"
231
+ },
232
+ "disabledTools": {
844
233
  "type": "array",
845
234
  "items": {
846
- "type": "string"
235
+ "type": "string"
847
236
  },
848
- "description": "File patterns (required for glob mode)"
849
- },
850
- "content": {
851
- "type": "string",
852
- "description": "Inline rule content"
853
- },
854
- "path": {
237
+ "description": "Tools to disable (Windsurf format)"
238
+ },
239
+ "resources": {
240
+ "anyOf": [
241
+ {
242
+ "type": "array",
243
+ "items": {
244
+ "type": "string"
245
+ },
246
+ "description": "Allowed resource patterns (glob)"
247
+ },
248
+ {
249
+ "type": "object",
250
+ "properties": {
251
+ "include": {
252
+ "type": "array",
253
+ "items": {
254
+ "type": "string"
255
+ },
256
+ "description": "Resource patterns to include"
257
+ },
258
+ "exclude": {
259
+ "type": "array",
260
+ "items": {
261
+ "type": "string"
262
+ },
263
+ "description": "Resource patterns to exclude"
264
+ }
265
+ },
266
+ "additionalProperties": false
267
+ }
268
+ ],
269
+ "description": "Resource access control"
270
+ },
271
+ "autoStart": {
272
+ "type": "boolean",
273
+ "description": "Start with editor (default: true)"
274
+ },
275
+ "restartOnFailure": {
276
+ "type": "boolean",
277
+ "description": "Auto-restart on crash (default: true)"
278
+ },
279
+ "maxRestarts": {
280
+ "type": "integer",
281
+ "exclusiveMinimum": 0,
282
+ "description": "Max restart attempts (default: 3)"
283
+ },
284
+ "command": {
855
285
  "type": "string",
856
- "description": "Local file path to rule content"
857
- },
858
- "git": {
286
+ "description": "Command to execute"
287
+ },
288
+ "args": {
289
+ "type": "array",
290
+ "items": {
291
+ "type": "string"
292
+ },
293
+ "description": "Command arguments"
294
+ },
295
+ "env": {
859
296
  "type": "object",
860
- "properties": {
861
- "url": {
862
- "type": "string",
863
- "description": "Git repository URL or shorthand (e.g., github:user/repo)"
864
- },
865
- "path": {
866
- "type": "string",
867
- "description": "Path to rule file within repo (default: root)"
868
- },
869
- "ref": {
870
- "type": "string",
871
- "description": "Branch, tag, or commit (default: main/master)"
872
- }
297
+ "additionalProperties": {
298
+ "type": "string",
299
+ "description": "Environment variable value. Use ${VAR_NAME} for dynamic resolution."
873
300
  },
874
- "required": [
875
- "url"
301
+ "description": "Environment variables"
302
+ },
303
+ "cwd": {
304
+ "type": "string",
305
+ "description": "Working directory"
306
+ },
307
+ "shell": {
308
+ "type": "boolean",
309
+ "description": "Run in shell"
310
+ }
311
+ },
312
+ "required": ["command"],
313
+ "additionalProperties": false
314
+ },
315
+ {
316
+ "type": "object",
317
+ "properties": {
318
+ "enabled": {
319
+ "type": "boolean",
320
+ "description": "Whether server is active (default: true)"
321
+ },
322
+ "tools": {
323
+ "anyOf": [
324
+ {
325
+ "type": "array",
326
+ "items": {
327
+ "type": "string"
328
+ },
329
+ "description": "Allowed tool names"
330
+ },
331
+ {
332
+ "type": "object",
333
+ "properties": {
334
+ "include": {
335
+ "type": "array",
336
+ "items": {
337
+ "type": "string"
338
+ },
339
+ "description": "Tools to include"
340
+ },
341
+ "exclude": {
342
+ "type": "array",
343
+ "items": {
344
+ "type": "string"
345
+ },
346
+ "description": "Tools to exclude"
347
+ }
348
+ },
349
+ "additionalProperties": false
350
+ }
876
351
  ],
877
- "additionalProperties": false,
878
- "description": "Git repository source"
879
- },
880
- "npm": {
881
- "type": "object",
882
- "properties": {
883
- "npm": {
884
- "type": "string",
885
- "description": "NPM package name (e.g., \"@company/rules\")"
886
- },
887
- "path": {
888
- "type": "string",
889
- "description": "Path to file within package (e.g., \"rules/style.md\")"
890
- },
891
- "version": {
892
- "type": "string",
893
- "description": "Version to auto-install (omit to use project node_modules)"
894
- }
352
+ "description": "Tool access control"
353
+ },
354
+ "disabledTools": {
355
+ "type": "array",
356
+ "items": {
357
+ "type": "string"
895
358
  },
896
- "required": [
897
- "npm",
898
- "path"
359
+ "description": "Tools to disable (Windsurf format)"
360
+ },
361
+ "resources": {
362
+ "anyOf": [
363
+ {
364
+ "type": "array",
365
+ "items": {
366
+ "type": "string"
367
+ },
368
+ "description": "Allowed resource patterns (glob)"
369
+ },
370
+ {
371
+ "type": "object",
372
+ "properties": {
373
+ "include": {
374
+ "type": "array",
375
+ "items": {
376
+ "type": "string"
377
+ },
378
+ "description": "Resource patterns to include"
379
+ },
380
+ "exclude": {
381
+ "type": "array",
382
+ "items": {
383
+ "type": "string"
384
+ },
385
+ "description": "Resource patterns to exclude"
386
+ }
387
+ },
388
+ "additionalProperties": false
389
+ }
899
390
  ],
900
- "additionalProperties": false,
901
- "description": "NPM package source"
902
- }
903
- },
904
- "additionalProperties": false,
905
- "description": "Rule with metadata and content source"
906
- }
907
- ]
908
- },
909
- {
910
- "type": "boolean",
911
- "const": false
912
- }
391
+ "description": "Resource access control"
392
+ },
393
+ "autoStart": {
394
+ "type": "boolean",
395
+ "description": "Start with editor (default: true)"
396
+ },
397
+ "restartOnFailure": {
398
+ "type": "boolean",
399
+ "description": "Auto-restart on crash (default: true)"
400
+ },
401
+ "maxRestarts": {
402
+ "type": "integer",
403
+ "exclusiveMinimum": 0,
404
+ "description": "Max restart attempts (default: 3)"
405
+ },
406
+ "url": {
407
+ "type": "string",
408
+ "format": "uri",
409
+ "description": "MCP endpoint URL (Streamable HTTP)"
410
+ },
411
+ "headers": {
412
+ "type": "object",
413
+ "additionalProperties": {
414
+ "type": "string",
415
+ "description": "Environment variable value. Use ${VAR_NAME} for dynamic resolution."
416
+ },
417
+ "description": "HTTP headers"
418
+ },
419
+ "timeout": {
420
+ "type": "number",
421
+ "exclusiveMinimum": 0,
422
+ "description": "Connection timeout (ms)"
423
+ },
424
+ "validateOrigin": {
425
+ "type": "boolean",
426
+ "description": "Validate Origin header (security)"
427
+ }
428
+ },
429
+ "required": ["url"],
430
+ "additionalProperties": false
431
+ }
913
432
  ]
914
- },
915
- "propertyNames": {
916
- "minLength": 1,
917
- "maxLength": 64,
918
- "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
919
- },
920
- "description": "Editor-specific rules (in addition to global rules)"
921
- },
922
- "cascadeSettings": {
923
- "type": "object",
924
- "additionalProperties": {},
925
- "description": "Windsurf Cascade settings"
926
- }
927
- },
928
- "additionalProperties": false
929
- },
930
- "cursor": {
931
- "type": "object",
932
- "properties": {
933
- "enabled": {
934
- "type": "boolean",
935
- "default": true,
936
- "description": "Whether to configure this editor"
937
- },
938
- "rules": {
939
- "type": "object",
940
- "additionalProperties": {
433
+ },
434
+ {
435
+ "type": "boolean",
436
+ "const": false
437
+ }
438
+ ]
439
+ },
440
+ "propertyNames": {
441
+ "minLength": 1
442
+ },
443
+ "description": "Map of MCP server names to configurations (or false to disable)",
444
+ "default": {}
445
+ },
446
+ "rules": {
447
+ "type": "object",
448
+ "additionalProperties": {
449
+ "anyOf": [
450
+ {
941
451
  "anyOf": [
942
- {
943
- "anyOf": [
944
- {
945
- "type": "string",
946
- "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
947
- },
948
- {
949
- "type": "object",
950
- "properties": {
951
- "description": {
452
+ {
453
+ "type": "string",
454
+ "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
455
+ },
456
+ {
457
+ "type": "object",
458
+ "properties": {
459
+ "description": {
952
460
  "type": "string",
953
461
  "description": "When the rule should apply (required for auto mode)"
954
- },
955
- "activation": {
462
+ },
463
+ "activation": {
956
464
  "type": "string",
957
- "enum": [
958
- "always",
959
- "auto",
960
- "glob",
961
- "manual"
962
- ],
465
+ "enum": ["always", "auto", "glob", "manual"],
963
466
  "default": "always",
964
467
  "description": "When the rule should be activated"
965
- },
966
- "globs": {
468
+ },
469
+ "globs": {
967
470
  "type": "array",
968
471
  "items": {
969
- "type": "string"
472
+ "type": "string"
970
473
  },
971
474
  "description": "File patterns (required for glob mode)"
972
- },
973
- "content": {
475
+ },
476
+ "content": {
974
477
  "type": "string",
975
478
  "description": "Inline rule content"
976
- },
977
- "path": {
479
+ },
480
+ "path": {
978
481
  "type": "string",
979
482
  "description": "Local file path to rule content"
980
- },
981
- "git": {
483
+ },
484
+ "git": {
982
485
  "type": "object",
983
486
  "properties": {
984
- "url": {
985
- "type": "string",
986
- "description": "Git repository URL or shorthand (e.g., github:user/repo)"
987
- },
988
- "path": {
989
- "type": "string",
990
- "description": "Path to rule file within repo (default: root)"
991
- },
992
- "ref": {
993
- "type": "string",
994
- "description": "Branch, tag, or commit (default: main/master)"
995
- }
487
+ "url": {
488
+ "type": "string",
489
+ "description": "Git repository URL or shorthand (e.g., github:user/repo)"
490
+ },
491
+ "path": {
492
+ "type": "string",
493
+ "description": "Path to rule file within repo (default: root)"
494
+ },
495
+ "ref": {
496
+ "type": "string",
497
+ "description": "Branch, tag, or commit (default: main/master)"
498
+ }
996
499
  },
997
- "required": [
998
- "url"
999
- ],
500
+ "required": ["url"],
1000
501
  "additionalProperties": false,
1001
502
  "description": "Git repository source"
1002
- },
1003
- "npm": {
503
+ },
504
+ "npm": {
1004
505
  "type": "object",
1005
506
  "properties": {
1006
- "npm": {
1007
- "type": "string",
1008
- "description": "NPM package name (e.g., \"@company/rules\")"
1009
- },
1010
- "path": {
1011
- "type": "string",
1012
- "description": "Path to file within package (e.g., \"rules/style.md\")"
1013
- },
1014
- "version": {
1015
- "type": "string",
1016
- "description": "Version to auto-install (omit to use project node_modules)"
1017
- }
507
+ "npm": {
508
+ "type": "string",
509
+ "description": "NPM package name (e.g., \"@company/rules\")"
510
+ },
511
+ "path": {
512
+ "type": "string",
513
+ "description": "Path to file within package (e.g., \"rules/style.md\")"
514
+ },
515
+ "version": {
516
+ "type": "string",
517
+ "description": "Version to auto-install (omit to use project node_modules)"
518
+ }
1018
519
  },
1019
- "required": [
1020
- "npm",
1021
- "path"
1022
- ],
520
+ "required": ["npm", "path"],
1023
521
  "additionalProperties": false,
1024
522
  "description": "NPM package source"
1025
- }
1026
- },
1027
- "additionalProperties": false,
1028
- "description": "Rule with metadata and content source"
1029
- }
1030
- ]
1031
- },
1032
- {
1033
- "type": "boolean",
1034
- "const": false
1035
- }
523
+ }
524
+ },
525
+ "additionalProperties": false,
526
+ "description": "Rule with metadata and content source"
527
+ }
1036
528
  ]
1037
- },
1038
- "propertyNames": {
1039
- "minLength": 1,
1040
- "maxLength": 64,
1041
- "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
1042
- },
1043
- "description": "Editor-specific rules (in addition to global rules)"
1044
- },
1045
- "aiSettings": {
1046
- "type": "object",
1047
- "additionalProperties": {},
1048
- "description": "Cursor AI settings"
1049
- }
1050
- },
1051
- "additionalProperties": false
1052
- },
1053
- "claude-code": {
1054
- "type": "object",
1055
- "properties": {
1056
- "enabled": {
1057
- "type": "boolean",
1058
- "default": true,
1059
- "description": "Whether to configure this editor"
1060
- },
1061
- "rules": {
1062
- "type": "object",
1063
- "additionalProperties": {
529
+ },
530
+ {
531
+ "type": "boolean",
532
+ "const": false
533
+ }
534
+ ]
535
+ },
536
+ "propertyNames": {
537
+ "minLength": 1,
538
+ "maxLength": 64,
539
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
540
+ },
541
+ "description": "Map of rule names to their definitions (or false to disable)",
542
+ "default": {}
543
+ },
544
+ "prompts": {
545
+ "type": "object",
546
+ "additionalProperties": {
547
+ "anyOf": [
548
+ {
1064
549
  "anyOf": [
1065
- {
1066
- "anyOf": [
1067
- {
1068
- "type": "string",
1069
- "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
1070
- },
1071
- {
1072
- "type": "object",
1073
- "properties": {
1074
- "description": {
550
+ {
551
+ "type": "string",
552
+ "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
553
+ },
554
+ {
555
+ "type": "object",
556
+ "properties": {
557
+ "description": {
1075
558
  "type": "string",
1076
- "description": "When the rule should apply (required for auto mode)"
1077
- },
1078
- "activation": {
559
+ "description": "Shown in command picker"
560
+ },
561
+ "argumentHint": {
1079
562
  "type": "string",
1080
- "enum": [
1081
- "always",
1082
- "auto",
1083
- "glob",
1084
- "manual"
1085
- ],
1086
- "default": "always",
1087
- "description": "When the rule should be activated"
1088
- },
1089
- "globs": {
1090
- "type": "array",
1091
- "items": {
1092
- "type": "string"
1093
- },
1094
- "description": "File patterns (required for glob mode)"
1095
- },
1096
- "content": {
563
+ "description": "Hint for arguments (e.g., \"[file] [message]\")"
564
+ },
565
+ "content": {
1097
566
  "type": "string",
1098
- "description": "Inline rule content"
1099
- },
1100
- "path": {
567
+ "description": "Inline prompt content"
568
+ },
569
+ "path": {
1101
570
  "type": "string",
1102
- "description": "Local file path to rule content"
1103
- },
1104
- "git": {
571
+ "description": "Local file path to prompt content"
572
+ },
573
+ "git": {
1105
574
  "type": "object",
1106
575
  "properties": {
1107
- "url": {
1108
- "type": "string",
1109
- "description": "Git repository URL or shorthand (e.g., github:user/repo)"
1110
- },
1111
- "path": {
1112
- "type": "string",
1113
- "description": "Path to rule file within repo (default: root)"
1114
- },
1115
- "ref": {
1116
- "type": "string",
1117
- "description": "Branch, tag, or commit (default: main/master)"
1118
- }
576
+ "url": {
577
+ "type": "string",
578
+ "description": "Git repository URL or shorthand (e.g., github:user/repo)"
579
+ },
580
+ "path": {
581
+ "type": "string",
582
+ "description": "Path to rule file within repo (default: root)"
583
+ },
584
+ "ref": {
585
+ "type": "string",
586
+ "description": "Branch, tag, or commit (default: main/master)"
587
+ }
1119
588
  },
1120
- "required": [
1121
- "url"
1122
- ],
589
+ "required": ["url"],
1123
590
  "additionalProperties": false,
1124
591
  "description": "Git repository source"
1125
- },
1126
- "npm": {
592
+ },
593
+ "npm": {
1127
594
  "type": "object",
1128
595
  "properties": {
1129
- "npm": {
1130
- "type": "string",
1131
- "description": "NPM package name (e.g., \"@company/rules\")"
1132
- },
1133
- "path": {
1134
- "type": "string",
1135
- "description": "Path to file within package (e.g., \"rules/style.md\")"
1136
- },
1137
- "version": {
1138
- "type": "string",
1139
- "description": "Version to auto-install (omit to use project node_modules)"
1140
- }
596
+ "npm": {
597
+ "type": "string",
598
+ "description": "NPM package name (e.g., \"@company/rules\")"
599
+ },
600
+ "path": {
601
+ "type": "string",
602
+ "description": "Path to file within package (e.g., \"rules/style.md\")"
603
+ },
604
+ "version": {
605
+ "type": "string",
606
+ "description": "Version to auto-install (omit to use project node_modules)"
607
+ }
1141
608
  },
1142
- "required": [
1143
- "npm",
1144
- "path"
1145
- ],
609
+ "required": ["npm", "path"],
1146
610
  "additionalProperties": false,
1147
611
  "description": "NPM package source"
1148
- }
1149
- },
1150
- "additionalProperties": false,
1151
- "description": "Rule with metadata and content source"
1152
- }
1153
- ]
1154
- },
1155
- {
1156
- "type": "boolean",
1157
- "const": false
1158
- }
612
+ }
613
+ },
614
+ "additionalProperties": false,
615
+ "description": "Prompt/command definition"
616
+ }
1159
617
  ]
1160
- },
1161
- "propertyNames": {
1162
- "minLength": 1,
1163
- "maxLength": 64,
1164
- "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
1165
- },
1166
- "description": "Editor-specific rules (in addition to global rules)"
1167
- },
1168
- "permissions": {
1169
- "type": "object",
1170
- "additionalProperties": {},
1171
- "description": "Claude Code permissions"
1172
- }
1173
- },
1174
- "additionalProperties": false
1175
- }
1176
- },
1177
- "additionalProperties": {
1178
- "type": "object",
1179
- "properties": {
1180
- "enabled": {
1181
- "type": "boolean",
1182
- "default": true,
1183
- "description": "Whether to configure this editor"
1184
- },
1185
- "rules": {
1186
- "type": "object",
1187
- "additionalProperties": {
1188
- "anyOf": [
1189
- {
1190
- "anyOf": [
1191
- {
618
+ },
619
+ {
620
+ "type": "boolean",
621
+ "const": false
622
+ }
623
+ ]
624
+ },
625
+ "propertyNames": {
626
+ "minLength": 1,
627
+ "maxLength": 64,
628
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
629
+ },
630
+ "description": "Map of prompt names to their definitions (or false to disable)",
631
+ "default": {}
632
+ },
633
+ "editors": {
634
+ "anyOf": [
635
+ {
636
+ "type": "array",
637
+ "items": {
638
+ "anyOf": [
639
+ {
1192
640
  "type": "string",
1193
- "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
1194
- },
1195
- {
641
+ "enum": [
642
+ "windsurf",
643
+ "cursor",
644
+ "claude-code",
645
+ "copilot",
646
+ "zed",
647
+ "neovim",
648
+ "gemini",
649
+ "opencode"
650
+ ],
651
+ "description": "Supported editor/agent"
652
+ },
653
+ {
1196
654
  "type": "object",
1197
- "properties": {
1198
- "description": {
1199
- "type": "string",
1200
- "description": "When the rule should apply (required for auto mode)"
1201
- },
1202
- "activation": {
1203
- "type": "string",
1204
- "enum": [
1205
- "always",
1206
- "auto",
1207
- "glob",
1208
- "manual"
1209
- ],
1210
- "default": "always",
1211
- "description": "When the rule should be activated"
1212
- },
1213
- "globs": {
1214
- "type": "array",
1215
- "items": {
1216
- "type": "string"
1217
- },
1218
- "description": "File patterns (required for glob mode)"
1219
- },
1220
- "content": {
1221
- "type": "string",
1222
- "description": "Inline rule content"
1223
- },
1224
- "path": {
1225
- "type": "string",
1226
- "description": "Local file path to rule content"
1227
- },
1228
- "git": {
1229
- "type": "object",
1230
- "properties": {
1231
- "url": {
1232
- "type": "string",
1233
- "description": "Git repository URL or shorthand (e.g., github:user/repo)"
1234
- },
1235
- "path": {
1236
- "type": "string",
1237
- "description": "Path to rule file within repo (default: root)"
655
+ "additionalProperties": {
656
+ "type": "object",
657
+ "properties": {
658
+ "enabled": {
659
+ "type": "boolean",
660
+ "default": true,
661
+ "description": "Whether to configure this editor"
1238
662
  },
1239
- "ref": {
1240
- "type": "string",
1241
- "description": "Branch, tag, or commit (default: main/master)"
663
+ "rules": {
664
+ "type": "object",
665
+ "additionalProperties": {
666
+ "anyOf": [
667
+ {
668
+ "anyOf": [
669
+ {
670
+ "type": "string",
671
+ "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
672
+ },
673
+ {
674
+ "type": "object",
675
+ "properties": {
676
+ "description": {
677
+ "type": "string",
678
+ "description": "When the rule should apply (required for auto mode)"
679
+ },
680
+ "activation": {
681
+ "type": "string",
682
+ "enum": [
683
+ "always",
684
+ "auto",
685
+ "glob",
686
+ "manual"
687
+ ],
688
+ "default": "always",
689
+ "description": "When the rule should be activated"
690
+ },
691
+ "globs": {
692
+ "type": "array",
693
+ "items": {
694
+ "type": "string"
695
+ },
696
+ "description": "File patterns (required for glob mode)"
697
+ },
698
+ "content": {
699
+ "type": "string",
700
+ "description": "Inline rule content"
701
+ },
702
+ "path": {
703
+ "type": "string",
704
+ "description": "Local file path to rule content"
705
+ },
706
+ "git": {
707
+ "type": "object",
708
+ "properties": {
709
+ "url": {
710
+ "type": "string",
711
+ "description": "Git repository URL or shorthand (e.g., github:user/repo)"
712
+ },
713
+ "path": {
714
+ "type": "string",
715
+ "description": "Path to rule file within repo (default: root)"
716
+ },
717
+ "ref": {
718
+ "type": "string",
719
+ "description": "Branch, tag, or commit (default: main/master)"
720
+ }
721
+ },
722
+ "required": ["url"],
723
+ "additionalProperties": false,
724
+ "description": "Git repository source"
725
+ },
726
+ "npm": {
727
+ "type": "object",
728
+ "properties": {
729
+ "npm": {
730
+ "type": "string",
731
+ "description": "NPM package name (e.g., \"@company/rules\")"
732
+ },
733
+ "path": {
734
+ "type": "string",
735
+ "description": "Path to file within package (e.g., \"rules/style.md\")"
736
+ },
737
+ "version": {
738
+ "type": "string",
739
+ "description": "Version to auto-install (omit to use project node_modules)"
740
+ }
741
+ },
742
+ "required": ["npm", "path"],
743
+ "additionalProperties": false,
744
+ "description": "NPM package source"
745
+ }
746
+ },
747
+ "additionalProperties": false,
748
+ "description": "Rule with metadata and content source"
749
+ }
750
+ ]
751
+ },
752
+ {
753
+ "type": "boolean",
754
+ "const": false
755
+ }
756
+ ]
757
+ },
758
+ "propertyNames": {
759
+ "minLength": 1,
760
+ "maxLength": 64,
761
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
762
+ },
763
+ "description": "Editor-specific rules (in addition to global rules)"
1242
764
  }
1243
- },
1244
- "required": [
1245
- "url"
1246
- ],
1247
- "additionalProperties": false,
1248
- "description": "Git repository source"
1249
- },
1250
- "npm": {
1251
- "type": "object",
1252
- "properties": {
1253
- "npm": {
1254
- "type": "string",
1255
- "description": "NPM package name (e.g., \"@company/rules\")"
1256
- },
1257
- "path": {
1258
- "type": "string",
1259
- "description": "Path to file within package (e.g., \"rules/style.md\")"
765
+ },
766
+ "additionalProperties": false
767
+ }
768
+ }
769
+ ]
770
+ },
771
+ "description": "Shorthand: array of editor names or configs"
772
+ },
773
+ {
774
+ "type": "object",
775
+ "properties": {
776
+ "windsurf": {
777
+ "type": "object",
778
+ "properties": {
779
+ "enabled": {
780
+ "type": "boolean",
781
+ "default": true,
782
+ "description": "Whether to configure this editor"
783
+ },
784
+ "rules": {
785
+ "type": "object",
786
+ "additionalProperties": {
787
+ "anyOf": [
788
+ {
789
+ "anyOf": [
790
+ {
791
+ "type": "string",
792
+ "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
793
+ },
794
+ {
795
+ "type": "object",
796
+ "properties": {
797
+ "description": {
798
+ "type": "string",
799
+ "description": "When the rule should apply (required for auto mode)"
800
+ },
801
+ "activation": {
802
+ "type": "string",
803
+ "enum": ["always", "auto", "glob", "manual"],
804
+ "default": "always",
805
+ "description": "When the rule should be activated"
806
+ },
807
+ "globs": {
808
+ "type": "array",
809
+ "items": {
810
+ "type": "string"
811
+ },
812
+ "description": "File patterns (required for glob mode)"
813
+ },
814
+ "content": {
815
+ "type": "string",
816
+ "description": "Inline rule content"
817
+ },
818
+ "path": {
819
+ "type": "string",
820
+ "description": "Local file path to rule content"
821
+ },
822
+ "git": {
823
+ "type": "object",
824
+ "properties": {
825
+ "url": {
826
+ "type": "string",
827
+ "description": "Git repository URL or shorthand (e.g., github:user/repo)"
828
+ },
829
+ "path": {
830
+ "type": "string",
831
+ "description": "Path to rule file within repo (default: root)"
832
+ },
833
+ "ref": {
834
+ "type": "string",
835
+ "description": "Branch, tag, or commit (default: main/master)"
836
+ }
837
+ },
838
+ "required": ["url"],
839
+ "additionalProperties": false,
840
+ "description": "Git repository source"
841
+ },
842
+ "npm": {
843
+ "type": "object",
844
+ "properties": {
845
+ "npm": {
846
+ "type": "string",
847
+ "description": "NPM package name (e.g., \"@company/rules\")"
848
+ },
849
+ "path": {
850
+ "type": "string",
851
+ "description": "Path to file within package (e.g., \"rules/style.md\")"
852
+ },
853
+ "version": {
854
+ "type": "string",
855
+ "description": "Version to auto-install (omit to use project node_modules)"
856
+ }
857
+ },
858
+ "required": ["npm", "path"],
859
+ "additionalProperties": false,
860
+ "description": "NPM package source"
861
+ }
862
+ },
863
+ "additionalProperties": false,
864
+ "description": "Rule with metadata and content source"
865
+ }
866
+ ]
867
+ },
868
+ {
869
+ "type": "boolean",
870
+ "const": false
871
+ }
872
+ ]
873
+ },
874
+ "propertyNames": {
875
+ "minLength": 1,
876
+ "maxLength": 64,
877
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
878
+ },
879
+ "description": "Editor-specific rules (in addition to global rules)"
880
+ },
881
+ "cascadeSettings": {
882
+ "type": "object",
883
+ "additionalProperties": {},
884
+ "description": "Windsurf Cascade settings"
885
+ }
886
+ },
887
+ "additionalProperties": false
888
+ },
889
+ "cursor": {
890
+ "type": "object",
891
+ "properties": {
892
+ "enabled": {
893
+ "type": "boolean",
894
+ "default": true,
895
+ "description": "Whether to configure this editor"
896
+ },
897
+ "rules": {
898
+ "type": "object",
899
+ "additionalProperties": {
900
+ "anyOf": [
901
+ {
902
+ "anyOf": [
903
+ {
904
+ "type": "string",
905
+ "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
906
+ },
907
+ {
908
+ "type": "object",
909
+ "properties": {
910
+ "description": {
911
+ "type": "string",
912
+ "description": "When the rule should apply (required for auto mode)"
913
+ },
914
+ "activation": {
915
+ "type": "string",
916
+ "enum": ["always", "auto", "glob", "manual"],
917
+ "default": "always",
918
+ "description": "When the rule should be activated"
919
+ },
920
+ "globs": {
921
+ "type": "array",
922
+ "items": {
923
+ "type": "string"
924
+ },
925
+ "description": "File patterns (required for glob mode)"
926
+ },
927
+ "content": {
928
+ "type": "string",
929
+ "description": "Inline rule content"
930
+ },
931
+ "path": {
932
+ "type": "string",
933
+ "description": "Local file path to rule content"
934
+ },
935
+ "git": {
936
+ "type": "object",
937
+ "properties": {
938
+ "url": {
939
+ "type": "string",
940
+ "description": "Git repository URL or shorthand (e.g., github:user/repo)"
941
+ },
942
+ "path": {
943
+ "type": "string",
944
+ "description": "Path to rule file within repo (default: root)"
945
+ },
946
+ "ref": {
947
+ "type": "string",
948
+ "description": "Branch, tag, or commit (default: main/master)"
949
+ }
950
+ },
951
+ "required": ["url"],
952
+ "additionalProperties": false,
953
+ "description": "Git repository source"
954
+ },
955
+ "npm": {
956
+ "type": "object",
957
+ "properties": {
958
+ "npm": {
959
+ "type": "string",
960
+ "description": "NPM package name (e.g., \"@company/rules\")"
961
+ },
962
+ "path": {
963
+ "type": "string",
964
+ "description": "Path to file within package (e.g., \"rules/style.md\")"
965
+ },
966
+ "version": {
967
+ "type": "string",
968
+ "description": "Version to auto-install (omit to use project node_modules)"
969
+ }
970
+ },
971
+ "required": ["npm", "path"],
972
+ "additionalProperties": false,
973
+ "description": "NPM package source"
974
+ }
975
+ },
976
+ "additionalProperties": false,
977
+ "description": "Rule with metadata and content source"
978
+ }
979
+ ]
980
+ },
981
+ {
982
+ "type": "boolean",
983
+ "const": false
984
+ }
985
+ ]
986
+ },
987
+ "propertyNames": {
988
+ "minLength": 1,
989
+ "maxLength": 64,
990
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
991
+ },
992
+ "description": "Editor-specific rules (in addition to global rules)"
993
+ },
994
+ "aiSettings": {
995
+ "type": "object",
996
+ "additionalProperties": {},
997
+ "description": "Cursor AI settings"
998
+ }
999
+ },
1000
+ "additionalProperties": false
1001
+ },
1002
+ "claude-code": {
1003
+ "type": "object",
1004
+ "properties": {
1005
+ "enabled": {
1006
+ "type": "boolean",
1007
+ "default": true,
1008
+ "description": "Whether to configure this editor"
1009
+ },
1010
+ "rules": {
1011
+ "type": "object",
1012
+ "additionalProperties": {
1013
+ "anyOf": [
1014
+ {
1015
+ "anyOf": [
1016
+ {
1017
+ "type": "string",
1018
+ "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
1019
+ },
1020
+ {
1021
+ "type": "object",
1022
+ "properties": {
1023
+ "description": {
1024
+ "type": "string",
1025
+ "description": "When the rule should apply (required for auto mode)"
1026
+ },
1027
+ "activation": {
1028
+ "type": "string",
1029
+ "enum": ["always", "auto", "glob", "manual"],
1030
+ "default": "always",
1031
+ "description": "When the rule should be activated"
1032
+ },
1033
+ "globs": {
1034
+ "type": "array",
1035
+ "items": {
1036
+ "type": "string"
1037
+ },
1038
+ "description": "File patterns (required for glob mode)"
1039
+ },
1040
+ "content": {
1041
+ "type": "string",
1042
+ "description": "Inline rule content"
1043
+ },
1044
+ "path": {
1045
+ "type": "string",
1046
+ "description": "Local file path to rule content"
1047
+ },
1048
+ "git": {
1049
+ "type": "object",
1050
+ "properties": {
1051
+ "url": {
1052
+ "type": "string",
1053
+ "description": "Git repository URL or shorthand (e.g., github:user/repo)"
1054
+ },
1055
+ "path": {
1056
+ "type": "string",
1057
+ "description": "Path to rule file within repo (default: root)"
1058
+ },
1059
+ "ref": {
1060
+ "type": "string",
1061
+ "description": "Branch, tag, or commit (default: main/master)"
1062
+ }
1063
+ },
1064
+ "required": ["url"],
1065
+ "additionalProperties": false,
1066
+ "description": "Git repository source"
1067
+ },
1068
+ "npm": {
1069
+ "type": "object",
1070
+ "properties": {
1071
+ "npm": {
1072
+ "type": "string",
1073
+ "description": "NPM package name (e.g., \"@company/rules\")"
1074
+ },
1075
+ "path": {
1076
+ "type": "string",
1077
+ "description": "Path to file within package (e.g., \"rules/style.md\")"
1078
+ },
1079
+ "version": {
1080
+ "type": "string",
1081
+ "description": "Version to auto-install (omit to use project node_modules)"
1082
+ }
1083
+ },
1084
+ "required": ["npm", "path"],
1085
+ "additionalProperties": false,
1086
+ "description": "NPM package source"
1087
+ }
1088
+ },
1089
+ "additionalProperties": false,
1090
+ "description": "Rule with metadata and content source"
1091
+ }
1092
+ ]
1093
+ },
1094
+ {
1095
+ "type": "boolean",
1096
+ "const": false
1097
+ }
1098
+ ]
1099
+ },
1100
+ "propertyNames": {
1101
+ "minLength": 1,
1102
+ "maxLength": 64,
1103
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
1104
+ },
1105
+ "description": "Editor-specific rules (in addition to global rules)"
1106
+ },
1107
+ "permissions": {
1108
+ "type": "object",
1109
+ "additionalProperties": {},
1110
+ "description": "Claude Code permissions"
1111
+ }
1112
+ },
1113
+ "additionalProperties": false
1114
+ },
1115
+ "gemini": {
1116
+ "type": "object",
1117
+ "properties": {
1118
+ "enabled": {
1119
+ "type": "boolean",
1120
+ "default": true,
1121
+ "description": "Whether to configure this editor"
1122
+ },
1123
+ "rules": {
1124
+ "type": "object",
1125
+ "additionalProperties": {
1126
+ "anyOf": [
1127
+ {
1128
+ "anyOf": [
1129
+ {
1130
+ "type": "string",
1131
+ "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
1132
+ },
1133
+ {
1134
+ "type": "object",
1135
+ "properties": {
1136
+ "description": {
1137
+ "type": "string",
1138
+ "description": "When the rule should apply (required for auto mode)"
1139
+ },
1140
+ "activation": {
1141
+ "type": "string",
1142
+ "enum": ["always", "auto", "glob", "manual"],
1143
+ "default": "always",
1144
+ "description": "When the rule should be activated"
1145
+ },
1146
+ "globs": {
1147
+ "type": "array",
1148
+ "items": {
1149
+ "type": "string"
1150
+ },
1151
+ "description": "File patterns (required for glob mode)"
1152
+ },
1153
+ "content": {
1154
+ "type": "string",
1155
+ "description": "Inline rule content"
1156
+ },
1157
+ "path": {
1158
+ "type": "string",
1159
+ "description": "Local file path to rule content"
1160
+ },
1161
+ "git": {
1162
+ "type": "object",
1163
+ "properties": {
1164
+ "url": {
1165
+ "type": "string",
1166
+ "description": "Git repository URL or shorthand (e.g., github:user/repo)"
1167
+ },
1168
+ "path": {
1169
+ "type": "string",
1170
+ "description": "Path to rule file within repo (default: root)"
1171
+ },
1172
+ "ref": {
1173
+ "type": "string",
1174
+ "description": "Branch, tag, or commit (default: main/master)"
1175
+ }
1176
+ },
1177
+ "required": ["url"],
1178
+ "additionalProperties": false,
1179
+ "description": "Git repository source"
1180
+ },
1181
+ "npm": {
1182
+ "type": "object",
1183
+ "properties": {
1184
+ "npm": {
1185
+ "type": "string",
1186
+ "description": "NPM package name (e.g., \"@company/rules\")"
1187
+ },
1188
+ "path": {
1189
+ "type": "string",
1190
+ "description": "Path to file within package (e.g., \"rules/style.md\")"
1191
+ },
1192
+ "version": {
1193
+ "type": "string",
1194
+ "description": "Version to auto-install (omit to use project node_modules)"
1195
+ }
1196
+ },
1197
+ "required": ["npm", "path"],
1198
+ "additionalProperties": false,
1199
+ "description": "NPM package source"
1200
+ }
1201
+ },
1202
+ "additionalProperties": false,
1203
+ "description": "Rule with metadata and content source"
1204
+ }
1205
+ ]
1206
+ },
1207
+ {
1208
+ "type": "boolean",
1209
+ "const": false
1210
+ }
1211
+ ]
1212
+ },
1213
+ "propertyNames": {
1214
+ "minLength": 1,
1215
+ "maxLength": 64,
1216
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
1217
+ },
1218
+ "description": "Editor-specific rules (in addition to global rules)"
1219
+ },
1220
+ "geminiSettings": {
1221
+ "type": "object",
1222
+ "additionalProperties": {},
1223
+ "description": "Gemini CLI settings"
1224
+ }
1225
+ },
1226
+ "additionalProperties": false
1227
+ },
1228
+ "opencode": {
1229
+ "type": "object",
1230
+ "properties": {
1231
+ "enabled": {
1232
+ "type": "boolean",
1233
+ "default": true,
1234
+ "description": "Whether to configure this editor"
1235
+ },
1236
+ "rules": {
1237
+ "type": "object",
1238
+ "additionalProperties": {
1239
+ "anyOf": [
1240
+ {
1241
+ "anyOf": [
1242
+ {
1243
+ "type": "string",
1244
+ "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
1245
+ },
1246
+ {
1247
+ "type": "object",
1248
+ "properties": {
1249
+ "description": {
1250
+ "type": "string",
1251
+ "description": "When the rule should apply (required for auto mode)"
1252
+ },
1253
+ "activation": {
1254
+ "type": "string",
1255
+ "enum": ["always", "auto", "glob", "manual"],
1256
+ "default": "always",
1257
+ "description": "When the rule should be activated"
1258
+ },
1259
+ "globs": {
1260
+ "type": "array",
1261
+ "items": {
1262
+ "type": "string"
1263
+ },
1264
+ "description": "File patterns (required for glob mode)"
1265
+ },
1266
+ "content": {
1267
+ "type": "string",
1268
+ "description": "Inline rule content"
1269
+ },
1270
+ "path": {
1271
+ "type": "string",
1272
+ "description": "Local file path to rule content"
1273
+ },
1274
+ "git": {
1275
+ "type": "object",
1276
+ "properties": {
1277
+ "url": {
1278
+ "type": "string",
1279
+ "description": "Git repository URL or shorthand (e.g., github:user/repo)"
1280
+ },
1281
+ "path": {
1282
+ "type": "string",
1283
+ "description": "Path to rule file within repo (default: root)"
1284
+ },
1285
+ "ref": {
1286
+ "type": "string",
1287
+ "description": "Branch, tag, or commit (default: main/master)"
1288
+ }
1289
+ },
1290
+ "required": ["url"],
1291
+ "additionalProperties": false,
1292
+ "description": "Git repository source"
1293
+ },
1294
+ "npm": {
1295
+ "type": "object",
1296
+ "properties": {
1297
+ "npm": {
1298
+ "type": "string",
1299
+ "description": "NPM package name (e.g., \"@company/rules\")"
1300
+ },
1301
+ "path": {
1302
+ "type": "string",
1303
+ "description": "Path to file within package (e.g., \"rules/style.md\")"
1304
+ },
1305
+ "version": {
1306
+ "type": "string",
1307
+ "description": "Version to auto-install (omit to use project node_modules)"
1308
+ }
1309
+ },
1310
+ "required": ["npm", "path"],
1311
+ "additionalProperties": false,
1312
+ "description": "NPM package source"
1313
+ }
1314
+ },
1315
+ "additionalProperties": false,
1316
+ "description": "Rule with metadata and content source"
1317
+ }
1318
+ ]
1319
+ },
1320
+ {
1321
+ "type": "boolean",
1322
+ "const": false
1323
+ }
1324
+ ]
1325
+ },
1326
+ "propertyNames": {
1327
+ "minLength": 1,
1328
+ "maxLength": 64,
1329
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
1330
+ },
1331
+ "description": "Editor-specific rules (in addition to global rules)"
1332
+ }
1333
+ },
1334
+ "additionalProperties": false
1335
+ }
1336
+ },
1337
+ "additionalProperties": {
1338
+ "type": "object",
1339
+ "properties": {
1340
+ "enabled": {
1341
+ "type": "boolean",
1342
+ "default": true,
1343
+ "description": "Whether to configure this editor"
1344
+ },
1345
+ "rules": {
1346
+ "type": "object",
1347
+ "additionalProperties": {
1348
+ "anyOf": [
1349
+ {
1350
+ "anyOf": [
1351
+ {
1352
+ "type": "string",
1353
+ "description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
1354
+ },
1355
+ {
1356
+ "type": "object",
1357
+ "properties": {
1358
+ "description": {
1359
+ "type": "string",
1360
+ "description": "When the rule should apply (required for auto mode)"
1361
+ },
1362
+ "activation": {
1363
+ "type": "string",
1364
+ "enum": ["always", "auto", "glob", "manual"],
1365
+ "default": "always",
1366
+ "description": "When the rule should be activated"
1367
+ },
1368
+ "globs": {
1369
+ "type": "array",
1370
+ "items": {
1371
+ "type": "string"
1372
+ },
1373
+ "description": "File patterns (required for glob mode)"
1374
+ },
1375
+ "content": {
1376
+ "type": "string",
1377
+ "description": "Inline rule content"
1378
+ },
1379
+ "path": {
1380
+ "type": "string",
1381
+ "description": "Local file path to rule content"
1382
+ },
1383
+ "git": {
1384
+ "type": "object",
1385
+ "properties": {
1386
+ "url": {
1387
+ "type": "string",
1388
+ "description": "Git repository URL or shorthand (e.g., github:user/repo)"
1389
+ },
1390
+ "path": {
1391
+ "type": "string",
1392
+ "description": "Path to rule file within repo (default: root)"
1393
+ },
1394
+ "ref": {
1395
+ "type": "string",
1396
+ "description": "Branch, tag, or commit (default: main/master)"
1397
+ }
1398
+ },
1399
+ "required": ["url"],
1400
+ "additionalProperties": false,
1401
+ "description": "Git repository source"
1402
+ },
1403
+ "npm": {
1404
+ "type": "object",
1405
+ "properties": {
1406
+ "npm": {
1407
+ "type": "string",
1408
+ "description": "NPM package name (e.g., \"@company/rules\")"
1409
+ },
1410
+ "path": {
1411
+ "type": "string",
1412
+ "description": "Path to file within package (e.g., \"rules/style.md\")"
1413
+ },
1414
+ "version": {
1415
+ "type": "string",
1416
+ "description": "Version to auto-install (omit to use project node_modules)"
1417
+ }
1418
+ },
1419
+ "required": ["npm", "path"],
1420
+ "additionalProperties": false,
1421
+ "description": "NPM package source"
1422
+ }
1423
+ },
1424
+ "additionalProperties": false,
1425
+ "description": "Rule with metadata and content source"
1426
+ }
1427
+ ]
1260
1428
  },
1261
- "version": {
1262
- "type": "string",
1263
- "description": "Version to auto-install (omit to use project node_modules)"
1429
+ {
1430
+ "type": "boolean",
1431
+ "const": false
1264
1432
  }
1265
- },
1266
- "required": [
1267
- "npm",
1268
- "path"
1269
- ],
1270
- "additionalProperties": false,
1271
- "description": "NPM package source"
1272
- }
1433
+ ]
1273
1434
  },
1274
- "additionalProperties": false,
1275
- "description": "Rule with metadata and content source"
1276
- }
1277
- ]
1435
+ "propertyNames": {
1436
+ "minLength": 1,
1437
+ "maxLength": 64,
1438
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
1439
+ },
1440
+ "description": "Editor-specific rules (in addition to global rules)"
1441
+ }
1278
1442
  },
1279
- {
1280
- "type": "boolean",
1281
- "const": false
1282
- }
1283
- ]
1284
- },
1285
- "propertyNames": {
1286
- "minLength": 1,
1287
- "maxLength": 64,
1288
- "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
1289
- },
1290
- "description": "Editor-specific rules (in addition to global rules)"
1443
+ "additionalProperties": false
1444
+ }
1291
1445
  }
1292
- },
1293
- "additionalProperties": false
1294
- }
1295
- }
1296
- ],
1297
- "description": "Editor-specific configurations"
1298
- },
1299
- "hooks": {
1300
- "type": "object",
1301
- "additionalProperties": {
1302
- "type": "array",
1303
- "items": {
1304
- "type": "object",
1305
- "properties": {
1306
- "matcher": {
1307
- "type": "string",
1308
- "description": "Pattern to match (regex supported, editor-specific)"
1309
- },
1310
- "hooks": {
1446
+ ],
1447
+ "description": "Editor-specific configurations"
1448
+ },
1449
+ "hooks": {
1450
+ "type": "object",
1451
+ "additionalProperties": {
1311
1452
  "type": "array",
1312
1453
  "items": {
1313
- "type": "object",
1314
- "properties": {
1315
- "command": {
1316
- "type": "string",
1317
- "description": "Shell command to execute"
1318
- },
1319
- "timeout": {
1320
- "type": "number",
1321
- "exclusiveMinimum": 0,
1322
- "description": "Timeout in seconds"
1323
- },
1324
- "show_output": {
1325
- "type": "boolean",
1326
- "description": "Whether to show command output in UI"
1327
- },
1328
- "working_directory": {
1329
- "type": "string",
1330
- "description": "Working directory for the command"
1331
- }
1332
- },
1333
- "required": [
1334
- "command"
1335
- ],
1336
- "additionalProperties": false,
1337
- "description": "Hook action configuration"
1338
- },
1339
- "description": "Hooks to execute when matched"
1340
- }
1341
- },
1342
- "required": [
1343
- "hooks"
1344
- ],
1345
- "additionalProperties": false,
1346
- "description": "Hook matcher configuration"
1347
- }
1348
- },
1349
- "propertyNames": {
1350
- "enum": [
1351
- "pre_tool_use",
1352
- "post_tool_use",
1353
- "pre_file_read",
1354
- "post_file_read",
1355
- "pre_file_write",
1356
- "post_file_write",
1357
- "pre_command",
1358
- "post_command",
1359
- "pre_mcp_tool",
1360
- "post_mcp_tool",
1361
- "pre_prompt",
1362
- "session_start",
1363
- "session_end",
1364
- "agent_stop"
1365
- ]
1366
- },
1367
- "description": "Lifecycle hooks for AI agent events"
1368
- },
1369
- "aix": {
1370
- "type": "object",
1371
- "properties": {
1372
- "cache": {
1373
- "type": "object",
1374
- "properties": {
1375
- "maxBackups": {
1376
- "type": "integer",
1377
- "minimum": 1,
1378
- "maximum": 100,
1379
- "default": 5,
1380
- "description": "Maximum number of backup files to keep per file"
1381
- },
1382
- "maxBackupAgeDays": {
1383
- "type": "integer",
1384
- "minimum": 1,
1385
- "maximum": 365,
1386
- "default": 30,
1387
- "description": "Delete backups older than this many days"
1388
- },
1389
- "maxCacheAgeDays": {
1390
- "type": "integer",
1391
- "minimum": 1,
1392
- "maximum": 365,
1393
- "default": 7,
1394
- "description": "Delete git-sourced cache entries older than this many days"
1395
- }
1396
- },
1397
- "additionalProperties": false,
1398
- "description": "Cache and backup retention settings"
1454
+ "type": "object",
1455
+ "properties": {
1456
+ "matcher": {
1457
+ "type": "string",
1458
+ "description": "Pattern to match (regex supported, editor-specific)"
1459
+ },
1460
+ "hooks": {
1461
+ "type": "array",
1462
+ "items": {
1463
+ "type": "object",
1464
+ "properties": {
1465
+ "command": {
1466
+ "type": "string",
1467
+ "description": "Shell command to execute"
1468
+ },
1469
+ "timeout": {
1470
+ "type": "number",
1471
+ "exclusiveMinimum": 0,
1472
+ "description": "Timeout in seconds"
1473
+ },
1474
+ "show_output": {
1475
+ "type": "boolean",
1476
+ "description": "Whether to show command output in UI"
1477
+ },
1478
+ "working_directory": {
1479
+ "type": "string",
1480
+ "description": "Working directory for the command"
1481
+ }
1482
+ },
1483
+ "required": ["command"],
1484
+ "additionalProperties": false,
1485
+ "description": "Hook action configuration"
1486
+ },
1487
+ "description": "Hooks to execute when matched"
1488
+ }
1489
+ },
1490
+ "required": ["hooks"],
1491
+ "additionalProperties": false,
1492
+ "description": "Hook matcher configuration"
1493
+ }
1494
+ },
1495
+ "propertyNames": {
1496
+ "enum": [
1497
+ "pre_tool_use",
1498
+ "post_tool_use",
1499
+ "pre_file_read",
1500
+ "post_file_read",
1501
+ "pre_file_write",
1502
+ "post_file_write",
1503
+ "pre_command",
1504
+ "post_command",
1505
+ "pre_mcp_tool",
1506
+ "post_mcp_tool",
1507
+ "pre_prompt",
1508
+ "pre_compact",
1509
+ "post_compact",
1510
+ "subagent_start",
1511
+ "subagent_stop",
1512
+ "task_created",
1513
+ "task_completed",
1514
+ "worktree_setup",
1515
+ "session_start",
1516
+ "session_end",
1517
+ "agent_stop"
1518
+ ]
1519
+ },
1520
+ "description": "Lifecycle hooks for AI agent events"
1521
+ },
1522
+ "aix": {
1523
+ "type": "object",
1524
+ "properties": {
1525
+ "cache": {
1526
+ "type": "object",
1527
+ "properties": {
1528
+ "maxBackups": {
1529
+ "type": "integer",
1530
+ "minimum": 1,
1531
+ "maximum": 100,
1532
+ "default": 5,
1533
+ "description": "Maximum number of backup files to keep per file"
1534
+ },
1535
+ "maxBackupAgeDays": {
1536
+ "type": "integer",
1537
+ "minimum": 1,
1538
+ "maximum": 365,
1539
+ "default": 30,
1540
+ "description": "Delete backups older than this many days"
1541
+ },
1542
+ "maxCacheAgeDays": {
1543
+ "type": "integer",
1544
+ "minimum": 1,
1545
+ "maximum": 365,
1546
+ "default": 7,
1547
+ "description": "Delete git-sourced cache entries older than this many days"
1548
+ }
1549
+ },
1550
+ "additionalProperties": false,
1551
+ "description": "Cache and backup retention settings"
1552
+ }
1553
+ },
1554
+ "additionalProperties": false,
1555
+ "description": "aix CLI tool settings"
1399
1556
  }
1400
- },
1401
- "additionalProperties": false,
1402
- "description": "aix CLI tool settings"
1403
- }
1404
- },
1405
- "additionalProperties": false
1406
- }
1407
- }
1408
- }
1557
+ },
1558
+ "additionalProperties": false
1559
+ }
1560
+ }
1561
+ }