{"id":"f383398c-6ef3-4dbb-8a31-6dc54970ada6","shortId":"kkz7ML","kind":"skill","title":"reinjected-attachment-pruning-before-summary","tagline":"Drop attachment classes that will be regenerated after compaction so the summarizer spends tokens on lasting context instead of disposable payloads.","description":"# SKILL: Reinjected Attachment Pruning Before Summary\n**Domain:** context-management\n**Trigger:** Use when some attachment types are guaranteed to be regenerated after compaction and should not consume summary budget.\n**Source Pattern:** Distilled from reviewed reinjected-attachment pruning strategies.\n\n## Core Method\nRemove only the attachment classes that the system already knows it will regenerate after compaction. This keeps the summary focused on durable conversational state and avoids paying twice for transient discovery or guidance payloads. Prune before normalization and summary generation so the saved budget reduces the compaction request itself.\n\n## Key Rules\n- Prune only attachment classes with a known reinjection path.\n- Apply pruning before summary generation, not after.\n- Keep the pruning contract explicit so future attachment types are not stripped accidentally.\n\n## Example Application\nIf skill discovery attachments are recreated on the next turn after compaction, strip them before summary generation so the compactor focuses on the real debugging conversation.\n\n## Anti-Patterns (What NOT to do)\n- Do not strip attachments that lack a reinjection path.\n- Do not summarize large disposable attachments that will be reattached immediately afterward.\n- Do not use pruning as a blanket excuse to hide important durable state.","tags":["reinjected","attachment","pruning","before","summary","cskill","agents","ychampion","agent-skills","ai-agents","cli","coding-agents"],"capabilities":["skill","source-ychampion","skill-reinjected-attachment-pruning-before-summary","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/reinjected-attachment-pruning-before-summary","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,352 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:55.133Z","embedding":null,"createdAt":"2026-04-18T22:21:07.149Z","updatedAt":"2026-04-22T00:56:55.133Z","lastSeenAt":"2026-04-22T00:56:55.133Z","tsv":"'accident':148 'afterward':204 'alreadi':77 'anti':178 'anti-pattern':177 'appli':129 'applic':150 'attach':3,8,30,42,64,72,122,143,154,187,198 'avoid':94 'blanket':211 'budget':56,112 'class':9,73,123 'compact':15,50,83,115,162 'compactor':170 'consum':54 'context':23,36 'context-manag':35 'contract':139 'convers':91,176 'core':67 'debug':175 'discoveri':99,153 'dispos':26,197 'distil':59 'domain':34 'drop':7 'durabl':90,216 'exampl':149 'excus':212 'explicit':140 'focus':88,171 'futur':142 'generat':108,133,167 'guarante':45 'guidanc':101 'hide':214 'immedi':203 'import':215 'instead':24 'keep':85,136 'key':118 'know':78 'known':126 'lack':189 'larg':196 'last':22 'manag':37 'method':68 'next':159 'normal':105 'path':128,192 'pattern':58,179 'pay':95 'payload':27,102 'prune':4,31,65,103,120,130,138,208 'real':174 'reattach':202 'recreat':156 'reduc':113 'regener':13,48,81 'reinject':2,29,63,127,191 'reinjected-attach':62 'reinjected-attachment-pruning-before-summari':1 'remov':69 'request':116 'review':61 'rule':119 'save':111 'skill':28,152 'skill-reinjected-attachment-pruning-before-summary' 'sourc':57 'source-ychampion' 'spend':19 'state':92,217 'strategi':66 'strip':147,163,186 'summar':18,195 'summari':6,33,55,87,107,132,166 'system':76 'token':20 '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':98 'trigger':38 'turn':160 'twice':96 'type':43,144 'use':39,207","prices":[{"id":"c64668de-b139-4e2b-b296-e4d1a79b882a","listingId":"f383398c-6ef3-4dbb-8a31-6dc54970ada6","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:07.149Z"}],"sources":[{"listingId":"f383398c-6ef3-4dbb-8a31-6dc54970ada6","source":"github","sourceId":"ychampion/cskill-agents/reinjected-attachment-pruning-before-summary","sourceUrl":"https://github.com/ychampion/cskill-agents/tree/main/skills/reinjected-attachment-pruning-before-summary","isPrimary":false,"firstSeenAt":"2026-04-18T22:21:07.149Z","lastSeenAt":"2026-04-22T00:56:55.133Z"}],"details":{"listingId":"f383398c-6ef3-4dbb-8a31-6dc54970ada6","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"ychampion","slug":"reinjected-attachment-pruning-before-summary","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":"34fd6a7434e6d4febf38c7f3dac22699081829ed","skill_md_path":"skills/reinjected-attachment-pruning-before-summary/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/ychampion/cskill-agents/tree/main/skills/reinjected-attachment-pruning-before-summary"},"layout":"multi","source":"github","category":"cskill-agents","frontmatter":{"name":"reinjected-attachment-pruning-before-summary","description":"Drop attachment classes that will be regenerated after compaction so the summarizer spends tokens on lasting context instead of disposable payloads."},"skills_sh_url":"https://skills.sh/ychampion/cskill-agents/reinjected-attachment-pruning-before-summary"},"updatedAt":"2026-04-22T00:56:55.133Z"}}