@clawhub-xueyetianya-5e1be6a645
PID controller tuning and simulation tool. Use when json pid tasks, csv pid tasks, checking pid status.
--- name: "pid" version: "1.0.0" description: "PID controller tuning and simulation tool. Use when json pid tasks, csv pid tasks, checking pid status." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [pid, industrial, cli, tool] category: "industrial" --- # pid PID controller tuning and simulation tool. Use when json pid tasks, csv pid tasks, checking pid status. ## Commands ### `status` ```bash scripts/script.sh status ``` Show current status ### `add` ```bash scripts/script.sh add ``` Add new entry ### `list` ```bash scripts/script.sh list ``` List all entries ### `search` ```bash scripts/script.sh search ``` Search entries ### `remove` ```bash scripts/script.sh remove ``` Remove entry by number ### `export` ```bash scripts/script.sh export ``` Export data to file ### `stats` ```bash scripts/script.sh stats ``` Show statistics ### `config` ```bash scripts/script.sh config ``` View or set config ### `help` ```bash scripts/script.sh help ``` ### `version` ```bash scripts/script.sh version ``` ## Configuration Use `scripts/script.sh config <key> <value>` to set preferences. | Variable | Description | |----------|-------------| | `PID_DIR` | Data directory (default: ~/.pid/) | --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # pid -- PID controller tuning and simulation tool # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="1.0.0" DATA_DIR="-$HOME/.pid" _ensure_dirs() { mkdir -p "$DATA_DIR"; } _save_entry() { _ensure_dirs local cmd="$1" val="$2" local ts=$(date '+%Y-%m-%d %H:%M:%S') printf '{"ts":"%s","cmd":"%s","val":"%s"}\n' "$ts" "$cmd" "$val" >> "$DATA_DIR/data.jsonl" } show_help() { cat << EOF pid v$VERSION -- PID controller tuning and simulation tool Usage: pid <command> [args] Commands: status Show current status add Add new entry list List all entries search Search entries remove Remove entry by number export Export data to file stats Show statistics config View or set config help Show this help version Show version Data: $DATA_DIR Powered by BytesAgain | bytesagain.com EOF } cmd_status() { echo "=== pid Status ===" echo " Version: $VERSION" echo " Data dir: $DATA_DIR" local entries=$(cat "$DATA_DIR"/*.jsonl 2>/dev/null | wc -l || echo 0) echo " Entries: $entries" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1 || echo empty)" } cmd_add() { local value="?Usage: pid add <entry>" shift || true _save_entry "add" "$value $*" local count=$(wc -l < "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Added: $value (entry #$count)" } cmd_list() { echo "=== Pid Entries ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local count=$(wc -l < "$DATA_DIR/data.jsonl") echo "Total: $count" echo "---" tail -20 "$DATA_DIR/data.jsonl" | while IFS= read -r line; do local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) local cmd=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo " [$ts] $cmd: $val" done else echo "No entries yet." fi } cmd_search() { local term="?Usage: pid search <term>" if [ -f "$DATA_DIR/data.jsonl" ]; then local matches=$(grep -ic "$term" "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Found: $matches matches" grep -i "$term" "$DATA_DIR/data.jsonl" 2>/dev/null | head -20 | while IFS= read -r line; do local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) echo " [$ts] $val" done else echo "No data to search." fi } cmd_remove() { local num="?Usage: pid remove <line-number>" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") if [ "$num" -ge 1 ] 2>/dev/null && [ "$num" -le "$total" ] 2>/dev/null; then sed -i "numd" "$DATA_DIR/data.jsonl" echo "Removed #$num ($((total-1)) remaining)" else echo "Invalid: $num (total: $total)"; fi else echo "No data."; fi } cmd_export() { local fmt="-json" local out="pid-export.$fmt" if [ ! -f "$DATA_DIR/data.jsonl" ]; then echo "No data."; return 0; fi case "$fmt" in json) cp "$DATA_DIR/data.jsonl" "$out" ;; csv) echo "timestamp,command,value" > "$out" while IFS= read -r line; do ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) c2=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) vl=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo "$ts,$c2,$vl" >> "$out" done < "$DATA_DIR/data.jsonl" ;; *) echo "Formats: json, csv"; return 1 ;; esac echo "Exported: $out ($(wc -c < "$out") bytes)" } cmd_stats() { echo "=== Pid Stats ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") local bytes=$(wc -c < "$DATA_DIR/data.jsonl") echo " Entries: $total" echo " Size: $bytes bytes" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" else echo " No data yet."; fi } cmd_config() { local key="-" val="-" local cfg="$DATA_DIR/config.txt" if [ -z "$key" ]; then echo "=== Config ===" if [ -f "$cfg" ]; then while IFS="=" read -r k v; do echo " $k=$v"; done < "$cfg" else echo " (empty — use config <key> <value>)"; fi elif [ -z "$val" ]; then grep "^key=" "$cfg" 2>/dev/null | cut -d= -f2- || echo "(not set)" else if [ -f "$cfg" ] && grep -q "^key=" "$cfg" 2>/dev/null; then sed -i "s|^key=.*|key=val|" "$cfg" else echo "key=val" >> "$cfg" fi echo "Set: $key=$val" fi } CMD="-help" shift 2>/dev/null || true _ensure_dirs case "$CMD" in status) cmd_status "$@" ;; add) cmd_add "$@" ;; list) cmd_list "$@" ;; search) cmd_search "$@" ;; remove) cmd_remove "$@" ;; export) cmd_export "$@" ;; stats) cmd_stats "$@" ;; config) cmd_config "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "pid v$VERSION -- Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: pid help"; exit 1 ;; esac
Contactor and starter selection tool. Use when json contactor tasks, csv contactor tasks, checking contactor status.
--- name: "contactor" version: "1.0.0" description: "Contactor and starter selection tool. Use when json contactor tasks, csv contactor tasks, checking contactor status." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [contactor, electrical, cli, tool] category: "electrical" --- # contactor Contactor and starter selection tool. Use when json contactor tasks, csv contactor tasks, checking contactor status. ## Commands ### `status` ```bash scripts/script.sh status ``` Show current status ### `add` ```bash scripts/script.sh add ``` Add new entry ### `list` ```bash scripts/script.sh list ``` List all entries ### `search` ```bash scripts/script.sh search ``` Search entries ### `remove` ```bash scripts/script.sh remove ``` Remove entry by number ### `export` ```bash scripts/script.sh export ``` Export data to file ### `stats` ```bash scripts/script.sh stats ``` Show statistics ### `config` ```bash scripts/script.sh config ``` View or set config ### `help` ```bash scripts/script.sh help ``` ### `version` ```bash scripts/script.sh version ``` ## Configuration Use `scripts/script.sh config <key> <value>` to set preferences. | Variable | Description | |----------|-------------| | `CONTACTOR_DIR` | Data directory (default: ~/.contactor/) | --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # contactor -- Contactor and starter selection tool # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="1.0.0" DATA_DIR="-$HOME/.contactor" _ensure_dirs() { mkdir -p "$DATA_DIR"; } _save_entry() { _ensure_dirs local cmd="$1" val="$2" local ts=$(date '+%Y-%m-%d %H:%M:%S') printf '{"ts":"%s","cmd":"%s","val":"%s"}\n' "$ts" "$cmd" "$val" >> "$DATA_DIR/data.jsonl" } show_help() { cat << EOF contactor v$VERSION -- Contactor and starter selection tool Usage: contactor <command> [args] Commands: status Show current status add Add new entry list List all entries search Search entries remove Remove entry by number export Export data to file stats Show statistics config View or set config help Show this help version Show version Data: $DATA_DIR Powered by BytesAgain | bytesagain.com EOF } cmd_status() { echo "=== contactor Status ===" echo " Version: $VERSION" echo " Data dir: $DATA_DIR" local entries=$(cat "$DATA_DIR"/*.jsonl 2>/dev/null | wc -l || echo 0) echo " Entries: $entries" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1 || echo empty)" } cmd_add() { local value="?Usage: contactor add <entry>" shift || true _save_entry "add" "$value $*" local count=$(wc -l < "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Added: $value (entry #$count)" } cmd_list() { echo "=== Contactor Entries ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local count=$(wc -l < "$DATA_DIR/data.jsonl") echo "Total: $count" echo "---" tail -20 "$DATA_DIR/data.jsonl" | while IFS= read -r line; do local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) local cmd=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo " [$ts] $cmd: $val" done else echo "No entries yet." fi } cmd_search() { local term="?Usage: contactor search <term>" if [ -f "$DATA_DIR/data.jsonl" ]; then local matches=$(grep -ic "$term" "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Found: $matches matches" grep -i "$term" "$DATA_DIR/data.jsonl" 2>/dev/null | head -20 | while IFS= read -r line; do local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) echo " [$ts] $val" done else echo "No data to search." fi } cmd_remove() { local num="?Usage: contactor remove <line-number>" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") if [ "$num" -ge 1 ] 2>/dev/null && [ "$num" -le "$total" ] 2>/dev/null; then sed -i "numd" "$DATA_DIR/data.jsonl" echo "Removed #$num ($((total-1)) remaining)" else echo "Invalid: $num (total: $total)"; fi else echo "No data."; fi } cmd_export() { local fmt="-json" local out="contactor-export.$fmt" if [ ! -f "$DATA_DIR/data.jsonl" ]; then echo "No data."; return 0; fi case "$fmt" in json) cp "$DATA_DIR/data.jsonl" "$out" ;; csv) echo "timestamp,command,value" > "$out" while IFS= read -r line; do ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) c2=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) vl=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo "$ts,$c2,$vl" >> "$out" done < "$DATA_DIR/data.jsonl" ;; *) echo "Formats: json, csv"; return 1 ;; esac echo "Exported: $out ($(wc -c < "$out") bytes)" } cmd_stats() { echo "=== Contactor Stats ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") local bytes=$(wc -c < "$DATA_DIR/data.jsonl") echo " Entries: $total" echo " Size: $bytes bytes" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" else echo " No data yet."; fi } cmd_config() { local key="-" val="-" local cfg="$DATA_DIR/config.txt" if [ -z "$key" ]; then echo "=== Config ===" if [ -f "$cfg" ]; then while IFS="=" read -r k v; do echo " $k=$v"; done < "$cfg" else echo " (empty — use config <key> <value>)"; fi elif [ -z "$val" ]; then grep "^key=" "$cfg" 2>/dev/null | cut -d= -f2- || echo "(not set)" else if [ -f "$cfg" ] && grep -q "^key=" "$cfg" 2>/dev/null; then sed -i "s|^key=.*|key=val|" "$cfg" else echo "key=val" >> "$cfg" fi echo "Set: $key=$val" fi } CMD="-help" shift 2>/dev/null || true _ensure_dirs case "$CMD" in status) cmd_status "$@" ;; add) cmd_add "$@" ;; list) cmd_list "$@" ;; search) cmd_search "$@" ;; remove) cmd_remove "$@" ;; export) cmd_export "$@" ;; stats) cmd_stats "$@" ;; config) cmd_config "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "contactor v$VERSION -- Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: contactor help"; exit 1 ;; esac
Andon alert and production status board. Use when json andon tasks, csv andon tasks, checking andon status.
--- name: "andon" version: "1.0.0" description: "Andon alert and production status board. Use when json andon tasks, csv andon tasks, checking andon status." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [andon, industrial, cli, tool] category: "industrial" --- # andon Andon alert and production status board. Use when json andon tasks, csv andon tasks, checking andon status. ## Commands ### `status` ```bash scripts/script.sh status ``` Show current status ### `add` ```bash scripts/script.sh add ``` Add new entry ### `list` ```bash scripts/script.sh list ``` List all entries ### `search` ```bash scripts/script.sh search ``` Search entries ### `remove` ```bash scripts/script.sh remove ``` Remove entry by number ### `export` ```bash scripts/script.sh export ``` Export data to file ### `stats` ```bash scripts/script.sh stats ``` Show statistics ### `config` ```bash scripts/script.sh config ``` View or set config ### `help` ```bash scripts/script.sh help ``` ### `version` ```bash scripts/script.sh version ``` ## Configuration Use `scripts/script.sh config <key> <value>` to set preferences. | Variable | Description | |----------|-------------| | `ANDON_DIR` | Data directory (default: ~/.andon/) | --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # andon -- Andon alert and production status board # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="1.0.0" DATA_DIR="-$HOME/.andon" _ensure_dirs() { mkdir -p "$DATA_DIR"; } _save_entry() { _ensure_dirs local cmd="$1" val="$2" local ts=$(date '+%Y-%m-%d %H:%M:%S') printf '{"ts":"%s","cmd":"%s","val":"%s"}\n' "$ts" "$cmd" "$val" >> "$DATA_DIR/data.jsonl" } show_help() { cat << EOF andon v$VERSION -- Andon alert and production status board Usage: andon <command> [args] Commands: status Show current status add Add new entry list List all entries search Search entries remove Remove entry by number export Export data to file stats Show statistics config View or set config help Show this help version Show version Data: $DATA_DIR Powered by BytesAgain | bytesagain.com EOF } cmd_status() { echo "=== andon Status ===" echo " Version: $VERSION" echo " Data dir: $DATA_DIR" local entries=$(cat "$DATA_DIR"/*.jsonl 2>/dev/null | wc -l || echo 0) echo " Entries: $entries" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1 || echo empty)" } cmd_add() { local value="?Usage: andon add <entry>" shift || true _save_entry "add" "$value $*" local count=$(wc -l < "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Added: $value (entry #$count)" } cmd_list() { echo "=== Andon Entries ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local count=$(wc -l < "$DATA_DIR/data.jsonl") echo "Total: $count" echo "---" tail -20 "$DATA_DIR/data.jsonl" | while IFS= read -r line; do local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) local cmd=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo " [$ts] $cmd: $val" done else echo "No entries yet." fi } cmd_search() { local term="?Usage: andon search <term>" if [ -f "$DATA_DIR/data.jsonl" ]; then local matches=$(grep -ic "$term" "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Found: $matches matches" grep -i "$term" "$DATA_DIR/data.jsonl" 2>/dev/null | head -20 | while IFS= read -r line; do local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) echo " [$ts] $val" done else echo "No data to search." fi } cmd_remove() { local num="?Usage: andon remove <line-number>" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") if [ "$num" -ge 1 ] 2>/dev/null && [ "$num" -le "$total" ] 2>/dev/null; then sed -i "numd" "$DATA_DIR/data.jsonl" echo "Removed #$num ($((total-1)) remaining)" else echo "Invalid: $num (total: $total)"; fi else echo "No data."; fi } cmd_export() { local fmt="-json" local out="andon-export.$fmt" if [ ! -f "$DATA_DIR/data.jsonl" ]; then echo "No data."; return 0; fi case "$fmt" in json) cp "$DATA_DIR/data.jsonl" "$out" ;; csv) echo "timestamp,command,value" > "$out" while IFS= read -r line; do ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) c2=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) vl=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo "$ts,$c2,$vl" >> "$out" done < "$DATA_DIR/data.jsonl" ;; *) echo "Formats: json, csv"; return 1 ;; esac echo "Exported: $out ($(wc -c < "$out") bytes)" } cmd_stats() { echo "=== Andon Stats ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") local bytes=$(wc -c < "$DATA_DIR/data.jsonl") echo " Entries: $total" echo " Size: $bytes bytes" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" else echo " No data yet."; fi } cmd_config() { local key="-" val="-" local cfg="$DATA_DIR/config.txt" if [ -z "$key" ]; then echo "=== Config ===" if [ -f "$cfg" ]; then while IFS="=" read -r k v; do echo " $k=$v"; done < "$cfg" else echo " (empty — use config <key> <value>)"; fi elif [ -z "$val" ]; then grep "^key=" "$cfg" 2>/dev/null | cut -d= -f2- || echo "(not set)" else if [ -f "$cfg" ] && grep -q "^key=" "$cfg" 2>/dev/null; then sed -i "s|^key=.*|key=val|" "$cfg" else echo "key=val" >> "$cfg" fi echo "Set: $key=$val" fi } CMD="-help" shift 2>/dev/null || true _ensure_dirs case "$CMD" in status) cmd_status "$@" ;; add) cmd_add "$@" ;; list) cmd_list "$@" ;; search) cmd_search "$@" ;; remove) cmd_remove "$@" ;; export) cmd_export "$@" ;; stats) cmd_stats "$@" ;; config) cmd_config "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "andon v$VERSION -- Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: andon help"; exit 1 ;; esac
Lockout tagout safety procedure manager. Use when json lockout tasks, csv lockout tasks, checking lockout status.
--- name: "lockout" version: "1.0.0" description: "Lockout tagout safety procedure manager. Use when json lockout tasks, csv lockout tasks, checking lockout status." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [lockout, safety, cli, tool] category: "safety" --- # lockout Lockout tagout safety procedure manager. Use when json lockout tasks, csv lockout tasks, checking lockout status. ## Commands ### `status` ```bash scripts/script.sh status ``` Show current status ### `add` ```bash scripts/script.sh add ``` Add new entry ### `list` ```bash scripts/script.sh list ``` List all entries ### `search` ```bash scripts/script.sh search ``` Search entries ### `remove` ```bash scripts/script.sh remove ``` Remove entry by number ### `export` ```bash scripts/script.sh export ``` Export data to file ### `stats` ```bash scripts/script.sh stats ``` Show statistics ### `config` ```bash scripts/script.sh config ``` View or set config ### `help` ```bash scripts/script.sh help ``` ### `version` ```bash scripts/script.sh version ``` ## Configuration Use `scripts/script.sh config <key> <value>` to set preferences. | Variable | Description | |----------|-------------| | `LOCKOUT_DIR` | Data directory (default: ~/.lockout/) | --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # lockout -- Lockout tagout safety procedure manager # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="1.0.0" DATA_DIR="-$HOME/.lockout" _ensure_dirs() { mkdir -p "$DATA_DIR"; } _save_entry() { _ensure_dirs local cmd="$1" val="$2" local ts=$(date '+%Y-%m-%d %H:%M:%S') printf '{"ts":"%s","cmd":"%s","val":"%s"}\n' "$ts" "$cmd" "$val" >> "$DATA_DIR/data.jsonl" } show_help() { cat << EOF lockout v$VERSION -- Lockout tagout safety procedure manager Usage: lockout <command> [args] Commands: status Show current status add Add new entry list List all entries search Search entries remove Remove entry by number export Export data to file stats Show statistics config View or set config help Show this help version Show version Data: $DATA_DIR Powered by BytesAgain | bytesagain.com EOF } cmd_status() { echo "=== lockout Status ===" echo " Version: $VERSION" echo " Data dir: $DATA_DIR" local entries=$(cat "$DATA_DIR"/*.jsonl 2>/dev/null | wc -l || echo 0) echo " Entries: $entries" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1 || echo empty)" } cmd_add() { local value="?Usage: lockout add <entry>" shift || true _save_entry "add" "$value $*" local count=$(wc -l < "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Added: $value (entry #$count)" } cmd_list() { echo "=== Lockout Entries ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local count=$(wc -l < "$DATA_DIR/data.jsonl") echo "Total: $count" echo "---" tail -20 "$DATA_DIR/data.jsonl" | while IFS= read -r line; do local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) local cmd=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo " [$ts] $cmd: $val" done else echo "No entries yet." fi } cmd_search() { local term="?Usage: lockout search <term>" if [ -f "$DATA_DIR/data.jsonl" ]; then local matches=$(grep -ic "$term" "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Found: $matches matches" grep -i "$term" "$DATA_DIR/data.jsonl" 2>/dev/null | head -20 | while IFS= read -r line; do local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) echo " [$ts] $val" done else echo "No data to search." fi } cmd_remove() { local num="?Usage: lockout remove <line-number>" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") if [ "$num" -ge 1 ] 2>/dev/null && [ "$num" -le "$total" ] 2>/dev/null; then sed -i "numd" "$DATA_DIR/data.jsonl" echo "Removed #$num ($((total-1)) remaining)" else echo "Invalid: $num (total: $total)"; fi else echo "No data."; fi } cmd_export() { local fmt="-json" local out="lockout-export.$fmt" if [ ! -f "$DATA_DIR/data.jsonl" ]; then echo "No data."; return 0; fi case "$fmt" in json) cp "$DATA_DIR/data.jsonl" "$out" ;; csv) echo "timestamp,command,value" > "$out" while IFS= read -r line; do ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) c2=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) vl=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo "$ts,$c2,$vl" >> "$out" done < "$DATA_DIR/data.jsonl" ;; *) echo "Formats: json, csv"; return 1 ;; esac echo "Exported: $out ($(wc -c < "$out") bytes)" } cmd_stats() { echo "=== Lockout Stats ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") local bytes=$(wc -c < "$DATA_DIR/data.jsonl") echo " Entries: $total" echo " Size: $bytes bytes" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" else echo " No data yet."; fi } cmd_config() { local key="-" val="-" local cfg="$DATA_DIR/config.txt" if [ -z "$key" ]; then echo "=== Config ===" if [ -f "$cfg" ]; then while IFS="=" read -r k v; do echo " $k=$v"; done < "$cfg" else echo " (empty — use config <key> <value>)"; fi elif [ -z "$val" ]; then grep "^key=" "$cfg" 2>/dev/null | cut -d= -f2- || echo "(not set)" else if [ -f "$cfg" ] && grep -q "^key=" "$cfg" 2>/dev/null; then sed -i "s|^key=.*|key=val|" "$cfg" else echo "key=val" >> "$cfg" fi echo "Set: $key=$val" fi } CMD="-help" shift 2>/dev/null || true _ensure_dirs case "$CMD" in status) cmd_status "$@" ;; add) cmd_add "$@" ;; list) cmd_list "$@" ;; search) cmd_search "$@" ;; remove) cmd_remove "$@" ;; export) cmd_export "$@" ;; stats) cmd_stats "$@" ;; config) cmd_config "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "lockout v$VERSION -- Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: lockout help"; exit 1 ;; esac
Manufacturing execution system tracker
--- name: "mes" version: "1.0.0" description: "Manufacturing execution system tracker" author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [mes, industrial, cli, tool] category: "industrial" --- # mes Manufacturing execution system tracker ## Commands ### `status` ```bash scripts/script.sh status ``` Show current status ### `add` ```bash scripts/script.sh add ``` Add new entry ### `list` ```bash scripts/script.sh list ``` List all entries ### `search` ```bash scripts/script.sh search ``` Search entries ### `remove` ```bash scripts/script.sh remove ``` Remove entry by number ### `export` ```bash scripts/script.sh export ``` Export data to file ### `stats` ```bash scripts/script.sh stats ``` Show statistics ### `config` ```bash scripts/script.sh config ``` View or set config ### `help` ```bash scripts/script.sh help ``` ### `version` ```bash scripts/script.sh version ``` ## Configuration Use `scripts/script.sh config <key> <value>` to set preferences. | Variable | Required | Description | |----------|----------|-------------| | `MES_DIR` | No | Data directory (default: ~/.mes/) | ## Data Storage All data stored in `~/.mes/` using JSONL format (one JSON object per line). ## Output Structured output to stdout. Exit code 0 on success, 1 on error. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # mes -- Manufacturing execution system tracker # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="1.0.0" DATA_DIR="-$HOME/.mes" _ensure_dirs() { mkdir -p "$DATA_DIR"; } _save_entry() { _ensure_dirs local cmd="$1" val="$2" local ts=$(date '+%Y-%m-%d %H:%M:%S') printf '{"ts":"%s","cmd":"%s","val":"%s"}\n' "$ts" "$cmd" "$val" >> "$DATA_DIR/data.jsonl" } show_help() { cat << EOF mes v$VERSION -- Manufacturing execution system tracker Usage: mes <command> [args] Commands: status Show current status add Add new entry list List all entries search Search entries remove Remove entry by number export Export data to file stats Show statistics config View or set config help Show this help version Show version Data: $DATA_DIR Powered by BytesAgain | bytesagain.com EOF } cmd_status() { echo "=== mes Status ===" echo " Version: $VERSION" echo " Data dir: $DATA_DIR" local entries=$(cat "$DATA_DIR"/*.jsonl 2>/dev/null | wc -l || echo 0) echo " Entries: $entries" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1 || echo empty)" } cmd_add() { local value="?Usage: mes add <entry>" shift || true _save_entry "add" "$value $*" local count=$(wc -l < "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Added: $value (entry #$count)" } cmd_list() { echo "=== Mes Entries ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local count=$(wc -l < "$DATA_DIR/data.jsonl") echo "Total: $count" echo "---" tail -20 "$DATA_DIR/data.jsonl" | while IFS= read -r line; do local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) local cmd=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo " [$ts] $cmd: $val" done else echo "No entries yet." fi } cmd_search() { local term="?Usage: mes search <term>" if [ -f "$DATA_DIR/data.jsonl" ]; then local matches=$(grep -ic "$term" "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Found: $matches matches" grep -i "$term" "$DATA_DIR/data.jsonl" 2>/dev/null | head -20 | while IFS= read -r line; do local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) echo " [$ts] $val" done else echo "No data to search." fi } cmd_remove() { local num="?Usage: mes remove <line-number>" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") if [ "$num" -ge 1 ] 2>/dev/null && [ "$num" -le "$total" ] 2>/dev/null; then sed -i "numd" "$DATA_DIR/data.jsonl" echo "Removed #$num ($((total-1)) remaining)" else echo "Invalid: $num (total: $total)"; fi else echo "No data."; fi } cmd_export() { local fmt="-json" local out="mes-export.$fmt" if [ ! -f "$DATA_DIR/data.jsonl" ]; then echo "No data."; return 0; fi case "$fmt" in json) cp "$DATA_DIR/data.jsonl" "$out" ;; csv) echo "timestamp,command,value" > "$out" while IFS= read -r line; do ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) c2=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) vl=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo "$ts,$c2,$vl" >> "$out" done < "$DATA_DIR/data.jsonl" ;; *) echo "Formats: json, csv"; return 1 ;; esac echo "Exported: $out ($(wc -c < "$out") bytes)" } cmd_stats() { echo "=== Mes Stats ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") local bytes=$(wc -c < "$DATA_DIR/data.jsonl") echo " Entries: $total" echo " Size: $bytes bytes" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" else echo " No data yet."; fi } cmd_config() { local key="-" val="-" local cfg="$DATA_DIR/config.txt" if [ -z "$key" ]; then echo "=== Config ===" if [ -f "$cfg" ]; then while IFS="=" read -r k v; do echo " $k=$v"; done < "$cfg" else echo " (empty — use config <key> <value>)"; fi elif [ -z "$val" ]; then grep "^key=" "$cfg" 2>/dev/null | cut -d= -f2- || echo "(not set)" else if [ -f "$cfg" ] && grep -q "^key=" "$cfg" 2>/dev/null; then sed -i "s|^key=.*|key=val|" "$cfg" else echo "key=val" >> "$cfg" fi echo "Set: $key=$val" fi } CMD="-help" shift 2>/dev/null || true _ensure_dirs case "$CMD" in status) cmd_status "$@" ;; add) cmd_add "$@" ;; list) cmd_list "$@" ;; search) cmd_search "$@" ;; remove) cmd_remove "$@" ;; export) cmd_export "$@" ;; stats) cmd_stats "$@" ;; config) cmd_config "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "mes v$VERSION -- Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: mes help"; exit 1 ;; esac
Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Piston concepts, best practices, and implementation patterns.
--- name: "piston" version: "2.0.1" description: "Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Piston concepts, best practices, and implementation patterns." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [piston, reference] category: "devtools" --- # Piston Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Piston concepts, best practices, and implementation patterns. No API keys or credentials required. ## Commands | Command | Description | |---------|-------------| | `intro` | intro reference | | `quickstart` | quickstart reference | | `patterns` | patterns reference | | `debugging` | debugging reference | | `performance` | performance reference | | `security` | security reference | | `migration` | migration reference | | `cheatsheet` | cheatsheet reference | ## Output Format All commands output plain-text reference documentation via heredoc. No external API calls, no credentials needed, no network access. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # piston — Piston reference tool. Use when working with piston in devtools contexts. # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="2.0.0" show_help() { cat << 'HELPEOF' piston v$VERSION — Piston Reference Tool Usage: piston <command> Commands: intro Overview and core concepts quickstart Getting started guide patterns Common patterns and best practices debugging Debugging and troubleshooting performance Performance optimization tips security Security considerations migration Migration and upgrade guide cheatsheet Quick reference cheat sheet help Show this help version Show version Powered by BytesAgain | bytesagain.com HELPEOF } cmd_intro() { cat << 'EOF' # Piston — Overview ## What is Piston? Piston (piston) is a specialized tool/concept in the devtools domain. It provides essential capabilities for professionals working with piston. ## Key Concepts - Core piston principles and fundamentals - How piston fits into the broader devtools ecosystem - Essential terminology every practitioner should know ## Why Piston Matters Understanding piston is critical for: - Improving efficiency in devtools workflows - Reducing errors and downtime - Meeting industry standards and compliance requirements - Enabling better decision-making with accurate data ## Getting Started 1. Understand the basic piston concepts 2. Learn the standard tools and interfaces 3. Practice with common scenarios 4. Review safety and compliance requirements EOF } cmd_quickstart() { cat << 'EOF' # Piston — Quick Start Guide ## Prerequisites - Basic understanding of devtools concepts - Required tools and access credentials - System meeting minimum requirements ## Installation 1. Download or clone the piston package 2. Install dependencies 3. Configure initial settings 4. Verify installation ## First Steps 1. Run the hello-world example 2. Review the default configuration 3. Try a simple real-world task 4. Explore available commands and options ## Next Steps - Read the full documentation - Join the community forum - Try advanced features - Set up automated workflows EOF } cmd_patterns() { cat << 'EOF' # Piston — Common Patterns & Best Practices ## Design Patterns 1. **Standard Pattern**: The most common approach for piston 2. **Scalable Pattern**: For high-volume or distributed scenarios 3. **Resilient Pattern**: For fault-tolerant implementations ## Best Practices - Follow the principle of least privilege - Use version control for all configurations - Implement comprehensive logging - Test changes in staging before production - Document all custom configurations ## Anti-Patterns to Avoid - Hardcoding credentials or configuration - Skipping validation and error handling - Ignoring monitoring and alerting - Making changes without documentation - Over-engineering simple solutions EOF } cmd_debugging() { cat << 'EOF' # Piston — Debugging Guide ## Common Errors 1. **Connection refused**: Check service status and network 2. **Permission denied**: Verify credentials and access rights 3. **Timeout**: Check network, increase limits, optimize queries 4. **Invalid input**: Validate data format and encoding ## Debugging Tools - Built-in logging and diagnostics - Network analysis tools (tcpdump, wireshark) - System monitoring (top, htop, iostat) - Application-specific debug modes ## Debug Workflow 1. Reproduce the issue consistently 2. Check logs for error messages 3. Isolate the failing component 4. Test with minimal configuration 5. Apply fix and verify EOF } cmd_performance() { cat << 'EOF' # Piston — Performance Optimization ## Key Metrics - Response time / latency - Throughput / operations per second - Resource utilization (CPU, memory, I/O) - Error rate and retry frequency ## Optimization Strategies 1. **Caching**: Reduce redundant operations 2. **Batching**: Group small operations 3. **Indexing**: Speed up data lookups 4. **Compression**: Reduce data transfer size 5. **Parallel Processing**: Utilize multiple cores ## Monitoring - Set up baseline performance metrics - Configure alerts for anomalies - Track trends over time - Regular capacity planning reviews EOF } cmd_security() { cat << 'EOF' # Piston — Security Considerations ## Authentication & Authorization - Use strong, unique credentials - Implement role-based access control - Enable multi-factor authentication where possible - Regularly review and rotate credentials ## Data Protection - Encrypt data at rest and in transit - Implement proper backup procedures - Follow data retention policies - Sanitize inputs to prevent injection ## Network Security - Use firewalls and network segmentation - Monitor for suspicious activity - Keep all software patched and updated - Disable unnecessary services and ports EOF } cmd_migration() { cat << 'EOF' # Piston — Migration & Upgrade Guide ## Pre-Migration Checklist - [ ] Current system fully documented - [ ] Complete backup taken and verified - [ ] Target environment prepared - [ ] Rollback plan documented - [ ] Stakeholders notified ## Migration Steps 1. Prepare target environment 2. Export data from source 3. Transform data if needed 4. Import to target 5. Verify data integrity 6. Update configurations 7. Test all functionality 8. Switch traffic / go live ## Post-Migration - Monitor for errors and performance - Verify all integrations working - Update documentation - Decommission old system after confirmation EOF } cmd_cheatsheet() { cat << 'EOF' # Piston — Quick Reference ## Essential Commands | Command | Description | |---------|-------------| | help | Show available commands | | version | Display version info | | intro | Overview and fundamentals | | troubleshooting | Common problems and fixes | ## Common Workflows 1. **Setup**: install → configure → verify → test 2. **Daily**: check → monitor → report → review 3. **Issue**: diagnose → isolate → fix → verify → document ## Key Shortcuts - Use tab completion for commands - Check logs first when troubleshooting - Always backup before making changes - Document everything you change EOF } CMD="-help" shift 2>/dev/null || true case "$CMD" in intro) cmd_intro "$@" ;; quickstart) cmd_quickstart "$@" ;; patterns) cmd_patterns "$@" ;; debugging) cmd_debugging "$@" ;; performance) cmd_performance "$@" ;; security) cmd_security "$@" ;; migration) cmd_migration "$@" ;; cheatsheet) cmd_cheatsheet "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "piston v$VERSION — Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: piston help"; exit 1 ;; esac
Valve sizing and selection tool
--- name: "valve" version: "1.0.0" description: "Valve sizing and selection tool" author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [valve, industrial, cli, tool] category: "industrial" --- # valve Valve sizing and selection tool ## Commands ### `status` ```bash scripts/script.sh status ``` Show current status ### `add` ```bash scripts/script.sh add ``` Add new entry ### `list` ```bash scripts/script.sh list ``` List all entries ### `search` ```bash scripts/script.sh search ``` Search entries ### `remove` ```bash scripts/script.sh remove ``` Remove entry by number ### `export` ```bash scripts/script.sh export ``` Export data to file ### `stats` ```bash scripts/script.sh stats ``` Show statistics ### `config` ```bash scripts/script.sh config ``` View or set config ### `help` ```bash scripts/script.sh help ``` ### `version` ```bash scripts/script.sh version ``` ## Configuration Use `scripts/script.sh config <key> <value>` to set preferences. | Variable | Required | Description | |----------|----------|-------------| | `VALVE_DIR` | No | Data directory (default: ~/.valve/) | ## Data Storage All data stored in `~/.valve/` using JSONL format (one JSON object per line). ## Output Structured output to stdout. Exit code 0 on success, 1 on error. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # valve -- Valve sizing and selection tool # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="1.0.0" DATA_DIR="-$HOME/.valve" _ensure_dirs() { mkdir -p "$DATA_DIR"; } _save_entry() { _ensure_dirs local cmd="$1" val="$2" local ts=$(date '+%Y-%m-%d %H:%M:%S') printf '{"ts":"%s","cmd":"%s","val":"%s"}\n' "$ts" "$cmd" "$val" >> "$DATA_DIR/data.jsonl" } show_help() { cat << EOF valve v$VERSION -- Valve sizing and selection tool Usage: valve <command> [args] Commands: status Show current status add Add new entry list List all entries search Search entries remove Remove entry by number export Export data to file stats Show statistics config View or set config help Show this help version Show version Data: $DATA_DIR Powered by BytesAgain | bytesagain.com EOF } cmd_status() { echo "=== valve Status ===" echo " Version: $VERSION" echo " Data dir: $DATA_DIR" local entries=$(cat "$DATA_DIR"/*.jsonl 2>/dev/null | wc -l || echo 0) echo " Entries: $entries" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1 || echo empty)" } cmd_add() { local value="?Usage: valve add <entry>" shift || true _save_entry "add" "$value $*" local count=$(wc -l < "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Added: $value (entry #$count)" } cmd_list() { echo "=== Valve Entries ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local count=$(wc -l < "$DATA_DIR/data.jsonl") echo "Total: $count" echo "---" tail -20 "$DATA_DIR/data.jsonl" | while IFS= read -r line; do local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) local cmd=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo " [$ts] $cmd: $val" done else echo "No entries yet." fi } cmd_search() { local term="?Usage: valve search <term>" if [ -f "$DATA_DIR/data.jsonl" ]; then local matches=$(grep -ic "$term" "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Found: $matches matches" grep -i "$term" "$DATA_DIR/data.jsonl" 2>/dev/null | head -20 | while IFS= read -r line; do local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) echo " [$ts] $val" done else echo "No data to search." fi } cmd_remove() { local num="?Usage: valve remove <line-number>" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") if [ "$num" -ge 1 ] 2>/dev/null && [ "$num" -le "$total" ] 2>/dev/null; then sed -i "numd" "$DATA_DIR/data.jsonl" echo "Removed #$num ($((total-1)) remaining)" else echo "Invalid: $num (total: $total)"; fi else echo "No data."; fi } cmd_export() { local fmt="-json" local out="valve-export.$fmt" if [ ! -f "$DATA_DIR/data.jsonl" ]; then echo "No data."; return 0; fi case "$fmt" in json) cp "$DATA_DIR/data.jsonl" "$out" ;; csv) echo "timestamp,command,value" > "$out" while IFS= read -r line; do ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) c2=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) vl=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo "$ts,$c2,$vl" >> "$out" done < "$DATA_DIR/data.jsonl" ;; *) echo "Formats: json, csv"; return 1 ;; esac echo "Exported: $out ($(wc -c < "$out") bytes)" } cmd_stats() { echo "=== Valve Stats ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") local bytes=$(wc -c < "$DATA_DIR/data.jsonl") echo " Entries: $total" echo " Size: $bytes bytes" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" else echo " No data yet."; fi } cmd_config() { local key="-" val="-" local cfg="$DATA_DIR/config.txt" if [ -z "$key" ]; then echo "=== Config ===" if [ -f "$cfg" ]; then while IFS="=" read -r k v; do echo " $k=$v"; done < "$cfg" else echo " (empty — use config <key> <value>)"; fi elif [ -z "$val" ]; then grep "^key=" "$cfg" 2>/dev/null | cut -d= -f2- || echo "(not set)" else if [ -f "$cfg" ] && grep -q "^key=" "$cfg" 2>/dev/null; then sed -i "s|^key=.*|key=val|" "$cfg" else echo "key=val" >> "$cfg" fi echo "Set: $key=$val" fi } CMD="-help" shift 2>/dev/null || true _ensure_dirs case "$CMD" in status) cmd_status "$@" ;; add) cmd_add "$@" ;; list) cmd_list "$@" ;; search) cmd_search "$@" ;; remove) cmd_remove "$@" ;; export) cmd_export "$@" ;; stats) cmd_stats "$@" ;; config) cmd_config "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "valve v$VERSION -- Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: valve help"; exit 1 ;; esac
Use when calculating CNC speeds and feeds, selecting cutting tools, referencing G-code commands, looking up material cutting data, or computing machining par...
--- name: "CAM — Computer-Aided Manufacturing Toolpath Reference" description: "Use when calculating CNC speeds and feeds, selecting cutting tools, referencing G-code commands, looking up material cutting data, or computing machining parameters." version: "2.0.0" author: "BytesAgain" homepage: https://bytesagain.com source: https://github.com/bytesagain/ai-skills tags: ["cam", "cnc", "machining", "gcode", "manufacturing", "toolpath", "engineering"] --- # CAM — Computer-Aided Manufacturing Toolpath Reference CNC machining reference — speeds & feeds calculator, toolpath strategies, G-code command reference, material cutting data, and machining parameter computation. ## Commands ### speeds-feeds Calculate spindle speed (RPM) and feed rate. ```bash bash scripts/script.sh speeds-feeds 10 80 0.05 3 ``` ### toolpath Toolpath strategy reference (adaptive, pocket, contour, etc.). ```bash bash scripts/script.sh toolpath bash scripts/script.sh toolpath adaptive ``` ### gcode G-code and M-code command reference. ```bash bash scripts/script.sh gcode bash scripts/script.sh gcode G02 ``` ### materials Material cutting data — recommended SFM, chipload, depth of cut. ```bash bash scripts/script.sh materials bash scripts/script.sh materials aluminum ``` ### calculate General machining calculations (MRR, power, time). ```bash bash scripts/script.sh calculate mrr 10 2 0.5 800 bash scripts/script.sh calculate power 50 1500 ``` ### help Show all commands. ```bash bash scripts/script.sh help ``` ## Output - Calculated RPM, feed rates, and machining parameters - G-code reference with syntax and examples - Material-specific cutting recommendations ## Feedback https://bytesagain.com/feedback/ Powered by BytesAgain | bytesagain.com FILE:scripts/script.sh #!/usr/bin/env bash # cam — CAM: Computer-Aided Manufacturing Toolpath Reference # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="2.0.0" cmd_speeds_feeds() { local material="-" if [ -z "$material" ]; then cat << 'EOF' ═══════════════════════════════════════════════════ Cutting Speed & Feed Rate Reference ═══════════════════════════════════════════════════ Usage: bash scripts/script.sh speeds-feeds <material> Materials: aluminum, steel, stainless, titanium, brass, plastic, wood 【Speed Formula】 RPM = (SFM × 12) / (π × Diameter) SFM = Surface Feet per Minute (from material table) Diameter = Tool diameter in inches 【Feed Formula】 Feed Rate (IPM) = RPM × Number of Flutes × Chip Load per Tooth 【Quick Reference — HSS End Mills】 Material SFM Chip Load (per tooth, 1/2" EM) ────────────────────────────────────────────────────────── Aluminum 6061 600-1000 0.004-0.006" Mild Steel 80-120 0.002-0.004" Stainless 304 40-80 0.001-0.003" Titanium Ti-6Al 30-60 0.001-0.002" Brass 200-400 0.003-0.005" Plastics 500-800 0.005-0.010" Hardwood 400-600 0.004-0.008" 【Carbide Multiplier】 Carbide tools: SFM × 2.5-4x compared to HSS Coated carbide: additional 20-50% increase 📖 More skills: bytesagain.com EOF return fi MATERIAL="$material" python3 << 'PYEOF' import os, math material = os.environ["MATERIAL"].lower() data = { "aluminum": {"sfm_low": 600, "sfm_high": 1000, "chip_low": 0.004, "chip_high": 0.006, "grade": "6061-T6", "carbide_mult": 3.0}, "steel": {"sfm_low": 80, "sfm_high": 120, "chip_low": 0.002, "chip_high": 0.004, "grade": "1018/1045", "carbide_mult": 3.0}, "stainless":{"sfm_low": 40, "sfm_high": 80, "chip_low": 0.001, "chip_high": 0.003, "grade": "304/316", "carbide_mult": 2.5}, "titanium": {"sfm_low": 30, "sfm_high": 60, "chip_low": 0.001, "chip_high": 0.002, "grade": "Ti-6Al-4V", "carbide_mult": 2.0}, "brass": {"sfm_low": 200, "sfm_high": 400, "chip_low": 0.003, "chip_high": 0.005, "grade": "C360", "carbide_mult": 2.5}, "plastic": {"sfm_low": 500, "sfm_high": 800, "chip_low": 0.005, "chip_high": 0.010, "grade": "Acetal/Nylon", "carbide_mult": 1.5}, "wood": {"sfm_low": 400, "sfm_high": 600, "chip_low": 0.004, "chip_high": 0.008, "grade": "Hardwood", "carbide_mult": 1.5}, } if material not in data: print(f"Unknown material: {material}") print(f"Available: {', '.join(data.keys())}") exit(1) m = data[material] print("=" * 55) print(f" Speeds & Feeds — {material.title()} ({m['grade']})") print("=" * 55) for dia in [0.125, 0.25, 0.375, 0.5, 0.75, 1.0]: sfm_avg = (m["sfm_low"] + m["sfm_high"]) / 2 rpm = (sfm_avg * 12) / (math.pi * dia) chip_avg = (m["chip_low"] + m["chip_high"]) / 2 flutes = 2 if material in ["aluminum", "plastic", "wood"] else 4 feed = rpm * flutes * chip_avg print(f"\n Tool: {dia}\" end mill, {flutes} flute (HSS)") print(f" RPM: {int(rpm):,}") print(f" Feed: {feed:.1f} IPM") print(f" Chip: {chip_avg:.4f}\" per tooth") carb_rpm = int(rpm * m["carbide_mult"]) carb_feed = carb_rpm * flutes * chip_avg print(f" Carbide: {carb_rpm:,} RPM / {carb_feed:.1f} IPM") print(f"\n📖 More skills: bytesagain.com") PYEOF } cmd_toolpath() { cat << 'EOF' ═══════════════════════════════════════════════════ CNC Toolpath Strategies ═══════════════════════════════════════════════════ 【Roughing Strategies】 Adaptive/HSM (High Speed Machining): - Constant tool engagement angle - Light radial, full axial depth - 2-3x faster than conventional - Best for: pockets, large material removal - Stepover: 10-25% of tool diameter - Depth: up to 2x tool diameter Conventional Pocket: - Zigzag or spiral pattern - Moderate radial + axial depth - Higher tool wear than adaptive - Best for: simple pockets, soft materials Plunge Roughing: - Axial plunges like drilling - Converts radial load to axial - Best for: deep slots, weak setups 【Finishing Strategies】 Contour/Profile: - Follow part outline at final depth - Leave 0.005-0.010" stock for spring pass - Climb milling preferred Parallel/Raster: - Linear passes across surface - Stepover: 5-15% of tool diameter - Good for: flat areas, gentle curves Scallop: - Constant cusp height - Variable stepover based on curvature - Best for: complex 3D surfaces Pencil: - Traces inside corners and fillets - Removes scallop leftover material - Run after parallel/scallop finish 【Entry Methods】 Ramp: Gradual linear descent (safest) Helix: Circular descent into pocket (preferred for pockets) Plunge: Straight down (only for center-cutting tools) Pre-drill: Drill entry point first (for hard materials) 【Stepover Guidelines】 Operation Stepover (% of tool dia) ────────────────────────────────────────── Adaptive rough 10-25% Conv. rough 40-60% Finish parallel 5-15% Finish scallop 3-10% Pencil trace N/A (follows geometry) 📖 More skills: bytesagain.com EOF } cmd_gcode() { cat << 'EOF' ═══════════════════════════════════════════════════ G-Code Quick Reference (Fanuc/ISO) ═══════════════════════════════════════════════════ 【Motion Codes】 G00 Rapid positioning (no cutting) G01 Linear interpolation (cutting feed) G02 Circular interpolation CW G03 Circular interpolation CCW G04 Dwell (pause) — G04 P1000 = 1 second 【Plane Selection】 G17 XY plane (default, most milling) G18 XZ plane (lathe, side milling) G19 YZ plane 【Positioning】 G28 Return to machine home G30 Return to 2nd reference point G53 Machine coordinate positioning G54-G59 Work coordinate systems (offsets) 【Canned Cycles (Drilling)】 G73 High-speed peck drill (chip break) G76 Fine boring cycle G80 Cancel canned cycle G81 Simple drill cycle G82 Drill + dwell at bottom G83 Deep peck drilling (full retract) G84 Tapping cycle G85 Boring cycle (feed out) 【Compensation】 G40 Cancel cutter compensation G41 Cutter comp left (climb) G42 Cutter comp right (conventional) G43 Tool length compensation + G49 Cancel tool length comp 【Common M-Codes】 M00 Program stop (operator resume) M01 Optional stop M02 Program end M03 Spindle CW M04 Spindle CCW M05 Spindle stop M06 Tool change — M06 T01 M08 Coolant ON M09 Coolant OFF M30 Program end + rewind 【Example Program】 % O0001 (PART-NAME) G90 G21 G17 (Absolute, metric, XY plane) G28 G91 Z0 (Home Z) T01 M06 (Tool 1) G54 (Work offset) S8000 M03 (Spindle 8000 RPM CW) G43 H01 Z50.0 (Tool length comp) G00 X0 Y0 (Rapid to start) G00 Z5.0 (Rapid to clearance) G01 Z-2.0 F200 (Plunge at 200mm/min) G01 X50.0 F500 (Cut to X50) G01 Y50.0 (Cut to Y50) G00 Z50.0 (Retract) G28 G91 Z0 (Home Z) M05 (Spindle stop) M30 (End + rewind) % 📖 More skills: bytesagain.com EOF } cmd_materials() { cat << 'EOF' ═══════════════════════════════════════════════════ Material Machinability Reference ═══════════════════════════════════════════════════ 【Machinability Rating (100 = baseline 1212 steel)】 Material Rating Difficulty Coolant ────────────────────────────────────────────────────── Free-machining brass 300 Very Easy Dry/mist Aluminum 6061 200 Easy Flood/WD-40 Aluminum 7075 180 Easy Flood Free-machining steel 100 Medium Flood Mild steel 1018 80 Medium Flood Carbon steel 1045 65 Medium+ Flood 4140 alloy steel 55 Moderate Flood 304 stainless 45 Hard Flood+ 316 stainless 40 Hard Flood+ Inconel 718 12 Very Hard High-pressure Titanium Ti-6Al-4V 10 Very Hard Flood+ Hardened steel (>45 HRC) 5 Extreme Air blast 【Chip Control Guide】 Long stringy chips → Increase feed rate or add chip breaker Powder/dust chips → Decrease feed rate (overheating) Blue chips → Too much heat, reduce speed Silver/clean chips → Good parameters ✅ 【Coolant Selection】 Dry: Brass, some plastics, cast iron Mist/MQL: Aluminum (prevents BUE), hardened steel Flood: Steel, stainless, general purpose High-pressure: Titanium, Inconel, deep holes 【Work Hardening Materials ⚠️】 304/316 Stainless, Inconel, Titanium Rules: - Never dwell in cut (keep moving) - Use climb milling only - Sharp tools only (replace at first sign of wear) - Minimum chip load: don't rub, CUT - If previous pass work-hardened: take deeper cut to get under it 📖 More skills: bytesagain.com EOF } cmd_calculate() { local mode="-" if [ -z "$mode" ]; then echo "Usage: bash scripts/script.sh calculate <rpm|feed|time>" echo " rpm - Calculate RPM from SFM and diameter" echo " feed - Calculate feed rate from RPM and chip load" echo " time - Estimate machining time" return 1 fi case "$mode" in rpm) local sfm="-" dia="-" if [ -z "$sfm" ] || [ -z "$dia" ]; then echo "Usage: bash scripts/script.sh calculate rpm <SFM> <diameter_inches>" echo "Example: bash scripts/script.sh calculate rpm 600 0.5" return 1 fi SFM="$sfm" DIA="$dia" python3 << 'PYEOF' import os, math sfm = float(os.environ["SFM"]) dia = float(os.environ["DIA"]) rpm = (sfm * 12) / (math.pi * dia) print(f"\n SFM: {sfm}") print(f" Tool Diameter: {dia}\"") print(f" RPM = (SFM × 12) / (π × D)") print(f" RPM = ({sfm} × 12) / ({math.pi:.4f} × {dia})") print(f" RPM = {rpm:.0f}") print(f"\n📖 More skills: bytesagain.com") PYEOF ;; feed) local rpm="-" flutes="-" chipload="-" if [ -z "$rpm" ] || [ -z "$flutes" ] || [ -z "$chipload" ]; then echo "Usage: bash scripts/script.sh calculate feed <RPM> <flutes> <chipload>" echo "Example: bash scripts/script.sh calculate feed 5000 4 0.003" return 1 fi RPM_VAL="$rpm" FLUTES="$flutes" CHIP="$chipload" python3 << 'PYEOF' import os rpm = float(os.environ["RPM_VAL"]) flutes = int(os.environ["FLUTES"]) chip = float(os.environ["CHIP"]) feed = rpm * flutes * chip print(f"\n RPM: {rpm:.0f}") print(f" Flutes: {flutes}") print(f" Chip Load: {chip}\" per tooth") print(f" Feed Rate = RPM × Flutes × Chip Load") print(f" Feed Rate = {rpm:.0f} × {flutes} × {chip}") print(f" Feed Rate = {feed:.1f} IPM") print(f"\n📖 More skills: bytesagain.com") PYEOF ;; time) local length="-" feed="-" if [ -z "$length" ] || [ -z "$feed" ]; then echo "Usage: bash scripts/script.sh calculate time <cut_length_in> <feed_ipm>" echo "Example: bash scripts/script.sh calculate time 24 15.5" return 1 fi LEN="$length" FEED="$feed" python3 << 'PYEOF' import os length = float(os.environ["LEN"]) feed = float(os.environ["FEED"]) time_min = length / feed print(f"\n Cut Length: {length}\"") print(f" Feed Rate: {feed} IPM") print(f" Time = Length / Feed") print(f" Time = {time_min:.2f} minutes ({time_min*60:.0f} seconds)") print(f"\n📖 More skills: bytesagain.com") PYEOF ;; *) echo "Unknown mode: $mode (use rpm, feed, or time)" ;; esac } cmd_help() { cat << EOF CAM vVERSION — Computer-Aided Manufacturing Toolpath Reference Commands: speeds-feeds [mat] Cutting speeds & feeds by material toolpath CNC toolpath strategies (rough/finish) gcode G-code & M-code quick reference materials Material machinability ratings calculate <mode> Calculate RPM, feed rate, or machining time help Show this help version Show version Usage: bash scripts/script.sh speeds-feeds aluminum bash scripts/script.sh gcode bash scripts/script.sh calculate rpm 600 0.5 bash scripts/script.sh calculate feed 5000 4 0.003 Related skills: clawhub install gear clawhub install cnc-feeds Browse all: bytesagain.com Powered by BytesAgain | bytesagain.com EOF } case "-help" in speeds-feeds) shift; cmd_speeds_feeds "$@" ;; toolpath) cmd_toolpath ;; gcode) cmd_gcode ;; materials) cmd_materials ;; calculate) shift; cmd_calculate "$@" ;; version) echo "cam vVERSION" ;; help|*) cmd_help ;; esac
Supervisory control and data acquisition manager
--- name: "scada" version: "1.0.0" description: "Supervisory control and data acquisition manager" author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [scada, industrial, cli, tool] category: "industrial" --- # scada Supervisory control and data acquisition manager ## Commands ### `status` ```bash scripts/script.sh status ``` Show current status ### `add` ```bash scripts/script.sh add ``` Add new entry ### `list` ```bash scripts/script.sh list ``` List all entries ### `search` ```bash scripts/script.sh search ``` Search entries ### `remove` ```bash scripts/script.sh remove ``` Remove entry by number ### `export` ```bash scripts/script.sh export ``` Export data to file ### `stats` ```bash scripts/script.sh stats ``` Show statistics ### `config` ```bash scripts/script.sh config ``` View or set config ### `help` ```bash scripts/script.sh help ``` ### `version` ```bash scripts/script.sh version ``` ## Configuration Use `scripts/script.sh config <key> <value>` to set preferences. | Variable | Required | Description | |----------|----------|-------------| | `SCADA_DIR` | No | Data directory (default: ~/.scada/) | ## Data Storage All data stored in `~/.scada/` using JSONL format (one JSON object per line). ## Output Structured output to stdout. Exit code 0 on success, 1 on error. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # scada -- Supervisory control and data acquisition manager # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="1.0.0" DATA_DIR="-$HOME/.scada" _ensure_dirs() { mkdir -p "$DATA_DIR"; } _save_entry() { _ensure_dirs local cmd="$1" val="$2" local ts=$(date '+%Y-%m-%d %H:%M:%S') printf '{"ts":"%s","cmd":"%s","val":"%s"}\n' "$ts" "$cmd" "$val" >> "$DATA_DIR/data.jsonl" } show_help() { cat << EOF scada v$VERSION -- Supervisory control and data acquisition manager Usage: scada <command> [args] Commands: status Show current status add Add new entry list List all entries search Search entries remove Remove entry by number export Export data to file stats Show statistics config View or set config help Show this help version Show version Data: $DATA_DIR Powered by BytesAgain | bytesagain.com EOF } cmd_status() { echo "=== scada Status ===" echo " Version: $VERSION" echo " Data dir: $DATA_DIR" local entries=$(cat "$DATA_DIR"/*.jsonl 2>/dev/null | wc -l || echo 0) echo " Entries: $entries" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1 || echo empty)" } cmd_add() { local value="?Usage: scada add <entry>" shift || true _save_entry "add" "$value $*" local count=$(wc -l < "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Added: $value (entry #$count)" } cmd_list() { echo "=== Scada Entries ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local count=$(wc -l < "$DATA_DIR/data.jsonl") echo "Total: $count" echo "---" tail -20 "$DATA_DIR/data.jsonl" | while IFS= read -r line; do local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) local cmd=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo " [$ts] $cmd: $val" done else echo "No entries yet." fi } cmd_search() { local term="?Usage: scada search <term>" if [ -f "$DATA_DIR/data.jsonl" ]; then local matches=$(grep -ic "$term" "$DATA_DIR/data.jsonl" 2>/dev/null || echo 0) echo "Found: $matches matches" grep -i "$term" "$DATA_DIR/data.jsonl" 2>/dev/null | head -20 | while IFS= read -r line; do local val=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) local ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) echo " [$ts] $val" done else echo "No data to search." fi } cmd_remove() { local num="?Usage: scada remove <line-number>" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") if [ "$num" -ge 1 ] 2>/dev/null && [ "$num" -le "$total" ] 2>/dev/null; then sed -i "numd" "$DATA_DIR/data.jsonl" echo "Removed #$num ($((total-1)) remaining)" else echo "Invalid: $num (total: $total)"; fi else echo "No data."; fi } cmd_export() { local fmt="-json" local out="scada-export.$fmt" if [ ! -f "$DATA_DIR/data.jsonl" ]; then echo "No data."; return 0; fi case "$fmt" in json) cp "$DATA_DIR/data.jsonl" "$out" ;; csv) echo "timestamp,command,value" > "$out" while IFS= read -r line; do ts=$(echo "$line" | grep -o '"ts":"[^"]*' | cut -d'"' -f4) c2=$(echo "$line" | grep -o '"cmd":"[^"]*' | cut -d'"' -f4) vl=$(echo "$line" | grep -o '"val":"[^"]*' | cut -d'"' -f4) echo "$ts,$c2,$vl" >> "$out" done < "$DATA_DIR/data.jsonl" ;; *) echo "Formats: json, csv"; return 1 ;; esac echo "Exported: $out ($(wc -c < "$out") bytes)" } cmd_stats() { echo "=== Scada Stats ===" if [ -f "$DATA_DIR/data.jsonl" ]; then local total=$(wc -l < "$DATA_DIR/data.jsonl") local bytes=$(wc -c < "$DATA_DIR/data.jsonl") echo " Entries: $total" echo " Size: $bytes bytes" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" else echo " No data yet."; fi } cmd_config() { local key="-" val="-" local cfg="$DATA_DIR/config.txt" if [ -z "$key" ]; then echo "=== Config ===" if [ -f "$cfg" ]; then while IFS="=" read -r k v; do echo " $k=$v"; done < "$cfg" else echo " (empty — use config <key> <value>)"; fi elif [ -z "$val" ]; then grep "^key=" "$cfg" 2>/dev/null | cut -d= -f2- || echo "(not set)" else if [ -f "$cfg" ] && grep -q "^key=" "$cfg" 2>/dev/null; then sed -i "s|^key=.*|key=val|" "$cfg" else echo "key=val" >> "$cfg" fi echo "Set: $key=$val" fi } CMD="-help" shift 2>/dev/null || true _ensure_dirs case "$CMD" in status) cmd_status "$@" ;; add) cmd_add "$@" ;; list) cmd_list "$@" ;; search) cmd_search "$@" ;; remove) cmd_remove "$@" ;; export) cmd_export "$@" ;; stats) cmd_stats "$@" ;; config) cmd_config "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "scada v$VERSION -- Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: scada help"; exit 1 ;; esac
Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Typescript Backend Toolkit concepts, best practices, and implemen...
--- name: "typescript-backend-toolkit" version: "2.0.1" description: "Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Typescript Backend Toolkit concepts, best practices, and implemen..." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [typescript,backend,toolkit, reference] category: "devtools" --- # Typescript Backend Toolkit Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Typescript Backend Toolkit concepts, best practices, and implemen... No API keys or credentials required. ## Commands | Command | Description | |---------|-------------| | `intro` | intro reference | | `quickstart` | quickstart reference | | `patterns` | patterns reference | | `debugging` | debugging reference | | `performance` | performance reference | | `security` | security reference | | `migration` | migration reference | | `cheatsheet` | cheatsheet reference | ## Output Format All commands output plain-text reference documentation via heredoc. No external API calls, no credentials needed, no network access. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # typescript-backend-toolkit — Typescript Backend Toolkit reference tool. Use when working with typescript backend toolkit in devtools contexts. # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="2.0.0" show_help() { cat << 'HELPEOF' typescript-backend-toolkit v$VERSION — Typescript Backend Toolkit Reference Tool Usage: typescript-backend-toolkit <command> Commands: intro Overview and core concepts quickstart Getting started guide patterns Common patterns and best practices debugging Debugging and troubleshooting performance Performance optimization tips security Security considerations migration Migration and upgrade guide cheatsheet Quick reference cheat sheet help Show this help version Show version Powered by BytesAgain | bytesagain.com HELPEOF } cmd_intro() { cat << 'EOF' # Typescript Backend Toolkit — Overview ## What is Typescript Backend Toolkit? Typescript Backend Toolkit (typescript-backend-toolkit) is a specialized tool/concept in the devtools domain. It provides essential capabilities for professionals working with typescript backend toolkit. ## Key Concepts - Core typescript backend toolkit principles and fundamentals - How typescript backend toolkit fits into the broader devtools ecosystem - Essential terminology every practitioner should know ## Why Typescript Backend Toolkit Matters Understanding typescript backend toolkit is critical for: - Improving efficiency in devtools workflows - Reducing errors and downtime - Meeting industry standards and compliance requirements - Enabling better decision-making with accurate data ## Getting Started 1. Understand the basic typescript backend toolkit concepts 2. Learn the standard tools and interfaces 3. Practice with common scenarios 4. Review safety and compliance requirements EOF } cmd_quickstart() { cat << 'EOF' # Typescript Backend Toolkit — Quick Start Guide ## Prerequisites - Basic understanding of devtools concepts - Required tools and access credentials - System meeting minimum requirements ## Installation 1. Download or clone the typescript backend toolkit package 2. Install dependencies 3. Configure initial settings 4. Verify installation ## First Steps 1. Run the hello-world example 2. Review the default configuration 3. Try a simple real-world task 4. Explore available commands and options ## Next Steps - Read the full documentation - Join the community forum - Try advanced features - Set up automated workflows EOF } cmd_patterns() { cat << 'EOF' # Typescript Backend Toolkit — Common Patterns & Best Practices ## Design Patterns 1. **Standard Pattern**: The most common approach for typescript backend toolkit 2. **Scalable Pattern**: For high-volume or distributed scenarios 3. **Resilient Pattern**: For fault-tolerant implementations ## Best Practices - Follow the principle of least privilege - Use version control for all configurations - Implement comprehensive logging - Test changes in staging before production - Document all custom configurations ## Anti-Patterns to Avoid - Hardcoding credentials or configuration - Skipping validation and error handling - Ignoring monitoring and alerting - Making changes without documentation - Over-engineering simple solutions EOF } cmd_debugging() { cat << 'EOF' # Typescript Backend Toolkit — Debugging Guide ## Common Errors 1. **Connection refused**: Check service status and network 2. **Permission denied**: Verify credentials and access rights 3. **Timeout**: Check network, increase limits, optimize queries 4. **Invalid input**: Validate data format and encoding ## Debugging Tools - Built-in logging and diagnostics - Network analysis tools (tcpdump, wireshark) - System monitoring (top, htop, iostat) - Application-specific debug modes ## Debug Workflow 1. Reproduce the issue consistently 2. Check logs for error messages 3. Isolate the failing component 4. Test with minimal configuration 5. Apply fix and verify EOF } cmd_performance() { cat << 'EOF' # Typescript Backend Toolkit — Performance Optimization ## Key Metrics - Response time / latency - Throughput / operations per second - Resource utilization (CPU, memory, I/O) - Error rate and retry frequency ## Optimization Strategies 1. **Caching**: Reduce redundant operations 2. **Batching**: Group small operations 3. **Indexing**: Speed up data lookups 4. **Compression**: Reduce data transfer size 5. **Parallel Processing**: Utilize multiple cores ## Monitoring - Set up baseline performance metrics - Configure alerts for anomalies - Track trends over time - Regular capacity planning reviews EOF } cmd_security() { cat << 'EOF' # Typescript Backend Toolkit — Security Considerations ## Authentication & Authorization - Use strong, unique credentials - Implement role-based access control - Enable multi-factor authentication where possible - Regularly review and rotate credentials ## Data Protection - Encrypt data at rest and in transit - Implement proper backup procedures - Follow data retention policies - Sanitize inputs to prevent injection ## Network Security - Use firewalls and network segmentation - Monitor for suspicious activity - Keep all software patched and updated - Disable unnecessary services and ports EOF } cmd_migration() { cat << 'EOF' # Typescript Backend Toolkit — Migration & Upgrade Guide ## Pre-Migration Checklist - [ ] Current system fully documented - [ ] Complete backup taken and verified - [ ] Target environment prepared - [ ] Rollback plan documented - [ ] Stakeholders notified ## Migration Steps 1. Prepare target environment 2. Export data from source 3. Transform data if needed 4. Import to target 5. Verify data integrity 6. Update configurations 7. Test all functionality 8. Switch traffic / go live ## Post-Migration - Monitor for errors and performance - Verify all integrations working - Update documentation - Decommission old system after confirmation EOF } cmd_cheatsheet() { cat << 'EOF' # Typescript Backend Toolkit — Quick Reference ## Essential Commands | Command | Description | |---------|-------------| | help | Show available commands | | version | Display version info | | intro | Overview and fundamentals | | troubleshooting | Common problems and fixes | ## Common Workflows 1. **Setup**: install → configure → verify → test 2. **Daily**: check → monitor → report → review 3. **Issue**: diagnose → isolate → fix → verify → document ## Key Shortcuts - Use tab completion for commands - Check logs first when troubleshooting - Always backup before making changes - Document everything you change EOF } CMD="-help" shift 2>/dev/null || true case "$CMD" in intro) cmd_intro "$@" ;; quickstart) cmd_quickstart "$@" ;; patterns) cmd_patterns "$@" ;; debugging) cmd_debugging "$@" ;; performance) cmd_performance "$@" ;; security) cmd_security "$@" ;; migration) cmd_migration "$@" ;; cheatsheet) cmd_cheatsheet "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "typescript-backend-toolkit v$VERSION — Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: typescript-backend-toolkit help"; exit 1 ;; esac
👩🚀 The tiny all-in-one development tool for modern web apps. web-module-runner, javascript, build-tool, esmodules, preact.
--- version: "1.0.0" name: Wmr description: "👩🚀 The tiny all-in-one development tool for modern web apps. web-module-runner, javascript, build-tool, esmodules, preact." --- # Web Module Runner 👩🚀 The tiny all-in-one development tool for modern web apps — a versatile utility toolkit for running, checking, converting, analyzing, and managing web module tasks from your terminal. ## Commands All commands accept optional `<input>` arguments. Without arguments, they display recent entries from their log. | Command | Description | |---------|-------------| | `web-module-runner run <input>` | Run a web module task and log the result | | `web-module-runner check <input>` | Check a module, dependency, or configuration | | `web-module-runner convert <input>` | Convert between module formats or configurations | | `web-module-runner analyze <input>` | Analyze a module, bundle, or dependency tree | | `web-module-runner generate <input>` | Generate boilerplate, configs, or module scaffolds | | `web-module-runner preview <input>` | Preview output or rendered results | | `web-module-runner batch <input>` | Batch process multiple items at once | | `web-module-runner compare <input>` | Compare two modules, builds, or configurations | | `web-module-runner export <input>` | Log an export operation | | `web-module-runner config <input>` | Log or update configuration entries | | `web-module-runner status <input>` | Log status check results | | `web-module-runner report <input>` | Generate or log a report entry | | `web-module-runner stats` | Show summary statistics across all log files | | `web-module-runner export json\|csv\|txt` | Export all data in JSON, CSV, or plain text format | | `web-module-runner search <term>` | Search across all log entries for a keyword | | `web-module-runner recent` | Show the 20 most recent activity entries | | `web-module-runner help` | Show all available commands | | `web-module-runner version` | Print version (v2.0.0) | ## Data Storage All data is stored locally in `~/.local/share/web-module-runner/`. Each command maintains its own `.log` file with timestamped entries in `YYYY-MM-DD HH:MM|value` format. A unified `history.log` tracks all operations across commands. **Export formats supported:** - **JSON** — Array of objects with `type`, `time`, and `value` fields - **CSV** — Standard comma-separated with `type,time,value` header - **TXT** — Human-readable grouped by command type ## Requirements - Bash 4.0+ with `set -euo pipefail` (strict mode) - Standard Unix utilities: `date`, `wc`, `du`, `grep`, `tail`, `sed`, `cat` - No external dependencies — runs on any POSIX-compliant system ## When to Use 1. **Tracking web module build tasks** — Log and review module runs, builds, and conversions over time 2. **Comparing module configurations** — Use `compare` and `analyze` to record side-by-side evaluations 3. **Batch processing workflows** — Record batch operations and review history for repeatability 4. **Generating reports from logged data** — Export accumulated logs to JSON/CSV for downstream analysis 5. **Quick health checks** — Use `status` and `stats` to verify the toolkit state and entry counts at a glance ## Examples ```bash # Run a module task and log it web-module-runner run "build main.js --target es2020" # Analyze a dependency web-module-runner analyze "[email protected] bundle size" # Batch process multiple modules web-module-runner batch "convert all legacy modules to ESM" # Search for previous entries containing a keyword web-module-runner search "preact" # Export everything to JSON for external tooling web-module-runner export json # View summary statistics web-module-runner stats # Show recent activity log web-module-runner recent ``` ## How It Works Web Module Runner stores all data locally in `~/.local/share/web-module-runner/`. Each command creates a dedicated log file (e.g., `run.log`, `check.log`, `analyze.log`). Every entry is timestamped and appended, providing a full audit trail of all operations. The `history.log` file aggregates activity across all commands for unified tracking. When called without arguments, each command displays its most recent 20 entries, making it easy to review past work without needing to manually inspect log files. ## Output All output goes to stdout. Redirect to a file with: ```bash web-module-runner stats > report.txt web-module-runner export json # writes to ~/.local/share/web-module-runner/export.json ``` --- Powered by BytesAgain | bytesagain.com | [email protected] FILE:scripts/script.sh #!/usr/bin/env bash # Web Module Runner — utility tool # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail DATA_DIR="HOME/.local/share/web-module-runner" mkdir -p "$DATA_DIR" _log() { echo "$(date '+%m-%d %H:%M') $1: $2" >> "$DATA_DIR/history.log"; } _version() { echo "web-module-runner v2.0.0"; } _help() { echo "Web Module Runner v2.0.0 — utility toolkit" echo "" echo "Usage: web-module-runner <command> [args]" echo "" echo "Commands:" echo " run Run" echo " check Check" echo " convert Convert" echo " analyze Analyze" echo " generate Generate" echo " preview Preview" echo " batch Batch" echo " compare Compare" echo " export Export" echo " config Config" echo " status Status" echo " report Report" echo " stats Summary statistics" echo " export <fmt> Export (json|csv|txt)" echo " search <term> Search entries" echo " recent Recent activity" echo " status Health check" echo " help Show this help" echo " version Show version" echo "" echo "Data: $DATA_DIR" } _stats() { echo "=== Web Module Runner Stats ===" local total=0 for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local name=$(basename "$f" .log) local c=$(wc -l < "$f") total=$((total + c)) echo " $name: $c entries" done echo " ---" echo " Total: $total entries" echo " Data size: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" } _export() { local fmt="-json" local out="$DATA_DIR/export.$fmt" case "$fmt" in json) echo "[" > "$out" local first=1 for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local name=$(basename "$f" .log) while IFS='|' read -r ts val; do [ $first -eq 1 ] && first=0 || echo "," >> "$out" printf ' {"type":"%s","time":"%s","value":"%s"}' "$name" "$ts" "$val" >> "$out" done < "$f" done echo "\n]" >> "$out" ;; csv) echo "type,time,value" > "$out" for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local name=$(basename "$f" .log) while IFS='|' read -r ts val; do echo "$name,$ts,$val" >> "$out"; done < "$f" done ;; txt) echo "=== Web Module Runner Export ===" > "$out" for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue echo "--- $(basename "$f" .log) ---" >> "$out" cat "$f" >> "$out" done ;; *) echo "Formats: json, csv, txt"; return 1 ;; esac echo "Exported to $out ($(wc -c < "$out") bytes)" } _status() { echo "=== Web Module Runner Status ===" echo " Version: v2.0.0" echo " Data dir: $DATA_DIR" echo " Entries: $(cat "$DATA_DIR"/*.log 2>/dev/null | wc -l) total" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" echo " Last: $(tail -1 "$DATA_DIR/history.log" 2>/dev/null || echo never)" echo " Status: OK" } _search() { local term="?Usage: web-module-runner search <term>" echo "Searching for: $term" for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local m=$(grep -i "$term" "$f" 2>/dev/null || true) if [ -n "$m" ]; then echo " --- $(basename "$f" .log) ---" echo "$m" | sed 's/^/ /' fi done } _recent() { echo "=== Recent Activity ===" tail -20 "$DATA_DIR/history.log" 2>/dev/null | sed 's/^/ /' || echo " No activity yet." } case "-help" in run) shift if [ $# -eq 0 ]; then echo "Recent run entries:" tail -20 "$DATA_DIR/run.log" 2>/dev/null || echo " No entries yet. Use: web-module-runner run <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/run.log" local total=$(wc -l < "$DATA_DIR/run.log") echo " [Web Module Runner] run: $input" echo " Saved. Total run entries: $total" _log "run" "$input" fi ;; check) shift if [ $# -eq 0 ]; then echo "Recent check entries:" tail -20 "$DATA_DIR/check.log" 2>/dev/null || echo " No entries yet. Use: web-module-runner check <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/check.log" local total=$(wc -l < "$DATA_DIR/check.log") echo " [Web Module Runner] check: $input" echo " Saved. Total check entries: $total" _log "check" "$input" fi ;; convert) shift if [ $# -eq 0 ]; then echo "Recent convert entries:" tail -20 "$DATA_DIR/convert.log" 2>/dev/null || echo " No entries yet. Use: web-module-runner convert <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/convert.log" local total=$(wc -l < "$DATA_DIR/convert.log") echo " [Web Module Runner] convert: $input" echo " Saved. Total convert entries: $total" _log "convert" "$input" fi ;; analyze) shift if [ $# -eq 0 ]; then echo "Recent analyze entries:" tail -20 "$DATA_DIR/analyze.log" 2>/dev/null || echo " No entries yet. Use: web-module-runner analyze <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/analyze.log" local total=$(wc -l < "$DATA_DIR/analyze.log") echo " [Web Module Runner] analyze: $input" echo " Saved. Total analyze entries: $total" _log "analyze" "$input" fi ;; generate) shift if [ $# -eq 0 ]; then echo "Recent generate entries:" tail -20 "$DATA_DIR/generate.log" 2>/dev/null || echo " No entries yet. Use: web-module-runner generate <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/generate.log" local total=$(wc -l < "$DATA_DIR/generate.log") echo " [Web Module Runner] generate: $input" echo " Saved. Total generate entries: $total" _log "generate" "$input" fi ;; preview) shift if [ $# -eq 0 ]; then echo "Recent preview entries:" tail -20 "$DATA_DIR/preview.log" 2>/dev/null || echo " No entries yet. Use: web-module-runner preview <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/preview.log" local total=$(wc -l < "$DATA_DIR/preview.log") echo " [Web Module Runner] preview: $input" echo " Saved. Total preview entries: $total" _log "preview" "$input" fi ;; batch) shift if [ $# -eq 0 ]; then echo "Recent batch entries:" tail -20 "$DATA_DIR/batch.log" 2>/dev/null || echo " No entries yet. Use: web-module-runner batch <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/batch.log" local total=$(wc -l < "$DATA_DIR/batch.log") echo " [Web Module Runner] batch: $input" echo " Saved. Total batch entries: $total" _log "batch" "$input" fi ;; compare) shift if [ $# -eq 0 ]; then echo "Recent compare entries:" tail -20 "$DATA_DIR/compare.log" 2>/dev/null || echo " No entries yet. Use: web-module-runner compare <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/compare.log" local total=$(wc -l < "$DATA_DIR/compare.log") echo " [Web Module Runner] compare: $input" echo " Saved. Total compare entries: $total" _log "compare" "$input" fi ;; export) shift if [ $# -eq 0 ]; then echo "Recent export entries:" tail -20 "$DATA_DIR/export.log" 2>/dev/null || echo " No entries yet. Use: web-module-runner export <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/export.log" local total=$(wc -l < "$DATA_DIR/export.log") echo " [Web Module Runner] export: $input" echo " Saved. Total export entries: $total" _log "export" "$input" fi ;; config) shift if [ $# -eq 0 ]; then echo "Recent config entries:" tail -20 "$DATA_DIR/config.log" 2>/dev/null || echo " No entries yet. Use: web-module-runner config <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/config.log" local total=$(wc -l < "$DATA_DIR/config.log") echo " [Web Module Runner] config: $input" echo " Saved. Total config entries: $total" _log "config" "$input" fi ;; status) shift if [ $# -eq 0 ]; then echo "Recent status entries:" tail -20 "$DATA_DIR/status.log" 2>/dev/null || echo " No entries yet. Use: web-module-runner status <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/status.log" local total=$(wc -l < "$DATA_DIR/status.log") echo " [Web Module Runner] status: $input" echo " Saved. Total status entries: $total" _log "status" "$input" fi ;; report) shift if [ $# -eq 0 ]; then echo "Recent report entries:" tail -20 "$DATA_DIR/report.log" 2>/dev/null || echo " No entries yet. Use: web-module-runner report <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/report.log" local total=$(wc -l < "$DATA_DIR/report.log") echo " [Web Module Runner] report: $input" echo " Saved. Total report entries: $total" _log "report" "$input" fi ;; stats) _stats ;; export) shift; _export "$@" ;; search) shift; _search "$@" ;; recent) _recent ;; status) _status ;; help|--help|-h) _help ;; version|--version|-v) _version ;; *) echo "Unknown: $1 — run 'web-module-runner help'" exit 1 ;; esac
Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Traceroute Visual concepts, best practices, and implementation pa...
--- name: "traceroute-visual" version: "2.0.1" description: "Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Traceroute Visual concepts, best practices, and implementation pa..." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [traceroute,visual, reference] category: "devtools" --- # Traceroute Visual Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Traceroute Visual concepts, best practices, and implementation pa... No API keys or credentials required. ## Commands | Command | Description | |---------|-------------| | `intro` | intro reference | | `quickstart` | quickstart reference | | `patterns` | patterns reference | | `debugging` | debugging reference | | `performance` | performance reference | | `security` | security reference | | `migration` | migration reference | | `cheatsheet` | cheatsheet reference | ## Output Format All commands output plain-text reference documentation via heredoc. No external API calls, no credentials needed, no network access. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # traceroute-visual — Traceroute Visual reference tool. Use when working with traceroute visual in devtools contexts. # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="2.0.0" show_help() { cat << 'HELPEOF' traceroute-visual v$VERSION — Traceroute Visual Reference Tool Usage: traceroute-visual <command> Commands: intro Overview and core concepts quickstart Getting started guide patterns Common patterns and best practices debugging Debugging and troubleshooting performance Performance optimization tips security Security considerations migration Migration and upgrade guide cheatsheet Quick reference cheat sheet help Show this help version Show version Powered by BytesAgain | bytesagain.com HELPEOF } cmd_intro() { cat << 'EOF' # Traceroute Visual — Overview ## What is Traceroute Visual? Traceroute Visual (traceroute-visual) is a specialized tool/concept in the devtools domain. It provides essential capabilities for professionals working with traceroute visual. ## Key Concepts - Core traceroute visual principles and fundamentals - How traceroute visual fits into the broader devtools ecosystem - Essential terminology every practitioner should know ## Why Traceroute Visual Matters Understanding traceroute visual is critical for: - Improving efficiency in devtools workflows - Reducing errors and downtime - Meeting industry standards and compliance requirements - Enabling better decision-making with accurate data ## Getting Started 1. Understand the basic traceroute visual concepts 2. Learn the standard tools and interfaces 3. Practice with common scenarios 4. Review safety and compliance requirements EOF } cmd_quickstart() { cat << 'EOF' # Traceroute Visual — Quick Start Guide ## Prerequisites - Basic understanding of devtools concepts - Required tools and access credentials - System meeting minimum requirements ## Installation 1. Download or clone the traceroute visual package 2. Install dependencies 3. Configure initial settings 4. Verify installation ## First Steps 1. Run the hello-world example 2. Review the default configuration 3. Try a simple real-world task 4. Explore available commands and options ## Next Steps - Read the full documentation - Join the community forum - Try advanced features - Set up automated workflows EOF } cmd_patterns() { cat << 'EOF' # Traceroute Visual — Common Patterns & Best Practices ## Design Patterns 1. **Standard Pattern**: The most common approach for traceroute visual 2. **Scalable Pattern**: For high-volume or distributed scenarios 3. **Resilient Pattern**: For fault-tolerant implementations ## Best Practices - Follow the principle of least privilege - Use version control for all configurations - Implement comprehensive logging - Test changes in staging before production - Document all custom configurations ## Anti-Patterns to Avoid - Hardcoding credentials or configuration - Skipping validation and error handling - Ignoring monitoring and alerting - Making changes without documentation - Over-engineering simple solutions EOF } cmd_debugging() { cat << 'EOF' # Traceroute Visual — Debugging Guide ## Common Errors 1. **Connection refused**: Check service status and network 2. **Permission denied**: Verify credentials and access rights 3. **Timeout**: Check network, increase limits, optimize queries 4. **Invalid input**: Validate data format and encoding ## Debugging Tools - Built-in logging and diagnostics - Network analysis tools (tcpdump, wireshark) - System monitoring (top, htop, iostat) - Application-specific debug modes ## Debug Workflow 1. Reproduce the issue consistently 2. Check logs for error messages 3. Isolate the failing component 4. Test with minimal configuration 5. Apply fix and verify EOF } cmd_performance() { cat << 'EOF' # Traceroute Visual — Performance Optimization ## Key Metrics - Response time / latency - Throughput / operations per second - Resource utilization (CPU, memory, I/O) - Error rate and retry frequency ## Optimization Strategies 1. **Caching**: Reduce redundant operations 2. **Batching**: Group small operations 3. **Indexing**: Speed up data lookups 4. **Compression**: Reduce data transfer size 5. **Parallel Processing**: Utilize multiple cores ## Monitoring - Set up baseline performance metrics - Configure alerts for anomalies - Track trends over time - Regular capacity planning reviews EOF } cmd_security() { cat << 'EOF' # Traceroute Visual — Security Considerations ## Authentication & Authorization - Use strong, unique credentials - Implement role-based access control - Enable multi-factor authentication where possible - Regularly review and rotate credentials ## Data Protection - Encrypt data at rest and in transit - Implement proper backup procedures - Follow data retention policies - Sanitize inputs to prevent injection ## Network Security - Use firewalls and network segmentation - Monitor for suspicious activity - Keep all software patched and updated - Disable unnecessary services and ports EOF } cmd_migration() { cat << 'EOF' # Traceroute Visual — Migration & Upgrade Guide ## Pre-Migration Checklist - [ ] Current system fully documented - [ ] Complete backup taken and verified - [ ] Target environment prepared - [ ] Rollback plan documented - [ ] Stakeholders notified ## Migration Steps 1. Prepare target environment 2. Export data from source 3. Transform data if needed 4. Import to target 5. Verify data integrity 6. Update configurations 7. Test all functionality 8. Switch traffic / go live ## Post-Migration - Monitor for errors and performance - Verify all integrations working - Update documentation - Decommission old system after confirmation EOF } cmd_cheatsheet() { cat << 'EOF' # Traceroute Visual — Quick Reference ## Essential Commands | Command | Description | |---------|-------------| | help | Show available commands | | version | Display version info | | intro | Overview and fundamentals | | troubleshooting | Common problems and fixes | ## Common Workflows 1. **Setup**: install → configure → verify → test 2. **Daily**: check → monitor → report → review 3. **Issue**: diagnose → isolate → fix → verify → document ## Key Shortcuts - Use tab completion for commands - Check logs first when troubleshooting - Always backup before making changes - Document everything you change EOF } CMD="-help" shift 2>/dev/null || true case "$CMD" in intro) cmd_intro "$@" ;; quickstart) cmd_quickstart "$@" ;; patterns) cmd_patterns "$@" ;; debugging) cmd_debugging "$@" ;; performance) cmd_performance "$@" ;; security) cmd_security "$@" ;; migration) cmd_migration "$@" ;; cheatsheet) cmd_cheatsheet "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "traceroute-visual v$VERSION — Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: traceroute-visual help"; exit 1 ;; esac
Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Sysinfo Fetch concepts, best practices, and implementation patterns.
--- name: "sysinfo-fetch" version: "2.0.1" description: "Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Sysinfo Fetch concepts, best practices, and implementation patterns." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [sysinfo,fetch, reference] category: "devtools" --- # Sysinfo Fetch Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Sysinfo Fetch concepts, best practices, and implementation patterns. No API keys or credentials required. ## Commands | Command | Description | |---------|-------------| | `intro` | intro reference | | `quickstart` | quickstart reference | | `patterns` | patterns reference | | `debugging` | debugging reference | | `performance` | performance reference | | `security` | security reference | | `migration` | migration reference | | `cheatsheet` | cheatsheet reference | ## Output Format All commands output plain-text reference documentation via heredoc. No external API calls, no credentials needed, no network access. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # sysinfo-fetch — Sysinfo Fetch reference tool. Use when working with sysinfo fetch in sysops contexts. # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="2.0.0" show_help() { cat << 'HELPEOF' sysinfo-fetch v$VERSION — Sysinfo Fetch Reference Tool Usage: sysinfo-fetch <command> Commands: intro Overview and core concepts quickstart Getting started guide patterns Common patterns and best practices debugging Debugging and troubleshooting performance Performance optimization tips security Security considerations migration Migration and upgrade guide cheatsheet Quick reference cheat sheet help Show this help version Show version Powered by BytesAgain | bytesagain.com HELPEOF } cmd_intro() { cat << 'EOF' # Sysinfo Fetch — Overview ## What is Sysinfo Fetch? Sysinfo Fetch (sysinfo-fetch) is a specialized tool/concept in the sysops domain. It provides essential capabilities for professionals working with sysinfo fetch. ## Key Concepts - Core sysinfo fetch principles and fundamentals - How sysinfo fetch fits into the broader sysops ecosystem - Essential terminology every practitioner should know ## Why Sysinfo Fetch Matters Understanding sysinfo fetch is critical for: - Improving efficiency in sysops workflows - Reducing errors and downtime - Meeting industry standards and compliance requirements - Enabling better decision-making with accurate data ## Getting Started 1. Understand the basic sysinfo fetch concepts 2. Learn the standard tools and interfaces 3. Practice with common scenarios 4. Review safety and compliance requirements EOF } cmd_quickstart() { cat << 'EOF' # Sysinfo Fetch — Quick Start Guide ## Prerequisites - Basic understanding of sysops concepts - Required tools and access credentials - System meeting minimum requirements ## Installation 1. Download or clone the sysinfo fetch package 2. Install dependencies 3. Configure initial settings 4. Verify installation ## First Steps 1. Run the hello-world example 2. Review the default configuration 3. Try a simple real-world task 4. Explore available commands and options ## Next Steps - Read the full documentation - Join the community forum - Try advanced features - Set up automated workflows EOF } cmd_patterns() { cat << 'EOF' # Sysinfo Fetch — Common Patterns & Best Practices ## Design Patterns 1. **Standard Pattern**: The most common approach for sysinfo fetch 2. **Scalable Pattern**: For high-volume or distributed scenarios 3. **Resilient Pattern**: For fault-tolerant implementations ## Best Practices - Follow the principle of least privilege - Use version control for all configurations - Implement comprehensive logging - Test changes in staging before production - Document all custom configurations ## Anti-Patterns to Avoid - Hardcoding credentials or configuration - Skipping validation and error handling - Ignoring monitoring and alerting - Making changes without documentation - Over-engineering simple solutions EOF } cmd_debugging() { cat << 'EOF' # Sysinfo Fetch — Debugging Guide ## Common Errors 1. **Connection refused**: Check service status and network 2. **Permission denied**: Verify credentials and access rights 3. **Timeout**: Check network, increase limits, optimize queries 4. **Invalid input**: Validate data format and encoding ## Debugging Tools - Built-in logging and diagnostics - Network analysis tools (tcpdump, wireshark) - System monitoring (top, htop, iostat) - Application-specific debug modes ## Debug Workflow 1. Reproduce the issue consistently 2. Check logs for error messages 3. Isolate the failing component 4. Test with minimal configuration 5. Apply fix and verify EOF } cmd_performance() { cat << 'EOF' # Sysinfo Fetch — Performance Optimization ## Key Metrics - Response time / latency - Throughput / operations per second - Resource utilization (CPU, memory, I/O) - Error rate and retry frequency ## Optimization Strategies 1. **Caching**: Reduce redundant operations 2. **Batching**: Group small operations 3. **Indexing**: Speed up data lookups 4. **Compression**: Reduce data transfer size 5. **Parallel Processing**: Utilize multiple cores ## Monitoring - Set up baseline performance metrics - Configure alerts for anomalies - Track trends over time - Regular capacity planning reviews EOF } cmd_security() { cat << 'EOF' # Sysinfo Fetch — Security Considerations ## Authentication & Authorization - Use strong, unique credentials - Implement role-based access control - Enable multi-factor authentication where possible - Regularly review and rotate credentials ## Data Protection - Encrypt data at rest and in transit - Implement proper backup procedures - Follow data retention policies - Sanitize inputs to prevent injection ## Network Security - Use firewalls and network segmentation - Monitor for suspicious activity - Keep all software patched and updated - Disable unnecessary services and ports EOF } cmd_migration() { cat << 'EOF' # Sysinfo Fetch — Migration & Upgrade Guide ## Pre-Migration Checklist - [ ] Current system fully documented - [ ] Complete backup taken and verified - [ ] Target environment prepared - [ ] Rollback plan documented - [ ] Stakeholders notified ## Migration Steps 1. Prepare target environment 2. Export data from source 3. Transform data if needed 4. Import to target 5. Verify data integrity 6. Update configurations 7. Test all functionality 8. Switch traffic / go live ## Post-Migration - Monitor for errors and performance - Verify all integrations working - Update documentation - Decommission old system after confirmation EOF } cmd_cheatsheet() { cat << 'EOF' # Sysinfo Fetch — Quick Reference ## Essential Commands | Command | Description | |---------|-------------| | help | Show available commands | | version | Display version info | | intro | Overview and fundamentals | | troubleshooting | Common problems and fixes | ## Common Workflows 1. **Setup**: install → configure → verify → test 2. **Daily**: check → monitor → report → review 3. **Issue**: diagnose → isolate → fix → verify → document ## Key Shortcuts - Use tab completion for commands - Check logs first when troubleshooting - Always backup before making changes - Document everything you change EOF } CMD="-help" shift 2>/dev/null || true case "$CMD" in intro) cmd_intro "$@" ;; quickstart) cmd_quickstart "$@" ;; patterns) cmd_patterns "$@" ;; debugging) cmd_debugging "$@" ;; performance) cmd_performance "$@" ;; security) cmd_security "$@" ;; migration) cmd_migration "$@" ;; cheatsheet) cmd_cheatsheet "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "sysinfo-fetch v$VERSION — Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: sysinfo-fetch help"; exit 1 ;; esac
Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Server Dashboard concepts, best practices, and implementation pat...
--- name: "server-dashboard" version: "2.0.1" description: "Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Server Dashboard concepts, best practices, and implementation pat..." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [server,dashboard, reference] category: "devtools" --- # Server Dashboard Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Server Dashboard concepts, best practices, and implementation pat... No API keys or credentials required. ## Commands | Command | Description | |---------|-------------| | `intro` | intro reference | | `quickstart` | quickstart reference | | `patterns` | patterns reference | | `debugging` | debugging reference | | `performance` | performance reference | | `security` | security reference | | `migration` | migration reference | | `cheatsheet` | cheatsheet reference | ## Output Format All commands output plain-text reference documentation via heredoc. No external API calls, no credentials needed, no network access. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # server-dashboard — Server Dashboard reference tool. Use when working with server dashboard in devtools contexts. # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="2.0.0" show_help() { cat << 'HELPEOF' server-dashboard v$VERSION — Server Dashboard Reference Tool Usage: server-dashboard <command> Commands: intro Overview and core concepts quickstart Getting started guide patterns Common patterns and best practices debugging Debugging and troubleshooting performance Performance optimization tips security Security considerations migration Migration and upgrade guide cheatsheet Quick reference cheat sheet help Show this help version Show version Powered by BytesAgain | bytesagain.com HELPEOF } cmd_intro() { cat << 'EOF' # Server Dashboard — Overview ## What is Server Dashboard? Server Dashboard (server-dashboard) is a specialized tool/concept in the devtools domain. It provides essential capabilities for professionals working with server dashboard. ## Key Concepts - Core server dashboard principles and fundamentals - How server dashboard fits into the broader devtools ecosystem - Essential terminology every practitioner should know ## Why Server Dashboard Matters Understanding server dashboard is critical for: - Improving efficiency in devtools workflows - Reducing errors and downtime - Meeting industry standards and compliance requirements - Enabling better decision-making with accurate data ## Getting Started 1. Understand the basic server dashboard concepts 2. Learn the standard tools and interfaces 3. Practice with common scenarios 4. Review safety and compliance requirements EOF } cmd_quickstart() { cat << 'EOF' # Server Dashboard — Quick Start Guide ## Prerequisites - Basic understanding of devtools concepts - Required tools and access credentials - System meeting minimum requirements ## Installation 1. Download or clone the server dashboard package 2. Install dependencies 3. Configure initial settings 4. Verify installation ## First Steps 1. Run the hello-world example 2. Review the default configuration 3. Try a simple real-world task 4. Explore available commands and options ## Next Steps - Read the full documentation - Join the community forum - Try advanced features - Set up automated workflows EOF } cmd_patterns() { cat << 'EOF' # Server Dashboard — Common Patterns & Best Practices ## Design Patterns 1. **Standard Pattern**: The most common approach for server dashboard 2. **Scalable Pattern**: For high-volume or distributed scenarios 3. **Resilient Pattern**: For fault-tolerant implementations ## Best Practices - Follow the principle of least privilege - Use version control for all configurations - Implement comprehensive logging - Test changes in staging before production - Document all custom configurations ## Anti-Patterns to Avoid - Hardcoding credentials or configuration - Skipping validation and error handling - Ignoring monitoring and alerting - Making changes without documentation - Over-engineering simple solutions EOF } cmd_debugging() { cat << 'EOF' # Server Dashboard — Debugging Guide ## Common Errors 1. **Connection refused**: Check service status and network 2. **Permission denied**: Verify credentials and access rights 3. **Timeout**: Check network, increase limits, optimize queries 4. **Invalid input**: Validate data format and encoding ## Debugging Tools - Built-in logging and diagnostics - Network analysis tools (tcpdump, wireshark) - System monitoring (top, htop, iostat) - Application-specific debug modes ## Debug Workflow 1. Reproduce the issue consistently 2. Check logs for error messages 3. Isolate the failing component 4. Test with minimal configuration 5. Apply fix and verify EOF } cmd_performance() { cat << 'EOF' # Server Dashboard — Performance Optimization ## Key Metrics - Response time / latency - Throughput / operations per second - Resource utilization (CPU, memory, I/O) - Error rate and retry frequency ## Optimization Strategies 1. **Caching**: Reduce redundant operations 2. **Batching**: Group small operations 3. **Indexing**: Speed up data lookups 4. **Compression**: Reduce data transfer size 5. **Parallel Processing**: Utilize multiple cores ## Monitoring - Set up baseline performance metrics - Configure alerts for anomalies - Track trends over time - Regular capacity planning reviews EOF } cmd_security() { cat << 'EOF' # Server Dashboard — Security Considerations ## Authentication & Authorization - Use strong, unique credentials - Implement role-based access control - Enable multi-factor authentication where possible - Regularly review and rotate credentials ## Data Protection - Encrypt data at rest and in transit - Implement proper backup procedures - Follow data retention policies - Sanitize inputs to prevent injection ## Network Security - Use firewalls and network segmentation - Monitor for suspicious activity - Keep all software patched and updated - Disable unnecessary services and ports EOF } cmd_migration() { cat << 'EOF' # Server Dashboard — Migration & Upgrade Guide ## Pre-Migration Checklist - [ ] Current system fully documented - [ ] Complete backup taken and verified - [ ] Target environment prepared - [ ] Rollback plan documented - [ ] Stakeholders notified ## Migration Steps 1. Prepare target environment 2. Export data from source 3. Transform data if needed 4. Import to target 5. Verify data integrity 6. Update configurations 7. Test all functionality 8. Switch traffic / go live ## Post-Migration - Monitor for errors and performance - Verify all integrations working - Update documentation - Decommission old system after confirmation EOF } cmd_cheatsheet() { cat << 'EOF' # Server Dashboard — Quick Reference ## Essential Commands | Command | Description | |---------|-------------| | help | Show available commands | | version | Display version info | | intro | Overview and fundamentals | | troubleshooting | Common problems and fixes | ## Common Workflows 1. **Setup**: install → configure → verify → test 2. **Daily**: check → monitor → report → review 3. **Issue**: diagnose → isolate → fix → verify → document ## Key Shortcuts - Use tab completion for commands - Check logs first when troubleshooting - Always backup before making changes - Document everything you change EOF } CMD="-help" shift 2>/dev/null || true case "$CMD" in intro) cmd_intro "$@" ;; quickstart) cmd_quickstart "$@" ;; patterns) cmd_patterns "$@" ;; debugging) cmd_debugging "$@" ;; performance) cmd_performance "$@" ;; security) cmd_security "$@" ;; migration) cmd_migration "$@" ;; cheatsheet) cmd_cheatsheet "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "server-dashboard v$VERSION — Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: server-dashboard help"; exit 1 ;; esac
Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Responsive Tester concepts, best practices, and implementation pa...
--- name: "responsive-tester" version: "2.0.1" description: "Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Responsive Tester concepts, best practices, and implementation pa..." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [responsive,tester, reference] category: "devtools" --- # Responsive Tester Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Responsive Tester concepts, best practices, and implementation pa... No API keys or credentials required. ## Commands | Command | Description | |---------|-------------| | `intro` | intro reference | | `quickstart` | quickstart reference | | `patterns` | patterns reference | | `debugging` | debugging reference | | `performance` | performance reference | | `security` | security reference | | `migration` | migration reference | | `cheatsheet` | cheatsheet reference | ## Output Format All commands output plain-text reference documentation via heredoc. No external API calls, no credentials needed, no network access. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # responsive-tester — Responsive Tester reference tool. Use when working with responsive tester in devtools contexts. # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="2.0.0" show_help() { cat << 'HELPEOF' responsive-tester v$VERSION — Responsive Tester Reference Tool Usage: responsive-tester <command> Commands: intro Overview and core concepts quickstart Getting started guide patterns Common patterns and best practices debugging Debugging and troubleshooting performance Performance optimization tips security Security considerations migration Migration and upgrade guide cheatsheet Quick reference cheat sheet help Show this help version Show version Powered by BytesAgain | bytesagain.com HELPEOF } cmd_intro() { cat << 'EOF' # Responsive Tester — Overview ## What is Responsive Tester? Responsive Tester (responsive-tester) is a specialized tool/concept in the devtools domain. It provides essential capabilities for professionals working with responsive tester. ## Key Concepts - Core responsive tester principles and fundamentals - How responsive tester fits into the broader devtools ecosystem - Essential terminology every practitioner should know ## Why Responsive Tester Matters Understanding responsive tester is critical for: - Improving efficiency in devtools workflows - Reducing errors and downtime - Meeting industry standards and compliance requirements - Enabling better decision-making with accurate data ## Getting Started 1. Understand the basic responsive tester concepts 2. Learn the standard tools and interfaces 3. Practice with common scenarios 4. Review safety and compliance requirements EOF } cmd_quickstart() { cat << 'EOF' # Responsive Tester — Quick Start Guide ## Prerequisites - Basic understanding of devtools concepts - Required tools and access credentials - System meeting minimum requirements ## Installation 1. Download or clone the responsive tester package 2. Install dependencies 3. Configure initial settings 4. Verify installation ## First Steps 1. Run the hello-world example 2. Review the default configuration 3. Try a simple real-world task 4. Explore available commands and options ## Next Steps - Read the full documentation - Join the community forum - Try advanced features - Set up automated workflows EOF } cmd_patterns() { cat << 'EOF' # Responsive Tester — Common Patterns & Best Practices ## Design Patterns 1. **Standard Pattern**: The most common approach for responsive tester 2. **Scalable Pattern**: For high-volume or distributed scenarios 3. **Resilient Pattern**: For fault-tolerant implementations ## Best Practices - Follow the principle of least privilege - Use version control for all configurations - Implement comprehensive logging - Test changes in staging before production - Document all custom configurations ## Anti-Patterns to Avoid - Hardcoding credentials or configuration - Skipping validation and error handling - Ignoring monitoring and alerting - Making changes without documentation - Over-engineering simple solutions EOF } cmd_debugging() { cat << 'EOF' # Responsive Tester — Debugging Guide ## Common Errors 1. **Connection refused**: Check service status and network 2. **Permission denied**: Verify credentials and access rights 3. **Timeout**: Check network, increase limits, optimize queries 4. **Invalid input**: Validate data format and encoding ## Debugging Tools - Built-in logging and diagnostics - Network analysis tools (tcpdump, wireshark) - System monitoring (top, htop, iostat) - Application-specific debug modes ## Debug Workflow 1. Reproduce the issue consistently 2. Check logs for error messages 3. Isolate the failing component 4. Test with minimal configuration 5. Apply fix and verify EOF } cmd_performance() { cat << 'EOF' # Responsive Tester — Performance Optimization ## Key Metrics - Response time / latency - Throughput / operations per second - Resource utilization (CPU, memory, I/O) - Error rate and retry frequency ## Optimization Strategies 1. **Caching**: Reduce redundant operations 2. **Batching**: Group small operations 3. **Indexing**: Speed up data lookups 4. **Compression**: Reduce data transfer size 5. **Parallel Processing**: Utilize multiple cores ## Monitoring - Set up baseline performance metrics - Configure alerts for anomalies - Track trends over time - Regular capacity planning reviews EOF } cmd_security() { cat << 'EOF' # Responsive Tester — Security Considerations ## Authentication & Authorization - Use strong, unique credentials - Implement role-based access control - Enable multi-factor authentication where possible - Regularly review and rotate credentials ## Data Protection - Encrypt data at rest and in transit - Implement proper backup procedures - Follow data retention policies - Sanitize inputs to prevent injection ## Network Security - Use firewalls and network segmentation - Monitor for suspicious activity - Keep all software patched and updated - Disable unnecessary services and ports EOF } cmd_migration() { cat << 'EOF' # Responsive Tester — Migration & Upgrade Guide ## Pre-Migration Checklist - [ ] Current system fully documented - [ ] Complete backup taken and verified - [ ] Target environment prepared - [ ] Rollback plan documented - [ ] Stakeholders notified ## Migration Steps 1. Prepare target environment 2. Export data from source 3. Transform data if needed 4. Import to target 5. Verify data integrity 6. Update configurations 7. Test all functionality 8. Switch traffic / go live ## Post-Migration - Monitor for errors and performance - Verify all integrations working - Update documentation - Decommission old system after confirmation EOF } cmd_cheatsheet() { cat << 'EOF' # Responsive Tester — Quick Reference ## Essential Commands | Command | Description | |---------|-------------| | help | Show available commands | | version | Display version info | | intro | Overview and fundamentals | | troubleshooting | Common problems and fixes | ## Common Workflows 1. **Setup**: install → configure → verify → test 2. **Daily**: check → monitor → report → review 3. **Issue**: diagnose → isolate → fix → verify → document ## Key Shortcuts - Use tab completion for commands - Check logs first when troubleshooting - Always backup before making changes - Document everything you change EOF } CMD="-help" shift 2>/dev/null || true case "$CMD" in intro) cmd_intro "$@" ;; quickstart) cmd_quickstart "$@" ;; patterns) cmd_patterns "$@" ;; debugging) cmd_debugging "$@" ;; performance) cmd_performance "$@" ;; security) cmd_security "$@" ;; migration) cmd_migration "$@" ;; cheatsheet) cmd_cheatsheet "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "responsive-tester v$VERSION — Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: responsive-tester help"; exit 1 ;; esac
A cloud-native Go microservices framework with cli tool for productivity. go zero, go, ai-native, ai-native-development, cloud-native, code-generation.
--- version: "1.0.0" name: Go Zero description: "A cloud-native Go microservices framework with cli tool for productivity. go zero, go, ai-native, ai-native-development, cloud-native, code-generation." --- # Microservice Gen Developer tools toolkit for checking, validating, generating, formatting, linting, explaining, converting, templating, diffing, previewing, fixing, and reporting on code and configurations. Microservice Gen provides a complete devtools workflow with timestamped logging for every operation. All entries are stored locally for full traceability. ## Commands ### Code Generation & Templating | Command | Description | |---------|-------------| | `microservice-gen generate <input>` | Generate code, configs, or boilerplate. Run without args to view recent generations | | `microservice-gen template <input>` | Create or apply templates. Run without args to view recent template entries | | `microservice-gen convert <input>` | Convert between formats or languages. Run without args to view recent conversions | ### Code Quality & Validation | Command | Description | |---------|-------------| | `microservice-gen check <input>` | Run checks on code or configs. Run without args to view recent check entries | | `microservice-gen validate <input>` | Validate structure or schema compliance. Run without args to view recent validations | | `microservice-gen lint <input>` | Lint code for style and quality issues. Run without args to view recent lint entries | | `microservice-gen format <input>` | Format code or configuration files. Run without args to view recent format entries | ### Analysis & Review | Command | Description | |---------|-------------| | `microservice-gen explain <input>` | Explain code, errors, or concepts. Run without args to view recent explanations | | `microservice-gen diff <input>` | Record or analyze diffs between versions. Run without args to view recent diff entries | | `microservice-gen preview <input>` | Preview generated output before applying. Run without args to view recent previews | ### Maintenance & Reporting | Command | Description | |---------|-------------| | `microservice-gen fix <input>` | Log fix actions or patches applied. Run without args to view recent fix entries | | `microservice-gen report <input>` | Generate reports from logged data. Run without args to view recent reports | ### Utility Commands | Command | Description | |---------|-------------| | `microservice-gen stats` | Show summary statistics across all entry types | | `microservice-gen export <fmt>` | Export all data (formats: `json`, `csv`, `txt`) | | `microservice-gen search <term>` | Search across all entries by keyword | | `microservice-gen recent` | Show the 20 most recent activity log entries | | `microservice-gen status` | Health check — version, data dir, entry count, disk usage | | `microservice-gen help` | Show usage information and available commands | | `microservice-gen version` | Show version (v2.0.0) | ## Data Storage All data is stored locally in `~/.local/share/microservice-gen/`: - Each command type has its own log file (e.g., `check.log`, `generate.log`, `lint.log`) - Entries are timestamped in `YYYY-MM-DD HH:MM|value` format - A unified `history.log` tracks all activity across commands - Export supports JSON, CSV, and plain text formats - No external services or API keys required ## Requirements - Bash 4.0+ (uses `set -euo pipefail`) - Standard UNIX utilities (`wc`, `du`, `grep`, `tail`, `sed`, `date`) - No external dependencies — works on any POSIX-compatible system ## When to Use 1. **Microservice scaffolding** — Use `generate` and `template` to create boilerplate code, API definitions, and project structures for new services 2. **Code quality enforcement** — Use `check`, `validate`, `lint`, and `format` to ensure code meets standards before committing or deploying 3. **Code review workflow** — Use `diff`, `explain`, and `preview` to document changes, understand complex code, and review generated output 4. **Refactoring & fixes** — Use `fix`, `convert`, and `format` to log refactoring decisions, format migrations, and patch applications 5. **Development auditing** — Use `stats`, `search`, `report`, and `export` to review development activity, track patterns, and generate team reports ## Examples ```bash # Generate a new service scaffold microservice-gen generate "REST API service with user CRUD endpoints — Go + Chi router" # Validate a configuration file microservice-gen validate "Check docker-compose.yml against schema v3.8" # Lint code for issues microservice-gen lint "Run style checks on pkg/handler/*.go — enforce gofmt + golint" # Create a template microservice-gen template "Dockerfile template for Go microservice with multi-stage build" # Diff two versions microservice-gen diff "Compare v1.2 vs v1.3 API spec — breaking changes in /users endpoint" # Search for all entries about a specific service microservice-gen search user-service # Export all data as JSON microservice-gen export json # View overall statistics microservice-gen stats ``` ## How It Works Each devtools command (check, generate, lint, etc.) works the same way: - **With arguments**: Saves the input as a new timestamped entry and logs it to history - **Without arguments**: Displays the 20 most recent entries for that command type This makes Microservice Gen both a development tool and a searchable devops journal. --- Powered by BytesAgain | bytesagain.com | [email protected] FILE:scripts/script.sh #!/usr/bin/env bash # Microservice Gen — devtools tool # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail DATA_DIR="HOME/.local/share/microservice-gen" mkdir -p "$DATA_DIR" _log() { echo "$(date '+%m-%d %H:%M') $1: $2" >> "$DATA_DIR/history.log"; } _version() { echo "microservice-gen v2.0.0"; } _help() { echo "Microservice Gen v2.0.0 — devtools toolkit" echo "" echo "Usage: microservice-gen <command> [args]" echo "" echo "Commands:" echo " check Check" echo " validate Validate" echo " generate Generate" echo " format Format" echo " lint Lint" echo " explain Explain" echo " convert Convert" echo " template Template" echo " diff Diff" echo " preview Preview" echo " fix Fix" echo " report Report" echo " stats Summary statistics" echo " export <fmt> Export (json|csv|txt)" echo " search <term> Search entries" echo " recent Recent activity" echo " status Health check" echo " help Show this help" echo " version Show version" echo "" echo "Data: $DATA_DIR" } _stats() { echo "=== Microservice Gen Stats ===" local total=0 for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local name=$(basename "$f" .log) local c=$(wc -l < "$f") total=$((total + c)) echo " $name: $c entries" done echo " ---" echo " Total: $total entries" echo " Data size: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" } _export() { local fmt="-json" local out="$DATA_DIR/export.$fmt" case "$fmt" in json) echo "[" > "$out" local first=1 for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local name=$(basename "$f" .log) while IFS='|' read -r ts val; do [ $first -eq 1 ] && first=0 || echo "," >> "$out" printf ' {"type":"%s","time":"%s","value":"%s"}' "$name" "$ts" "$val" >> "$out" done < "$f" done echo "\n]" >> "$out" ;; csv) echo "type,time,value" > "$out" for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local name=$(basename "$f" .log) while IFS='|' read -r ts val; do echo "$name,$ts,$val" >> "$out"; done < "$f" done ;; txt) echo "=== Microservice Gen Export ===" > "$out" for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue echo "--- $(basename "$f" .log) ---" >> "$out" cat "$f" >> "$out" done ;; *) echo "Formats: json, csv, txt"; return 1 ;; esac echo "Exported to $out ($(wc -c < "$out") bytes)" } _status() { echo "=== Microservice Gen Status ===" echo " Version: v2.0.0" echo " Data dir: $DATA_DIR" echo " Entries: $(cat "$DATA_DIR"/*.log 2>/dev/null | wc -l) total" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" echo " Last: $(tail -1 "$DATA_DIR/history.log" 2>/dev/null || echo never)" echo " Status: OK" } _search() { local term="?Usage: microservice-gen search <term>" echo "Searching for: $term" for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local m=$(grep -i "$term" "$f" 2>/dev/null || true) if [ -n "$m" ]; then echo " --- $(basename "$f" .log) ---" echo "$m" | sed 's/^/ /' fi done } _recent() { echo "=== Recent Activity ===" tail -20 "$DATA_DIR/history.log" 2>/dev/null | sed 's/^/ /' || echo " No activity yet." } case "-help" in check) shift if [ $# -eq 0 ]; then echo "Recent check entries:" tail -20 "$DATA_DIR/check.log" 2>/dev/null || echo " No entries yet. Use: microservice-gen check <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/check.log" local total=$(wc -l < "$DATA_DIR/check.log") echo " [Microservice Gen] check: $input" echo " Saved. Total check entries: $total" _log "check" "$input" fi ;; validate) shift if [ $# -eq 0 ]; then echo "Recent validate entries:" tail -20 "$DATA_DIR/validate.log" 2>/dev/null || echo " No entries yet. Use: microservice-gen validate <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/validate.log" local total=$(wc -l < "$DATA_DIR/validate.log") echo " [Microservice Gen] validate: $input" echo " Saved. Total validate entries: $total" _log "validate" "$input" fi ;; generate) shift if [ $# -eq 0 ]; then echo "Recent generate entries:" tail -20 "$DATA_DIR/generate.log" 2>/dev/null || echo " No entries yet. Use: microservice-gen generate <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/generate.log" local total=$(wc -l < "$DATA_DIR/generate.log") echo " [Microservice Gen] generate: $input" echo " Saved. Total generate entries: $total" _log "generate" "$input" fi ;; format) shift if [ $# -eq 0 ]; then echo "Recent format entries:" tail -20 "$DATA_DIR/format.log" 2>/dev/null || echo " No entries yet. Use: microservice-gen format <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/format.log" local total=$(wc -l < "$DATA_DIR/format.log") echo " [Microservice Gen] format: $input" echo " Saved. Total format entries: $total" _log "format" "$input" fi ;; lint) shift if [ $# -eq 0 ]; then echo "Recent lint entries:" tail -20 "$DATA_DIR/lint.log" 2>/dev/null || echo " No entries yet. Use: microservice-gen lint <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/lint.log" local total=$(wc -l < "$DATA_DIR/lint.log") echo " [Microservice Gen] lint: $input" echo " Saved. Total lint entries: $total" _log "lint" "$input" fi ;; explain) shift if [ $# -eq 0 ]; then echo "Recent explain entries:" tail -20 "$DATA_DIR/explain.log" 2>/dev/null || echo " No entries yet. Use: microservice-gen explain <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/explain.log" local total=$(wc -l < "$DATA_DIR/explain.log") echo " [Microservice Gen] explain: $input" echo " Saved. Total explain entries: $total" _log "explain" "$input" fi ;; convert) shift if [ $# -eq 0 ]; then echo "Recent convert entries:" tail -20 "$DATA_DIR/convert.log" 2>/dev/null || echo " No entries yet. Use: microservice-gen convert <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/convert.log" local total=$(wc -l < "$DATA_DIR/convert.log") echo " [Microservice Gen] convert: $input" echo " Saved. Total convert entries: $total" _log "convert" "$input" fi ;; template) shift if [ $# -eq 0 ]; then echo "Recent template entries:" tail -20 "$DATA_DIR/template.log" 2>/dev/null || echo " No entries yet. Use: microservice-gen template <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/template.log" local total=$(wc -l < "$DATA_DIR/template.log") echo " [Microservice Gen] template: $input" echo " Saved. Total template entries: $total" _log "template" "$input" fi ;; diff) shift if [ $# -eq 0 ]; then echo "Recent diff entries:" tail -20 "$DATA_DIR/diff.log" 2>/dev/null || echo " No entries yet. Use: microservice-gen diff <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/diff.log" local total=$(wc -l < "$DATA_DIR/diff.log") echo " [Microservice Gen] diff: $input" echo " Saved. Total diff entries: $total" _log "diff" "$input" fi ;; preview) shift if [ $# -eq 0 ]; then echo "Recent preview entries:" tail -20 "$DATA_DIR/preview.log" 2>/dev/null || echo " No entries yet. Use: microservice-gen preview <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/preview.log" local total=$(wc -l < "$DATA_DIR/preview.log") echo " [Microservice Gen] preview: $input" echo " Saved. Total preview entries: $total" _log "preview" "$input" fi ;; fix) shift if [ $# -eq 0 ]; then echo "Recent fix entries:" tail -20 "$DATA_DIR/fix.log" 2>/dev/null || echo " No entries yet. Use: microservice-gen fix <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/fix.log" local total=$(wc -l < "$DATA_DIR/fix.log") echo " [Microservice Gen] fix: $input" echo " Saved. Total fix entries: $total" _log "fix" "$input" fi ;; report) shift if [ $# -eq 0 ]; then echo "Recent report entries:" tail -20 "$DATA_DIR/report.log" 2>/dev/null || echo " No entries yet. Use: microservice-gen report <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/report.log" local total=$(wc -l < "$DATA_DIR/report.log") echo " [Microservice Gen] report: $input" echo " Saved. Total report entries: $total" _log "report" "$input" fi ;; stats) _stats ;; export) shift; _export "$@" ;; search) shift; _search "$@" ;; recent) _recent ;; status) _status ;; help|--help|-h) _help ;; version|--version|-v) _version ;; *) echo "Unknown: $1 — run 'microservice-gen help'" exit 1 ;; esac
Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Headless Browser concepts, best practices, and implementation pat...
--- name: "headless-browser" version: "2.0.1" description: "Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Headless Browser concepts, best practices, and implementation pat..." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [headless,browser, reference] category: "devtools" --- # Headless Browser Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Headless Browser concepts, best practices, and implementation pat... No API keys or credentials required. ## Commands | Command | Description | |---------|-------------| | `intro` | intro reference | | `quickstart` | quickstart reference | | `patterns` | patterns reference | | `debugging` | debugging reference | | `performance` | performance reference | | `security` | security reference | | `migration` | migration reference | | `cheatsheet` | cheatsheet reference | ## Output Format All commands output plain-text reference documentation via heredoc. No external API calls, no credentials needed, no network access. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # headless-browser — Headless Browser reference tool. Use when working with headless browser in devtools contexts. # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="2.0.0" show_help() { cat << 'HELPEOF' headless-browser v$VERSION — Headless Browser Reference Tool Usage: headless-browser <command> Commands: intro Overview and core concepts quickstart Getting started guide patterns Common patterns and best practices debugging Debugging and troubleshooting performance Performance optimization tips security Security considerations migration Migration and upgrade guide cheatsheet Quick reference cheat sheet help Show this help version Show version Powered by BytesAgain | bytesagain.com HELPEOF } cmd_intro() { cat << 'EOF' # Headless Browser — Overview ## What is Headless Browser? Headless Browser (headless-browser) is a specialized tool/concept in the devtools domain. It provides essential capabilities for professionals working with headless browser. ## Key Concepts - Core headless browser principles and fundamentals - How headless browser fits into the broader devtools ecosystem - Essential terminology every practitioner should know ## Why Headless Browser Matters Understanding headless browser is critical for: - Improving efficiency in devtools workflows - Reducing errors and downtime - Meeting industry standards and compliance requirements - Enabling better decision-making with accurate data ## Getting Started 1. Understand the basic headless browser concepts 2. Learn the standard tools and interfaces 3. Practice with common scenarios 4. Review safety and compliance requirements EOF } cmd_quickstart() { cat << 'EOF' # Headless Browser — Quick Start Guide ## Prerequisites - Basic understanding of devtools concepts - Required tools and access credentials - System meeting minimum requirements ## Installation 1. Download or clone the headless browser package 2. Install dependencies 3. Configure initial settings 4. Verify installation ## First Steps 1. Run the hello-world example 2. Review the default configuration 3. Try a simple real-world task 4. Explore available commands and options ## Next Steps - Read the full documentation - Join the community forum - Try advanced features - Set up automated workflows EOF } cmd_patterns() { cat << 'EOF' # Headless Browser — Common Patterns & Best Practices ## Design Patterns 1. **Standard Pattern**: The most common approach for headless browser 2. **Scalable Pattern**: For high-volume or distributed scenarios 3. **Resilient Pattern**: For fault-tolerant implementations ## Best Practices - Follow the principle of least privilege - Use version control for all configurations - Implement comprehensive logging - Test changes in staging before production - Document all custom configurations ## Anti-Patterns to Avoid - Hardcoding credentials or configuration - Skipping validation and error handling - Ignoring monitoring and alerting - Making changes without documentation - Over-engineering simple solutions EOF } cmd_debugging() { cat << 'EOF' # Headless Browser — Debugging Guide ## Common Errors 1. **Connection refused**: Check service status and network 2. **Permission denied**: Verify credentials and access rights 3. **Timeout**: Check network, increase limits, optimize queries 4. **Invalid input**: Validate data format and encoding ## Debugging Tools - Built-in logging and diagnostics - Network analysis tools (tcpdump, wireshark) - System monitoring (top, htop, iostat) - Application-specific debug modes ## Debug Workflow 1. Reproduce the issue consistently 2. Check logs for error messages 3. Isolate the failing component 4. Test with minimal configuration 5. Apply fix and verify EOF } cmd_performance() { cat << 'EOF' # Headless Browser — Performance Optimization ## Key Metrics - Response time / latency - Throughput / operations per second - Resource utilization (CPU, memory, I/O) - Error rate and retry frequency ## Optimization Strategies 1. **Caching**: Reduce redundant operations 2. **Batching**: Group small operations 3. **Indexing**: Speed up data lookups 4. **Compression**: Reduce data transfer size 5. **Parallel Processing**: Utilize multiple cores ## Monitoring - Set up baseline performance metrics - Configure alerts for anomalies - Track trends over time - Regular capacity planning reviews EOF } cmd_security() { cat << 'EOF' # Headless Browser — Security Considerations ## Authentication & Authorization - Use strong, unique credentials - Implement role-based access control - Enable multi-factor authentication where possible - Regularly review and rotate credentials ## Data Protection - Encrypt data at rest and in transit - Implement proper backup procedures - Follow data retention policies - Sanitize inputs to prevent injection ## Network Security - Use firewalls and network segmentation - Monitor for suspicious activity - Keep all software patched and updated - Disable unnecessary services and ports EOF } cmd_migration() { cat << 'EOF' # Headless Browser — Migration & Upgrade Guide ## Pre-Migration Checklist - [ ] Current system fully documented - [ ] Complete backup taken and verified - [ ] Target environment prepared - [ ] Rollback plan documented - [ ] Stakeholders notified ## Migration Steps 1. Prepare target environment 2. Export data from source 3. Transform data if needed 4. Import to target 5. Verify data integrity 6. Update configurations 7. Test all functionality 8. Switch traffic / go live ## Post-Migration - Monitor for errors and performance - Verify all integrations working - Update documentation - Decommission old system after confirmation EOF } cmd_cheatsheet() { cat << 'EOF' # Headless Browser — Quick Reference ## Essential Commands | Command | Description | |---------|-------------| | help | Show available commands | | version | Display version info | | intro | Overview and fundamentals | | troubleshooting | Common problems and fixes | ## Common Workflows 1. **Setup**: install → configure → verify → test 2. **Daily**: check → monitor → report → review 3. **Issue**: diagnose → isolate → fix → verify → document ## Key Shortcuts - Use tab completion for commands - Check logs first when troubleshooting - Always backup before making changes - Document everything you change EOF } CMD="-help" shift 2>/dev/null || true case "$CMD" in intro) cmd_intro "$@" ;; quickstart) cmd_quickstart "$@" ;; patterns) cmd_patterns "$@" ;; debugging) cmd_debugging "$@" ;; performance) cmd_performance "$@" ;; security) cmd_security "$@" ;; migration) cmd_migration "$@" ;; cheatsheet) cmd_cheatsheet "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "headless-browser v$VERSION — Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: headless-browser help"; exit 1 ;; esac
Bridge AI models to databases through MCP with config and evaluation tools. Use when setting up DB tools, comparing engines, or evaluating prompt quality.
--- version: "1.0.0" name: Genai Toolbox description: "Bridge AI models to databases through MCP with config and evaluation tools. Use when setting up DB tools, comparing engines, or evaluating prompt quality." --- # Genai Toolkit Genai Toolkit v2.0.0 — an AI toolkit for managing generative AI workflows from the command line. Log configurations, benchmarks, prompts, evaluations, fine-tuning runs, cost tracking, and optimization notes. Each entry is timestamped and persisted locally. Works entirely offline — your data never leaves your machine. ## Why Genai Toolkit? - Works entirely offline — your data never leaves your machine - Simple command-line interface with no GUI dependency - Export to JSON, CSV, or plain text at any time for sharing or archival - Automatic activity history logging across all commands - Each domain command doubles as both a logger and a viewer ## Commands ### Domain Commands Each domain command works in two modes: **log mode** (with arguments) saves a timestamped entry, **view mode** (no arguments) shows the 20 most recent entries. | Command | Description | |---------|-------------| | `genai-toolkit configure <input>` | Log a configuration note such as model parameters, API keys, or environment settings. Use this to record setup changes and track which configurations were active during experiments. | | `genai-toolkit benchmark <input>` | Log a benchmark result or performance observation. Record latency, throughput, accuracy, or other metrics to compare across runs and model versions. | | `genai-toolkit compare <input>` | Log a comparison note between models, configurations, or approaches. Useful for side-by-side evaluations like GPT-4 vs Claude on specific tasks. | | `genai-toolkit prompt <input>` | Log a prompt template or prompt engineering note. Track iterations on prompt design, record what worked, and document prompt versioning. | | `genai-toolkit evaluate <input>` | Log an evaluation result or quality metric. Record accuracy scores, F1 metrics, human ratings, or any qualitative assessment of model outputs. | | `genai-toolkit fine-tune <input>` | Log a fine-tuning run or hyperparameter note. Track epochs, learning rates, dataset sizes, and resulting model performance after fine-tuning. | | `genai-toolkit analyze <input>` | Log an analysis observation or insight. Record patterns found in data, failure mode analysis, or trends across experiments. | | `genai-toolkit cost <input>` | Log cost tracking data including API costs, compute expenses, and token consumption. Essential for budget monitoring across projects and providers. | | `genai-toolkit usage <input>` | Log usage metrics or consumption data. Track request volumes, token counts, rate limit encounters, and daily/monthly consumption patterns. | | `genai-toolkit optimize <input>` | Log optimization attempts or performance improvements. Record what was changed, the expected vs actual impact, and next steps. | | `genai-toolkit test <input>` | Log test results or test case notes. Record pass/fail outcomes, edge cases discovered, and regression test results. | | `genai-toolkit report <input>` | Log a report entry or summary finding. Capture weekly summaries, milestone reports, or executive-level findings from AI workflows. | ### Utility Commands | Command | Description | |---------|-------------| | `genai-toolkit stats` | Show summary statistics across all log files, including entry counts per category and total data size on disk. | | `genai-toolkit export <fmt>` | Export all data to a file in the specified format. Supported formats: `json`, `csv`, `txt`. Output is saved to the data directory. | | `genai-toolkit search <term>` | Search all log entries for a term using case-insensitive matching. Results are grouped by log category for easy scanning. | | `genai-toolkit recent` | Show the 20 most recent entries from the unified activity log, giving a quick overview of recent work across all commands. | | `genai-toolkit status` | Health check showing version, data directory path, total entry count, disk usage, and last activity timestamp. | | `genai-toolkit help` | Show the built-in help message listing all available commands and usage information. | | `genai-toolkit version` | Print the current version (v2.0.0). | ## Data Storage All data is stored locally at `~/.local/share/genai-toolkit/`. Each domain command writes to its own log file (e.g., `configure.log`, `benchmark.log`). A unified `history.log` tracks all actions across commands. Use `export` to back up your data at any time. ## Requirements - Bash (4.0+) - No external dependencies — pure shell script - No network access required ## When to Use - Tracking AI model benchmarks and comparisons across different providers and versions over time - Logging prompt engineering iterations to understand what improvements actually moved the needle - Monitoring API costs and token usage across multiple projects and billing periods - Evaluating fine-tuning experiments with detailed hyperparameter and metric tracking - Building a searchable knowledge base of optimization attempts and analysis insights ## Examples ```bash # Log a benchmark result genai-toolkit benchmark "GPT-4o latency: avg 1.2s, p99 3.8s on summarization task, 500 samples" # Track a cost entry genai-toolkit cost "March batch processing: $42.50 across 15k requests, avg $0.0028/req" # Compare two models genai-toolkit compare "Claude 3.5 vs GPT-4o on code generation — Claude 15% faster, GPT-4o 5% more accurate" # Log a prompt iteration genai-toolkit prompt "v3: Added chain-of-thought instruction, reduced hallucination rate from 12% to 3%" # Record a fine-tuning run genai-toolkit fine-tune "SQL-gen model epoch 5: accuracy=0.96, loss=0.12, lr=2e-5, dataset=50k rows" # View all statistics genai-toolkit stats # Export everything to JSON genai-toolkit export json # Search for entries mentioning latency genai-toolkit search latency # Check recent activity genai-toolkit recent # Health check genai-toolkit status ``` --- Powered by BytesAgain | bytesagain.com | [email protected] FILE:scripts/script.sh #!/usr/bin/env bash # Genai Toolkit — ai tool # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail DATA_DIR="HOME/.local/share/genai-toolkit" mkdir -p "$DATA_DIR" _log() { echo "$(date '+%m-%d %H:%M') $1: $2" >> "$DATA_DIR/history.log"; } _version() { echo "genai-toolkit v2.0.0"; } _help() { echo "Genai Toolkit v2.0.0 — ai toolkit" echo "" echo "Usage: genai-toolkit <command> [args]" echo "" echo "Commands:" echo " configure Configure" echo " benchmark Benchmark" echo " compare Compare" echo " prompt Prompt" echo " evaluate Evaluate" echo " fine-tune Fine Tune" echo " analyze Analyze" echo " cost Cost" echo " usage Usage" echo " optimize Optimize" echo " test Test" echo " report Report" echo " stats Summary statistics" echo " export <fmt> Export (json|csv|txt)" echo " search <term> Search entries" echo " recent Recent activity" echo " status Health check" echo " help Show this help" echo " version Show version" echo "" echo "Data: $DATA_DIR" } _stats() { echo "=== Genai Toolkit Stats ===" local total=0 for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local name=$(basename "$f" .log) local c=$(wc -l < "$f") total=$((total + c)) echo " $name: $c entries" done echo " ---" echo " Total: $total entries" echo " Data size: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" } _export() { local fmt="-json" local out="$DATA_DIR/export.$fmt" case "$fmt" in json) echo "[" > "$out" local first=1 for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local name=$(basename "$f" .log) while IFS='|' read -r ts val; do [ $first -eq 1 ] && first=0 || echo "," >> "$out" printf ' {"type":"%s","time":"%s","value":"%s"}' "$name" "$ts" "$val" >> "$out" done < "$f" done echo "\n]" >> "$out" ;; csv) echo "type,time,value" > "$out" for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local name=$(basename "$f" .log) while IFS='|' read -r ts val; do echo "$name,$ts,$val" >> "$out"; done < "$f" done ;; txt) echo "=== Genai Toolkit Export ===" > "$out" for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue echo "--- $(basename "$f" .log) ---" >> "$out" cat "$f" >> "$out" done ;; *) echo "Formats: json, csv, txt"; return 1 ;; esac echo "Exported to $out ($(wc -c < "$out") bytes)" } _status() { echo "=== Genai Toolkit Status ===" echo " Version: v2.0.0" echo " Data dir: $DATA_DIR" echo " Entries: $(cat "$DATA_DIR"/*.log 2>/dev/null | wc -l) total" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" echo " Last: $(tail -1 "$DATA_DIR/history.log" 2>/dev/null || echo never)" echo " Status: OK" } _search() { local term="?Usage: genai-toolkit search <term>" echo "Searching for: $term" for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local m=$(grep -i "$term" "$f" 2>/dev/null || true) if [ -n "$m" ]; then echo " --- $(basename "$f" .log) ---" echo "$m" | sed 's/^/ /' fi done } _recent() { echo "=== Recent Activity ===" tail -20 "$DATA_DIR/history.log" 2>/dev/null | sed 's/^/ /' || echo " No activity yet." } case "-help" in configure) shift if [ $# -eq 0 ]; then echo "Recent configure entries:" tail -20 "$DATA_DIR/configure.log" 2>/dev/null || echo " No entries yet. Use: genai-toolkit configure <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/configure.log" local total=$(wc -l < "$DATA_DIR/configure.log") echo " [Genai Toolkit] configure: $input" echo " Saved. Total configure entries: $total" _log "configure" "$input" fi ;; benchmark) shift if [ $# -eq 0 ]; then echo "Recent benchmark entries:" tail -20 "$DATA_DIR/benchmark.log" 2>/dev/null || echo " No entries yet. Use: genai-toolkit benchmark <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/benchmark.log" local total=$(wc -l < "$DATA_DIR/benchmark.log") echo " [Genai Toolkit] benchmark: $input" echo " Saved. Total benchmark entries: $total" _log "benchmark" "$input" fi ;; compare) shift if [ $# -eq 0 ]; then echo "Recent compare entries:" tail -20 "$DATA_DIR/compare.log" 2>/dev/null || echo " No entries yet. Use: genai-toolkit compare <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/compare.log" local total=$(wc -l < "$DATA_DIR/compare.log") echo " [Genai Toolkit] compare: $input" echo " Saved. Total compare entries: $total" _log "compare" "$input" fi ;; prompt) shift if [ $# -eq 0 ]; then echo "Recent prompt entries:" tail -20 "$DATA_DIR/prompt.log" 2>/dev/null || echo " No entries yet. Use: genai-toolkit prompt <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/prompt.log" local total=$(wc -l < "$DATA_DIR/prompt.log") echo " [Genai Toolkit] prompt: $input" echo " Saved. Total prompt entries: $total" _log "prompt" "$input" fi ;; evaluate) shift if [ $# -eq 0 ]; then echo "Recent evaluate entries:" tail -20 "$DATA_DIR/evaluate.log" 2>/dev/null || echo " No entries yet. Use: genai-toolkit evaluate <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/evaluate.log" local total=$(wc -l < "$DATA_DIR/evaluate.log") echo " [Genai Toolkit] evaluate: $input" echo " Saved. Total evaluate entries: $total" _log "evaluate" "$input" fi ;; fine-tune) shift if [ $# -eq 0 ]; then echo "Recent fine-tune entries:" tail -20 "$DATA_DIR/fine-tune.log" 2>/dev/null || echo " No entries yet. Use: genai-toolkit fine-tune <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/fine-tune.log" local total=$(wc -l < "$DATA_DIR/fine-tune.log") echo " [Genai Toolkit] fine-tune: $input" echo " Saved. Total fine-tune entries: $total" _log "fine-tune" "$input" fi ;; analyze) shift if [ $# -eq 0 ]; then echo "Recent analyze entries:" tail -20 "$DATA_DIR/analyze.log" 2>/dev/null || echo " No entries yet. Use: genai-toolkit analyze <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/analyze.log" local total=$(wc -l < "$DATA_DIR/analyze.log") echo " [Genai Toolkit] analyze: $input" echo " Saved. Total analyze entries: $total" _log "analyze" "$input" fi ;; cost) shift if [ $# -eq 0 ]; then echo "Recent cost entries:" tail -20 "$DATA_DIR/cost.log" 2>/dev/null || echo " No entries yet. Use: genai-toolkit cost <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/cost.log" local total=$(wc -l < "$DATA_DIR/cost.log") echo " [Genai Toolkit] cost: $input" echo " Saved. Total cost entries: $total" _log "cost" "$input" fi ;; usage) shift if [ $# -eq 0 ]; then echo "Recent usage entries:" tail -20 "$DATA_DIR/usage.log" 2>/dev/null || echo " No entries yet. Use: genai-toolkit usage <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/usage.log" local total=$(wc -l < "$DATA_DIR/usage.log") echo " [Genai Toolkit] usage: $input" echo " Saved. Total usage entries: $total" _log "usage" "$input" fi ;; optimize) shift if [ $# -eq 0 ]; then echo "Recent optimize entries:" tail -20 "$DATA_DIR/optimize.log" 2>/dev/null || echo " No entries yet. Use: genai-toolkit optimize <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/optimize.log" local total=$(wc -l < "$DATA_DIR/optimize.log") echo " [Genai Toolkit] optimize: $input" echo " Saved. Total optimize entries: $total" _log "optimize" "$input" fi ;; test) shift if [ $# -eq 0 ]; then echo "Recent test entries:" tail -20 "$DATA_DIR/test.log" 2>/dev/null || echo " No entries yet. Use: genai-toolkit test <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/test.log" local total=$(wc -l < "$DATA_DIR/test.log") echo " [Genai Toolkit] test: $input" echo " Saved. Total test entries: $total" _log "test" "$input" fi ;; report) shift if [ $# -eq 0 ]; then echo "Recent report entries:" tail -20 "$DATA_DIR/report.log" 2>/dev/null || echo " No entries yet. Use: genai-toolkit report <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/report.log" local total=$(wc -l < "$DATA_DIR/report.log") echo " [Genai Toolkit] report: $input" echo " Saved. Total report entries: $total" _log "report" "$input" fi ;; stats) _stats ;; export) shift; _export "$@" ;; search) shift; _search "$@" ;; recent) _recent ;; status) _status ;; help|--help|-h) _help ;; version|--version|-v) _version ;; *) echo "Unknown: $1 — run 'genai-toolkit help'" exit 1 ;; esac
Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Devops Bash Tools concepts, best practices, and implementation pa...
--- name: "devops-bash-tools" version: "2.0.3" description: "Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Devops Bash Tools concepts, best practices, and implementation pa..." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [devops,bash,tools, reference] category: "devtools" --- # Devops Bash Tools Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Devops Bash Tools concepts, best practices, and implementation pa... No API keys or credentials required. ## Commands | Command | Description | |---------|-------------| | `intro` | intro reference | | `quickstart` | quickstart reference | | `patterns` | patterns reference | | `debugging` | debugging reference | | `performance` | performance reference | | `security` | security reference | | `migration` | migration reference | | `cheatsheet` | cheatsheet reference | ## Output Format All commands output plain-text reference documentation via heredoc. No external API calls, no credentials needed, no network access. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # devops-bash-tools — Devops Bash Tools reference tool. Use when working with devops bash tools in devtools contexts. # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="2.0.2" show_help() { cat << 'HELPEOF' devops-bash-tools v$VERSION — Devops Bash Tools Reference Tool Usage: devops-bash-tools <command> Commands: intro Overview and core concepts quickstart Getting started guide patterns Common patterns and best practices debugging Debugging and troubleshooting performance Performance optimization tips security Security considerations migration Migration and upgrade guide cheatsheet Quick reference cheat sheet help Show this help version Show version Powered by BytesAgain | bytesagain.com HELPEOF } cmd_intro() { cat << 'EOF' # Devops Bash Tools — Overview ## What is Devops Bash Tools? Devops Bash Tools (devops-bash-tools) is a specialized tool/concept in the devtools domain. It provides essential capabilities for professionals working with devops bash tools. ## Key Concepts - Core devops bash tools principles and fundamentals - How devops bash tools fits into the broader devtools ecosystem - Essential terminology every practitioner should know ## Why Devops Bash Tools Matters Understanding devops bash tools is critical for: - Improving efficiency in devtools workflows - Reducing errors and downtime - Meeting industry standards and compliance requirements - Enabling better decision-making with accurate data ## Getting Started 1. Understand the basic devops bash tools concepts 2. Learn the standard tools and interfaces 3. Practice with common scenarios 4. Review safety and compliance requirements EOF } cmd_quickstart() { cat << 'EOF' # Devops Bash Tools — Quick Start Guide ## Prerequisites - Basic understanding of devtools concepts - Required tools and access credentials - System meeting minimum requirements ## Installation 1. Download or clone the devops bash tools package 2. Install dependencies 3. Configure initial settings 4. Verify installation ## First Steps 1. Run the hello-world example 2. Review the default configuration 3. Try a simple real-world task 4. Explore available commands and options ## Next Steps - Read the full documentation - Join the community forum - Try advanced features - Set up automated workflows EOF } cmd_patterns() { cat << 'EOF' # Devops Bash Tools — Common Patterns & Best Practices ## Design Patterns 1. **Standard Pattern**: The most common approach for devops bash tools 2. **Scalable Pattern**: For high-volume or distributed scenarios 3. **Resilient Pattern**: For fault-tolerant implementations ## Best Practices - Follow the principle of least privilege - Use version control for all configurations - Implement comprehensive logging - Test changes in staging before production - Document all custom configurations ## Anti-Patterns to Avoid - Hardcoding credentials or configuration - Skipping validation and error handling - Ignoring monitoring and alerting - Making changes without documentation - Over-engineering simple solutions EOF } cmd_debugging() { cat << 'EOF' # Devops Bash Tools — Debugging Guide ## Common Errors 1. **Connection refused**: Check service status and network 2. **Permission denied**: Verify credentials and access rights 3. **Timeout**: Check network, increase limits, optimize queries 4. **Invalid input**: Validate data format and encoding ## Debugging Tools - Built-in logging and diagnostics - Network analysis tools (tcpdump, wireshark) - System monitoring (top, htop, iostat) - Application-specific debug modes ## Debug Workflow 1. Reproduce the issue consistently 2. Check logs for error messages 3. Isolate the failing component 4. Test with minimal configuration 5. Apply fix and verify EOF } cmd_performance() { cat << 'EOF' # Devops Bash Tools — Performance Optimization ## Key Metrics - Response time / latency - Throughput / operations per second - Resource utilization (CPU, memory, I/O) - Error rate and retry frequency ## Optimization Strategies 1. **Caching**: Reduce redundant operations 2. **Batching**: Group small operations 3. **Indexing**: Speed up data lookups 4. **Compression**: Reduce data transfer size 5. **Parallel Processing**: Utilize multiple cores ## Monitoring - Set up baseline performance metrics - Configure alerts for anomalies - Track trends over time - Regular capacity planning reviews EOF } cmd_security() { cat << 'EOF' # Devops Bash Tools — Security Considerations ## Authentication & Authorization - Use strong, unique credentials - Implement role-based access control - Enable multi-factor authentication where possible - Regularly review and rotate credentials ## Data Protection - Encrypt data at rest and in transit - Implement proper backup procedures - Follow data retention policies - Sanitize inputs to prevent injection ## Network Security - Use firewalls and network segmentation - Monitor for suspicious activity - Keep all software patched and updated - Disable unnecessary services and ports EOF } cmd_migration() { cat << 'EOF' # Devops Bash Tools — Migration & Upgrade Guide ## Pre-Migration Checklist - [ ] Current system fully documented - [ ] Complete backup taken and verified - [ ] Target environment prepared - [ ] Rollback plan documented - [ ] Stakeholders notified ## Migration Steps 1. Prepare target environment 2. Export data from source 3. Transform data if needed 4. Import to target 5. Verify data integrity 6. Update configurations 7. Test all functionality 8. Switch traffic / go live ## Post-Migration - Monitor for errors and performance - Verify all integrations working - Update documentation - Decommission old system after confirmation EOF } cmd_cheatsheet() { cat << 'EOF' # Devops Bash Tools — Quick Reference ## Essential Commands | Command | Description | |---------|-------------| | help | Show available commands | | version | Display version info | | intro | Overview and fundamentals | | troubleshooting | Common problems and fixes | ## Common Workflows 1. **Setup**: install → configure → verify → test 2. **Daily**: check → monitor → report → review 3. **Issue**: diagnose → isolate → fix → verify → document ## Key Shortcuts - Use tab completion for commands - Check logs first when troubleshooting - Always backup before making changes - Document everything you change EOF } CMD="-help" shift 2>/dev/null || true case "$CMD" in intro) cmd_intro "$@" ;; quickstart) cmd_quickstart "$@" ;; patterns) cmd_patterns "$@" ;; debugging) cmd_debugging "$@" ;; performance) cmd_performance "$@" ;; security) cmd_security "$@" ;; migration) cmd_migration "$@" ;; cheatsheet) cmd_cheatsheet "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "devops-bash-tools v$VERSION — Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: devops-bash-tools help"; exit 1 ;; esac
Package directories into distributable bundles with manifests. Use when creating release packages, verifying contents, or generating checksums.
--- name: "bundle" version: "1.0.0" description: "Package directories into distributable bundles with manifests. Use when creating release packages, verifying contents, or generating checksums." author: "BytesAgain" homepage: "https://bytesagain.com" --- # bundle Package directories into distributable bundles with manifests. Use when creating release packages, verifying contents, or generating checksums. ## Commands ### `create` ```bash scripts/script.sh create <dir output> ``` ### `manifest` ```bash scripts/script.sh manifest <dir> ``` ### `verify` ```bash scripts/script.sh verify <bundle> ``` ### `size` ```bash scripts/script.sh size <dir> ``` ### `list` ```bash scripts/script.sh list <bundle> ``` ### `extract` ```bash scripts/script.sh extract <bundle dir> ``` ## Requirements - bash 4.0+ ## Data Storage Data stored in `~/.local/share/bundle/`. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash set -euo pipefail VERSION="1.0.0" SCRIPT_NAME="bundle" DATA_DIR="$HOME/.local/share/bundle" mkdir -p "$DATA_DIR" # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # bundle — Package directories into distributable bundles with manifest # Powered by BytesAgain | bytesagain.com | [email protected] _info() { echo "[INFO] $*"; } _error() { echo "[ERROR] $*" >&2; } die() { _error "$@"; exit 1; } cmd_create() { local dir="-" local output="-" [ -z "$dir" ] && die "Usage: $SCRIPT_NAME create <dir output>" tar -czf "$3" "$2" && sha256sum "$3" > "$3.sha256" && echo "Bundle: $3 ($(du -h "$3" | cut -f1))" } cmd_manifest() { local dir="-" [ -z "$dir" ] && die "Usage: $SCRIPT_NAME manifest <dir>" find "$2" -type f -exec sha256sum {} \; 2>/dev/null } cmd_verify() { local bundle="-" [ -z "$bundle" ] && die "Usage: $SCRIPT_NAME verify <bundle>" sha256sum -c "$2.sha256" 2>/dev/null && echo 'VERIFIED' || echo 'FAILED' } cmd_size() { local dir="-" [ -z "$dir" ] && die "Usage: $SCRIPT_NAME size <dir>" du -sh "$2" | cut -f1 } cmd_list() { local bundle="-" [ -z "$bundle" ] && die "Usage: $SCRIPT_NAME list <bundle>" tar -tzf "$2" 2>/dev/null } cmd_extract() { local bundle="-" local dir="-" [ -z "$bundle" ] && die "Usage: $SCRIPT_NAME extract <bundle dir>" mkdir -p "-." && tar -xzf "$2" -C "-." && echo 'Extracted' } cmd_help() { echo "$SCRIPT_NAME v$VERSION" echo "" echo "Commands:" printf " %-20s %s\n" "create <dir output>" "" printf " %-20s %s\n" "manifest <dir>" "" printf " %-20s %s\n" "verify <bundle>" "" printf " %-20s %s\n" "size <dir>" "" printf " %-20s %s\n" "list <bundle>" "" printf " %-20s %s\n" "extract <bundle dir>" "" printf " %-20s %s\n" "help" "Show this help" printf " %-20s %s\n" "version" "Show version" echo "" echo "Powered by BytesAgain | bytesagain.com | [email protected]" } cmd_version() { echo "$SCRIPT_NAME v$VERSION" } main() { local cmd="-help" case "$cmd" in create) shift; cmd_create "$@" ;; manifest) shift; cmd_manifest "$@" ;; verify) shift; cmd_verify "$@" ;; size) shift; cmd_size "$@" ;; list) shift; cmd_list "$@" ;; extract) shift; cmd_extract "$@" ;; help) cmd_help ;; version) cmd_version ;; *) die "Unknown command: $cmd (try help)" ;; esac } main "$@"
Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Amortize concepts, best practices, and implementation patterns.
--- name: "amortize" version: "2.0.1" description: "Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Amortize concepts, best practices, and implementation patterns." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [amortize, reference] category: "devtools" --- # Amortize Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Amortize concepts, best practices, and implementation patterns. No API keys or credentials required. ## Commands | Command | Description | |---------|-------------| | `intro` | intro reference | | `quickstart` | quickstart reference | | `patterns` | patterns reference | | `debugging` | debugging reference | | `performance` | performance reference | | `security` | security reference | | `migration` | migration reference | | `cheatsheet` | cheatsheet reference | ## Output Format All commands output plain-text reference documentation via heredoc. No external API calls, no credentials needed, no network access. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # amortize — Amortize reference tool. Use when working with amortize in devtools contexts. # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="2.0.0" show_help() { cat << 'HELPEOF' amortize v$VERSION — Amortize Reference Tool Usage: amortize <command> Commands: intro Overview and core concepts quickstart Getting started guide patterns Common patterns and best practices debugging Debugging and troubleshooting performance Performance optimization tips security Security considerations migration Migration and upgrade guide cheatsheet Quick reference cheat sheet help Show this help version Show version Powered by BytesAgain | bytesagain.com HELPEOF } cmd_intro() { cat << 'EOF' # Amortize — Overview ## What is Amortize? Amortize (amortize) is a specialized tool/concept in the devtools domain. It provides essential capabilities for professionals working with amortize. ## Key Concepts - Core amortize principles and fundamentals - How amortize fits into the broader devtools ecosystem - Essential terminology every practitioner should know ## Why Amortize Matters Understanding amortize is critical for: - Improving efficiency in devtools workflows - Reducing errors and downtime - Meeting industry standards and compliance requirements - Enabling better decision-making with accurate data ## Getting Started 1. Understand the basic amortize concepts 2. Learn the standard tools and interfaces 3. Practice with common scenarios 4. Review safety and compliance requirements EOF } cmd_quickstart() { cat << 'EOF' # Amortize — Quick Start Guide ## Prerequisites - Basic understanding of devtools concepts - Required tools and access credentials - System meeting minimum requirements ## Installation 1. Download or clone the amortize package 2. Install dependencies 3. Configure initial settings 4. Verify installation ## First Steps 1. Run the hello-world example 2. Review the default configuration 3. Try a simple real-world task 4. Explore available commands and options ## Next Steps - Read the full documentation - Join the community forum - Try advanced features - Set up automated workflows EOF } cmd_patterns() { cat << 'EOF' # Amortize — Common Patterns & Best Practices ## Design Patterns 1. **Standard Pattern**: The most common approach for amortize 2. **Scalable Pattern**: For high-volume or distributed scenarios 3. **Resilient Pattern**: For fault-tolerant implementations ## Best Practices - Follow the principle of least privilege - Use version control for all configurations - Implement comprehensive logging - Test changes in staging before production - Document all custom configurations ## Anti-Patterns to Avoid - Hardcoding credentials or configuration - Skipping validation and error handling - Ignoring monitoring and alerting - Making changes without documentation - Over-engineering simple solutions EOF } cmd_debugging() { cat << 'EOF' # Amortize — Debugging Guide ## Common Errors 1. **Connection refused**: Check service status and network 2. **Permission denied**: Verify credentials and access rights 3. **Timeout**: Check network, increase limits, optimize queries 4. **Invalid input**: Validate data format and encoding ## Debugging Tools - Built-in logging and diagnostics - Network analysis tools (tcpdump, wireshark) - System monitoring (top, htop, iostat) - Application-specific debug modes ## Debug Workflow 1. Reproduce the issue consistently 2. Check logs for error messages 3. Isolate the failing component 4. Test with minimal configuration 5. Apply fix and verify EOF } cmd_performance() { cat << 'EOF' # Amortize — Performance Optimization ## Key Metrics - Response time / latency - Throughput / operations per second - Resource utilization (CPU, memory, I/O) - Error rate and retry frequency ## Optimization Strategies 1. **Caching**: Reduce redundant operations 2. **Batching**: Group small operations 3. **Indexing**: Speed up data lookups 4. **Compression**: Reduce data transfer size 5. **Parallel Processing**: Utilize multiple cores ## Monitoring - Set up baseline performance metrics - Configure alerts for anomalies - Track trends over time - Regular capacity planning reviews EOF } cmd_security() { cat << 'EOF' # Amortize — Security Considerations ## Authentication & Authorization - Use strong, unique credentials - Implement role-based access control - Enable multi-factor authentication where possible - Regularly review and rotate credentials ## Data Protection - Encrypt data at rest and in transit - Implement proper backup procedures - Follow data retention policies - Sanitize inputs to prevent injection ## Network Security - Use firewalls and network segmentation - Monitor for suspicious activity - Keep all software patched and updated - Disable unnecessary services and ports EOF } cmd_migration() { cat << 'EOF' # Amortize — Migration & Upgrade Guide ## Pre-Migration Checklist - [ ] Current system fully documented - [ ] Complete backup taken and verified - [ ] Target environment prepared - [ ] Rollback plan documented - [ ] Stakeholders notified ## Migration Steps 1. Prepare target environment 2. Export data from source 3. Transform data if needed 4. Import to target 5. Verify data integrity 6. Update configurations 7. Test all functionality 8. Switch traffic / go live ## Post-Migration - Monitor for errors and performance - Verify all integrations working - Update documentation - Decommission old system after confirmation EOF } cmd_cheatsheet() { cat << 'EOF' # Amortize — Quick Reference ## Essential Commands | Command | Description | |---------|-------------| | help | Show available commands | | version | Display version info | | intro | Overview and fundamentals | | troubleshooting | Common problems and fixes | ## Common Workflows 1. **Setup**: install → configure → verify → test 2. **Daily**: check → monitor → report → review 3. **Issue**: diagnose → isolate → fix → verify → document ## Key Shortcuts - Use tab completion for commands - Check logs first when troubleshooting - Always backup before making changes - Document everything you change EOF } CMD="-help" shift 2>/dev/null || true case "$CMD" in intro) cmd_intro "$@" ;; quickstart) cmd_quickstart "$@" ;; patterns) cmd_patterns "$@" ;; debugging) cmd_debugging "$@" ;; performance) cmd_performance "$@" ;; security) cmd_security "$@" ;; migration) cmd_migration "$@" ;; cheatsheet) cmd_cheatsheet "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "amortize v$VERSION — Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: amortize help"; exit 1 ;; esac
Browse curated penetration testing resources and exploit databases. Use when planning security audits, researching vulns, or building toolkits.
--- name: Awesome Pentest description: "Browse curated penetration testing resources and exploit databases. Use when planning security audits, researching vulns, or building toolkits." version: "2.0.0" license: MIT-0 runtime: python3 --- # Awesome Pentest A collection of awesome penetration testing resources, tools and other shiny things Inspired by [enaqx/awesome-pentest]([configured-endpoint]) (25,545+ GitHub stars). ## Commands - `help` - Help - `run` - Run - `info` - Info - `status` - Status ## Features - Core functionality from enaqx/awesome-pentest ## Usage Run any command: `awesome-pentest <command> [args]` --- Powered by BytesAgain | bytesagain.com | [email protected] ## Examples ```bash awesome-pentest help awesome-pentest run ``` ## When to Use - for batch processing pentest operations - as part of a larger automation pipeline ## Output Returns results to stdout. Redirect to a file with `awesome-pentest run > output.txt`. --- *Powered by BytesAgain | bytesagain.com* *Feedback & Feature Requests: https://bytesagain.com/feedback* FILE:scripts/awesome_pentest.sh #!/usr/bin/env bash # Awesome Pentest - inspired by enaqx/awesome-pentest set -euo pipefail CMD="-help" shift 2>/dev/null || true case "$CMD" in help) echo "Awesome Pentest" echo "" echo "Commands:" echo " help Help" echo " run Run" echo " info Info" echo " status Status" echo "" echo "Powered by BytesAgain | bytesagain.com" ;; info) echo "Awesome Pentest v1.0.0" echo "Based on: https://github.com/enaqx/awesome-pentest" echo "Stars: 25,545+" ;; run) echo "TODO: Implement main functionality" ;; status) echo "Status: ready" ;; *) echo "Unknown: $CMD" echo "Run 'awesome-pentest help' for usage" exit 1 ;; esac FILE:scripts/script.sh #!/usr/bin/env bash # Awesome Pentest — security tool # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail DATA_DIR="HOME/.local/share/awesome-pentest" mkdir -p "$DATA_DIR" _log() { echo "$(date '+%m-%d %H:%M') $1: $2" >> "$DATA_DIR/history.log"; } _version() { echo "awesome-pentest v2.0.0"; } _help() { echo "Awesome Pentest v2.0.0 — security toolkit" echo "" echo "Usage: awesome-pentest <command> [args]" echo "" echo "Commands:" echo " generate Generate" echo " check-strength Check Strength" echo " rotate Rotate" echo " audit Audit" echo " store Store" echo " retrieve Retrieve" echo " expire Expire" echo " policy Policy" echo " report Report" echo " hash Hash" echo " verify Verify" echo " revoke Revoke" echo " stats Summary statistics" echo " export <fmt> Export (json|csv|txt)" echo " search <term> Search entries" echo " recent Recent activity" echo " status Health check" echo " help Show this help" echo " version Show version" echo "" echo "Data: $DATA_DIR" } _stats() { echo "=== Awesome Pentest Stats ===" local total=0 for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local name=$(basename "$f" .log) local c=$(wc -l < "$f") total=$((total + c)) echo " $name: $c entries" done echo " ---" echo " Total: $total entries" echo " Data size: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" } _export() { local fmt="-json" local out="$DATA_DIR/export.$fmt" case "$fmt" in json) echo "[" > "$out" local first=1 for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local name=$(basename "$f" .log) while IFS='|' read -r ts val; do [ $first -eq 1 ] && first=0 || echo "," >> "$out" printf ' {"type":"%s","time":"%s","value":"%s"}' "$name" "$ts" "$val" >> "$out" done < "$f" done echo "\n]" >> "$out" ;; csv) echo "type,time,value" > "$out" for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local name=$(basename "$f" .log) while IFS='|' read -r ts val; do echo "$name,$ts,$val" >> "$out"; done < "$f" done ;; txt) echo "=== Awesome Pentest Export ===" > "$out" for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue echo "--- $(basename "$f" .log) ---" >> "$out" cat "$f" >> "$out" done ;; *) echo "Formats: json, csv, txt"; return 1 ;; esac echo "Exported to $out ($(wc -c < "$out") bytes)" } _status() { echo "=== Awesome Pentest Status ===" echo " Version: v2.0.0" echo " Data dir: $DATA_DIR" echo " Entries: $(cat "$DATA_DIR"/*.log 2>/dev/null | wc -l) total" echo " Disk: $(du -sh "$DATA_DIR" 2>/dev/null | cut -f1)" echo " Last: $(tail -1 "$DATA_DIR/history.log" 2>/dev/null || echo never)" echo " Status: OK" } _search() { local term="?Usage: awesome-pentest search <term>" echo "Searching for: $term" for f in "$DATA_DIR"/*.log; do [ -f "$f" ] || continue local m=$(grep -i "$term" "$f" 2>/dev/null || true) if [ -n "$m" ]; then echo " --- $(basename "$f" .log) ---" echo "$m" | sed 's/^/ /' fi done } _recent() { echo "=== Recent Activity ===" tail -20 "$DATA_DIR/history.log" 2>/dev/null | sed 's/^/ /' || echo " No activity yet." } case "-help" in generate) shift if [ $# -eq 0 ]; then echo "Recent generate entries:" tail -20 "$DATA_DIR/generate.log" 2>/dev/null || echo " No entries yet. Use: awesome-pentest generate <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/generate.log" local total=$(wc -l < "$DATA_DIR/generate.log") echo " [Awesome Pentest] generate: $input" echo " Saved. Total generate entries: $total" _log "generate" "$input" fi ;; check-strength) shift if [ $# -eq 0 ]; then echo "Recent check-strength entries:" tail -20 "$DATA_DIR/check-strength.log" 2>/dev/null || echo " No entries yet. Use: awesome-pentest check-strength <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/check-strength.log" local total=$(wc -l < "$DATA_DIR/check-strength.log") echo " [Awesome Pentest] check-strength: $input" echo " Saved. Total check-strength entries: $total" _log "check-strength" "$input" fi ;; rotate) shift if [ $# -eq 0 ]; then echo "Recent rotate entries:" tail -20 "$DATA_DIR/rotate.log" 2>/dev/null || echo " No entries yet. Use: awesome-pentest rotate <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/rotate.log" local total=$(wc -l < "$DATA_DIR/rotate.log") echo " [Awesome Pentest] rotate: $input" echo " Saved. Total rotate entries: $total" _log "rotate" "$input" fi ;; audit) shift if [ $# -eq 0 ]; then echo "Recent audit entries:" tail -20 "$DATA_DIR/audit.log" 2>/dev/null || echo " No entries yet. Use: awesome-pentest audit <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/audit.log" local total=$(wc -l < "$DATA_DIR/audit.log") echo " [Awesome Pentest] audit: $input" echo " Saved. Total audit entries: $total" _log "audit" "$input" fi ;; store) shift if [ $# -eq 0 ]; then echo "Recent store entries:" tail -20 "$DATA_DIR/store.log" 2>/dev/null || echo " No entries yet. Use: awesome-pentest store <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/store.log" local total=$(wc -l < "$DATA_DIR/store.log") echo " [Awesome Pentest] store: $input" echo " Saved. Total store entries: $total" _log "store" "$input" fi ;; retrieve) shift if [ $# -eq 0 ]; then echo "Recent retrieve entries:" tail -20 "$DATA_DIR/retrieve.log" 2>/dev/null || echo " No entries yet. Use: awesome-pentest retrieve <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/retrieve.log" local total=$(wc -l < "$DATA_DIR/retrieve.log") echo " [Awesome Pentest] retrieve: $input" echo " Saved. Total retrieve entries: $total" _log "retrieve" "$input" fi ;; expire) shift if [ $# -eq 0 ]; then echo "Recent expire entries:" tail -20 "$DATA_DIR/expire.log" 2>/dev/null || echo " No entries yet. Use: awesome-pentest expire <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/expire.log" local total=$(wc -l < "$DATA_DIR/expire.log") echo " [Awesome Pentest] expire: $input" echo " Saved. Total expire entries: $total" _log "expire" "$input" fi ;; policy) shift if [ $# -eq 0 ]; then echo "Recent policy entries:" tail -20 "$DATA_DIR/policy.log" 2>/dev/null || echo " No entries yet. Use: awesome-pentest policy <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/policy.log" local total=$(wc -l < "$DATA_DIR/policy.log") echo " [Awesome Pentest] policy: $input" echo " Saved. Total policy entries: $total" _log "policy" "$input" fi ;; report) shift if [ $# -eq 0 ]; then echo "Recent report entries:" tail -20 "$DATA_DIR/report.log" 2>/dev/null || echo " No entries yet. Use: awesome-pentest report <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/report.log" local total=$(wc -l < "$DATA_DIR/report.log") echo " [Awesome Pentest] report: $input" echo " Saved. Total report entries: $total" _log "report" "$input" fi ;; hash) shift if [ $# -eq 0 ]; then echo "Recent hash entries:" tail -20 "$DATA_DIR/hash.log" 2>/dev/null || echo " No entries yet. Use: awesome-pentest hash <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/hash.log" local total=$(wc -l < "$DATA_DIR/hash.log") echo " [Awesome Pentest] hash: $input" echo " Saved. Total hash entries: $total" _log "hash" "$input" fi ;; verify) shift if [ $# -eq 0 ]; then echo "Recent verify entries:" tail -20 "$DATA_DIR/verify.log" 2>/dev/null || echo " No entries yet. Use: awesome-pentest verify <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/verify.log" local total=$(wc -l < "$DATA_DIR/verify.log") echo " [Awesome Pentest] verify: $input" echo " Saved. Total verify entries: $total" _log "verify" "$input" fi ;; revoke) shift if [ $# -eq 0 ]; then echo "Recent revoke entries:" tail -20 "$DATA_DIR/revoke.log" 2>/dev/null || echo " No entries yet. Use: awesome-pentest revoke <input>" else local input="$*" local ts=$(date '+%Y-%m-%d %H:%M') echo "$ts|$input" >> "$DATA_DIR/revoke.log" local total=$(wc -l < "$DATA_DIR/revoke.log") echo " [Awesome Pentest] revoke: $input" echo " Saved. Total revoke entries: $total" _log "revoke" "$input" fi ;; stats) _stats ;; export) shift; _export "$@" ;; search) shift; _search "$@" ;; recent) _recent ;; status) _status ;; help|--help|-h) _help ;; version|--version|-v) _version ;; *) echo "Unknown: $1 — run 'awesome-pentest help'" exit 1 ;; esac FILE:tips.md # Tips for Awesome Pentest ## Quick Start 1. Run `awesome-pentest help` to see available commands 2. Most commands output to stdout or generate files ## Source Based on [enaqx/awesome-pentest](https://github.com/enaqx/awesome-pentest) - 25,545+ GitHub stars, Language: Python, License: MIT-0
Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Web Check concepts, best practices, and implementation patterns.
--- name: "web-check" version: "2.0.2" description: "Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Web Check concepts, best practices, and implementation patterns." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [web,check, reference] category: "devtools" --- # Web Check Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Web Check concepts, best practices, and implementation patterns. No API keys or credentials required. ## Commands | Command | Description | |---------|-------------| | `intro` | intro reference | | `quickstart` | quickstart reference | | `patterns` | patterns reference | | `debugging` | debugging reference | | `performance` | performance reference | | `security` | security reference | | `migration` | migration reference | | `cheatsheet` | cheatsheet reference | ## Output Format All commands output plain-text reference documentation via heredoc. No external API calls, no credentials needed, no network access. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # web-check — Web Check reference tool. Use when working with web check in devtools contexts. # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="2.0.0" show_help() { cat << 'HELPEOF' web-check v$VERSION — Web Check Reference Tool Usage: web-check <command> Commands: intro Overview and core concepts quickstart Getting started guide patterns Common patterns and best practices debugging Debugging and troubleshooting performance Performance optimization tips security Security considerations migration Migration and upgrade guide cheatsheet Quick reference cheat sheet help Show this help version Show version Powered by BytesAgain | bytesagain.com HELPEOF } cmd_intro() { cat << 'EOF' # Web Check — Overview ## What is Web Check? Web Check (web-check) is a specialized tool/concept in the devtools domain. It provides essential capabilities for professionals working with web check. ## Key Concepts - Core web check principles and fundamentals - How web check fits into the broader devtools ecosystem - Essential terminology every practitioner should know ## Why Web Check Matters Understanding web check is critical for: - Improving efficiency in devtools workflows - Reducing errors and downtime - Meeting industry standards and compliance requirements - Enabling better decision-making with accurate data ## Getting Started 1. Understand the basic web check concepts 2. Learn the standard tools and interfaces 3. Practice with common scenarios 4. Review safety and compliance requirements EOF } cmd_quickstart() { cat << 'EOF' # Web Check — Quick Start Guide ## Prerequisites - Basic understanding of devtools concepts - Required tools and access credentials - System meeting minimum requirements ## Installation 1. Download or clone the web check package 2. Install dependencies 3. Configure initial settings 4. Verify installation ## First Steps 1. Run the hello-world example 2. Review the default configuration 3. Try a simple real-world task 4. Explore available commands and options ## Next Steps - Read the full documentation - Join the community forum - Try advanced features - Set up automated workflows EOF } cmd_patterns() { cat << 'EOF' # Web Check — Common Patterns & Best Practices ## Design Patterns 1. **Standard Pattern**: The most common approach for web check 2. **Scalable Pattern**: For high-volume or distributed scenarios 3. **Resilient Pattern**: For fault-tolerant implementations ## Best Practices - Follow the principle of least privilege - Use version control for all configurations - Implement comprehensive logging - Test changes in staging before production - Document all custom configurations ## Anti-Patterns to Avoid - Hardcoding credentials or configuration - Skipping validation and error handling - Ignoring monitoring and alerting - Making changes without documentation - Over-engineering simple solutions EOF } cmd_debugging() { cat << 'EOF' # Web Check — Debugging Guide ## Common Errors 1. **Connection refused**: Check service status and network 2. **Permission denied**: Verify credentials and access rights 3. **Timeout**: Check network, increase limits, optimize queries 4. **Invalid input**: Validate data format and encoding ## Debugging Tools - Built-in logging and diagnostics - Network analysis tools (tcpdump, wireshark) - System monitoring (top, htop, iostat) - Application-specific debug modes ## Debug Workflow 1. Reproduce the issue consistently 2. Check logs for error messages 3. Isolate the failing component 4. Test with minimal configuration 5. Apply fix and verify EOF } cmd_performance() { cat << 'EOF' # Web Check — Performance Optimization ## Key Metrics - Response time / latency - Throughput / operations per second - Resource utilization (CPU, memory, I/O) - Error rate and retry frequency ## Optimization Strategies 1. **Caching**: Reduce redundant operations 2. **Batching**: Group small operations 3. **Indexing**: Speed up data lookups 4. **Compression**: Reduce data transfer size 5. **Parallel Processing**: Utilize multiple cores ## Monitoring - Set up baseline performance metrics - Configure alerts for anomalies - Track trends over time - Regular capacity planning reviews EOF } cmd_security() { cat << 'EOF' # Web Check — Security Considerations ## Authentication & Authorization - Use strong, unique credentials - Implement role-based access control - Enable multi-factor authentication where possible - Regularly review and rotate credentials ## Data Protection - Encrypt data at rest and in transit - Implement proper backup procedures - Follow data retention policies - Sanitize inputs to prevent injection ## Network Security - Use firewalls and network segmentation - Monitor for suspicious activity - Keep all software patched and updated - Disable unnecessary services and ports EOF } cmd_migration() { cat << 'EOF' # Web Check — Migration & Upgrade Guide ## Pre-Migration Checklist - [ ] Current system fully documented - [ ] Complete backup taken and verified - [ ] Target environment prepared - [ ] Rollback plan documented - [ ] Stakeholders notified ## Migration Steps 1. Prepare target environment 2. Export data from source 3. Transform data if needed 4. Import to target 5. Verify data integrity 6. Update configurations 7. Test all functionality 8. Switch traffic / go live ## Post-Migration - Monitor for errors and performance - Verify all integrations working - Update documentation - Decommission old system after confirmation EOF } cmd_cheatsheet() { cat << 'EOF' # Web Check — Quick Reference ## Essential Commands | Command | Description | |---------|-------------| | help | Show available commands | | version | Display version info | | intro | Overview and fundamentals | | troubleshooting | Common problems and fixes | ## Common Workflows 1. **Setup**: install → configure → verify → test 2. **Daily**: check → monitor → report → review 3. **Issue**: diagnose → isolate → fix → verify → document ## Key Shortcuts - Use tab completion for commands - Check logs first when troubleshooting - Always backup before making changes - Document everything you change EOF } CMD="-help" shift 2>/dev/null || true case "$CMD" in intro) cmd_intro "$@" ;; quickstart) cmd_quickstart "$@" ;; patterns) cmd_patterns "$@" ;; debugging) cmd_debugging "$@" ;; performance) cmd_performance "$@" ;; security) cmd_security "$@" ;; migration) cmd_migration "$@" ;; cheatsheet) cmd_cheatsheet "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "web-check v$VERSION — Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: web-check help"; exit 1 ;; esac
Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Sketch Board concepts, best practices, and implementation patterns.
--- name: "sketch-board" version: "2.0.2" description: "Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Sketch Board concepts, best practices, and implementation patterns." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [sketch,board, reference] category: "devtools" --- # Sketch Board Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Sketch Board concepts, best practices, and implementation patterns. No API keys or credentials required. ## Commands | Command | Description | |---------|-------------| | `intro` | intro reference | | `quickstart` | quickstart reference | | `patterns` | patterns reference | | `debugging` | debugging reference | | `performance` | performance reference | | `security` | security reference | | `migration` | migration reference | | `cheatsheet` | cheatsheet reference | ## Output Format All commands output plain-text reference documentation via heredoc. No external API calls, no credentials needed, no network access. --- *Powered by BytesAgain | bytesagain.com | [email protected]* FILE:scripts/script.sh #!/usr/bin/env bash # sketch-board — Sketch Board reference tool. Use when working with sketch board in devtools contexts. # Powered by BytesAgain | bytesagain.com | [email protected] set -euo pipefail VERSION="2.0.1" show_help() { cat << 'HELPEOF' sketch-board v$VERSION — Sketch Board Reference Tool Usage: sketch-board <command> Commands: intro Overview and core concepts quickstart Getting started guide patterns Common patterns and best practices debugging Debugging and troubleshooting performance Performance optimization tips security Security considerations migration Migration and upgrade guide cheatsheet Quick reference cheat sheet help Show this help version Show version Powered by BytesAgain | bytesagain.com HELPEOF } cmd_intro() { cat << 'EOF' # Sketch Board — Overview ## What is Sketch Board? Sketch Board (sketch-board) is a specialized tool/concept in the devtools domain. It provides essential capabilities for professionals working with sketch board. ## Key Concepts - Core sketch board principles and fundamentals - How sketch board fits into the broader devtools ecosystem - Essential terminology every practitioner should know ## Why Sketch Board Matters Understanding sketch board is critical for: - Improving efficiency in devtools workflows - Reducing errors and downtime - Meeting industry standards and compliance requirements - Enabling better decision-making with accurate data ## Getting Started 1. Understand the basic sketch board concepts 2. Learn the standard tools and interfaces 3. Practice with common scenarios 4. Review safety and compliance requirements EOF } cmd_quickstart() { cat << 'EOF' # Sketch Board — Quick Start Guide ## Prerequisites - Basic understanding of devtools concepts - Required tools and access credentials - System meeting minimum requirements ## Installation 1. Download or clone the sketch board package 2. Install dependencies 3. Configure initial settings 4. Verify installation ## First Steps 1. Run the hello-world example 2. Review the default configuration 3. Try a simple real-world task 4. Explore available commands and options ## Next Steps - Read the full documentation - Join the community forum - Try advanced features - Set up automated workflows EOF } cmd_patterns() { cat << 'EOF' # Sketch Board — Common Patterns & Best Practices ## Design Patterns 1. **Standard Pattern**: The most common approach for sketch board 2. **Scalable Pattern**: For high-volume or distributed scenarios 3. **Resilient Pattern**: For fault-tolerant implementations ## Best Practices - Follow the principle of least privilege - Use version control for all configurations - Implement comprehensive logging - Test changes in staging before production - Document all custom configurations ## Anti-Patterns to Avoid - Hardcoding credentials or configuration - Skipping validation and error handling - Ignoring monitoring and alerting - Making changes without documentation - Over-engineering simple solutions EOF } cmd_debugging() { cat << 'EOF' # Sketch Board — Debugging Guide ## Common Errors 1. **Connection refused**: Check service status and network 2. **Permission denied**: Verify credentials and access rights 3. **Timeout**: Check network, increase limits, optimize queries 4. **Invalid input**: Validate data format and encoding ## Debugging Tools - Built-in logging and diagnostics - Network analysis tools (tcpdump, wireshark) - System monitoring (top, htop, iostat) - Application-specific debug modes ## Debug Workflow 1. Reproduce the issue consistently 2. Check logs for error messages 3. Isolate the failing component 4. Test with minimal configuration 5. Apply fix and verify EOF } cmd_performance() { cat << 'EOF' # Sketch Board — Performance Optimization ## Key Metrics - Response time / latency - Throughput / operations per second - Resource utilization (CPU, memory, I/O) - Error rate and retry frequency ## Optimization Strategies 1. **Caching**: Reduce redundant operations 2. **Batching**: Group small operations 3. **Indexing**: Speed up data lookups 4. **Compression**: Reduce data transfer size 5. **Parallel Processing**: Utilize multiple cores ## Monitoring - Set up baseline performance metrics - Configure alerts for anomalies - Track trends over time - Regular capacity planning reviews EOF } cmd_security() { cat << 'EOF' # Sketch Board — Security Considerations ## Authentication & Authorization - Use strong, unique credentials - Implement role-based access control - Enable multi-factor authentication where possible - Regularly review and rotate credentials ## Data Protection - Encrypt data at rest and in transit - Implement proper backup procedures - Follow data retention policies - Sanitize inputs to prevent injection ## Network Security - Use firewalls and network segmentation - Monitor for suspicious activity - Keep all software patched and updated - Disable unnecessary services and ports EOF } cmd_migration() { cat << 'EOF' # Sketch Board — Migration & Upgrade Guide ## Pre-Migration Checklist - [ ] Current system fully documented - [ ] Complete backup taken and verified - [ ] Target environment prepared - [ ] Rollback plan documented - [ ] Stakeholders notified ## Migration Steps 1. Prepare target environment 2. Export data from source 3. Transform data if needed 4. Import to target 5. Verify data integrity 6. Update configurations 7. Test all functionality 8. Switch traffic / go live ## Post-Migration - Monitor for errors and performance - Verify all integrations working - Update documentation - Decommission old system after confirmation EOF } cmd_cheatsheet() { cat << 'EOF' # Sketch Board — Quick Reference ## Essential Commands | Command | Description | |---------|-------------| | help | Show available commands | | version | Display version info | | intro | Overview and fundamentals | | troubleshooting | Common problems and fixes | ## Common Workflows 1. **Setup**: install → configure → verify → test 2. **Daily**: check → monitor → report → review 3. **Issue**: diagnose → isolate → fix → verify → document ## Key Shortcuts - Use tab completion for commands - Check logs first when troubleshooting - Always backup before making changes - Document everything you change EOF } CMD="-help" shift 2>/dev/null || true case "$CMD" in intro) cmd_intro "$@" ;; quickstart) cmd_quickstart "$@" ;; patterns) cmd_patterns "$@" ;; debugging) cmd_debugging "$@" ;; performance) cmd_performance "$@" ;; security) cmd_security "$@" ;; migration) cmd_migration "$@" ;; cheatsheet) cmd_cheatsheet "$@" ;; help|--help|-h) show_help ;; version|--version|-v) echo "sketch-board v$VERSION — Powered by BytesAgain" ;; *) echo "Unknown: $CMD"; echo "Run: sketch-board help"; exit 1 ;; esac