{"id":"87f6944e-6412-4b81-92a2-687bc3d8ffcf","shortId":"3KrF5L","kind":"skill","title":"turn-scoped-skill-discovery-reset","tagline":"Reset per-turn skill discovery tracking so long-lived sessions don\\u2019t leak outdated discovery flags while still honoring already-known skills.","description":"# SKILL: Turn Scoped Skill Discovery Reset\n**Domain:** command-surfaces  \n**Trigger:** Use when the conversation engine needs to clear the list of discovered skills at the start of each new turn so repeated invocations stay accurate.\n**Source Pattern:** Distilled from reviewed command-surface and listing-control patterns.\n\n## Core Method\nTie skill discovery tracking to the turn boundary: clear `discoveredSkillNames` right before each `submitMessage` turn, and feed the cleared set into `ask()` so the next turn can rediscover only what emerges afresh despite previously cached suggestions. Persist the cleared set long enough for telemetry but don’t let it grow across turns, ensuring each new user turn begins with an empty discovery set.\n\n## Key Rules\n- Maintain a Set of discovered skill names per turn inside QueryEngine, clearing it at the earliest point the new turn begins.\n- When a skill is rerun via a forked agent, note that separately but do not carry it over to the global set; the turn-level set should reset regardless of agent-internal events.\n- Emit telemetry about the cleared set proactively so analytics can compare discovery counts; do not reuse the old set except for logging.\n- Keep the discovery reset outside of compaction retries so the next turn still respects the trimmed context.\n\n## Example Application\nIn a long-running Claude Code session, apply this skill when you implement a subagent and need the parent conversation to treat each user message as if it's discovering skills anew, avoiding stale recommendations or double-counted discovery telemetry.\n\n## Anti-Patterns (What NOT to do)\n- Do not let `discoveredSkillNames` accumulate over turns; that dilutes new discovery signals and leads to misleading telemetry.\n- Do not clear the set mid-turn; it must stay stable until the next `submitMessage` call ends so the current turn can honor discovery gating.","tags":["turn","scoped","skill","discovery","reset","cskill","agents","ychampion","agent-skills","ai-agents","cli","coding-agents"],"capabilities":["skill","source-ychampion","skill-turn-scoped-skill-discovery-reset","topic-agent-skills","topic-ai-agents","topic-cli","topic-coding-agents","topic-context-engineering","topic-developer-tools","topic-mcp","topic-multi-agent","topic-terminal-ui"],"categories":["cskill-agents"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/ychampion/cskill-agents/turn-scoped-skill-discovery-reset","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add ychampion/cskill-agents","source_repo":"https://github.com/ychampion/cskill-agents","install_from":"skills.sh"}},"qualityScore":"0.467","qualityRationale":"deterministic score 0.47 from registry signals: · indexed on github topic:agent-skills · 34 github stars · SKILL.md body (1,893 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T00:56:58.196Z","embedding":null,"createdAt":"2026-04-18T22:21:34.634Z","updatedAt":"2026-04-22T00:56:58.196Z","lastSeenAt":"2026-04-22T00:56:58.196Z","tsv":"'accumul':298 'accur':67 'across':133 'afresh':114 'agent':177,201 'agent-intern':200 'alreadi':29 'already-known':28 'analyt':212 'anew':277 'anti':288 'anti-pattern':287 'appli':253 'applic':244 'ask':104 'avoid':278 'begin':140,168 'boundari':90 'cach':117 'call':327 'carri':184 'claud':250 'clear':50,91,101,121,159,208,313 'code':251 'command':40,74 'command-surfac':39,73 'compact':232 'compar':214 'context':242 'control':79 'convers':46,265 'core':81 'count':216,284 'current':331 'despit':115 'dilut':302 'discov':54,152,275 'discoveredskillnam':92,297 'discoveri':5,12,23,36,85,144,215,228,285,304,335 'distil':70 'domain':38 'doubl':283 'double-count':282 'earliest':163 'emerg':113 'emit':204 'empti':143 'end':328 'engin':47 'enough':124 'ensur':135 'event':203 'exampl':243 'except':223 'feed':99 'flag':24 'fork':176 'gate':336 'global':189 'grow':132 'honor':27,334 'implement':258 'insid':157 'intern':202 'invoc':65 'keep':226 'key':146 'known':30 'lead':307 'leak':21 'let':130,296 'level':194 'list':52,78 'listing-control':77 'live':17 'log':225 'long':16,123,248 'long-liv':15 'long-run':247 'maintain':148 'messag':270 'method':82 'mid':317 'mid-turn':316 'mislead':309 'must':320 'name':154 'need':48,262 'new':61,137,166,303 'next':107,236,325 'note':178 'old':221 'outdat':22 'outsid':230 'parent':264 'pattern':69,80,289 'per':9,155 'per-turn':8 'persist':119 'point':164 'previous':116 'proactiv':210 'queryengin':158 'recommend':280 'rediscov':110 'regardless':198 'repeat':64 'rerun':173 'reset':6,7,37,197,229 'respect':239 'retri':233 'reus':219 'review':72 'right':93 'rule':147 'run':249 'scope':3,34 'separ':180 'session':18,252 'set':102,122,145,150,190,195,209,222,315 'signal':305 'skill':4,11,31,32,35,55,84,153,171,255,276 'skill-turn-scoped-skill-discovery-reset' 'sourc':68 'source-ychampion' 'stabl':322 'stale':279 'start':58 'stay':66,321 'still':26,238 'subag':260 'submitmessag':96,326 'suggest':118 'surfac':41,75 'telemetri':126,205,286,310 'tie':83 'topic-agent-skills' 'topic-ai-agents' 'topic-cli' 'topic-coding-agents' 'topic-context-engineering' 'topic-developer-tools' 'topic-mcp' 'topic-multi-agent' 'topic-terminal-ui' 'track':13,86 'treat':267 'trigger':42 'trim':241 'turn':2,10,33,62,89,97,108,134,139,156,167,193,237,300,318,332 'turn-level':192 'turn-scoped-skill-discovery-reset':1 'u2019t':20 'use':43 'user':138,269 'via':174","prices":[{"id":"010d85ad-dd1e-4132-bcbd-6a8d800b6311","listingId":"87f6944e-6412-4b81-92a2-687bc3d8ffcf","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"ychampion","category":"cskill-agents","install_from":"skills.sh"},"createdAt":"2026-04-18T22:21:34.634Z"}],"sources":[{"listingId":"87f6944e-6412-4b81-92a2-687bc3d8ffcf","source":"github","sourceId":"ychampion/cskill-agents/turn-scoped-skill-discovery-reset","sourceUrl":"https://github.com/ychampion/cskill-agents/tree/main/skills/turn-scoped-skill-discovery-reset","isPrimary":false,"firstSeenAt":"2026-04-18T22:21:34.634Z","lastSeenAt":"2026-04-22T00:56:58.196Z"}],"details":{"listingId":"87f6944e-6412-4b81-92a2-687bc3d8ffcf","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"ychampion","slug":"turn-scoped-skill-discovery-reset","github":{"repo":"ychampion/cskill-agents","stars":34,"topics":["agent-skills","ai-agents","cli","coding-agents","context-engineering","developer-tools","mcp","multi-agent","terminal-ui"],"license":"mit","html_url":"https://github.com/ychampion/cskill-agents","pushed_at":"2026-04-04T14:13:23Z","description":"Agent skills for coding CLIs, multi-agent runtimes, context engines, MCP extensions, and terminal tooling. Instead of using claude code's source code, give your agent skills to create your own!","skill_md_sha":"c1b305908225f0589bb753712da04ccf4217c398","skill_md_path":"skills/turn-scoped-skill-discovery-reset/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/ychampion/cskill-agents/tree/main/skills/turn-scoped-skill-discovery-reset"},"layout":"multi","source":"github","category":"cskill-agents","frontmatter":{"name":"turn-scoped-skill-discovery-reset","description":"Reset per-turn skill discovery tracking so long-lived sessions don\\u2019t leak outdated discovery flags while still honoring already-known skills."},"skills_sh_url":"https://skills.sh/ychampion/cskill-agents/turn-scoped-skill-discovery-reset"},"updatedAt":"2026-04-22T00:56:58.196Z"}}