Awesome-omni-skills linux-shell-scripting

Linux Production Shell Scripts workflow skill. Use this skill when the user needs Provide production-ready shell script templates for common Linux system administration tasks including backups, monitoring, user management, log analysis, and automation. These scripts serve as building blocks for security operations and penetration testing environments and the operator should preserve the upstream workflow, copied support files, and provenance before merging or handing off.

install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/linux-shell-scripting" ~/.claude/skills/diegosouzapw-awesome-omni-skills-linux-shell-scripting && rm -rf "$T"
manifest: skills/linux-shell-scripting/SKILL.md
source content

Linux Production Shell Scripts

Overview

This public intake copy packages

plugins/antigravity-awesome-skills-claude/skills/linux-shell-scripting
from
https://github.com/sickn33/antigravity-awesome-skills
into the native Omni Skills editorial shape without hiding its origin.

Use it when the operator needs the upstream workflow, support files, and repository context to stay intact while the public validator and private enhancer continue their normal downstream flow.

This intake keeps the copied upstream files intact and uses

metadata.json
plus
ORIGIN.md
as the provenance anchor for review.

Linux Production Shell Scripts

Imported source sections that did not map cleanly to the public headings are still preserved below or in the support files. Notable imported sections: Purpose, Prerequisites, Outputs and Deliverables, Constraints and Limitations.

When to Use This Skill

Use this section as the trigger filter. It should make the activation boundary explicit before the operator loads files, runs commands, or opens a pull request.

  • This skill is applicable to execute the workflow or actions described in the overview.
  • Use when the request clearly matches the imported source intent: Provide production-ready shell script templates for common Linux system administration tasks including backups, monitoring, user management, log analysis, and automation. These scripts serve as building blocks for....
  • Use when the operator should preserve upstream workflow detail instead of rewriting the process from scratch.
  • Use when provenance needs to stay visible in the answer, PR, or review packet.
  • Use when copied upstream references, examples, or scripts materially improve the answer.
  • Use when the workflow should remain reviewable in the public intake repo before the private enhancer takes over.

Operating Table

SituationStart hereWhy it matters
First-time use
metadata.json
Confirms repository, branch, commit, and imported path before touching the copied workflow
Provenance review
ORIGIN.md
Gives reviewers a plain-language audit trail for the imported source
Workflow execution
SKILL.md
Starts with the smallest copied file that materially changes execution
Supporting context
SKILL.md
Adds the next most relevant copied source file without loading the entire package
Handoff decision
## Related Skills
Helps the operator switch to a stronger native skill when the task drifts

Workflow

This workflow is intentionally editorial and operational at the same time. It keeps the imported source useful to the operator while still satisfying the public intake standards that feed the downstream enhancer flow.

  1. Phase 1: File Backup Scripts Basic Directory Backup bash #!/bin/bash backupdir="/path/to/backup" sourcedir="/path/to/source" # Create a timestamped backup of the source directory tar -czf "$backupdir/backup$(date +%Y%m%d%H%M%S).tar.gz" "$sourcedir" echo "Backup completed: backup$(date +%Y%m%d%H%M%S).tar.gz" Remote Server Backup bash #!/bin/bash sourcedir="/path/to/source" remoteserver="user@remoteserver:/path/to/backup" # Backup files/directories to a remote server using rsync rsync -avz --progress "$sourcedir" "$remoteserver" echo "Files backed up to remote server." Backup Rotation Script bash #!/bin/bash backupdir="/path/to/backups" maxbackups=5 # Rotate backups by deleting the oldest if more than maxbackups while [ $(ls -1 "$backupdir" | wc -l) -gt "$maxbackups" ]; do oldestbackup=$(ls -1t "$backupdir" | tail -n 1) rm -r "$backupdir/$oldestbackup" echo "Removed old backup: $oldestbackup" done echo "Backup rotation completed." Database Backup Script bash #!/bin/bash databasename="yourdatabase" dbuser="username" dbpass="password" outputfile="databasebackup$(date +%Y%m%d).sql" # Perform database backup using mysqldump mysqldump -u "$dbuser" -p"$dbpass" "$databasename" > "$outputfile" gzip "$outputfile" echo "Database backup created: $outputfile.gz" ### Phase 2: System Monitoring Scripts CPU Usage Monitor bash #!/bin/bash threshold=90 # Monitor CPU usage and trigger alert if threshold exceeded cpuusage=$(top -bn1 | grep "Cpu(s)" | awk '{print $2}' | cut -d.

  2. -f1) if [ "$cpuusage" -gt "$threshold" ]; then echo "ALERT: High CPU usage detected: $cpuusage%" # Add notification logic (email, slack, etc.) # mail -s "CPU Alert" admin@example.com <<< "CPU usage: $cpuusage%" fi Disk Space Monitor bash #!/bin/bash threshold=90 partition="/dev/sda1" # Monitor disk usage and trigger alert if threshold exceeded diskusage=$(df -h | grep "$partition" | awk '{print $5}' | cut -d% -f1) if [ "$diskusage" -gt "$threshold" ]; then echo "ALERT: High disk usage detected: $diskusage%" # Add alert/notification logic here fi CPU Usage Logger bash #!/bin/bash outputfile="cpuusagelog.txt" # Log current CPU usage to a file with timestamp timestamp=$(date '+%Y-%m-%d %H:%M:%S') cpuusage=$(top -bn1 | grep 'Cpu(s)' | awk '{print $2}' | cut -d.
  3. -f1) echo "$timestamp - CPU Usage: $cpuusage%" >> "$outputfile" echo "CPU usage logged." System Health Check bash #!/bin/bash outputfile="systemhealthcheck.txt" # Perform system health check and save results to a file { echo "System Health Check - $(date)" echo "================================" echo "" echo "Uptime:" uptime echo "" echo "Load Average:" cat /proc/loadavg echo "" echo "Memory Usage:" free -h echo "" echo "Disk Usage:" df -h echo "" echo "Top Processes:" ps aux --sort=-%cpu | head -10 } > "$outputfile" echo "System health check saved to $outputfile" ### Phase 3: User Management Scripts User Account Creation bash #!/bin/bash username="newuser" # Check if user exists; if not, create new user if id "$username" &>/dev/null; then echo "User $username already exists." else useradd -m -s /bin/bash "$username" echo "User $username created." # Set password interactively passwd "$username" fi Password Expiry Checker bash #!/bin/bash outputfile="passwordexpiryreport.txt" # Check password expiry for users with bash shell echo "Password Expiry Report - $(date)" > "$outputfile" echo "=================================" >> "$outputfile" IFS=$'\n' for user in $(grep "/bin/bash" /etc/passwd | cut -d: -f1); do passwordexpires=$(chage -l "$user" 2>/dev/null | grep "Password expires" | awk -F: '{print $2}') echo "User: $user - Password Expires: $passwordexpires" >> "$outputfile" done unset IFS echo "Password expiry report saved to $outputfile" ### Phase 4: Security Scripts Password Generator bash #!/bin/bash length=${1:-16} # Generate a random password password=$(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9!@#$%^&' | head -c"$length") echo "Generated password: $password" File Encryption Script bash #!/bin/bash file="$1" action="${2:-encrypt}" if [ -z "$file" ]; then echo "Usage: $0 <file> [encrypt|decrypt]" exit 1 fi if [ "$action" == "encrypt" ]; then # Encrypt file using AES-256-CBC openssl enc -aes-256-cbc -salt -pbkdf2 -in "$file" -out "$file.enc" echo "File encrypted: $file.enc" elif [ "$action" == "decrypt" ]; then # Decrypt file outputfile="${file%.enc}" openssl enc -aes-256-cbc -d -pbkdf2 -in "$file" -out "$outputfile" echo "File decrypted: $outputfile" fi ### Phase 5: Log Analysis Scripts Error Log Extractor bash #!/bin/bash logfile="${1:-/var/log/syslog}" outputfile="errorlog$(date +%Y%m%d).txt" # Extract lines with "ERROR" from the log file grep -i "error|fail|critical" "$logfile" > "$outputfile" echo "Error log created: $outputfile" echo "Total errors found: $(wc -l < "$outputfile")" Web Server Log Analyzer bash #!/bin/bash logfile="${1:-/var/log/apache2/access.log}" echo "Web Server Log Analysis" echo "========================" echo "" echo "Top 10 IP Addresses:" awk '{print $1}' "$logfile" | sort | uniq -c | sort -rn | head -10 echo "" echo "Top 10 Requested URLs:" awk '{print $7}' "$logfile" | sort | uniq -c | sort -rn | head -10 echo "" echo "HTTP Status Code Distribution:" awk '{print $9}' "$logfile" | sort | uniq -c | sort -rn ### Phase 6: Network Scripts Network Connectivity Checker bash #!/bin/bash hosts=("8.8.8.8" "1.1.1.1" "google.com") echo "Network Connectivity Check" echo "==========================" for host in "${hosts[@]}"; do if ping -c 1 -W 2 "$host" &>/dev/null; then echo "[UP] $host is reachable" else echo "[DOWN] $host is unreachable" fi done Website Uptime Checker bash #!/bin/bash websites=("https://google.com" "https://github.com") logfile="uptimelog.txt" echo "Website Uptime Check - $(date)" >> "$logfile" for website in "${websites[@]}"; do if curl --output /dev/null --silent --head --fail --max-time 10 "$website"; then echo "[UP] $website is accessible" | tee -a "$logfile" else echo "[DOWN] $website is inaccessible" | tee -a "$logfile" fi done Network Interface Info bash #!/bin/bash interface="${1:-eth0}" echo "Network Interface Information: $interface" echo "=========================================" ip addr show "$interface" 2>/dev/null || ifconfig "$interface" 2>/dev/null echo "" echo "Routing Table:" ip route | grep "$interface" ### Phase 7: Automation Scripts Automated Package Installation bash #!/bin/bash packages=("vim" "htop" "curl" "wget" "git") echo "Installing packages..." for package in "${packages[@]}"; do if dpkg -l | grep -q "^ii $package"; then echo "[SKIP] $package is already installed" else sudo apt-get install -y "$package" echo "[INSTALLED] $package" fi done echo "Package installation completed." Task Scheduler (Cron Setup) bash #!/bin/bash scheduledtask="/path/to/yourscript.sh" scheduletime="0 2 " # Run at 2 AM daily # Add task to crontab (crontab -l 2>/dev/null; echo "$scheduletime $scheduledtask") | crontab - echo "Task scheduled: $scheduletime $scheduledtask" Service Restart Script bash #!/bin/bash servicename="${1:-apache2}" # Restart a specified service if systemctl is-active --quiet "$servicename"; then echo "Restarting $servicename..." sudo systemctl restart "$servicename" echo "Service $servicename restarted." else echo "Service $servicename is not running.
  4. Starting..." sudo systemctl start "$servicename" echo "Service $servicename started." fi ### Phase 8: File Operations Directory Synchronization bash #!/bin/bash sourcedir="/path/to/source" destinationdir="/path/to/destination" # Synchronize directories using rsync rsync -avz --delete "$sourcedir/" "$destinationdir/" echo "Directories synchronized successfully." Data Cleanup Script bash #!/bin/bash directory="${1:-/tmp}" days="${2:-7}" echo "Cleaning files older than $days days in $directory" # Remove files older than specified days find "$directory" -type f -mtime +"$days" -exec rm -v {} ; echo "Cleanup completed." Folder Size Checker bash #!/bin/bash folderpath="${1:-.}" echo "Folder Size Analysis: $folderpath" echo "====================================" # Display sizes of subdirectories sorted by size du -sh "$folderpath"/* 2>/dev/null | sort -rh | head -20 echo "" echo "Total size:" du -sh "$folderpath" ### Phase 9: System Information System Info Collector bash #!/bin/bash outputfile="systeminfo$(hostname)$(date +%Y%m%d).txt" { echo "System Information Report" echo "Generated: $(date)" echo "=========================" echo "" echo "Hostname: $(hostname)" echo "OS: $(uname -a)" echo "" echo "CPU Info:" lscpu | grep -E "Model name|CPU(s)|Thread" echo "" echo "Memory:" free -h echo "" echo "Disk Space:" df -h echo "" echo "Network Interfaces:" ip -br addr echo "" echo "Logged In Users:" who } > "$outputfile" echo "System info saved to $outputfile" ### Phase 10: Git and Development Git Repository Updater bash #!/bin/bash gitrepos=("/path/to/repo1" "/path/to/repo2") for repo in "${gitrepos[@]}"; do if [ -d "$repo/.git" ]; then echo "Updating repository: $repo" cd "$repo" git fetch --all git pull origin "$(git branch --show-current)" echo "Updated: $repo" else echo "Not a git repository: $repo" fi done echo "All repositories updated." Remote Script Execution bash #!/bin/bash remoteserver="${1:-user@remote-server}" remotescript="${2:-/path/to/remote/script.sh}" # Execute a script on a remote server via SSH ssh "$remoteserver" "bash -s" < "$remotescript" echo "Remote script executed on $remoteserver" ``
  5. Confirm the user goal, the scope of the imported workflow, and whether this skill is still the right router for the task.
  6. Read the overview and provenance files before loading any copied upstream support files.
  7. Load only the references, examples, prompts, or scripts that materially change the outcome for the current request.

Imported Workflow Notes

Imported: Core Workflow

Phase 1: File Backup Scripts

Basic Directory Backup

#!/bin/bash
backup_dir="/path/to/backup"
source_dir="/path/to/source"

# Create a timestamped backup of the source directory
tar -czf "$backup_dir/backup_$(date +%Y%m%d_%H%M%S).tar.gz" "$source_dir"
echo "Backup completed: backup_$(date +%Y%m%d_%H%M%S).tar.gz"

Remote Server Backup

#!/bin/bash
source_dir="/path/to/source"
remote_server="user@remoteserver:/path/to/backup"

# Backup files/directories to a remote server using rsync
rsync -avz --progress "$source_dir" "$remote_server"
echo "Files backed up to remote server."

Backup Rotation Script

#!/bin/bash
backup_dir="/path/to/backups"
max_backups=5

# Rotate backups by deleting the oldest if more than max_backups
while [ $(ls -1 "$backup_dir" | wc -l) -gt "$max_backups" ]; do
    oldest_backup=$(ls -1t "$backup_dir" | tail -n 1)
    rm -r "$backup_dir/$oldest_backup"
    echo "Removed old backup: $oldest_backup"
done
echo "Backup rotation completed."

Database Backup Script

#!/bin/bash
database_name="your_database"
db_user="username"
db_pass="password"
output_file="database_backup_$(date +%Y%m%d).sql"

# Perform database backup using mysqldump
mysqldump -u "$db_user" -p"$db_pass" "$database_name" > "$output_file"
gzip "$output_file"
echo "Database backup created: $output_file.gz"

Phase 2: System Monitoring Scripts

CPU Usage Monitor

#!/bin/bash
threshold=90

# Monitor CPU usage and trigger alert if threshold exceeded
cpu_usage=$(top -bn1 | grep "Cpu(s)" | awk '{print $2}' | cut -d. -f1)

if [ "$cpu_usage" -gt "$threshold" ]; then
    echo "ALERT: High CPU usage detected: $cpu_usage%"
    # Add notification logic (email, slack, etc.)
    # mail -s "CPU Alert" admin@example.com <<< "CPU usage: $cpu_usage%"
fi

Disk Space Monitor

#!/bin/bash
threshold=90
partition="/dev/sda1"

# Monitor disk usage and trigger alert if threshold exceeded
disk_usage=$(df -h | grep "$partition" | awk '{print $5}' | cut -d% -f1)

if [ "$disk_usage" -gt "$threshold" ]; then
    echo "ALERT: High disk usage detected: $disk_usage%"
    # Add alert/notification logic here
fi

CPU Usage Logger

#!/bin/bash
output_file="cpu_usage_log.txt"

# Log current CPU usage to a file with timestamp
timestamp=$(date '+%Y-%m-%d %H:%M:%S')
cpu_usage=$(top -bn1 | grep 'Cpu(s)' | awk '{print $2}' | cut -d. -f1)
echo "$timestamp - CPU Usage: $cpu_usage%" >> "$output_file"
echo "CPU usage logged."

System Health Check

#!/bin/bash
output_file="system_health_check.txt"

# Perform system health check and save results to a file
{
    echo "System Health Check - $(date)"
    echo "================================"
    echo ""
    echo "Uptime:"
    uptime
    echo ""
    echo "Load Average:"
    cat /proc/loadavg
    echo ""
    echo "Memory Usage:"
    free -h
    echo ""
    echo "Disk Usage:"
    df -h
    echo ""
    echo "Top Processes:"
    ps aux --sort=-%cpu | head -10
} > "$output_file"

echo "System health check saved to $output_file"

Phase 3: User Management Scripts

User Account Creation

#!/bin/bash
username="newuser"

# Check if user exists; if not, create new user
if id "$username" &>/dev/null; then
    echo "User $username already exists."
else
    useradd -m -s /bin/bash "$username"
    echo "User $username created."
    
    # Set password interactively
    passwd "$username"
fi

Password Expiry Checker

#!/bin/bash
output_file="password_expiry_report.txt"

# Check password expiry for users with bash shell
echo "Password Expiry Report - $(date)" > "$output_file"
echo "=================================" >> "$output_file"

IFS=$'\n'
for user in $(grep "/bin/bash" /etc/passwd | cut -d: -f1); do
    password_expires=$(chage -l "$user" 2>/dev/null | grep "Password expires" | awk -F: '{print $2}')
    echo "User: $user - Password Expires: $password_expires" >> "$output_file"
done
unset IFS

echo "Password expiry report saved to $output_file"

Phase 4: Security Scripts

Password Generator

#!/bin/bash
length=${1:-16}

# Generate a random password
password=$(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9!@#$%^&*' | head -c"$length")
echo "Generated password: $password"

File Encryption Script

#!/bin/bash
file="$1"
action="${2:-encrypt}"

if [ -z "$file" ]; then
    echo "Usage: $0 <file> [encrypt|decrypt]"
    exit 1
fi

if [ "$action" == "encrypt" ]; then
    # Encrypt file using AES-256-CBC
    openssl enc -aes-256-cbc -salt -pbkdf2 -in "$file" -out "$file.enc"
    echo "File encrypted: $file.enc"
elif [ "$action" == "decrypt" ]; then
    # Decrypt file
    output_file="${file%.enc}"
    openssl enc -aes-256-cbc -d -pbkdf2 -in "$file" -out "$output_file"
    echo "File decrypted: $output_file"
fi

Phase 5: Log Analysis Scripts

Error Log Extractor

#!/bin/bash
logfile="${1:-/var/log/syslog}"
output_file="error_log_$(date +%Y%m%d).txt"

# Extract lines with "ERROR" from the log file
grep -i "error\|fail\|critical" "$logfile" > "$output_file"
echo "Error log created: $output_file"
echo "Total errors found: $(wc -l < "$output_file")"

Web Server Log Analyzer

#!/bin/bash
log_file="${1:-/var/log/apache2/access.log}"

echo "Web Server Log Analysis"
echo "========================"
echo ""
echo "Top 10 IP Addresses:"
awk '{print $1}' "$log_file" | sort | uniq -c | sort -rn | head -10
echo ""
echo "Top 10 Requested URLs:"
awk '{print $7}' "$log_file" | sort | uniq -c | sort -rn | head -10
echo ""
echo "HTTP Status Code Distribution:"
awk '{print $9}' "$log_file" | sort | uniq -c | sort -rn

Phase 6: Network Scripts

Network Connectivity Checker

#!/bin/bash
hosts=("8.8.8.8" "1.1.1.1" "google.com")

echo "Network Connectivity Check"
echo "=========================="

for host in "${hosts[@]}"; do
    if ping -c 1 -W 2 "$host" &>/dev/null; then
        echo "[UP] $host is reachable"
    else
        echo "[DOWN] $host is unreachable"
    fi
done

Website Uptime Checker

#!/bin/bash
websites=("https://google.com" "https://github.com")
log_file="uptime_log.txt"

echo "Website Uptime Check - $(date)" >> "$log_file"

for website in "${websites[@]}"; do
    if curl --output /dev/null --silent --head --fail --max-time 10 "$website"; then
        echo "[UP] $website is accessible" | tee -a "$log_file"
    else
        echo "[DOWN] $website is inaccessible" | tee -a "$log_file"
    fi
done

Network Interface Info

#!/bin/bash
interface="${1:-eth0}"

echo "Network Interface Information: $interface"
echo "========================================="
ip addr show "$interface" 2>/dev/null || ifconfig "$interface" 2>/dev/null
echo ""
echo "Routing Table:"
ip route | grep "$interface"

Phase 7: Automation Scripts

Automated Package Installation

#!/bin/bash
packages=("vim" "htop" "curl" "wget" "git")

echo "Installing packages..."

for package in "${packages[@]}"; do
    if dpkg -l | grep -q "^ii  $package"; then
        echo "[SKIP] $package is already installed"
    else
        sudo apt-get install -y "$package"
        echo "[INSTALLED] $package"
    fi
done

echo "Package installation completed."

Task Scheduler (Cron Setup)

#!/bin/bash
scheduled_task="/path/to/your_script.sh"
schedule_time="0 2 * * *"  # Run at 2 AM daily

# Add task to crontab
(crontab -l 2>/dev/null; echo "$schedule_time $scheduled_task") | crontab -
echo "Task scheduled: $schedule_time $scheduled_task"

Service Restart Script

#!/bin/bash
service_name="${1:-apache2}"

# Restart a specified service
if systemctl is-active --quiet "$service_name"; then
    echo "Restarting $service_name..."
    sudo systemctl restart "$service_name"
    echo "Service $service_name restarted."
else
    echo "Service $service_name is not running. Starting..."
    sudo systemctl start "$service_name"
    echo "Service $service_name started."
fi

Phase 8: File Operations

Directory Synchronization

#!/bin/bash
source_dir="/path/to/source"
destination_dir="/path/to/destination"

# Synchronize directories using rsync
rsync -avz --delete "$source_dir/" "$destination_dir/"
echo "Directories synchronized successfully."

Data Cleanup Script

#!/bin/bash
directory="${1:-/tmp}"
days="${2:-7}"

echo "Cleaning files older than $days days in $directory"

# Remove files older than specified days
find "$directory" -type f -mtime +"$days" -exec rm -v {} \;
echo "Cleanup completed."

Folder Size Checker

#!/bin/bash
folder_path="${1:-.}"

echo "Folder Size Analysis: $folder_path"
echo "===================================="

# Display sizes of subdirectories sorted by size
du -sh "$folder_path"/* 2>/dev/null | sort -rh | head -20
echo ""
echo "Total size:"
du -sh "$folder_path"

Phase 9: System Information

System Info Collector

#!/bin/bash
output_file="system_info_$(hostname)_$(date +%Y%m%d).txt"

{
    echo "System Information Report"
    echo "Generated: $(date)"
    echo "========================="
    echo ""
    echo "Hostname: $(hostname)"
    echo "OS: $(uname -a)"
    echo ""
    echo "CPU Info:"
    lscpu | grep -E "Model name|CPU\(s\)|Thread"
    echo ""
    echo "Memory:"
    free -h
    echo ""
    echo "Disk Space:"
    df -h
    echo ""
    echo "Network Interfaces:"
    ip -br addr
    echo ""
    echo "Logged In Users:"
    who
} > "$output_file"

echo "System info saved to $output_file"

Phase 10: Git and Development

Git Repository Updater

#!/bin/bash
git_repos=("/path/to/repo1" "/path/to/repo2")

for repo in "${git_repos[@]}"; do
    if [ -d "$repo/.git" ]; then
        echo "Updating repository: $repo"
        cd "$repo"
        git fetch --all
        git pull origin "$(git branch --show-current)"
        echo "Updated: $repo"
    else
        echo "Not a git repository: $repo"
    fi
done

echo "All repositories updated."

Remote Script Execution

#!/bin/bash
remote_server="${1:-user@remote-server}"
remote_script="${2:-/path/to/remote/script.sh}"

# Execute a script on a remote server via SSH
ssh "$remote_server" "bash -s" < "$remote_script"
echo "Remote script executed on $remote_server"

Imported: Purpose

Provide production-ready shell script templates for common Linux system administration tasks including backups, monitoring, user management, log analysis, and automation. These scripts serve as building blocks for security operations and penetration testing environments.

Examples

Example 1: Ask for the upstream workflow directly

Use @linux-shell-scripting to handle <task>. Start from the copied upstream workflow, load only the files that change the outcome, and keep provenance visible in the answer.

Explanation: This is the safest starting point when the operator needs the imported workflow, but not the entire repository.

Example 2: Ask for a provenance-grounded review

Review @linux-shell-scripting against metadata.json and ORIGIN.md, then explain which copied upstream files you would load first and why.

Explanation: Use this before review or troubleshooting when you need a precise, auditable explanation of origin and file selection.

Example 3: Narrow the copied support files before execution

Use @linux-shell-scripting for <task>. Load only the copied references, examples, or scripts that change the outcome, and name the files explicitly before proceeding.

Explanation: This keeps the skill aligned with progressive disclosure instead of loading the whole copied package by default.

Example 4: Build a reviewer packet

Review @linux-shell-scripting using the copied upstream files plus provenance, then summarize any gaps before merge.

Explanation: This is useful when the PR is waiting for human review and you want a repeatable audit packet.

Best Practices

Treat the generated public skill as a reviewable packaging layer around the upstream repository. The goal is to keep provenance explicit and load only the copied source material that materially improves execution.

  • Keep the imported skill grounded in the upstream repository; do not invent steps that the source material cannot support.
  • Prefer the smallest useful set of support files so the workflow stays auditable and fast to review.
  • Keep provenance, source commit, and imported file paths visible in notes and PR descriptions.
  • Point directly at the copied upstream files that justify the workflow instead of relying on generic review boilerplate.
  • Treat generated examples as scaffolding; adapt them to the concrete task before execution.
  • Route to a stronger native skill when architecture, debugging, design, or security concerns become dominant.

Troubleshooting

Problem: The operator skipped the imported context and answered too generically

Symptoms: The result ignores the upstream workflow in

plugins/antigravity-awesome-skills-claude/skills/linux-shell-scripting
, fails to mention provenance, or does not use any copied source files at all. Solution: Re-open
metadata.json
,
ORIGIN.md
, and the most relevant copied upstream files. Load only the files that materially change the answer, then restate the provenance before continuing.

Problem: The imported workflow feels incomplete during review

Symptoms: Reviewers can see the generated

SKILL.md
, but they cannot quickly tell which references, examples, or scripts matter for the current task. Solution: Point at the exact copied references, examples, scripts, or assets that justify the path you took. If the gap is still real, record it in the PR instead of hiding it.

Problem: The task drifted into a different specialization

Symptoms: The imported skill starts in the right place, but the work turns into debugging, architecture, design, security, or release orchestration that a native skill handles better. Solution: Use the related skills section to hand off deliberately. Keep the imported provenance visible so the next skill inherits the right context instead of starting blind.

Related Skills

  • @linear-claude-skill
    - Use when the work is better handled by that native specialization after this imported skill establishes context.
  • @linkedin-automation
    - Use when the work is better handled by that native specialization after this imported skill establishes context.
  • @linkedin-cli
    - Use when the work is better handled by that native specialization after this imported skill establishes context.
  • @linkedin-profile-optimizer
    - Use when the work is better handled by that native specialization after this imported skill establishes context.

Additional Resources

Use this support matrix and the linked files below as the operator packet for this imported skill. They should reflect real copied source material, not generic scaffolding.

Resource familyWhat it gives the reviewerExample path
references
copied reference notes, guides, or background material from upstream
references/n/a
examples
worked examples or reusable prompts copied from upstream
examples/n/a
scripts
upstream helper scripts that change execution or validation
scripts/n/a
agents
routing or delegation notes that are genuinely part of the imported package
agents/n/a
assets
supporting assets or schemas copied from the source package
assets/n/a

Imported Reference Notes

Imported: Quick Reference

Common Script Patterns

PatternPurpose
#!/bin/bash
Shebang for bash
$(date +%Y%m%d)
Date formatting
$((expression))
Arithmetic
${var:-default}
Default value
"$@"
All arguments

Useful Commands

CommandPurpose
chmod +x script.sh
Make executable
./script.sh
Run script
nohup ./script.sh &
Run in background
crontab -e
Edit cron jobs
source script.sh
Run in current shell

Cron Format

Minute(0-59) Hour(0-23) Day(1-31) Month(1-12) Weekday(0-7, 0/7=Sun)

Imported: Prerequisites

Required Environment

  • Linux/Unix system (bash shell)
  • Appropriate permissions for tasks
  • Required utilities installed (rsync, openssl, etc.)

Required Knowledge

  • Basic bash scripting
  • Linux file system structure
  • System administration concepts

Imported: Outputs and Deliverables

  1. Backup Solutions - Automated file and database backups
  2. Monitoring Scripts - Resource usage tracking
  3. Automation Tools - Scheduled task execution
  4. Security Scripts - Password management, encryption

Imported: Constraints and Limitations

  • Always test scripts in non-production first
  • Use absolute paths to avoid errors
  • Quote variables to handle spaces properly
  • Many scripts require root/sudo privileges
  • Use
    bash -x script.sh
    for debugging