Fork gap fill reconstruction

From ychampion/cskill-agents · View interactive version

Fork gap fill reconstruction is an AI agent skill from the GitHub repository ychampion/cskill-agents. Reconstruct child replacement state from local records first, then fill uncovered gaps from the parent's live map.

How to use this skill

Skill file

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

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)

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.