Background marketplace reconciliation

From ychampion/cskill-agents · View interactive version

Background marketplace reconciliation is an AI agent skill from the GitHub repository ychampion/cskill-agents. Run marketplace diff and reconciliation in the background while surfacing per-source progress to the UI without blocking startup.

How to use this skill

Skill file

SKILL: Background Marketplace Reconciliation

Domain: tool-orchestration

Trigger: Use when you need to reconcile declared plugin marketplaces or source registries without blocking startup or the main command loop.

Source Pattern: Distilled from reviewed plugin-source reconciliation and background install lifecycle implementations.

Core Method

Diff the declared marketplace or plugin-source configuration against the current cached state before doing any network work. Seed UI state with a pending entry for every source that needs installation or update, then run the actual reconciliation in the background. As progress events arrive, map them onto visible install states so the product can show spinners, success, and failure per source without freezing the main UI. When reconciliation finishes, clear stale caches and branch on the outcome so new installs, updates, and failures each trigger the right downstream behavior.

Key Rules

Example Application

For a new agent UI that adds curated plugin sources, apply this pattern whenever sources need to be cloned or updated in the background so the UI gets per-source spinners and the rest of the agent remains responsive.

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.