Skillquality 0.47

turn-zero-vs-inter-turn-skill-discovery-split

Block skill discovery only on the initial user message; run later discovery asynchronously while tools execute using the write-pivot guard.

Price
free
Protocol
skill
Verified
no

What it does

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

  • Feature-flag the async discovery so builds without skill search can drop the expensive string literal without extra curation.
  • Gate the async prefetch so it runs only on iterations that may actually emit new discovery output, avoiding repeat work on read-only passes.
  • Keep turn-zero discovery tied to real user input, not generated content or system churn.
  • Do not await the async prefetch on the streaming path; only collect it after tools complete, and continue streaming in the meantime.

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)

  • Do not run the async prefetch while splitting the discovery path without a write-pivot guard; it will fire on every iteration and waste requests.
  • Do not let turn-0 work depend on the async path’s completion; there is no prior work to hide under, so block there explicitly.

Capabilities

skillsource-ychampionskill-turn-zero-vs-inter-turn-skill-discovery-splittopic-agent-skillstopic-ai-agentstopic-clitopic-coding-agentstopic-context-engineeringtopic-developer-toolstopic-mcptopic-multi-agenttopic-terminal-ui

Install

Quality

0.47/ 1.00

deterministic score 0.47 from registry signals: · indexed on github topic:agent-skills · 34 github stars · SKILL.md body (1,865 chars)

Provenance

Indexed fromgithub
Enriched2026-04-22 00:56:58Z · deterministic:skill-github:v1 · v1
First seen2026-04-18
Last seen2026-04-22

Agent access