Skip to content

fix: prevent auto-reinstall of explicitly removed skills on refresh#68

Merged
lmajano merged 4 commits into
developmentfrom
copilot/fix-coldbox-ai-skills-remove
May 11, 2026
Merged

fix: prevent auto-reinstall of explicitly removed skills on refresh#68
lmajano merged 4 commits into
developmentfrom
copilot/fix-coldbox-ai-skills-remove

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 11, 2026

  • Add ensureExcludesSection() helper to SkillManager.cfc for backward compatibility
  • In removeSkillFromProject(): add removed skill name to manifest.excludes
  • In refresh(): filter out excluded skills from missingDesiredSkills so they are not reinstalled
  • In installRemoteSkill(): lift exclusion when skill is explicitly re-installed
  • Address code review: add semicolon to return false and rename ex to excludedName
  • Update changelog.md with entry for the fix

Add an `excludes` array to the manifest that tracks skill names the user
has explicitly removed via `coldbox ai skills remove`. During `refresh()`,
skills in the excludes list are filtered out of `missingDesiredSkills` so
they are never auto-reinstalled. When a skill is explicitly re-installed
via `coldbox ai skills install`, its name is removed from `excludes` so
normal auto-management resumes.

- SkillManager.refresh(): initialise excludes section; filter excluded
  skills from missingDesiredSkills (step 0)
- SkillManager.removeSkillFromProject(): append removed skill name to
  manifest.excludes before saving
- SkillManager.installRemoteSkill(): lift exclusion when skill is
  explicitly re-installed
- SkillManager.ensureExcludesSection(): new private helper for
  backwards-compatible initialisation of manifest.excludes

Agent-Logs-Url: https://github.com/ColdBox/coldbox-cli/sessions/92d13e96-d882-4c14-9d67-62579d852353

Co-authored-by: lmajano <137111+lmajano@users.noreply.github.com>
@lmajano lmajano marked this pull request as ready for review May 11, 2026 20:05
Copilot AI review requested due to automatic review settings May 11, 2026 20:05
Copilot AI changed the title [WIP] Fix coldbox ai skills remove to prevent skill reinstalls fix: prevent auto-reinstall of explicitly removed skills on refresh May 11, 2026
Copilot AI requested a review from lmajano May 11, 2026 20:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the AI skills manifest workflow so that explicitly removed skills are tracked in the manifest and are not automatically reinstalled during subsequent refresh() operations, while still allowing an explicit reinstall to override the exclusion.

Changes:

  • Add manifest.excludes (backward-compatible) to track skill names explicitly removed by the user.
  • Update removeSkillFromProject() to append removed skill names into manifest.excludes.
  • Update refresh() to skip reinstalling excluded skills, and update installRemoteSkill() to remove an exclusion when the user explicitly installs that skill again.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lmajano
Copy link
Copy Markdown
Member

lmajano commented May 11, 2026

@copilot update the changelog.md

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 11, 2026

@copilot update the changelog.md

Done — added a changelog entry under the [Unreleased] > Fixed section in commit 029efb4.

@lmajano lmajano merged commit e55a86b into development May 11, 2026
1 check passed
@lmajano lmajano deleted the copilot/fix-coldbox-ai-skills-remove branch May 11, 2026 20:12
Copilot AI restored the copilot/fix-coldbox-ai-skills-remove branch May 11, 2026 20:12
Copilot stopped work on behalf of lmajano due to an error May 11, 2026 20:12
@homestar9
Copy link
Copy Markdown
Contributor

The manifest.excludes idea is a great way to track intentional removals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

coldbox ai skills remove reinstalls removed skill during agent configuration regeneration

4 participants