|
1 | 1 | --- |
2 | 2 | description: Set up, update, or add AI coding configurations |
3 | 3 | argument-hint: [update | add] |
| 4 | +version: 1.0.0 |
4 | 5 | --- |
5 | 6 |
|
6 | 7 | # AI Coding Configuration |
@@ -305,32 +306,42 @@ If direct symlinks to deleted paths found, offer to update: |
305 | 306 | </symlink-compatibility-check> |
306 | 307 |
|
307 | 308 | <file-updates> |
308 | | -For Cursor/Windsurf, update by category: |
| 309 | +For Cursor/Windsurf, update COPIED files (rules, personalities) using version comparison. Symlinked files (commands, agents, skills) are already current from git pull. |
309 | 310 |
|
310 | | -1. **Rules** (`rules/`) |
311 | | - - Compare each rule file in `~/.ai_coding_config/rules/` vs project |
312 | | - - Show diffs for significant changes |
313 | | - - Preserve project-specific rules |
| 311 | +Each file has a `version: X.Y.Z` field in frontmatter. Missing version = v0.0.0. Offer updates only when source version is newer than installed version. |
314 | 312 |
|
315 | | -2. **Commands/Agents/Skills** |
316 | | - - If symlinked to `~/.ai_coding_config/plugins/`, already updated via git pull |
317 | | - - If copied, compare and offer updates |
| 313 | +When updates are available, use AskUserQuestion: |
318 | 314 |
|
319 | | -3. **Personalities** (`rules/personalities/`) |
320 | | - - Check if personality has updates |
321 | | - - Preserve `alwaysApply` setting |
| 315 | +"Updates available: |
| 316 | +- git-interaction.mdc: 1.0.0 → 1.1.0 |
| 317 | +- prompt-engineering.mdc: 1.0.0 → 1.2.0 |
| 318 | +- new-rule.mdc (new, v1.0.0) |
322 | 319 |
|
323 | | -Present update strategy: "Update all", "Update selectively", or custom. |
324 | | -Never silently overwrite project customizations. |
| 320 | +12 files already current." |
| 321 | + |
| 322 | +Options: |
| 323 | +- Update all |
| 324 | +- Select individually |
| 325 | +- Show diffs first |
| 326 | +- Skip updates |
| 327 | + |
| 328 | +When everything is current: "All files are up to date. No updates needed." |
| 329 | + |
| 330 | +For personalities, preserve the user's `alwaysApply` setting when updating content. |
325 | 331 | </file-updates> |
326 | 332 |
|
327 | 333 | </cursor-windsurf-update> |
328 | 334 |
|
329 | 335 | <update-summary> |
330 | | -Report what was updated: |
331 | | -- "Updated X plugins to version Y" |
332 | | -- "Updated Z rule files" |
333 | | -- "No updates available" (if already current) |
| 336 | +For Claude Code: |
| 337 | +"Updated core, agents, skills plugins to version 1.2.0" |
| 338 | + |
| 339 | +For Cursor/Windsurf: |
| 340 | +"Update complete: |
| 341 | +- git-interaction.mdc: 1.0.0 → 1.1.0 |
| 342 | +- prompt-engineering.mdc: 1.0.0 → 1.2.0 |
| 343 | +- Installed new-rule.mdc (v1.0.0) |
| 344 | +- 12 files already current" |
334 | 345 | </update-summary> |
335 | 346 |
|
336 | 347 | </update-mode> |
@@ -360,38 +371,41 @@ Clarifying questions: |
360 | 371 | </mechanism-selection> |
361 | 372 |
|
362 | 373 | <artifact-creation> |
363 | | -All new artifacts go in the appropriate plugin directory: |
| 374 | +All new artifacts go in the appropriate plugin directory with `version: 1.0.0`: |
364 | 375 |
|
365 | | -**Commands**: Create in `plugins/core/commands/command-name.md` |
| 376 | +**Commands**: `plugins/core/commands/command-name.md` |
366 | 377 | ```yaml |
367 | 378 | --- |
368 | 379 | description: Brief explanation |
369 | 380 | argument-hint: [optional args] |
| 381 | +version: 1.0.0 |
370 | 382 | --- |
371 | 383 | ``` |
372 | 384 |
|
373 | | -**Skills**: Create `plugins/skills/skills/skill-name/SKILL.md` |
| 385 | +**Skills**: `plugins/skills/skills/skill-name/SKILL.md` |
374 | 386 | ```yaml |
375 | 387 | --- |
376 | 388 | name: skill-name |
377 | 389 | description: "Use when [trigger]. Does [what] to achieve [outcome]." |
| 390 | +version: 1.0.0 |
378 | 391 | --- |
379 | 392 | ``` |
380 | 393 |
|
381 | | -**Agents**: Create in `plugins/agents/agents/agent-name.md` |
| 394 | +**Agents**: `plugins/agents/agents/agent-name.md` |
382 | 395 | ```yaml |
383 | 396 | --- |
384 | 397 | name: agent-name |
385 | 398 | description: "Invoke when [trigger]" |
386 | 399 | tools: Read, Write, Edit, Grep, Glob, Bash |
387 | 400 | model: sonnet |
| 401 | +version: 1.0.0 |
388 | 402 | --- |
389 | 403 | ``` |
390 | 404 |
|
391 | | -**Personalities**: Create `plugins/personalities/personality-name/` |
392 | | -- `personality.mdc` - The personality definition |
393 | | -- `.claude-plugin/plugin.json` - Plugin manifest |
394 | | -- Update marketplace.json to include new personality |
| 405 | +**Personalities**: `plugins/personalities/personality-name/` |
| 406 | +- `personality.mdc` with `version: 1.0.0` in frontmatter |
| 407 | +- `.claude-plugin/plugin.json` |
| 408 | +- Update marketplace.json |
395 | 409 | </artifact-creation> |
396 | 410 |
|
397 | 411 | <creation-verification> |
|
0 commit comments