Fork child directive guardrails

From ychampion/cskill-agents · View interactive version

Fork child directive guardrails is an AI agent skill from the GitHub repository ychampion/cskill-agents. Keep fork-decoupled workers strictly bounded by directive text and cache sharing requirements.

How to use this skill

Skill file

SKILL: Fork Child Directive Guardrails

Domain: agent-coordination

Trigger: Apply this when a forked sub-agent inherits a conversation and must obey boilerplate guard text, cache-safe output, and explicit directive rules before running.

Source Pattern: Distilled from reviewed subagent orchestration, isolation, and lifecycle implementations.

Core Method

Compose the fork prompt by merging the parent assistant message with placeholder tool results, then append a distilled directive that enumerates the guardrails (no sub-agents, no chatting, execute silently). Explicitly include the <fork-boilerplate> block and the fork directive prefix so downstream cache sharing sees identical bytes for repeated forks. The directive should reinforce pointer translation, note the isolated worktree, and remind the worker that system prompts do not apply.

Key Rules

Example Application

When imploding a background worker to handle tool-heavy tasks, inject this guardrail directive before executing the fork; downstream watchers will see the same prompt scaffold and track the worker as a fork without extra moderation.

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.