Resume skill listing suppression

From ychampion/cskill-agents · View interactive version

Resume skill listing suppression is an AI agent skill from the GitHub repository ychampion/cskill-agents. Mark the current skill listing as already sent when resuming so the transcript does not receive a redundant payload.

How to use this skill

Skill file

SKILL: Resume Skill Listing Suppression

Domain: command-surfaces

Trigger: Apply when a resume flow already contains a previous skill_listing attachment and injecting another would waste ~600 tokens.

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

Core Method

Treat a resume run as continuing an existing transcript: before recomputing skill_listing, mark every command that already exists in the transcript as sent by setting suppressNext = true and filling sentSkillNames for that agentId. Return early without emitting any listing so the resume session does not repeat the large skill payload, even though the future process loses the ability to announce cross-process deltas until the next full session.

Key Rules

Example Application

When a session is resumed, call suppressNextSkillListing() right before getSkillListingAttachments so it returns [] and the transcript keeps the listing it already has instead of receiving another copy.

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.