Matt Valenta

PLS Agent Tools

开发编程v1.0.0
作者:Matt Valenta更新于 2026-05-17pls-agent-tools@clawhub_mattvalenta/pls-agent-tools
代码生成脚本工具#Json

据 AlphaMoat 统计,截至 2026-09,PLS Agent Tools 累计下载 3,680 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 2,937 位,在「开发编程」分类(577 个)中排名第 380 位。

累计安装
153
累计下载
3,680
星标
-
全站排名
#2,937
全站前 58% · 「开发编程」前 66%
平台累计安装累计下载星标评论
ClawHub ↗1133,561--
SkillHub ↗1533,680-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文涵盖文件操作、JSON/YAML/TOML 处理、正则转换及常用系统工具。示例命令可能删除或原地编辑文件、停止进程、同步目录或发起网络请求;执行前应审阅命令,并明确文件路径、端口和 URL。 示例需对应工具(如 jq、yq、trash),应核对实际系统语法。先预览重命名冲突、优先可恢复删除,并审阅文件写入、停止进程及联网影响。

资料发布于 2026-10-27

可以用来做什么

  • 检查 JSON/YAML/TOML 配置并提出修改建议
  • 规划文本转换或文件操作命令

什么时候用

  • 命令范围、路径和网络目标已明确,且用户确认执行影响时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

解释这条命令会读写哪些文件,但不要执行。
为批量重命名拟一个可检查的方案,并说明如何避免误改文件。

月度数据趋势

累计下载3,680
1,9432,8763,8092026-03 · 累计下载 2,0722026-05 · 累计下载 2,8022026-06 · 累计下载 2,9692026-07 · 累计下载 3,2912026-08 · 累计下载 3,4472026-09 · 累计下载 3,68026-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,680—-
2026-083,447+4.7%-
2026-073,291+10.8%-
2026-062,969+6.0%-
2026-052,802—-
2026-032,072—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.2 KB · ClawHub v1.0.0
---
name: agent-tools
description: Digital Swiss Army knife for everyday labor that standard models can't handle out of the box. Use when: (1) Need to manipulate files (rename, move, copy, delete), (2) Working with JSON/YAML/TOML configs, (3) Running system commands safely, (4) Processing text with regex or transformations, (5) Need utility functions for common operations.
---

# Agent Tools - Universal Utility Belt

A collection of practical utilities for everyday agent operations.

## File Operations
展开全部(共 170 行)

### Safe File Manipulation

Always use `trash` instead of `rm` when possible:

```bash
trash /path/to/file  # Safer deletion (recoverable)
```

### Bulk File Operations

```bash
# Rename files with pattern
for f in *.txt; do mv "$f" "${f/.txt/.md}"; done

# Find and delete files older than 7 days
find . -name "*.log" -mtime +7 -exec trash {} \;

# Copy with progress
rsync -av --progress src/ dest/
```

## JSON/YAML Processing

### JSON Operations (jq)

```bash
# Pretty print
jq '.' file.json

# Extract field
jq '.field' file.json

# Update field
jq '.field = "new_value"' file.json > tmp && mv tmp file.json

# Merge JSON files
jq -s 'add' file1.json file2.json
```

### YAML Operations (yq)

```bash
# Read value
yq '.key' file.yaml

# Update value
yq '.key = "value"' -i file.yaml

# Convert YAML to JSON
yq -o=json '.' file.yaml
```

## Text Processing

### Common Patterns

```bash
# Search and replace in files
sed -i '' 's/old/new/g' file.txt

# Extract matches
grep -oP 'pattern' file.txt

# Count occurrences
grep -c 'pattern' file.txt

# Remove duplicate lines
sort file.txt | uniq > deduplicated.txt

# Extract column
awk '{print $2}' file.txt
```

## System Utilities

### Process Management

```bash
# Find process by name
ps aux | grep process_name

# Kill by port
lsof -ti:3000 | xargs kill -9

# Monitor resource usage
htop
```

### Network Operations

```bash
# Check port availability
lsof -i :PORT

# Download with retry
curl --retry 3 -O URL

# Test endpoint
curl -X POST -H "Content-Type: application/json" -d '{"key":"value"}' URL
```

## Encoding/Decoding

```bash
# Base64 encode/decode
echo "text" | base64
echo "dGV4dAo=" | base64 -d

# URL encode/decode
python3 -c "import urllib.parse; print(urllib.parse.quote('text'))"
python3 -c "import urllib.parse; print(urllib.parse.unquote('text%20here'))"

# JSON escape/unescape
jq -R . <<< 'string to escape'
jq -r . <<< '"escaped string"'
```

## Date/Time Utilities

```bash
# Current timestamp
date +%s

# ISO format
date -u +"%Y-%m-%dT%H:%M:%SZ"

# Convert timestamp
date -r 1234567890

# Timezone conversion
TZ="America/Chicago" date
```

## Validation Helpers

```bash
# Validate JSON
jq empty file.json && echo "Valid JSON"

# Validate YAML
python3 -c "import yaml; yaml.safe_load(open('file.yaml'))" && echo "Valid YAML"

# Check JSON schema
check-jsonschema --schemafile schema.json document.json
```

## Quick Reference

| Task | Command |
|------|---------|
| Safe delete | `trash file` |
| Find files | `find . -name "*.ext"` |
| Search in files | `grep -r "pattern" .` |
| Replace text | `sed -i '' 's/old/new/g'` |
| JSON pretty | `jq '.'` |
| YAML read | `yq '.key'` |
| Port check | `lsof -i :PORT` |
| Base64 decode | `base64 -d` |

「开发编程」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。