跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Filesystem Context

技能 已验证 活跃

This skill should be used when the user asks to "offload context to files", "implement dynamic context discovery", "use filesystem for agent memory", "reduce context window bloat", or mentions file-based context management, tool output persistence, agent scratch pads, or just-in-time context loading.

目的

To enable agents to manage and utilize context effectively by leveraging the filesystem for persistent storage, dynamic loading, and efficient information retrieval, thereby overcoming context window limitations.

功能

  • Offload large tool outputs to files
  • Persist agent plans and state
  • Manage agent workspaces via filesystem
  • Dynamically load skills from files
  • Combine filesystem search with semantic search

使用场景

  • Reducing context window bloat by offloading large outputs
  • Implementing agent scratch pads for intermediate results
  • Enabling sub-agents to share information via file workspaces
  • Persisting agent plans across long-horizon tasks

非目标

  • Replacing prompt engineering entirely
  • Handling context that fits comfortably within the window
  • Adding measurable latency for critical tasks
  • Managing context for agents without filesystem tool capabilities

工作流

  1. Determine if tool output exceeds token threshold
  2. Offload large outputs to a designated scratch directory
  3. Return a compact reference (path, summary) to context
  4. Persist agent plans and state to structured files
  5. Use agent workspaces for inter-agent communication
  6. Dynamically load skill definitions from files as needed

实践

  • Context Management
  • Agent Memory
  • Persistence
  • Tool Design

先决条件

  • Python 3.7+
  • Basic filesystem access

安装

请先添加 Marketplace

/plugin marketplace add muratcankoylan/Agent-Skills-for-Context-Engineering
/plugin install Agent-Skills-for-Context-Engineering@context-engineering-marketplace

质量评分

已验证
98 /100
1 day ago 分析

信任信号

最近提交about 1 month ago
星标15.6k
许可证MIT
状态
查看源代码