# File Operations

> Create, read, write, edit, move, copy, and delete files and directories

- **Type:** Skill
- **Install:** `agentstack add skill-frontier-ai-next-mgarlbot-file-operations`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [frontier-ai-next](https://agentstack.voostack.com/s/frontier-ai-next)
- **Installs:** 0
- **Category:** [Cloud & Infrastructure](https://agentstack.voostack.com/c/cloud-infrastructure)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [frontier-ai-next](https://github.com/frontier-ai-next)
- **Source:** https://github.com/frontier-ai-next/mgarlbot/tree/main/skills/file_operations

## Install

```sh
agentstack add skill-frontier-ai-next-mgarlbot-file-operations
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

## File operations

Use shell commands for file and directory work.

### Create

Single line:

```
echo "content" > /path/to/file.txt
```

Here-doc:

```
cat > /path/to/file.txt  /path/to/file.txt
```

Append:

```
echo "more content" >> /path/to/file.txt
```

### Directories

Create:

```
mkdir -p /path/to/new/directory
```

List:

```
ls -la /path/to/directory
```

### Copy / move / delete

Copy file:

```
cp /source/file.txt /destination/file.txt
```

Copy tree:

```
cp -r /source/dir /destination/dir
```

Move or rename:

```
mv /old/path/file.txt /new/path/file.txt
```

Delete file:

```
rm /path/to/file.txt
```

Delete directory:

```
rm -r /path/to/directory
```

### Find

By name:

```
find /search/path -name "*.txt" -maxdepth 3
```

By content:

```
grep -r "search text" /search/path --include="*.txt"
```

### Rules

1. Use absolute paths or paths relative to the working directory.
2. After creating files, verify with `ls -la`.
3. Use `mkdir -p` for nested directories.
4. Before deleting, confirm with the user what will be removed.
5. Use `cat` for small files; `head`/`tail` for large ones.
6. Prefer `cat << 'EOF'` (single-quoted EOF) to avoid accidental variable expansion.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [frontier-ai-next](https://github.com/frontier-ai-next)
- **Source:** [frontier-ai-next/mgarlbot](https://github.com/frontier-ai-next/mgarlbot)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-frontier-ai-next-mgarlbot-file-operations
- Seller: https://agentstack.voostack.com/s/frontier-ai-next
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
