Commit d21c355
fix(presets): create skill overrides when skills_source is marketplace
When a project had `"skills_source": "marketplace"` in integration.json
alongside `"ai_skills": false` in init-options.json, `_register_skills()`
silently skipped writing the local SKILL.md override. Two guards both
needed relaxing:
1. `_get_skills_dir()` returned None early for non-kimi agents when
ai_skills was false, so _register_skills never reached the
create_missing_skills check at all.
2. `create_missing_skills` was gated on `ai_skills_enabled`, so even
if the skills dir existed the new skill file would not be created.
For marketplace-sourced projects a local SKILL.md is required to shadow
the marketplace plugin version. Both checks now treat ai_skills as
effectively enabled when skills_source == "marketplace".
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c275919 commit d21c355
2 files changed
Lines changed: 45 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | | - | |
| 1112 | + | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
| |||
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
1122 | | - | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
1123 | 1125 | | |
1124 | 1126 | | |
1125 | 1127 | | |
| |||
1244 | 1246 | | |
1245 | 1247 | | |
1246 | 1248 | | |
1247 | | - | |
| 1249 | + | |
1248 | 1250 | | |
1249 | 1251 | | |
1250 | 1252 | | |
| |||
1255 | 1257 | | |
1256 | 1258 | | |
1257 | 1259 | | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
1258 | 1266 | | |
1259 | 1267 | | |
1260 | 1268 | | |
1261 | 1269 | | |
1262 | 1270 | | |
1263 | 1271 | | |
1264 | 1272 | | |
1265 | | - | |
| 1273 | + | |
1266 | 1274 | | |
1267 | 1275 | | |
1268 | 1276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2289 | 2289 | | |
2290 | 2290 | | |
2291 | 2291 | | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
2292 | 2325 | | |
2293 | 2326 | | |
2294 | 2327 | | |
| |||
0 commit comments