context-fork-guide
Skill0 starsChanged 7 months agoMITView on GitHub
Use when creating or modifying skills that do heavy research, search, or multi-tool work. Adds context:fork to isolate skill execution in a separate context window, keeping the main session clean. Trigger on "keep context clean", "skill is bloating my context", "run this in a separate window", or when building any research/search skill.
In this repository24 other files it gives its agents.
- aarSkill
- agent-cost-modelSkill
- banana-makerSkill
- bitter-lesson-scorecardSkill
- boot-tax-monitorSkill
- compensating-complexity-auditorSkill
- context-hygieneSkill
- counterargument-stress-testSkill
- dark-code-auditSkill
- executive-briefingSkill
- failure-asymmetrySkill
- failure-postmortemSkill
- file-intelSkill
- geopolitical-signal-enricherSkill
- get-api-docsSkill
- gh-reviewSkill
- model-routerSkill
- optimize-descriptionSkill
- prompt-rewriterSkill
- skill-auditSkill
- skill-maintenanceSkill
- spec-gap-detectorSkill
- token-burn-auditorSkill
- what-am-i-forgettingSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
When building skills that perform heavy operations (vault search, codebase exploration, multi-file analysis, research), add context: fork …
- Distinctive: line 15
Read more than 5 files
- Distinctive: line 16
Run multiple searches or grep operations
- Distinctive: line 20
Do NOT fork when:
- Very specific: line 27
Add one line to any SKILL.md frontmatter:
- Very specific: line 65
After adding context: fork to a skill:
- Very specific: line 66
Run /context to check token count before invoking the skill
- Very specific: line 68
Run /context again — token increase should be minimal (summary only)
- Very specific: line 75
Add context: fork to their frontmatter and test.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context Fork Guide — Isolate Heavy Skills
When building skills that perform heavy operations (vault search, codebase exploration,
multi-file analysis, research), add context: fork to the frontmatter. This runs the
skill in a separate context window so only the final summary returns to your main session.
When to Fork
Fork when the skill will:
- Read more than 5 files
- Run multiple searches or grep operations
- Pull external data (web, API, database)
- Perform exploratory work where dead-ends are expected
Do NOT fork when:
- The skill modifies files in the current project (needs main context)
- The skill is conversational (needs prior chat history)
- The output is a single lookup (overhead not worth it)
How to Apply
Add one line to any SKILL.md frontmatter:
---
name: your-skill-name
description: Your skill description
context: fork
---That's it. The skill now runs in an isolated context window.
The Pattern: Research Skill with Fork
---
name: deep-research
description: Search vault, codebase, and web for context on a topic.
context: fork
---# Deep Research
1. Search Obsidian vault for notes matching the topic
2. Grep the codebase for related code patterns
3. Web search for current best practices
4. Return a structured summary:
- Key findings (bullet points)
- Relevant file paths
- Recommended next steps
Output ONLY the summary. All intermediate search results stay in the forked context.Verification
After adding context: fork to a skill:
- Run
/contextto check token count before invoking the skill - Invoke the skill
- Run
/contextagain — token increase should be minimal (summary only) - Compare with running the same skill without the fork line
Existing Skills to Consider Forking
Review /home/apexaipc/.claude/skills/ for skills that do heavy search or research.
Candidates: any skill that reads multiple files, runs searches, or pulls external data.
Add context: fork to their frontmatter and test.
Source
Extracted from: 3 Claude Code Features You'll Wish You Knew Sooner by Mark Kashef (AI Automation Society), March 19, 2026.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

