filesystem-context
Skill by muratcankoylan
Teaches AI agents to store overflow context in files instead of the prompt. Useful for developers building long-running agents, sub-agent handoffs or tool-heavy workflows.
Install filesystem-context
Built from the published package, never by AI.
git clone --depth 1 https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering /tmp/Agent-Skills-for-Context-Engineering && mkdir -p ~/.claude/skills && cp -r /tmp/Agent-Skills-for-Context-Engineering/skills/filesystem-context ~/.claude/skills/filesystem-contextRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering /tmp/Agent-Skills-for-Context-Engineering && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Agent-Skills-for-Context-Engineering/skills/filesystem-context ~/.gemini/antigravity-cli/skills/filesystem-contextAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill teaches an AI agent to use the filesystem as an overflow layer for its context. Large tool outputs are written to files and replaced with a short summary and a file reference. Plans, sub-agent findings, terminal logs and skill files are also stored on disk and loaded only when needed.
It is aimed at developers building agents that run long tasks, share state between sub-agents, or hit context window limits. The source relies on tools such as grep, glob and read_file with line ranges. It advises against use for single-turn tasks, latency-critical work, or models without filesystem tools. Its self-modification pattern is described as experimental and needs periodic review.
Written from the project's SKILL.md and checked against it.
What it can do
- Scratch pad offloadingWrites large tool outputs to files and returns a short summary with a file reference.
- Plan persistenceStores plans in structured YAML files so the agent can re-read them to stay oriented.
- Sub-agent file workspacesLets sub-agents write findings to their own directories for the coordinator to read.
- Dynamic skill loadingLists skill names and short descriptions in the prompt and loads full skill files when needed.
- Terminal and log persistenceSaves terminal output to files and queries it with targeted grep instead of loading it whole.
- Learned preferencesWrites learned user preferences to a YAML file that later sessions load automatically.
- Filesystem search techniquesCombines ls, glob, grep and ranged read_file for discovery, alongside semantic search.
What you need
- Filesystem tool access such as read_file, grep and glob
Try asking
- Save this long search result to a file and give me a short summary.
- Keep my project plan in a YAML file and re-read it before each step.
- Search the saved terminal log for errors and show the lines around them.
Good to know
- Dynamic loading depends on the model recognizing when it needs more context.
- Less capable models may fail to trigger context loads.
- File I/O adds overhead and latency.
- Self-modifying preference patterns are experimental and need validation.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/filesystem-context/SKILL.md, skills/filesystem-context/scripts/filesystem_context.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md16 KB -
references/implementation-patterns.md18 KB -
scripts/filesystem_context.py15 KB
Alternatives to filesystem-context
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
filesystem-context: common questions
What problem does filesystem-context solve?
The source says context windows are limited while tasks often need more information than fits in one window. Storing context in files lets agents keep and retrieve much more without filling the prompt.
When should I not use this skill?
The source advises against it for tasks that finish in a single turn, when context already fits in the window, when latency is critical, or when the model lacks filesystem tools.
Does it handle semantic memory across sessions?
No. The source says semantic cross-session memory and knowledge graphs belong to a separate skill called memory-systems.
How do I install filesystem-context?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is filesystem-context free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is filesystem-context safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to filesystem-context?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
