agentsclimarketplace

Prompt context handoff for agent runtime

Skill vishuwa2004/cskill-agents/agents/codex/skills/prompt-context-handoff-for-agent-runtime

Build curated agent skills for coding CLIs, terminal tools, context engines, remote bridges, and multi-agent runtimes

Install
npx -y skills add vishuwa2004/cskill-agents --skill prompt-context-handoff-for-agent-runtime

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

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Package prompt, identity, and runtime constraints into one explicit handoff so child agents start with the right context and no accidental leakage.

SKILL.md

2.2 KB, as published. Nobody here has run it

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

  • Decide handoff contents intentionally; do not inherit the whole parent state by default.
  • Include identity, capability limits, and lifecycle expectations alongside the prompt.
  • Preserve the minimum shared state needed for correctness, not convenience.
  • Keep the handoff shape stable so retries and resumed child agents reconstruct the same context.
  • Align the handoff package with the child’s cleanup and permission model.

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)

  • Don’t hand the child the entire parent session state when only a narrow slice is required.
  • Don’t pass raw prompt text without the capability and lifecycle constraints that explain how the child should operate.
  • Don’t let each spawn site invent a different handoff shape for the same kind of child agent.

Keep looking

Skills are one crate of 328,083. 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.