Overview
- Skill Key
- amaofx/filesystem
- Author
- amaofx
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/amaofx/filesystem
- Latest Commit SHA
- a796f3fdadc50c97f3577e65ff4638bd76d67a72
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Filesystem 技能。 若已安装,则直接安装 Filesystem 技能。
# Filesystem Operations
文件系统操作工具,提供目录列表、内容搜索、批量处理和目录分析功能。
## 快速开始
### 列出目录
```bash
# 列出当前目录
ls -la
# 递归列出目录树
find . -type f -name "*.md" | head -20
# 按类型过滤
find . -type f \( -name "*.md" -o -name "*.txt" \)
```
### 搜索文件
```bash
# 按名称搜索
find . -name "*keyword*"
# 按内容搜索
grep -r "keyword" . --include="*.md"
# 不区分大小写搜索
grep -ri "keyword" . --include="*.md"
```
### 分析目录
```bash
# 统计文件类型
find . -type f -name "*.md" | wc -l
# 查看目录大小
du -sh .
# 找出最大文件
find . -type f -exec ls -lh {} \; | sort -k5 -h | head -10
```
---
## 核心功能
### 1. 目录列表
**基础列表**:
```bash
ls -la # 详细列表
ls -lh # 人类可读大小
ls -lt # 按修改时间排序
ls -R # 递归列表
```
**高级列表**:
```bash
# 列出特定类型
find . -type f -name "*.md"
# 按深度列出
find . -maxdepth 2 -type f
# 排除特定目录
find . -type f -not -path "*/node_modules/*"
```
---
### 2. 文件搜索
**按名称搜索**:
```bash
# 精确匹配
find . -name "filename.md"
# 模式匹配
find . -name "*pattern*"
# 大小写不敏感
find . -iname "*pattern*"
```
**按内容搜索**:
```bash
# 基础搜索
grep -r "keyword" .
# 包含行号
grep -rn "keyword" .
# 只搜索特定文件
grep -r "keyword" . --include="*.md"
# 排除目录
grep -r "keyword" . --exclude-dir=node_modules
```
**正则表达式搜索**:
```bash
# 使用正则
grep -r "^## " . --include="*.md"
# 多个关键词
grep -r "key1\|key2" .
# 行首/行尾
grep -r "^关键词" .
grep -r "关键词$" .
```
---
### 3. 批量操作
**批量复制**:
```bash
# 复制特定类型
find . -name "*.md" -exec cp {} backup/ \;
# 复制到多个位置
for file in *.md; do cp "$file" dir1/ && cp "$file" dir2/; done
```
**批量移动**:
```bash
# 移动特定文件
find . -name "*.log" -exec mv {} logs/ \;
# 按条件移动
find . -type f -size +1M -exec mv {} large/ \;
```
**批量删除**:
```bash
# 删除特定类型
find . -name "*.tmp" -delete
# 删除空目录
find . -type d -e...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.