Turn scoped skill discovery reset

From ychampion/cskill-agents · View interactive version

Turn scoped skill discovery reset is an AI agent skill from the GitHub repository ychampion/cskill-agents. Reset per-turn skill discovery tracking so long-lived sessions don\u2019t leak outdated discovery flags while still honoring already-known skills.

How to use this skill

Skill file

SKILL: Turn Scoped Skill Discovery Reset

Domain: command-surfaces

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.

Source Pattern: Distilled from reviewed command-surface and listing-control patterns.

Core Method

Tie 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.

Key Rules

Example Application

In 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.

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.