Fallback source presence sufficiency

From ychampion/cskill-agents · View interactive version

Fallback source presence sufficiency is an AI agent skill from the GitHub repository ychampion/cskill-agents. When a declared source is only a fallback default, treat any existing materialized source as satisfying the contract instead of forcing a replacement.

How to use this skill

Skill file

SKILL: Fallback Source Presence Sufficiency

Domain: extensions-mcp

Trigger: Apply when a configuration entry represents a fallback source and existing materialized state from another source should be preserved if it already satisfies presence.

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

Core Method

Distinguish fallback intent from authoritative source declarations. If the declared source exists only to satisfy the missing case, then the presence of any already-materialized source is enough and should be treated as up to date. This prevents the reconciler from overwriting valid state merely because the default source differs from the source that actually materialized the resource.

Key Rules

Example Application

If a package manager uses an official registry as a fallback only when no mirror is installed, leave an already-seeded internal mirror alone. The fallback declaration should not force a re-download from the official registry just because the source URLs differ.

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.