Prompt context handoff for agent runtime

From ychampion/cskill-agents · View interactive version

Prompt context handoff for agent runtime is an AI agent skill from the GitHub repository ychampion/cskill-agents. Package prompt, identity, and runtime constraints into one explicit handoff so child agents start with the right context and no accidental leakage.

How to use this skill

Skill file

SKILL: Prompt-Context Handoff for Agent Runtime

Domain: multi-agent

Trigger: Use when a parent agent or workflow must launch a child agent with a prompt plus selected runtime state, constraints, and capabilities.

Source Pattern: Distilled from reviewed subagent orchestration, fork control, and lifecycle-bound context handoff implementations.

Core Method

Build the child handoff as one explicit package instead of reconstructing context implicitly at the call site. Include the task prompt, the child’s identity or role, the allowed capabilities, the relevant prior state, and any lifecycle constraints the child must respect. Strip everything the child does not need, then pass the curated package through the runner that creates the child context. This keeps startup deterministic and prevents accidental leakage of parent-only state, permissions, or tool surfaces.

Key Rules

Example Application

When a main coding agent spawns a planning or execution child, create a handoff object containing the child prompt, selected tools, relevant messages, and the child’s role description. Pass that package into the child runner instead of letting the runner pull arbitrary parent globals.

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.