CommunityKunst & Designgithub.com

roebi/agent-skills

agent skill library for ai agents using skills

Funktioniert mitClaude Code~Codex CLI~Cursor
npx skills add roebi/agent-skills

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Dokumentation

Terminal & CLI Skill

Reference for working in a Linux terminal — covering the full stack from basic bash to container orchestration and AI agent execution.

How to use this skill

This file covers the most common patterns. For detailed command references, load the relevant file from references/ on demand:

TopicReference file
Bash core: pipes, scripts, filesystem, install, env varsreferences/bash.md
Containers: Podman, Kubernetes (kubectl), Helmreferences/containers.md
HTTP requests: curlreferences/curl.md
AI agents: aider-chat, claude CLIreferences/agents.md

1. Run a bash command

command [options] [arguments]

# Run sequentially — stop on first failure
cmd1 && cmd2 && cmd3

# Run regardless of failure
cmd1; cmd2; cmd3

# Capture output into a variable
OUTPUT=$(command)

# Redirect stdout / stderr / both
command > out.txt
command 2> err.txt
command &> all.txt

# Discard all output
command > /dev/null 2>&1

2. Check if a tool exists

type -a tool_name      # All locations where tool is found
apropos keyword        # Find commands matching a keyword
which tool_name        # First binary on PATH
whereis tool_name      # Binary, source, and man page locations

3. Combine with &&

# Only proceed if previous command succeeded
sudo apt update && sudo apt upgrade -y

# Chain multiple steps safely
mkdir -p build && cd build && cmake ..

4. Pipe with |

# Pass stdout of one command as stdin to the next
cmd1 | cmd2 | cmd3

# Common patterns
ls -la | grep ".conf"
ps aux | grep nginx
journalctl -u myservice | grep ERROR | tail -20
cat file.txt | wc -l

5. Read content with cat

cat file.txt                   # Full file to stdout
cat file1.txt file2.txt        # Concatenate multiple files
head -n 20 file.txt            # First 20 lines
tail -n 20 file.txt            # Last 20 lines
tail -f /var/log/app.log       # Follow live log output
less file.txt                  # Paginated view (q to quit)
grep "pattern" file.txt        # Lines matching pattern
grep -r "pattern" ./dir/       # Recursive search in directory
grep -n "pattern" file.txt     # With line numbers
grep -i "pattern" file.txt     # Case-insensitive

6. Sort results

sort file.txt                  # Alphabetical (ascending)
sort -r file.txt               # Reverse order
sort -n file.txt               # Numeric sort
sort -k2 file.txt              # Sort by column 2
sort -t: -k3 -n /etc/passwd    # Custom delimiter (:), column 3, numeric
ls -la | sort -k5 -n           # Sort ls output by file size (col 5)

7. Unique results

# uniq only removes *consecutive* duplicates — always sort first
sort file.txt | uniq            # Deduplicate
sort file.txt | uniq -c        # Count occurrences
sort file.txt | uniq -d        # Show only duplicates
sort file.txt | uniq -u        # Show only lines that appear once

# Typical pipeline: count error types in a log
cat app.log | grep ERROR | sort | uniq -c | sort -rn

8. Write and run scripts with heredoc

# Create a script file inline
cat << 'EOF' > myscript.sh
#!/bin/bash
set -euo pipefail   # Exit on error, unset var, or pipe failure

echo "Today: $(date +%Y-%m-%d)"

for i in 1 2 3; do
  echo "Step $i"
done
EOF

chmod +x myscript.sh
./myscript.sh

# Or run directly without creating a file
bash << 'EOF'
echo "Inline execution"
ls -la /tmp
EOF

Script best practices:

  • Always start with #!/bin/bash
  • Use set -euo pipefail for safe defaults
  • Always quote variables: "$VAR" not $VAR
  • Use $(...) instead of backticks

9. Filesystem — quick reference

# Navigate & inspect
pwd && ls -lah              # Where am I + what's here
tree -L 2                   # Directory tree (2 levels deep)
find /path -name "*.log"    # Find by name
du -sh /path                # Size of a directory
df -h                       # Disk usage of all mounts

# Create / copy / move / delete
mkdir -p /path/to/dir       # Create with parents
cp -r src/ dst/             # Copy directory
mv src dst                  # Move or rename
rm -rf dir/                 # Delete recursively (irreversible)

# Permissions & ownership
chmod +x file               # Make executable
chmod 644 file              # rw-r--r--
chown user:group file       # Change owner

# Links
ln -s /target /link         # Symbolic link
readlink -f /link           # Resolve symlink to real path

# Mounts
mount                       # List all active mounts
lsblk                       # Block device tree
findmnt                     # Mount point tree

→ Full filesystem reference: references/bash.md

10. Install & update — quick reference

# APT
sudo apt update && sudo apt upgrade -y
sudo apt install -y package-name

# pip (Python)
pip install package --break-system-packages

# npm (Node.js)
npm install -g package-name

→ Full install reference (snap, from-source, pip options): references/bash.md

11. Get help on a command

command --help              # Inline help (fastest)
man command                 # Full manual page
apropos keyword             # Search man page summaries
whatis command              # One-line description
info command                # GNU info pages (for GNU tools)
help cd                     # Help for shell builtins

12. Environment variables — quick reference

export VAR="value"          # Set for current shell and subprocesses
echo $VAR                   # Read a variable
unset VAR                   # Remove a variable
env                         # List all environment variables
VAR=value command           # Set only for a single command

→ Persisting vars, loading .env files: references/bash.md


Detailed references

Load these files when you need complete command coverage:

  • references/bash.md — full filesystem, install/update, env vars, scripting patterns
  • references/containers.md — Podman, kubectl, Helm
  • references/curl.md — curl for HTTP requests
  • references/agents.md — aider-chat and claude CLI

Verwandte Skills

hashicorp/provider-resources

Implement Terraform Provider resources and data sources using the Plugin Framework. Use when developing CRUD operations, schema design, state management, and acceptance testing for provider resources.

community

wshobson/saga-orchestration

Implement saga patterns for distributed transactions and cross-aggregate workflows. Use this skill when implementing distributed transactions across microservices where 2PC is unavailable, designing compensating actions for failed order workflows that span inventory, payment, and shipping services, building event-driven saga coordinators for travel booking systems that must roll back hotel, flight, and car rental reservations atomically, or debugging stuck saga states in production where compensation steps never complete.

community

czlonkowski/n8n-workflow-patterns

Proven workflow architectural patterns from real n8n workflows. Use when building new workflows, designing workflow structure, choosing workflow patterns, planning workflow architecture, or asking about webhook processing, HTTP API integration, database operations, AI agent workflows, batch processing, or scheduled tasks. Always consult this skill when the user asks to create, build, or design an n8n workflow, automate a process, or connect services — even if they don't explicitly mention 'patterns'. Covers webhook, API, database, AI, batch processing, and scheduled automation architectures. Also use when optimizing a slow workflow or speeding up large-item-count processing (node count, batchSize, all-items vs per-item).

community

Bhanu-partap-13/laravel-interior-designing

Recently updated agent-skill-related GitHub repository: Bhanu-partap-13/laravel-interior-designing.

community

webiny/webiny-js

Open-source, self-hosted CMS platform on AWS serverless (Lambda, DynamoDB, S3). TypeScript framework with multi-tenancy, lifecycle hooks, GraphQL API, and AI-assisted development via MCP server. Built for developers at large organizations.

community

limelightarabesque224/ai-native-frontend-bootcamp

Build AI-native frontend skills with a practical bootcamp on AI-friendly stacks, workflows, and tool choices for modern web teams

community