{"id":"e2db2bd4-1347-4078-9ad0-8b9a0b02c55d","shortId":"E3GxLG","kind":"skill","title":"session-memory-mailbox-exclusion","tagline":"Prevent session-memory background forks from draining teammate mailbox attachments that belong to the main lead thread.","description":"# SKILL: Session Memory Mailbox Exclusion\n**Domain:** multi-agent  \n**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.\n**Source Pattern:** Distilled from reviewed multi-agent coordination and child-runtime patterns.\n\n## Core Method\nTreat 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.\n\n## Key Rules\n- Identify fork classes that share mailbox state with the leader and exclude them from the mailbox drain path.\n- Keep the exclusion focused on the mailbox attachment only; other safe shared attachments should continue to run.\n- Prefer a source or role check that is stable at attachment time so the guard cannot drift with transient runtime conditions.\n- Document why the exclusion exists: the failure mode is message theft, not just redundant work.\n\n## Example Application\nIf 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.\n\n## Anti-Patterns (What NOT to do)\n- Do not let every fork drain the shared mailbox; one background consumer can mark the leader's unread messages as handled.\n- Do not disable all shared attachments for background forks just to solve mailbox theft; keep the guard scoped to the unsafe mailbox path.","tags":["session","memory","mailbox","exclusion","cskill","agents","ychampion","agent-skills","ai-agents","cli","coding-agents","context-engineering"],"capabilities":["skill","source-ychampion","skill-session-memory-mailbox-exclusion","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/session-memory-mailbox-exclusion","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,873 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:56.203Z","embedding":null,"createdAt":"2026-04-18T22:21:16.398Z","updatedAt":"2026-04-22T00:56:56.203Z","lastSeenAt":"2026-04-22T00:56:56.203Z","tsv":"'agent':32,40,65,100,241 'anti':269 'anti-pattern':268 'appli':34 'applic':221 'attach':16,78,104,145,174,179,194,246,267,301 'avoid':261 'background':10,37,90,231,259,285,303 'base':133 'belong':18 'cannot':111,199 'check':189 'child':69 'child-runtim':68 'class':151 'condit':204 'consum':51,141,262,286 'context':43,96,237 'continu':181 'convers':124,255 'coordin':66 'core':72 'disabl':298 'distil':60 'dms':252 'document':205 'domain':29 'drain':13,77,165,280 'drift':200 'durabl':254 'ephemer':265 'everi':278 'exampl':220 'exclud':101,160 'exclus':5,28,128,169,208 'exist':209 'extractor':227 'failur':211 'focus':170 'fork':11,39,91,108,150,232,279,304 'guard':198,312 'handl':295 'identifi':149 'intend':54 'keep':126,167,310 'key':147 'lead':22,99,240 'leader':46,57,113,158,248,290 'legitim':139 'let':277 'mailbox':4,15,27,52,76,103,144,154,164,173,245,283,308,317 'mailbox-drain':75 'main':21,136 'mark':112,288 'memori':3,9,26,226 'messag':53,114,214,293 'method':73 'mode':212 'multi':31,64 'multi-ag':30,63 'must':49 'narrow':129 'normal':146 'one':284 'ownership':81 'ownership-sensit':80 'path':105,166,318 'pattern':59,71,270 'perman':123 'prefer':184 'prevent':6 'read':116 'receiv':143,250 'redund':218 'review':62 'role':188 'rule':148 'run':183,228 'runtim':70,203 'safe':87,177 'scope':313 'sensit':82 'session':2,8,25,225 'session-memori':7,224 'session-memory-mailbox-exclus':1 'share':41,92,153,178,282,300 'side':266 'silent':118 'skill':24 'skill-session-memory-mailbox-exclusion' 'skip':242 'solv':307 'sourc':58,132,186 'source-bas':131 'source-ychampion' 'stabl':192 'state':155 'steal':119 'still':142,249 'stream':125 'team':42,95,236 'teammat':14,140,244,251 'theft':215,309 'thread':23,47,86,137 'thread-saf':85 'time':195 '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' 'transient':202 'treat':74 'trigger':33 'turn':256 'univers':84 'unread':292 'unsaf':316 'work':219 'worker':260","prices":[{"id":"35b0dbc9-37ea-4ccc-8f00-1be126c3f976","listingId":"e2db2bd4-1347-4078-9ad0-8b9a0b02c55d","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:16.398Z"}],"sources":[{"listingId":"e2db2bd4-1347-4078-9ad0-8b9a0b02c55d","source":"github","sourceId":"ychampion/cskill-agents/session-memory-mailbox-exclusion","sourceUrl":"https://github.com/ychampion/cskill-agents/tree/main/skills/session-memory-mailbox-exclusion","isPrimary":false,"firstSeenAt":"2026-04-18T22:21:16.398Z","lastSeenAt":"2026-04-22T00:56:56.203Z"}],"details":{"listingId":"e2db2bd4-1347-4078-9ad0-8b9a0b02c55d","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"ychampion","slug":"session-memory-mailbox-exclusion","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":"61d52789e76745db47a10057b23f269157477866","skill_md_path":"skills/session-memory-mailbox-exclusion/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/ychampion/cskill-agents/tree/main/skills/session-memory-mailbox-exclusion"},"layout":"multi","source":"github","category":"cskill-agents","frontmatter":{"name":"session-memory-mailbox-exclusion","description":"Prevent session-memory background forks from draining teammate mailbox attachments that belong to the main lead thread."},"skills_sh_url":"https://skills.sh/ychampion/cskill-agents/session-memory-mailbox-exclusion"},"updatedAt":"2026-04-22T00:56:56.203Z"}}