Skip to content
advanced-file-management logo

Advanced File Management Skill

advanced-file-management

Advanced file management tools. Includes batch folder creation, batch file moving, file listing, and HTML author extraction.

SKILL.md

Full skill instructions

Advanced File Management Skill

This skill provides tools for desktop file management:

  1. Folder creation: Create multiple folders under a target directory
  2. Move files: Move multiple files to a target directory
  3. List all files: Recursively list all files under a directory
  4. Extract authors: Extract authors from HTML papers

Important Notes

  • Do not use other bash commands: Do not attempt to use general bash commands or shell operations like cat, ls.
  • Use relative paths: Use paths relative to the working directory (e.g., ./​folder/​file.txt or folder/​file.txt).
  • Do not create scripts: Do not use write_file to create any scripts.

I. Skills

1. Create Multiple Folders

Creates multiple folders under a target directory.

Features

  • Creates multiple folders with specified names
  • Supports any number of folder names as arguments

Example

# Create 3 folders
python create_folders.py . folder1 folder2 folder3

# Create folders with specific names
python create_folders.py ./​projects experiments learning personal

2. Move Multiple Files

Move multiple files to a target directory in a single operation.

Features

  • Move multiple files at once
  • Supports files from different directories
  • Reports success and failure for each file

Example

# Move 3 files to archive folder
python move_files.py ./​archive file1.txt file2.txt file3.txt

# Move files from different directories
python move_files.py ./​backup ./​data/​log1.txt ./​data/​log2.txt ./​temp/​cache.dat

3. List All Files

Recursively list all files under a given directory path. Useful for quickly understanding project directory structure.

Features

  • Recursively traverse all subdirectories
  • Option to exclude hidden files (like .DS_Store)
  • Output one file path per line, including both path and filename (relative to input directory)

Example

# List all files (excluding hidden)
python list_all_files.py .

# Include hidden files
python list_all_files.py ./​data --include-hidden

4. Extract Authors

Extract authors from all HTML papers in a directory using <meta name="citation_author"> tags.

Features

  • Automatically scan all HTML files in directory
  • Extract author names from citation_author meta tags
  • Support multiple authors per paper
  • Returns list of dicts with filename and authors

Example

# Extract and print authors from all HTML files
python extract_authors.py ./​papers

# Save to file
python extract_authors.py ./​papers --output authors.txt

II. Basic Tools (FileSystemTools)

Below are the basic tool functions. These are atomic operations for flexible combination.

Prefer Skills over Basic Tools: When a task matches one of the Skills above (e.g., creating multiple folders), use the corresponding Skill instead of Basic Tools. Skills are more efficient because they can perform batch operations in a single call.

Prefer List All Files over list_directory/​list_files: When you need to list files in a directory, prefer using the list_all_files.py skill instead of list_directory or list_files basic tools. The skill provides recursive listing with better output formatting.

Note: Code should be written without line breaks.

How to Run

# Standard format
python run_fs_ops.py -c "await fs.read_text_file('./​file.txt')"

File Reading Tools

read_text_file(path, head=None, tail=None)

Use Cases:

  • Read complete file contents
  • Read first N lines (head) or last N lines (tail)

Example:

python run_fs_ops.py -c "await fs.read_text_file('./​data/​file.txt')"

read_multiple_files(paths)

Use Cases:

  • Read multiple files simultaneously
  • Use when reading a large number of files (e.g., multiple paper html pages)

Example:

python run_fs_ops.py -c "await fs.read_multiple_files(['./​a.txt', './​b.txt'])"

File Writing Tools

write_file(path, content)

Use Cases:

  • Create new files
  • Overwrite existing files

⚠️ Warning: Do NOT include triple backticks (```) in the content, as this will break command parsing. Example:

python run_fs_ops.py -c "await fs.write_file('./​new.txt', 'Hello World')"

edit_file(path, edits)

Use Cases:

  • Make line-based edits to existing files

Example:

python run_fs_ops.py -c "await fs.edit_file('./​file.txt', [{'oldText': 'foo', 'newText': 'bar'}])"

Directory Tools

create_directory(path)

Use Cases:

  • Create new directories (supports recursive creation)

Example:

python run_fs_ops.py -c "await fs.create_directory('./​new/​nested/​dir')"

list_directory(path)

Use Cases:

  • List all files and directories in a path

Example:

python run_fs_ops.py -c "await fs.list_directory('.')"

list_files(path=None, exclude_hidden=True)

Use Cases:

  • List only files in a directory

Example:

python run_fs_ops.py -c "await fs.list_files('./​data')"

File Operations

move_file(source, destination)

Use Cases:

  • Move or rename files/​directories

Example:

python run_fs_ops.py -c "await fs.move_file('./​old.txt', './​new.txt')"

search_files(pattern, base_path=None)

Use Cases:

  • Search for files matching a glob pattern

Example:

python run_fs_ops.py -c "await fs.search_files('*.txt')"

File Information

get_file_info(path)

Use Cases:

  • Get detailed metadata (size, created, modified, etc.)

Example:

python run_fs_ops.py -c "await fs.get_file_info('./​file.txt')"

get_file_size(path)

Use Cases:

  • Get file size in bytes

Example:

python run_fs_ops.py -c "await fs.get_file_size('./​file.txt')"

get_file_ctime(path) / get_file_mtime(path)

Use Cases:

  • Get file creation/​modification time

Example:

python run_fs_ops.py -c "await fs.get_file_mtime('./​file.txt')"

get_files_info_batch(filenames, base_path=None)

Use Cases:

  • Get file information for multiple files in parallel

Example:

python run_fs_ops.py -c "await fs.get_files_info_batch(['a.txt', 'b.txt'], './​data')"

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
Any Summary logo
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View