agentsclimarketplace

Auto refresh after new plugin sources

Skill ychampion/cskill-agents/agents/claude-code/skills/auto-refresh-after-new-plugin-sources

Agent skills for coding CLIs, multi-agent runtimes, context engines, MCP extensions, and terminal tooling. Instead of using claude code's source code, give your agent skills to create your own!

Install
npx -y skills add ychampion/cskill-agents --skill auto-refresh-after-new-plugin-sources

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Trigger a plugin refresh cycle whenever reconciliation installs new marketplaces so plugin state stays in sync.

SKILL.md

2.2 KB, as published. Nobody here has run it

SKILL: Auto Refresh After New Plugin Sources

Domain: tool-orchestration Trigger: Apply when background reconciliation installs at least one new marketplace and the agent must refresh plugin cache without explicit user action. Source Pattern: Distilled from reviewed post-install refresh and extension-cache invalidation implementations.

Core Method

After reconciliation reports at least one newly installed plugin source, clear both the source cache and the active plugin cache, then trigger a refresh of the live extension registry. Treat that refresh as best-effort but important: if it succeeds, the new tools become available immediately; if it fails, log the error and raise a manual-refresh flag so the user sees that recovery is required. Do this before treating downstream extension operations as ready, otherwise the product will keep resolving against stale code.

Key Rules

  • Only trigger the refresh when new installs occurred; avoid redundant refresh cycles after mere updates.
  • Clear both marketplace and plugin caches before refreshing to ensure stale data cannot leak into the newly loaded plugins.
  • Catch refresh failures, log the error, and set a visible manual-refresh flag rather than silently failing.
  • Keep analytics/logging tied to the install path so you know when an automatic refresh runs and whether it failed or succeeded.

Example Application

If a new marketplace is added via a curated list, automatic refresh ensures CLI commands that rely on that marketplace can resolve tools without forcing users to manually run a separate reload step.

Anti-Patterns (What NOT to do)

  • Do not refresh plugin state when there are zero new installs; the extra cache clears slow startup without benefit.
  • Do not swallow refresh errors; otherwise users never learn the auto recovery failed and manual action stays hidden.
  • Do not reuse stale caches while refreshing; skip clearing caches then refresh and the agent continues pointing at old code.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.