Namespace resolved skill preloading

From ychampion/cskill-agents · View interactive version

Namespace resolved skill preloading is an AI agent skill from the GitHub repository ychampion/cskill-agents. Resolve skill names through layered namespace lookup, then preload the valid skills as visible startup messages.

How to use this skill

Skill file

SKILL: Namespace-Resolved Skill Preloading

Domain: agentic-loop

Trigger: Apply when an agent definition lists startup skills by friendly name but the registry may store those skills under plugin-qualified names.

Source Pattern: Distilled from reviewed startup-skill preload and namespaced-command resolution implementations.

Core Method

Resolve each configured skill through a layered lookup: direct match, plugin-prefixed match, then suffix match across namespaced registrations. Reject missing or non-prompt commands with warnings instead of silently swallowing them, then load the remaining skills concurrently and inject their contents as explicit startup messages with metadata that shows what was preloaded. This makes startup capability bootstrapping both flexible and auditable.

Key Rules

Example Application

If a plugin agent declares skills: [review, deployment-checks] but the registry stores them as plugin-x:review and plugin-x:deployment-checks, resolve them through the namespace fallback chain, preload both, and surface their startup messages so the UI shows what context was injected.

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.