Auto refresh after new plugin sources

From ychampion/cskill-agents · View interactive version

Auto refresh after new plugin sources is an AI agent skill from the GitHub repository ychampion/cskill-agents. Trigger a plugin refresh cycle whenever reconciliation installs new marketplaces so plugin state stays in sync.

How to use this skill

Skill file

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

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)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.