Session memory mailbox exclusion

From ychampion/cskill-agents · View interactive version

Session memory mailbox exclusion is an AI agent skill from the GitHub repository ychampion/cskill-agents. Prevent session-memory background forks from draining teammate mailbox attachments that belong to the main lead thread.

How to use this skill

Skill file

SKILL: Session Memory Mailbox Exclusion

Domain: multi-agent

Trigger: Apply when a background or forked agent shares team context with a leader thread and must not consume mailbox messages intended for the leader.

Source Pattern: Distilled from reviewed multi-agent coordination and child-runtime patterns.

Core Method

Treat mailbox-draining attachments as ownership-sensitive, not universally thread-safe. When a background fork shares the same team context as the lead agent, exclude the mailbox attachment path for that fork so it cannot mark leader messages as read and silently steal them from the permanent conversation stream. Keep the exclusion narrow and source-based so the main thread and legitimate teammate consumers still receive mailbox attachments normally.

Key Rules

Example Application

If a session-memory extractor runs as a background fork against the same team context as the lead agent, skip its teammate mailbox attachment. The leader still receives teammate DMs as durable conversation turns, while the background worker avoids consuming them as ephemeral side attachments.

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.