<< All versions
Skill v1.0.0
currentAutomated scan100/100luovicter-collab/openclaw-docs/pls-agent-tools
──Details
PublishedOctober 22, 2026 at 11:43 PM
Content Hashsha256:5c6471f408c4dec2...
Git SHAc70f679da6e6
──Files
Files (1 file, 3.2 KB)
SKILL.md3.2 KBactive
SKILL.md · 171 lines · 3.2 KB
version: "1.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
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 patternfor f in *.txt; do mv "$f" "${f/.txt/.md}"; done# Find and delete files older than 7 daysfind . -name "*.log" -mtime +7 -exec trash {} \;# Copy with progressrsync -av --progress src/ dest/
JSON/YAML Processing
JSON Operations (jq)
bash
# Pretty printjq '.' file.json# Extract fieldjq '.field' file.json# Update fieldjq '.field = "new_value"' file.json > tmp && mv tmp file.json# Merge JSON filesjq -s 'add' file1.json file2.json
YAML Operations (yq)
bash
# Read valueyq '.key' file.yaml# Update valueyq '.key = "value"' -i file.yaml# Convert YAML to JSONyq -o=json '.' file.yaml
Text Processing
Common Patterns
bash
# Search and replace in filessed -i '' 's/old/new/g' file.txt# Extract matchesgrep -oP 'pattern' file.txt# Count occurrencesgrep -c 'pattern' file.txt# Remove duplicate linessort file.txt | uniq > deduplicated.txt# Extract columnawk '{print $2}' file.txt
System Utilities
Process Management
bash
# Find process by nameps aux | grep process_name# Kill by portlsof -ti:3000 | xargs kill -9# Monitor resource usagehtop
Network Operations
bash
# Check port availabilitylsof -i :PORT# Download with retrycurl --retry 3 -O URL# Test endpointcurl -X POST -H "Content-Type: application/json" -d '{"key":"value"}' URL
Encoding/Decoding
bash
# Base64 encode/decodeecho "text" | base64echo "dGV4dAo=" | base64 -d# URL encode/decodepython3 -c "import urllib.parse; print(urllib.parse.quote('text'))"python3 -c "import urllib.parse; print(urllib.parse.unquote('text%20here'))"# JSON escape/unescapejq -R . <<< 'string to escape'jq -r . <<< '"escaped string"'
Date/Time Utilities
bash
# Current timestampdate +%s# ISO formatdate -u +"%Y-%m-%dT%H:%M:%SZ"# Convert timestampdate -r 1234567890# Timezone conversionTZ="America/Chicago" date
Validation Helpers
bash
# Validate JSONjq empty file.json && echo "Valid JSON"# Validate YAMLpython3 -c "import yaml; yaml.safe_load(open('file.yaml'))" && echo "Valid YAML"# Check JSON schemacheck-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 |