User invocable capability serialization

From ychampion/cskill-agents · View interactive version

User invocable capability serialization is an AI agent skill from the GitHub repository ychampion/cskill-agents. Serialize announced command and skill surfaces from a shared capability shape, excluding entries explicitly marked non-user-invocable.

How to use this skill

Skill file

SKILL: User-Invocable Capability Serialization

Domain: command-architecture

Trigger: Use when a session-init payload or capability announcement is projecting commands, skills, or similar affordances into a user-visible surface and some registry entries are internal-only.

Source Pattern: Distilled from reviewed remote-control, bridge transport, and capability-advertising implementations.

Core Method

Normalize each advertised capability into a minimal shared shape that carries its public name plus an explicit user invocable flag. At the serialization boundary, drop every entry whose flag is false, then project the survivors into the wire format. Treat omitted flags as public by default so normal commands and skills stay easy to register, while hidden or internal capabilities can opt out without special-case serializers. Applying the same rule to both slash commands and skills keeps the announced surface aligned with what a user can actually invoke and prevents helper-only entries from leaking into discovery UIs.

Key Rules

Example Application

A tool registry contains normal slash commands, an internal repair command, bundled skills, and a hidden diagnostic skill used only by automation. Convert both command and skill lists into name user invocable?, run the shared filter, and serialize only the entries not marked false. The resulting init payload shows the public commands and skills, while the internal repair and diagnostic entries never appear in the announced capability surface.

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.