External error preserving refresh merge

From ychampion/cskill-agents · View interactive version

External error preserving refresh merge is an AI agent skill from the GitHub repository ychampion/cskill-agents. Merge fresh refresh diagnostics with externally owned errors so one subsystem reload does not erase valid adjacent failures.

How to use this skill

Skill file

SKILL: External Error Preserving Refresh Merge

Domain: plugin-installation

Trigger: Use when a refresh path recomputes its own errors but neighboring subsystems maintain related diagnostics that should survive the reload.

Source Pattern: Distilled from reviewed refresh-diagnostic ownership and merge implementations.

Core Method

Treat refresh-time errors as one slice of the diagnostic picture rather than the whole state. Preserve errors owned by adjacent subsystems, merge in the freshly computed errors from the current reload, and deduplicate by a stable key so the result stays current without erasing still-relevant external failures. This lets a subsystem update what it owns while respecting error streams maintained elsewhere.

Key Rules

Example Application

If a plugin refresh recomputes loader failures while a language-server manager separately owns connection diagnostics, preserve the language-server errors and merge in the fresh loader errors so the UI retains the full current problem set.

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.