Agent skill

deepagents-filesystem

使用 FilesystemMiddleware 实现虚拟文件系统、后端(State、Store、Filesystem、Composite)和 Deep Agents 的上下文管理。

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill deepagents-filesystem --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 4 KB
Bundled scripts: none
Path: skills/agent/deepagents-filesystem/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# deepagents-filesystem (JavaScript/TypeScript) ## 概述 FilesystemMiddleware 通过可插拔后端系统提供文件操作,解决上下文工程挑战。工具包括:`ls`、`read_file`、`write_file`、`edit_file`、`glob`、`grep`。 ## 后端类型 ### StateBackend(默认) 在 agent 状态中的临时存储 - 仅在单个会话内持久化。 ```typescript import { createDeepAgent } from "deepagents"; const agent = await createDeepAgent({}); // 默认 StateBackend - 文件仅存在于会话中 ``` ### FilesystemBackend(本地磁盘) ```typescript import { createDeepAgent, FilesystemBackend } from "deepagents"; const agent = await createDeepAgent({ backend: new FilesystemBackend({ rootDir: ".", virtualMode: true // 安全性:限制路径 }) }); ``` ### StoreBackend(持久化) ```typescript import { createDeepAgent, StoreBackend } from "deepagents"; import { InMemoryStore } from "@langchain/langgraph"; const store = new InMemoryStore(); const agent = await createDeepAgent({ backend: (config) => new StoreBackend(config), store }); ``` ### CompositeBackend(混合) ```typescript import { createDeepAgent, CompositeBackend, StateBackend, StoreBackend } from "deepagents"; import { InMemoryStore } from "@langchain/langgraph"; const store = new InMemoryStore(); const agent = await createDeepAgent({ backend: (config) => new CompositeBackend( new StateBackend(config

What's inside
Steps it walks through
  1. 概述
  2. 后端类型
  3. StateBackend(默认)
  4. FilesystemBackend(本地磁盘)
  5. StoreBackend(持久化)
  6. CompositeBackend(混合)
  7. 决策表
  8. 代码示例
  9. 示例 1:管理大上下文
  10. 示例 2:长期内存
  11. 示例 3:自定义工具描述
  12. 边界
  13. Agent 可以配置的内容
  14. Agent 不能配置的内容
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the deepagents-filesystem skill do?

使用 FilesystemMiddleware 实现虚拟文件系统、后端(State、Store、Filesystem、Composite)和 Deep Agents 的上下文管理。

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill deepagents-filesystem --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going