toolfs-filesystem
БесплатноБез исполняемых скриптовНе проверенAccess files and directories from mounted local filesystems. Use this skill when the user requests file operations such as "Read this file", "Write to that…
Об этом скилле
ToolFS Filesystem
Access files and directories from mounted local filesystems. Provides read, write, and list operations with session-based access control and audit logging.
How It Works
- Mount Points: Local directories are mounted to virtual paths under
/toolfs/<mount_point> - Path Resolution: Virtual paths are resolved to actual local filesystem paths
- Permission Control: Access is controlled by session permissions and mount read-only settings
- Audit Logging: All operations are logged for security and debugging
Usage
Read File
ToolFS Path:
/toolfs/<mount_point>/<relative_path>
Example:
GET /toolfs/data/project/config.json
// Response (file content)
{
"version": "1.0.0",
"settings": {
"debug": true,
"log_level": "info"
}
}
Write File
ToolFS Path:
/toolfs/<mount_point>/<relative_path>
Example:
PUT /toolfs/data/project/output.txt
Content-Type: text/plain
Processing completed successfully.
Generated 42 files.
Total size: 1024 KB
// Response
{
"success": true,
"bytes_written": 65
}
Note: Write operations require write permissions on the mount and will fail on read-only mounts.
List Directory
ToolFS Path:
/toolfs/<mount_point>/<relative_path>
Example:
LIST /toolfs/data/project/
// Response
[
"config.json",
"output.txt",
"src/",
"docs/"
]
Directories are indicated with a trailing /.
Check File Status (Stat)
ToolFS Path:
STAT /toolfs/<mount_point>/<relative_path>
Example:
STAT /toolfs/data/project/config.json
// Response
{
"path": "/toolfs/data/project/config.json",
"size": 256,
"is_dir": false,
"mod_time": "2024-01-15T12:00:00Z"
}
When to Use This Skill
Use Filesystem skill when you need to:
- Read Files: Access configuration files, data files, or documents
- Write Files: Save outputs, logs, or generated content
- List Directories: Browse directory structures
- Check Existence: Verify files or directories exist
- File Operations: Perform standard filesystem operations
Common use cases:
- "Read the config file from the project directory"
- "Write the output to a file"
- "List all files in the src directory"
- "Check if settings.json exists"
Mount Points
Mount points are created when local directories are mounted to ToolFS:
// Mount a local directory
fs.MountLocal("/project_data", true) // Read-only mount
fs.MountLocal("/workspace", false) // Read-write mount
Access paths:
/toolfs/project_data/→ mounted local directory/toolfs/workspace/→ mounted local directory
Path Resolution
- Virtual Path:
/toolfs/<mount_point>/path/to/file.txt - Resolved Path:
<local_mount_directory>/path/to/file.txt
Output Format
Filesystem operations return standardized result structures:
{
"type": "file",
"source": "/toolfs/<mount_point>/<path>",
"content": "file content or directory listing",
"metadata": {
"size": 1024,
"is_dir": false,
"mod_time": "..."
},
"success": true,
"error": "error message if failed"
}
Present Results to User
When presenting filesystem results:
✓ File read successfully
Path: /toolfs/data/project/config.json
Size: 256 bytes
Modified: 2024-01-15T12:00:00Z
Content:
{
"version": "1.0.0",
"settings": {
"debug": true,
"log_level": "info"
}
}
✓ File written successfully
Path: /toolfs/data/project/output.txt
Bytes written: 65
✓ Directory listing
Path: /toolfs/data/project/
Items: 4
config.json
output.txt
src/
docs/
Troubleshooting
Access Denied Error
If you get an access_denied error:
- Verify the session has access to the requested path
- Check if the mount point exists
- Ensure write permissions if performing write operations
- Verify the mount is not read-only (for writes)
File Not Found
If a file operation fails:
- Verify the path is correct
- Check if the file or directory exists
- Ensure the mount point is properly configured
- Verify relative path is correct from mount root
Read-Only Mount
If write operations fail on a read-only mount:
- Check mount configuration (read-only vs read-write)
- Create a read-write mount for write operations
- Use a different mount point with write permissions
Best Practices
- Use Appropriate Mounts: Use read-only mounts for safety, read-write only when needed
- Path Validation: Always validate paths before operations
- Error Handling: Check file existence before read/write operations
- Session Isolation: Each session has independent access control
- Audit Logs: Review audit logs for security and debugging
This skill is part of ToolFS. See main SKILL.md for overview.
Установить toolfs-filesystem в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл toolfs-filesystem?
Access files and directories from mounted local filesystems. Use this skill when the user requests file operations such as "Read this file", "Write to that file", "List directory contents", or "Check if file exists".
Как установить скилл toolfs-filesystem?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл toolfs-filesystem запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic