ワンクリックで
filesystem
Read, write, and manage files on the local machine
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Read, write, and manage files on the local machine
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | filesystem |
| description | Read, write, and manage files on the local machine |
| trigger | on-demand |
Read, write, search, and manage files and directories on the machine.
┌─────────────────────────────────────────────────────────────┐
│ Agent Context │
└──────────────────────────┬──────────────────────────────────┘
│
┌───────────────────┼───────────────────┐
│ │ │
▼ ▼ ▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ read_file │ │ write_file │ │ edit_file │
│ (100KB) │ │ (overwrite) │ │ (replace) │
└─────────────┘ └─────────────┘ └─────────────┘
│ │ │
└───────────────────┼───────────────────┘
│
┌───────────────────┼───────────────────┐
│ │ │
▼ ▼ ▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ list_files │ │search_files │ │ glob_files │
│ (ls -la) │ │ (grep -r) │ │ (find) │
└─────────────┘ └─────────────┘ └─────────────┘
| Tool | Action | Limit |
|---|---|---|
read_file | Read file contents | 100KB max |
write_file | Create or overwrite | Full replacement |
edit_file | Replace specific text | Must match exactly |
list_files | List directory | Recursive |
search_files | Grep for text | Recursive |
glob_files | Pattern matching | **/*.go syntax |
| Tool | When |
|---|---|
read_file | Need to see file contents |
write_file | Create new file or replace entirely |
edit_file | Make precise changes to existing file |
list_files | Explore directory structure |
search_files | Find code/text across files |
glob_files | Find files by name pattern |
read_file(path="/home/user/project/main.go")
# Output:
# 1→ package main
# 2→
# 3→ func main() {
# 4→ fmt.Println("Hello")
# 5→ }
read_file(path="/var/log/syslog", offset=100, limit=50)
# Reads lines 100-150
write_file(
path="/home/user/project/config.json",
content='{"version": "1.0", "debug": true}'
)
# Output: Successfully wrote to /home/user/project/config.json
CRITICAL: old_string must match EXACTLY (including whitespace, indentation).
# Read first to get exact content
read_file(path="/home/user/project/main.go")
# Then edit with exact match
edit_file(
path="/home/user/project/main.go",
old_string="func main() {",
new_string="func main() {\n\tlog.Println(\"Starting...\")"
)
# Output: Successfully edited /home/user/project/main.go
list_files(path="/home/user/project")
# Output:
# - src/ (directory, 755)
# - main.go (1.2KB, 644, modified: 2026-02-24)
# - config.json (256B, 644, modified: 2026-02-20)
search_files(
path="/home/user/project",
pattern="TODO",
ignore_case=true
)
# Output:
# src/main.go:45: // TODO: implement error handling
# src/utils.go:12: // TODO: add tests
# src/api.go:78: // TODO: handle timeout
glob_files(
path="/home/user/project",
pattern="**/*.go"
)
# Output:
# src/main.go
# src/utils.go
# src/api/handler.go
# src/api/middleware.go
# tests/main_test.go
write_file(
path="/home/user/project/hello.py",
content='#!/usr/bin/env python3
def main():
print("Hello, World!")
if __name__ == "__main__":
main()'
)
# 1. Read current content
read_file(path="/home/user/project/config.yaml")
# Output:
# 1→ debug: false
# 2→ log_level: info
# 2. Make precise edit
edit_file(
path="/home/user/project/config.yaml",
old_string="debug: false",
new_string="debug: true"
)
# 1. Find all test files
glob_files(path="/home/user/project", pattern="**/*_test.go")
# 2. Search for specific pattern
search_files(path="/home/user/project", pattern="func Test")
# 3. Read interesting file
read_file(path="/home/user/project/src/api_test.go")
# 1. List root
list_files(path="/home/user/unknown-project")
# Output: src/, cmd/, go.mod, README.md
# 2. Find entry point
glob_files(path="/home/user/unknown-project", pattern="**/main.go")
# 3. Read entry point
read_file(path="/home/user/unknown-project/cmd/main.go")
Cause: Path doesn't exist or is incorrect. Debug:
# Check parent directory
list_files(path="/home/user/project")
Cause: The text to replace doesn't match exactly. Debug:
# Read file to see exact content (including whitespace)
read_file(path="/home/user/project/file.go")
Cause: File exceeds 100KB limit. Solution:
# Use offset and limit to read in chunks
read_file(path="/large/file.log", offset=1, limit=1000)
old_stringwrite_file overwrites: Destroys existing content completelysearch_files is case-sensitive: Use ignore_case=true for flexibilityread_file: Use offset starting from 1| Mistake | Correct Approach |
|---|---|
Using write_file for small edits | Use edit_file for modifications |
Guessing old_string | Copy exact text from read_file output |
| Forgetting to escape quotes | Use proper escaping or different quotes |
| Relative path confusion | Use absolute paths when unsure |
| Not checking if file exists | Use list_files first |
store and retrieve long-term memories (facts, preferences, context)
Create and manage agents with isolated sessions and routing
Core behavior guidelines for agent interactions
Handle images, audio, and document files for messaging channels
Automate web browsing, scraping, and form interaction
Create and manage persistent interactive workspaces