Progress event state bridge

From ychampion/cskill-agents · View interactive version

Progress event state bridge is an AI agent skill from the GitHub repository ychampion/cskill-agents. Bridge reconciliation progress events into shared UI state so the install surface reflects installing, installed, and failed transitions.

How to use this skill

Skill file

SKILL: Progress Event State Bridge

Domain: plugin-installation

Trigger: Use when background reconciliation emits per-source progress updates and shared UI state must reflect each source's lifecycle (installing, installed, failed).

Source Pattern: Distilled from reviewed install-progress callbacks and immutable UI-state bridge implementations.

Core Method

Let the reconciler emit progress events for each marketplace or extension source, then bridge those events into shared UI state through one immutable update path. Each event should update only the matching source entry, carrying both the new status and any error payload, while leaving unrelated entries untouched. This makes the install UI responsive without forcing broad rerenders or duplicating install logic in the view layer.

Key Rules

Example Application

When a background source sync starts, the UI row for that source flips from pending to installing. If the fetch succeeds, it moves to installed; if it fails, it moves to failed and stores the error text for display.

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.