Turn zero vs inter turn skill discovery split

From ychampion/cskill-agents · View interactive version

Turn zero vs inter turn skill discovery split is an AI agent skill from the GitHub repository ychampion/cskill-agents. Block skill discovery only on the initial user message; run later discovery asynchronously while tools execute using the write-pivot guard.

How to use this skill

Skill file

SKILL: Turn-Zero vs Inter-Turn Skill Discovery Split

Domain: skill-discovery

Trigger: Use when discovery needs to keep responding to fresh user intent without stalling the streaming loop on every iteration.

Source Pattern: Distilled from reviewed skill-discovery, attachment, and streaming-loop implementations.

Core Method

Treat the first real user message as the one place where discovery is allowed to block, because there is no other work yet to hide the latency. After that, move discovery into an asynchronous prefetch that runs while the model streams and tools execute, then consume the results only after the main work finishes. This keeps later discovery off the hot path while still ensuring the first turn gets a complete initial skill surface.

Key Rules

Example Application

When implementing a coding assistant, let the first user turn pay the discovery cost up front so the agent starts with accurate suggestions. On later turns, run discovery in the background and surface it only after the main tool loop finishes.

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.