ychampion/cskill-agents/fork-child-directive-guardrails
Claude Code and agent skill by ychampion/cskill-agents
- community
Checking that the SKILL.md file is still in the repository.
Keep fork-decoupled workers strictly bounded by directive text and cache sharing requirements.
Install
npx vskill@latest install ychampion/cskill-agents/fork-child-directive-guardrailsSKILL.md
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
- Preserve the parent assistant message intact before the fork; do not rewrite tool labels or thinking blocks so the prompt cache remains compatible.
- Build uniform placeholder tool_result blocks with fixed text (
Fork started — processing in background) and append the directive block that lists the 10 non-negotiable rules before any user-facing output. - Include the
<fork-boilerplate>tag per current cache strategy and apply fork directive prefix to keep child messages byte-identical across runs. - Explicitly mention that the worker is operating in a fork/isolated worktree and must translate inherited paths before editing.
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)
- Do not omit the
<fork-boilerplate>block or use variable placeholder text, which would invalidate cache sharing. - Do not let the fork spawn more agents or chat with humans — the directive must forbid sub-agent usage and conversation.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/fork-child-directive-guardrails/SKILL.md
Popularity
- Repository stars
- 36
- Repository forks
- 7
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ychampion/cskill-agents/fork-child-directive-guardrails)