Skip to content

feat: Add --fresh for clean skill output rebuilds#850

Open
gigerIT wants to merge 1 commit into
laravel:mainfrom
gigerIT:main
Open

feat: Add --fresh for clean skill output rebuilds#850
gigerIT wants to merge 1 commit into
laravel:mainfrom
gigerIT:main

Conversation

@gigerIT

@gigerIT gigerIT commented Jun 12, 2026

Copy link
Copy Markdown

Adds a --fresh flag to boost:update and boost:install that deletes each selected agent’s generated skills directory before running the normal skill sync.

Why

We have run into this a few times in real projects: generated skill folders can end up with dangling symlinks, stale files, or broken copied directories after switching between operating systems, resolving merge conflicts, or committing generated agent output by mistake.

The fix was always straightforward: delete the generated skills folder manually, then rerun boost:update or boost:install.

This flag makes that cleanup an explicit Boost workflow instead of a manual recovery step.

Behavior

When --fresh is passed, Boost removes the generated skills directory for each selected agent before syncing skills again.

Default behavior is unchanged unless --fresh is passed.

.ai/skills remains untouched.

Use case

This is useful when generated agent directories contain files that are no longer part of the current Boost sync result. Without deleting the generated directory first, those stale files can remain present and continue influencing the agent.

Example:

php artisan boost:update --fresh

or:

php artisan boost:install --fresh

Safety

The source .ai/skills directory is preserved.

Running boost:update or boost:install without --fresh behaves exactly as before.

Tests

Tests cover:

  • boost:update --fresh
  • boost:install --fresh
  • .ai/skills is preserved
  • only selected agents are cleaned
  • normal behavior is unchanged without --fresh

- Introduced a new `--fresh` option in `InstallCommand` and `UpdateCommand` to clean up output folders by deleteing each of agent's generated skills directories before installation or update.
- Updated `SkillWriter` to handle the fresh sync logic, ensuring untracked entries are removed and dangling symlinks are cleaned up.
- Added tests to verify the functionality of the fresh sync feature, ensuring it behaves correctly under various scenarios.
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.

1 participant