demo_file_manager

demo_file_manager is a skill for Claude Code, Codex from scut-jol/pocket-agent. It costs 23 tokens per session (2,288 once invoked), scanned A, original, MIT.

A Chinese-language example skill for managing files and directories and analyzing file information.

In plain words
What is it for?
Use it as a reference for creating directories and files, listing contents, inspecting file details, and performing batch file tasks.
Why use it?
It demonstrates the required structure and common workflows for building a skill with scripts and reference documents.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it as a reference for creating directories and files, listing contents, inspecting file details, and performing batch file tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scut-jol/pocket-agent/demo_file_manager
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add scut-jol/pocket-agent --skill demo_file_manager
Clone the repo
git clone --depth 1 https://github.com/scut-jol/pocket-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for demo_file_manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/scut-jol/pocket-agent/demo_file_manager/github.svg)](https://agentmods.dev/skills/scut-jol/pocket-agent/demo_file_manager)
Your own site
<a href="https://agentmods.dev/skills/scut-jol/pocket-agent/demo_file_manager"><img src="https://agentmods.dev/badge/skills/scut-jol/pocket-agent/demo_file_manager/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for demo_file_manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/scut-jol/pocket-agent/demo_file_manager"><img src="https://agentmods.dev/badge/skills/scut-jol/pocket-agent/demo_file_manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,288 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.02288
Opus 5.5 $0.00009 $0.00915
Sonnet 5.5 $0.00005 $0.00458
Haiku 4.5 $0.00002 $0.00229

Measured 2mo ago against content hash 9472c4c68fdd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

demo_file_manager scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/file_analyzer.py, scripts/file_operations.py, tools.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/demo_skills/demo_file_manager/SKILL.md · 347 lines

How it starts

The opening of the file, as written. The whole thing — 347 lines — stays where its author put it; the contents beside it link to each section on GitHub.

文件管理示例技能

这是一个文件管理的示例技能,用于展示如何创建一个具有完整结构的技能。它包含文件操作、目录管理和文件分析等基础功能。

技能创建规范

文件名要求

  • SKILL.md: 技能的主文档文件,必须使用这个文件名
  • scripts/目录: 存放技能的执行脚本
  • references/目录: 存放详细的参考文档
  • 其他文件: 可以根据需要添加其他辅助文件

目录结构规范

demo_file_manager/
├── SKILL.md          # 技能主文档(必须)
├── scripts/          # 脚本目录(建议)
│   ├── file_operations.py
│   └── file_analyzer.py
└── references/       # 参考文档目录(可选)
    ├── file_operations_guide.md
    └── analysis_patterns.md

什么时候使用这个技能

当用户需要:

  • 执行文件操作(创建、复制、移动、删除)
  • 管理目录结构
  • 分析文件信息和统计
  • 批量处理文件

快速开始

创建文件和目录

# 创建一个新文件
python scripts/file_operations.py create --path "test.txt" --content "Hello World"

# 创建目录结构
python scripts/file_operations.py create-dir --path "project/src"

列出文件信息

# 列出目录内容
python scripts/file_operations.py list --path "."

# 获取文件详细信息
python scripts/file_operations.py info --path "test.txt"

常见任务流程

任务1:创建项目目录结构

情景:需要为新项目创建标准的目录结构

流程:

  1. 确定项目名称和根目录
  2. 创建标准的子目录(src, docs, tests)
  3. 创建基础文件(README.md, requirements.txt)
  4. 验证目录结构是否正确

示例:

# 创建项目目录结构
python scripts/file_operations.py create-project --name "my-project" --template "python"

# 验证目录结构
python scripts/file_operations.py list --path "my-project" --recursive

任务2:批量处理文件

情景:需要对一批文件进行同样的操作

流程:

  1. 确定要处理的文件类型和目录
  2. 执行批量操作(重命名、移动、删除)
  3. 检查操作结果
  4. 生成操作报告

示例:

# 批量重命名文件
python scripts/file_operations.py batch-rename --dir "." --pattern "*.txt" --prefix "new_"

# 批量移动文件
python scripts/file_operations.py batch-move --source "." --target "archive/" --pattern "*.log"

任务3:分析目录结构

情景:需要了解目录的结构和文件分布

流程:

  1. 扫描目录结构
  2. 统计文件类型和大小
  3. 生成统计报告
  4. 提出优化建议

示例:

# 分析目录结构
python scripts/file_analyzer.py analyze --path "."

# 生成详细报告
python scripts/file_analyzer.py analyze --path "." --detailed

工具使用指南

文件操作工具 (file_operations.py)

这个工具用于执行基础的文件操作。

参数说明:

  • create: 创建文件
  • create-dir: 创建目录
  • list: 列出目录内容
  • info: 获取文件信息
  • create-project: 创建项目目录结构
  • batch-rename: 批量重命名
  • batch-move: 批量移动

Read the full file on GitHub · 347 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 347 lines · 23 tokens per session scan A 9472c4c68fdd

Subscribe to this mod's changes

demo_file_manager is a skill published in the GitHub repository scut-jol/pocket-agent (3 stars, last pushed 3mo ago), licensed MIT. It adds 23 tokens to every session and 2,288 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by your inbox assignment.

paperclipai/paperclip · 30 tokens

rowboat-spaces

How to work as a member of Rowboat Spaces, the team chat where people and agents work together. Load it once per session, before acting on any request that reaches you from Rowboat; it covers your setup, mentions and hand-offs, the tools, and files.

rowboatlabs/rowboat · 60 tokens

Cortex

LifeOS memory, prior-session recall, and learning capture. USE WHEN capture this learning, document this learning, what did we learn recently, recent learnings, cortex, knowledge, knowledge base, search knowledge, what do we know about, archive, harvest, knowledge status, develop note, add to knowledge, add a people…

danielmiessler/LifeOS · 184 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens