Dead path update skipping

From ychampion/cskill-agents · View interactive version

Dead path update skipping is an AI agent skill from the GitHub repository ychampion/cskill-agents. Skip update actions that point at missing local paths when a valid materialized entry already exists, preserving the working state instead of converting drift into a noisy failure.

How to use this skill

Skill file

SKILL: Dead Path Update Skipping

Domain: extensions-mcp

Trigger: Use when update candidates come from local paths that may disappear across checkouts, but existing materialized state should remain usable until a valid replacement exists.

Source Pattern: Distilled from reviewed extension lifecycle and source-reconciliation patterns.

Core Method

Before running an update from a local path, verify that the declared path still exists. If the action is an update and the current materialized entry is still valid, skip the update rather than turning a transient path mismatch into a failed reinstall. This preserves the working materialized state in multi-checkout or ephemeral-path scenarios while still surfacing missing paths for truly absent entries.

Key Rules

Example Application

If a developer switches away from a temporary worktree that contained a local marketplace path, keep the previously materialized marketplace entry instead of failing an update against the now-missing worktree path. The next valid local path or explicit reinstall can replace it later.

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.