Skip to content
Kitbay
Skill

filesystem-context

MITUpdated on Oct 12, 202618,336GitHub starsIncludes scripts

From the Agent Skills for Context Engineering collection, this skill shows an agent how to keep working context in files instead of in the prompt.

What the skill teaches

From the Agent Skills for Context Engineering collection, this skill shows an agent how to keep working context in files instead of in the prompt. It describes four ways context goes wrong (missing, under-retrieved, over-retrieved and buried) and matching fixes: saving large tool output to scratch files and returning a short reference, persisting plans, passing results between sub-agents through shared files, loading skills only when needed, keeping terminal logs on disk and letting an agent update its own instruction files. It pairs glob and grep with semantic search, covers file layout, token accounting and clean-up, and comes with a Python helper and implementation notes.

Capabilities

  • Offload large tool output to scratch files and return references
  • Persist plans and hand off results between sub-agents via files
  • Load skills and context on demand instead of up front
  • Search stored context with glob, grep and semantic search