{"id":"c0a2c45b-e820-43c2-a943-72460aea1103","shortId":"eJxE5X","kind":"skill","title":"fork-gap-fill-reconstruction","tagline":"Reconstruct child replacement state from local records first, then fill uncovered gaps from the parent's live map.","description":"# SKILL: Fork Gap-Fill Reconstruction\n**Domain:** multi-agent  \n**Trigger:** Apply when a forked or resumed child workflow must inherit prior replacement decisions even though its local transcript lacks full replacement records.\n**Source Pattern:** Distilled from reviewed multi-agent coordination and child-runtime patterns.\n\n## Core Method\nRebuild child state from the records the child actually persisted, then fill any uncovered IDs from the parent's live replacement map. This handles the fork-resume case where inherited replacements were applied during the original run but never written as new child records. The result is a child state that replays the same cached previews the model originally saw instead of freezing those IDs as unreplaced gaps.\n\n## Key Rules\n- Reconstruct from local records first so the child transcript remains the primary source of truth for what it explicitly persisted.\n- Use parent replacements only as a gap-fill for IDs still present in the resumed messages and not already covered by child records.\n- Preserve the `seenIds` freeze semantics while layering in inherited replacements so resumed children do not recalculate different decisions.\n- Skip inherited mappings for IDs absent from the resumed message set; they are inert and should not pollute the child state.\n\n## Example Application\nWhen a forked review agent resumes from sidechain transcript records, rebuild its replacement state from those records and then copy any missing preview strings from the parent’s live replacement map so the resumed child continues using the exact previews it saw before the interruption.\n\n## Anti-Patterns (What NOT to do)\n- Do not rely on child records alone for fork-resume cases; inherited replacements may never have been persisted by the child.\n- Do not blindly copy the entire parent replacement map into the child; only IDs present in the resumed messages should be imported.","tags":["fork","gap","fill","reconstruction","cskill","agents","ychampion","agent-skills","ai-agents","cli","coding-agents","context-engineering"],"capabilities":["skill","source-ychampion","skill-fork-gap-fill-reconstruction","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/fork-gap-fill-reconstruction","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,913 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-22T06:56:49.149Z","embedding":null,"createdAt":"2026-04-18T22:20:26.402Z","updatedAt":"2026-04-22T06:56:49.149Z","lastSeenAt":"2026-04-22T06:56:49.149Z","tsv":"'absent':211 'actual':81 'agent':33,64,233 'alon':287 'alreadi':183 'anti':275 'anti-pattern':274 'appli':35,106 'applic':228 'blind':305 'cach':128 'case':101,292 'child':7,41,68,74,80,116,122,151,186,225,263,285,302,314 'child-runtim':67 'children':200 'continu':264 'coordin':65 'copi':248,306 'core':71 'cover':184 'decis':47,205 'differ':204 'distil':59 'domain':30 'entir':308 'even':48 'exact':267 'exampl':227 'explicit':162 'fill':4,15,28,84,172 'first':13,148 'fork':2,25,38,99,231,290 'fork-gap-fill-reconstruct':1 'fork-resum':98,289 'freez':136,191 'full':54 'gap':3,17,27,141,171 'gap-fil':26,170 'handl':96 'id':87,138,174,210,316 'import':324 'inert':219 'inherit':44,103,196,207,293 'instead':134 'interrupt':273 'key':142 'lack':53 'layer':194 'live':22,92,257 'local':11,51,146 'map':23,94,208,259,311 'may':295 'messag':180,215,321 'method':72 'miss':250 'model':131 'multi':32,63 'multi-ag':31,62 'must':43 'never':112,296 'new':115 'origin':109,132 'parent':20,90,165,255,309 'pattern':58,70,276 'persist':82,163,299 'pollut':223 'present':176,317 'preserv':188 'preview':129,251,268 'primari':155 'prior':45 'rebuild':73,239 'recalcul':203 'reconstruct':5,6,29,144 'record':12,56,78,117,147,187,238,245,286 'reli':283 'remain':153 'replac':8,46,55,93,104,166,197,241,258,294,310 'replay':125 'result':119 'resum':40,100,179,199,214,234,262,291,320 'review':61,232 'rule':143 'run':110 'runtim':69 'saw':133,270 'seenid':190 'semant':192 'set':216 'sidechain':236 'skill':24 'skill-fork-gap-fill-reconstruction' 'skip':206 'sourc':57,156 'source-ychampion' 'state':9,75,123,226,242 'still':175 'string':252 'though':49 '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' 'transcript':52,152,237 'trigger':34 'truth':158 'uncov':16,86 'unreplac':140 'use':164,265 'workflow':42 'written':113","prices":[{"id":"4af0f003-3044-4f8f-a6f0-1f4636107028","listingId":"c0a2c45b-e820-43c2-a943-72460aea1103","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:20:26.402Z"}],"sources":[{"listingId":"c0a2c45b-e820-43c2-a943-72460aea1103","source":"github","sourceId":"ychampion/cskill-agents/fork-gap-fill-reconstruction","sourceUrl":"https://github.com/ychampion/cskill-agents/tree/main/skills/fork-gap-fill-reconstruction","isPrimary":false,"firstSeenAt":"2026-04-18T22:20:26.402Z","lastSeenAt":"2026-04-22T06:56:49.149Z"}],"details":{"listingId":"c0a2c45b-e820-43c2-a943-72460aea1103","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"ychampion","slug":"fork-gap-fill-reconstruction","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":"7bcf7e42f43eb0c855f46ed5aa810d0ca5ded1d6","skill_md_path":"skills/fork-gap-fill-reconstruction/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/ychampion/cskill-agents/tree/main/skills/fork-gap-fill-reconstruction"},"layout":"multi","source":"github","category":"cskill-agents","frontmatter":{"name":"fork-gap-fill-reconstruction","description":"Reconstruct child replacement state from local records first, then fill uncovered gaps from the parent's live map."},"skills_sh_url":"https://skills.sh/ychampion/cskill-agents/fork-gap-fill-reconstruction"},"updatedAt":"2026-04-22T06:56:49.149Z"}}