agentsclimarketplace

Fork gap fill reconstruction

Skill ychampion/cskill-agents/agents/claude-code/skills/fork-gap-fill-reconstruction

Reconstruct child replacement state from local records first, then fill uncovered gaps from the parent's live map.From its SKILL.md

Install
npx -y skills add ychampion/cskill-agents --skill fork-gap-fill-reconstruction

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

2.1 KB, 356 tokens by cl100k_base, as published. Nobody here has run it

SKILL: Fork Gap-Fill Reconstruction

Domain: multi-agent
Trigger: Apply when a forked or resumed child workflow must inherit prior replacement decisions even though its local transcript lacks full replacement records. Source Pattern: Distilled from reviewed multi-agent coordination and child-runtime patterns.

Core Method

Rebuild 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.

Key Rules

  • Reconstruct from local records first so the child transcript remains the primary source of truth for what it explicitly persisted.
  • Use parent replacements only as a gap-fill for IDs still present in the resumed messages and not already covered by child records.
  • Preserve the seenIds freeze semantics while layering in inherited replacements so resumed children do not recalculate different decisions.
  • Skip inherited mappings for IDs absent from the resumed message set; they are inert and should not pollute the child state.

Example Application

When 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.

Anti-Patterns (What NOT to do)

  • Do not rely on child records alone for fork-resume cases; inherited replacements may never have been persisted by the child.
  • Do not blindly copy the entire parent replacement map into the child; only IDs present in the resumed messages should be imported.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.