Skip to content
alyn
Memento-Teams

Filesystem skill

Direct filesystem operations (read, write, edit, list, search files). Use for any file manipulation tasks.

$npx skills add Memento-Teams/Memento-Skills --skill filesystem
View this skill on GitHubMemento-Teams/Memento-Skills/builtin/skills/filesystem/SKILL.md
Pack stars
1,588
Pack installs
97
Alyn Score
43/99
Updated
3 months ago
License
Apache-2.0
– views – installs via Alyn

Memento-Teams

Filesystem

Install Filesystem

Pick your agent. Every command is ready to paste.

$npx skills add Memento-Teams/Memento-Skills --skill filesystem

The open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads filesystem when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the filesystem skill”. In Codex, type $filesystem.

The skill itself

SKILL.md

FolderGitHub

Filesystem Skill

Overview

Direct filesystem operations without external dependencies. Read, write, edit, list, copy, move, and search files.

Usage

Use the available builtin tools to perform file operations directly. Commonly used tools for this skill are: list_dir, read_file, file_create, edit_file_by_lines, grep, and bash.

When the task requires programmatic/structured processing (e.g., parsing complex formats or batch transformations), python_repl can be used as an advanced fallback.

  • Paths can be absolute or relative to working_dir
  • Parent directories are created automatically for write operations
  • For complex file operations not covered by builtin tools, use bash

Common Recipes

JSON

import json

# Read
with open('data.json', 'r', encoding='utf-8') as f:
    data = json.load(f)

# Write (pretty-printed)
with open('output.json', 'w', encoding='utf-8') as f:
    json.dump(data, f, indent=2, ensure_ascii=False)

CSV

import csv

# Read
with open('data.csv', 'r', encoding='utf-8') as f:
    reader = csv.DictReader(f)
    for row in reader:
        print(row)

# Write
with open('output.csv', 'w', newline='', encoding='utf-8') as f:
    writer = csv.DictWriter(f, fieldnames=['name', 'value'])
    writer.writeheader()
    writer.writerows([{'name': 'a', 'value': 1}])

YAML

# Requires: pip install pyyaml
import yaml

# Read
with open('config.yaml', 'r') as f:
    data = yaml.safe_load(f)

# Write
with open('output.yaml', 'w') as f:
    yaml.dump(data, f, default_flow_style=False, allow_unicode=True)

Directory Operations

# List files recursively
find . -type f -name "*.py"

# Directory size
du -sh /path/to/dir

# Copy directory
cp -r src/ dst/

# Move/rename
mv old_name.txt new_name.txt
# Search file contents (grep)
grep -r "search_term" --include="*.py" .

# Find files by name
find . -name "*.log" -mtime -7  # Modified in last 7 days

# Count lines
wc -l *.py

Text Processing

# Sort and deduplicate
sort file.txt | uniq > sorted.txt

# Extract columns
cut -d',' -f1,3 data.csv

# Replace text
sed -i '' 's/old/new/g' file.txt  # macOS
sed -i 's/old/new/g' file.txt     # Linux

Tips for Filesystem

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • It is part of a pack with 4 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Filesystem

What does the Filesystem skill do?

Direct filesystem operations (read, write, edit, list, search files). Use for any file manipulation tasks.

How do I install Filesystem?

Run "npx skills add Memento-Teams/Memento-Skills --skill filesystem" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Filesystem work in Cursor and Codex?

Yes. Filesystem uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

Is Filesystem free?

Filesystem is open source on GitHub under the Apache-2.0 license. It is free to install; check the license before commercial use.

Who made Filesystem?

Filesystem is published by Memento-Teams in the Memento-Teams/Memento-Skills repository, together with 3 other skills.

Similar skills. From other creators.