-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathagent-config.schema.json
More file actions
247 lines (247 loc) · 7.67 KB
/
Copy pathagent-config.schema.json
File metadata and controls
247 lines (247 loc) · 7.67 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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "LightSpeedWP Unified Branding Agent Configuration Schema",
"description": "Configuration schema for the unified branding agent, defining document categories, frontmatter requirements, footer templates, and badge schemas",
"type": "object",
"definitions": {
"category": {
"type": "string",
"enum": [
"root",
"github-config",
"workflows",
"wceu-talk",
"tests",
"skills",
"scripts",
"plugins",
"instructions",
"hooks",
"documentation",
"cookbook",
"ai-configs",
"agent-specs",
"slides"
]
},
"requiredFrontmatterFields": {
"type": "object",
"properties": {
"file_type": {
"type": "string",
"description": "Type of file (report, documentation, instruction, agent, skill, etc.)"
},
"title": {
"type": "string",
"description": "Human-readable title of the document"
},
"last_updated": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 datetime of last update (must be current for changed content)"
}
},
"required": ["file_type", "title", "last_updated"]
},
"optionalFrontmatterFields": {
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "Brief description of document purpose"
},
"version": {
"type": "string",
"pattern": "^\\d+\\.\\d+(\\.\\d+)?$",
"description": "Semantic version string (e.g., 1.0 or 1.2.3)"
},
"created_date": {
"type": "string",
"format": "date",
"description": "ISO date when file was created"
},
"owners": {
"type": "array",
"items": { "type": "string" },
"description": "List of file owners/maintainers"
},
"tags": {
"type": "array",
"items": { "type": "string" },
"maxItems": 8,
"description": "Keywords for discoverability (max 8 tags)"
},
"category": {
"$ref": "#/definitions/category",
"description": "Document category for footer/badge selection"
},
"domain": {
"type": "string",
"description": "Domain or functional area"
},
"stability": {
"type": "string",
"enum": ["stable", "experimental", "incubating", "deprecated"],
"description": "Maturity level of the content"
},
"maintainer": {
"type": "string",
"description": "Primary maintainer or team responsible for updates"
},
"license": {
"type": "string",
"description": "License identifier (e.g., GPL-3.0, MIT)"
}
}
},
"categoryFooterTemplate": {
"type": "object",
"properties": {
"category": { "$ref": "#/definitions/category" },
"footer_format": {
"type": "string",
"description": "Template string for footer generation"
},
"variations": {
"type": "array",
"items": { "type": "string" },
"description": "Alternative footer formats for this category"
}
}
},
"badgeSchema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["status", "category", "version", "review", "maintenance"],
"description": "Badge type/category"
},
"placement": {
"type": "string",
"enum": ["header", "footer", "inline"],
"description": "Recommended badge placement"
},
"template": {
"type": "string",
"description": "Badge template (Markdown image syntax)"
}
}
}
},
"properties": {
"version": {
"type": "string",
"description": "Schema version"
},
"categories": {
"type": "object",
"description": "Document category definitions with paths and metadata",
"properties": {
"root": {
"type": "object",
"description": "Root-level GitHub configuration files",
"properties": {
"path_pattern": { "type": "string" },
"footer_required": { "type": "boolean" },
"badge_support": { "type": "boolean" }
}
},
"github-config": {
"type": "object",
"description": ".github/ directory files (templates, workflows, config)",
"properties": {
"path_pattern": { "type": "string" },
"footer_required": { "type": "boolean" },
"badge_support": { "type": "boolean" }
}
},
"workflows": {
"type": "object",
"description": "GitHub Actions workflow files",
"properties": {
"path_pattern": { "type": "string" },
"footer_required": { "type": "boolean" },
"badge_support": { "type": "boolean" }
}
},
"skills": {
"type": "object",
"description": "Portable skill definitions (highest priority for remediation)",
"properties": {
"path_pattern": { "type": "string" },
"footer_required": { "type": "boolean" },
"badge_support": { "type": "boolean" }
}
},
"instructions": {
"type": "object",
"description": "Portable instruction files",
"properties": {
"path_pattern": { "type": "string" },
"footer_required": { "type": "boolean" },
"badge_support": { "type": "boolean" }
}
},
"plugins": {
"type": "object",
"description": "Plugin definitions and packages",
"properties": {
"path_pattern": { "type": "string" },
"footer_required": { "type": "boolean" },
"badge_support": { "type": "boolean" }
}
},
"documentation": {
"type": "object",
"description": "Documentation and guides",
"properties": {
"path_pattern": { "type": "string" },
"footer_required": { "type": "boolean" },
"badge_support": { "type": "boolean" }
}
},
"agent-specs": {
"type": "object",
"description": "Agent specification files",
"properties": {
"path_pattern": { "type": "string" },
"footer_required": { "type": "boolean" },
"badge_support": { "type": "boolean" }
}
}
}
},
"frontmatter_rules": {
"type": "object",
"description": "Frontmatter validation and transformation rules",
"properties": {
"required_fields": {
"$ref": "#/definitions/requiredFrontmatterFields"
},
"optional_fields": {
"$ref": "#/definitions/optionalFrontmatterFields"
},
"field_defaults": {
"type": "object",
"description": "Default values for fields per category"
},
"validation_rules": {
"type": "object",
"description": "Validation constraints per field and category"
}
}
},
"footer_templates": {
"type": "object",
"description": "Category-specific footer templates",
"additionalProperties": { "$ref": "#/definitions/categoryFooterTemplate" }
},
"badge_schemas": {
"type": "object",
"description": "Badge definitions by type and category",
"additionalProperties": { "$ref": "#/definitions/badgeSchema" }
}
},
"required": ["version"]
}