
Filesystem Context
Most agents hit context limits faster than you'd expect, and this skill treats the filesystem as overflow storage instead of cramming everything into the prompt. Write tool outputs to scratch files, persist plans across long tasks, let sub-agents communicate through shared directories, and load skill instructions dynamically instead of bloating your system prompt. The core insight is simple: static context is expensive real estate, so keep pointers in the prompt and pull full content on demand with grep and targeted reads. Works well for terminal output persistence and cross-session state. The self-modifying agent pattern (writing learned preferences back to instruction files) is interesting but needs guardrails. If you're building anything that runs longer than a few turns or coordinates multiple agents, you'll need this approach.
- skills.sh installs
- 378
- GitHub stars
- 18.3K
- last updated
- May 26, 2026
Install
$ npx -y skills add muratcankoylan/agent-skills-for-context-engineering --skill filesystem-context --agent claude-codeInstalls into .claude/skills of the current project.
Files
Filesystem-Based Context Engineering
Use the filesystem as the primary overflow layer for agent context because context windows are limited while tasks often require more information than fits in a single window. Files let agents store, retrieve, and update an effectively unlimited amount of context through a single interface.
Prefer dynamic context discovery -- pulling relevant context on demand -- over static inclusion, because static context consumes tokens regardless of relevance and crowds out space for task-specific information.
When to Activate
Activate this skill when:
- Tool outputs are bloating the context window
- Agents need to persist state across long trajectories
- Sub-agents must share information without direct message passing
- Tasks require more context than fits in the window
- Building agents that learn and update their own instructions
- Implementing scratch pads for intermediate results
- Terminal outputs or logs need to be accessible to agents
Sponsors
Details
- Repository
- github.com/muratcankoylan/agent-skills-for-context-engineering
- Category
- AI & Agent Building
- License
- MIT
- First seen
- Jun 11, 2026
More from muratcankoylan/agent-skills-for-context-engineering
All 17- Multi Agent Patterns329
- Memory Systems321
- Tool Design291
- Context Degradation280
- Evaluation262
- Context Fundamentals253
- Latent Briefing195
- Harness Engineering189
- Project Development189
- Advanced Evaluation185
- Hosted Agents164
- Bdi Mental States160
- Context Engineering Collection
- Context Engineering Collection4.4K
- Context Compression565
- Context Optimization449