Initial vs dynamic skill listing batching

From ychampion/cskill-agents · View interactive version

Initial vs dynamic skill listing batching is an AI agent skill from the GitHub repository ychampion/cskill-agents. Mark first-time skill listings differently from later deltas so attachment consumers can distinguish bootstrap exposure from incremental updates.

How to use this skill

Skill file

SKILL: Initial-vs-Dynamic Skill Listing Batching

Domain: skill-listing

Trigger: Apply when a listing or announcement stream needs to tell consumers whether they are seeing the first full exposure or an incremental update.

Source Pattern: Distilled from reviewed skill-listing and attachment-stream implementations.

Core Method

Use prior-sent state to classify each listing batch before you mutate that state. If nothing has been sent yet, tag the outgoing payload as the initial batch; otherwise tag it as a dynamic delta. This lets downstream consumers render bootstrap and update flows differently without re-deriving history from raw command lists. The classification should happen immediately before the send-state is updated so it reflects what the consumer is about to receive, not what was already persisted afterward.

Key Rules

Example Application

If a terminal agent announces available slash commands, mark the first emitted attachment as isInitial: true so the UI can show an onboarding-style listing. When a plugin reload later adds two commands, emit only those new commands with isInitial: false so the UI treats them as a compact delta update.

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.