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
累計下載
3680
星標
-
全站排名
#2,937
全站前 58% · 「開發程式設計」前 66%
平台累計安裝累計下載星標評論
ClawHub ↗1133561--
SkillHub ↗1533680-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文涵蓋檔案操作、JSON/YAML/TOML 處理、正則轉換及常用系統工具。示例命令可能刪除或原地編輯檔案、停止程序、同步目錄或發起網路請求;執行前應審閱命令,並明確檔案路徑、連接埠和 URL。 範例需對應工具(如 jq、yq、trash),應核對實際系統語法。先預覽重新命名衝突、優先可復原刪除,並審閱檔案寫入、停止程序及連網影響。

資料釋出於 2026-10-27

可以用來做什麼

  • 檢查 JSON/YAML/TOML 設定並提出修改建議
  • 規劃文字轉換或檔案操作命令

什麼時候用

  • 命令範圍、路徑和網路目標已明確,且使用者確認執行影響時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

解釋這條命令會讀寫哪些檔案,但不要執行。
為批次重新命名擬一個可檢查的方案,並說明如何避免誤改檔案。

月度資料趨勢

累計下載3680
1943287638092026-03 · 累計下載 20722026-05 · 累計下載 28022026-06 · 累計下載 29692026-07 · 累計下載 32912026-08 · 累計下載 34472026-09 · 累計下載 368026-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093680—-
2026-083447+4.7%-
2026-073291+10.8%-
2026-062969+6.0%-
2026-052802—-
2026-032072—-

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),按月更新。口徑說明見資料方法。