feat(recipes): expand task DB to 77 recipes + enrich ask/category modes

Add 25 NL-searchable task recipes (git, users, packages, docker) bringing
commands-db.json from 52 to 77. Introduces two new categories (packages,
docker) and fixes the disk-usage category mismatch (system -> files).
Final counts: files 17, git 13, system 13, text 10, network 7, users 6,
docker 6, packages 5.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
leetcrypt
2026-06-02 22:17:17 -07:00
parent 26e377c9e7
commit 06bec2d249
2 changed files with 2752 additions and 51 deletions
+203 -1
View File
@@ -82,7 +82,7 @@ show_help() {
echo " To switch models, edit mode_ai() function" echo " To switch models, edit mode_ai() function"
echo "" echo ""
echo -e "${YELLOW}Database:${NC} $DB_FILE" echo -e "${YELLOW}Database:${NC} $DB_FILE"
echo -e "${YELLOW}Version:${NC} 2.1.0 (90+ commands, AI-powered)" echo -e "${YELLOW}Version:${NC} 2.1.0 (250+ commands, AI-powered)"
echo "" echo ""
} }
@@ -993,6 +993,208 @@ COMMANDS=(
"env:Display environment variables | env [OPTION]... [NAME=VALUE]... [COMMAND]" "env:Display environment variables | env [OPTION]... [NAME=VALUE]... [COMMAND]"
"man:Display manual pages | man [OPTION]... [SECTION] PAGE" "man:Display manual pages | man [OPTION]... [SECTION] PAGE"
"watch:Execute command periodically | watch [OPTION]... COMMAND" "watch:Execute command periodically | watch [OPTION]... COMMAND"
# File Operations (extended)
"dd:Convert and copy a file (block-level) | dd if=SOURCE of=DEST [OPERAND]..."
"shred:Overwrite a file to securely delete it | shred [OPTION]... FILE..."
"truncate:Shrink or extend file size | truncate [OPTION]... -s SIZE FILE..."
"mktemp:Create a temporary file or directory | mktemp [OPTION]... [TEMPLATE]"
"mkfifo:Create a named pipe (FIFO) | mkfifo [OPTION]... NAME..."
"install:Copy files and set attributes | install [OPTION]... SOURCE DEST"
"basename:Strip directory and suffix from a path | basename NAME [SUFFIX]"
"dirname:Strip last component from a path | dirname [OPTION] NAME..."
"realpath:Print the resolved absolute path | realpath [OPTION]... FILE..."
"readlink:Print resolved symbolic link target | readlink [OPTION]... FILE..."
"tree:List directory contents as a tree | tree [OPTION]... [DIRECTORY]"
"rsync:Fast incremental file transfer/sync | rsync [OPTION]... SOURCE DEST"
"pushd:Push directory onto the stack | pushd [DIRECTORY]"
"popd:Pop directory off the stack | popd [+N|-N]"
"rename:Rename multiple files via pattern | rename [OPTION]... EXPRESSION FILE..."
# Text Processing (extended)
"tee:Read stdin and write to files and stdout | tee [OPTION]... [FILE]..."
"tac:Concatenate and print files in reverse | tac [OPTION]... [FILE]..."
"nl:Number lines of files | nl [OPTION]... [FILE]..."
"fold:Wrap lines to a fixed width | fold [OPTION]... [FILE]..."
"fmt:Reformat paragraph text | fmt [OPTION]... [FILE]..."
"paste:Merge lines of files side by side | paste [OPTION]... [FILE]..."
"join:Join lines of two files on a field | join [OPTION]... FILE1 FILE2"
"comm:Compare two sorted files line by line | comm [OPTION]... FILE1 FILE2"
"column:Format input into columns | column [OPTION]... [FILE]..."
"expand:Convert tabs to spaces | expand [OPTION]... [FILE]..."
"unexpand:Convert spaces to tabs | unexpand [OPTION]... [FILE]..."
"rev:Reverse characters in each line | rev [OPTION]... [FILE]..."
"split:Split a file into pieces | split [OPTION]... [FILE [PREFIX]]"
"csplit:Split a file by context lines | csplit [OPTION]... FILE PATTERN..."
"od:Dump files in octal/other formats | od [OPTION]... [FILE]..."
"hexdump:Display file contents in hex | hexdump [OPTION]... [FILE]..."
"xxd:Make a hexdump or reverse it | xxd [OPTION]... [FILE]"
"strings:Print printable strings in a file | strings [OPTION]... [FILE]..."
"iconv:Convert text between encodings | iconv [OPTION]... [FILE]..."
"jq:Process and query JSON data | jq [OPTION]... FILTER [FILE]..."
"pr:Paginate/columnate files for printing | pr [OPTION]... [FILE]..."
"printf:Format and print data | printf FORMAT [ARGUMENT]..."
# File Search (extended)
"type:Describe how a command name is resolved | type [OPTION]... NAME..."
"command:Run a command bypassing aliases | command [OPTION]... NAME [ARG]..."
"apropos:Search the manual page names | apropos [OPTION]... KEYWORD..."
"updatedb:Update the locate file database | updatedb [OPTION]..."
"xargs:Build and execute commands from stdin | xargs [OPTION]... [COMMAND]"
# Compression (extended)
"bzip2:Compress files with bzip2 | bzip2 [OPTION]... [FILE]..."
"bunzip2:Decompress bzip2 files | bunzip2 [OPTION]... [FILE]..."
"xz:Compress files with xz/LZMA | xz [OPTION]... [FILE]..."
"unxz:Decompress xz files | unxz [OPTION]... [FILE]..."
"zcat:Print gzip-compressed files | zcat [OPTION]... [FILE]..."
"zstd:Compress files with Zstandard | zstd [OPTION]... [FILE]..."
"7z:7-Zip archive manager | 7z COMMAND [OPTION]... ARCHIVE [FILE]..."
"cpio:Copy files to/from archives | cpio [OPTION]..."
# Network (extended)
"dig:DNS lookup utility | dig [OPTION]... [@SERVER] NAME [TYPE]"
"nslookup:Query DNS records interactively | nslookup [OPTION]... [HOST] [SERVER]"
"host:DNS lookup utility (simple) | host [OPTION]... NAME [SERVER]"
"traceroute:Trace route packets take to a host | traceroute [OPTION]... HOST"
"mtr:Combined traceroute and ping tool | mtr [OPTION]... HOST"
"nc:Netcat - read/write network connections | nc [OPTION]... [HOST] [PORT]"
"telnet:Connect to a host over Telnet | telnet [OPTION]... [HOST [PORT]]"
"sftp:Secure file transfer over SSH | sftp [OPTION]... USER@HOST"
"nmap:Network exploration and port scanner | nmap [OPTION]... TARGET..."
"arp:Show/manipulate the ARP cache | arp [OPTION]..."
"route:Show/manipulate the routing table | route [OPTION]..."
"tcpdump:Capture and analyze network traffic | tcpdump [OPTION]... [EXPRESSION]"
"iptables:Configure IPv4 packet filtering | iptables [OPTION]... CHAIN [RULE]"
"ethtool:Query/control network driver settings | ethtool [OPTION]... DEVICE"
"nmcli:Control NetworkManager from the CLI | nmcli [OPTION]... OBJECT {COMMAND}"
"hostname:Show or set the system hostname | hostname [OPTION]... [NAME]"
"whois:Look up domain/IP registration info | whois [OPTION]... OBJECT"
"ssh-keygen:Generate/manage SSH keys | ssh-keygen [OPTION]..."
# System Info (extended)
"lscpu:Display CPU architecture information | lscpu [OPTION]..."
"lsblk:List block devices | lsblk [OPTION]... [DEVICE]..."
"lsusb:List USB devices | lsusb [OPTION]..."
"lspci:List PCI devices | lspci [OPTION]..."
"lsmod:Show status of kernel modules | lsmod"
"lsof:List open files and the processes using them | lsof [OPTION]..."
"vmstat:Report virtual memory statistics | vmstat [OPTION]... [DELAY [COUNT]]"
"iostat:Report CPU and I/O statistics | iostat [OPTION]... [DELAY [COUNT]]"
"dmidecode:Dump DMI/SMBIOS hardware table | dmidecode [OPTION]..."
"dmesg:Print kernel ring buffer messages | dmesg [OPTION]..."
"journalctl:Query the systemd journal | journalctl [OPTION]..."
"timedatectl:Query/change system clock settings | timedatectl [OPTION]... [COMMAND]"
"hostnamectl:Query/change system hostname | hostnamectl [OPTION]... [COMMAND]"
"nproc:Print the number of processing units | nproc [OPTION]..."
"sysctl:Read/modify kernel parameters | sysctl [OPTION]... [VARIABLE[=VALUE]]..."
# Process Management (extended)
"nice:Run a program with modified priority | nice [OPTION]... [COMMAND]"
"renice:Alter priority of running processes | renice [OPTION]... PRIORITY PID..."
"nohup:Run a command immune to hangups | nohup COMMAND [ARG]..."
"disown:Remove jobs from the shell's job table | disown [OPTION]... [JOB]..."
"pgrep:Find process IDs by name/attributes | pgrep [OPTION]... PATTERN"
"pidof:Find the PID of a running program | pidof [OPTION]... PROGRAM..."
"fuser:Identify processes using files/sockets | fuser [OPTION]... NAME..."
"time:Time a command's execution | time [OPTION]... COMMAND"
"timeout:Run a command with a time limit | timeout [OPTION]... DURATION COMMAND"
"strace:Trace system calls and signals | strace [OPTION]... COMMAND"
"ltrace:Trace library calls | ltrace [OPTION]... COMMAND"
"at:Schedule a command for later | at [OPTION]... TIME"
"crontab:Manage cron job schedules | crontab [OPTION]... [FILE]"
"sleep:Pause for a specified duration | sleep NUMBER[SUFFIX]..."
# System Control / Disk (extended)
"mount:Mount a filesystem | mount [OPTION]... DEVICE DIR"
"umount:Unmount a filesystem | umount [OPTION]... {DIR|DEVICE}"
"fdisk:Manipulate disk partition tables | fdisk [OPTION]... DEVICE"
"parted:Partition manipulation program | parted [OPTION]... [DEVICE [COMMAND]]"
"mkfs:Build a Linux filesystem | mkfs [OPTION]... DEVICE"
"fsck:Check and repair a filesystem | fsck [OPTION]... [DEVICE]..."
"swapon:Enable devices/files for swapping | swapon [OPTION]... [DEVICE]"
"swapoff:Disable swapping on devices/files | swapoff [OPTION]... [DEVICE]"
"blkid:Locate/print block device attributes | blkid [OPTION]... [DEVICE]..."
"sync:Flush filesystem buffers to disk | sync [OPTION]... [FILE]..."
"modprobe:Add or remove kernel modules | modprobe [OPTION]... MODULE"
"poweroff:Power off the machine | poweroff [OPTION]..."
"ncdu:NCurses disk usage analyzer | ncdu [OPTION]... [DIRECTORY]"
# Package Management (extended)
"yum:Package manager (RHEL/CentOS) | yum [OPTION]... COMMAND"
"dnf:Package manager (Fedora/RHEL) | dnf [OPTION]... COMMAND"
"rpm:RPM package manager | rpm [OPTION]... PACKAGE..."
"pacman:Package manager (Arch Linux) | pacman [OPTION]... [TARGET]..."
"zypper:Package manager (openSUSE) | zypper [OPTION]... COMMAND"
"flatpak:Manage Flatpak applications | flatpak [OPTION]... COMMAND"
"pip:Python package installer | pip [OPTION]... COMMAND"
"npm:Node.js package manager | npm [OPTION]... COMMAND"
"apt-cache:Query the APT package cache | apt-cache [OPTION]... COMMAND"
# User & Group Management (extended)
"usermod:Modify a user account | usermod [OPTION]... LOGIN"
"groupadd:Create a new group | groupadd [OPTION]... GROUP"
"groupdel:Delete a group | groupdel [OPTION]... GROUP"
"groupmod:Modify a group | groupmod [OPTION]... GROUP"
"groups:Show groups a user belongs to | groups [USER]..."
"id:Print user and group IDs | id [OPTION]... [USER]"
"chage:Change user password expiry info | chage [OPTION]... LOGIN"
"newgrp:Log in to a new group | newgrp [GROUP]"
"last:Show last logged-in users | last [OPTION]... [NAME]..."
"logname:Print the user's login name | logname"
# Permissions & Security (extended)
"umask:Set default file permission mask | umask [OPTION]... [MODE]"
"chgrp:Change group ownership | chgrp [OPTION]... GROUP FILE..."
"setfacl:Set file access control lists | setfacl [OPTION]... FILE..."
"getfacl:Get file access control lists | getfacl [OPTION]... FILE..."
"chattr:Change file attributes on Linux FS | chattr [OPTION]... [+-=MODE] FILE..."
"lsattr:List file attributes on Linux FS | lsattr [OPTION]... [FILE]..."
"gpg:Encrypt, sign, and manage keys | gpg [OPTION]... [FILE]..."
"openssl:Cryptography and TLS toolkit | openssl COMMAND [OPTION]..."
"md5sum:Compute/check MD5 checksums | md5sum [OPTION]... [FILE]..."
"sha256sum:Compute/check SHA-256 checksums | sha256sum [OPTION]... [FILE]..."
"sha1sum:Compute/check SHA-1 checksums | sha1sum [OPTION]... [FILE]..."
"cksum:Compute CRC checksum and byte count | cksum [OPTION]... [FILE]..."
"base64:Encode/decode data in base64 | base64 [OPTION]... [FILE]"
# Shell & Scripting (extended)
"read:Read a line into shell variables | read [OPTION]... [NAME]..."
"test:Evaluate a conditional expression | test EXPRESSION"
"eval:Evaluate arguments as a command | eval [ARG]..."
"exec:Replace the shell with a command | exec [COMMAND [ARG]...]"
"source:Execute commands from a file | source FILE [ARG]..."
"set:Set shell options and positional params | set [OPTION]... [ARG]..."
"unset:Unset shell variables or functions | unset [OPTION]... NAME..."
"shift:Shift positional parameters | shift [N]"
"getopts:Parse positional option arguments | getopts OPTSTRING NAME [ARG]..."
"declare:Declare variables and attributes | declare [OPTION]... [NAME[=VALUE]]..."
"trap:Run commands on signals/events | trap [OPTION]... [ARG] [SIGNAL]..."
"ulimit:Set/show user resource limits | ulimit [OPTION]... [LIMIT]"
"hash:Remember/show command locations | hash [OPTION]... [NAME]..."
"true:Return a successful exit status | true"
"false:Return an unsuccessful exit status | false"
"seq:Print a sequence of numbers | seq [OPTION]... [FIRST [INC]] LAST"
"yes:Repeatedly print a string | yes [STRING]..."
"expr:Evaluate expressions | expr EXPRESSION"
"bc:Arbitrary-precision calculator | bc [OPTION]... [FILE]..."
"shuf:Generate random permutations | shuf [OPTION]... [FILE]"
"factor:Print the prime factors of numbers | factor [NUMBER]..."
# Terminal & Misc (extended)
"clear:Clear the terminal screen | clear [OPTION]..."
"reset:Reset the terminal to defaults | reset [OPTION]..."
"tput:Query/set terminal capabilities | tput [OPTION]... CAPNAME [ARG]..."
"stty:Change/print terminal line settings | stty [OPTION]... [SETTING]..."
"tty:Print the terminal connected to stdin | tty [OPTION]..."
"screen:Terminal multiplexer | screen [OPTION]... [COMMAND]"
"tmux:Terminal multiplexer | tmux [OPTION]... [COMMAND]"
"nano:Simple terminal text editor | nano [OPTION]... [FILE]..."
"vim:Vi IMproved text editor | vim [OPTION]... [FILE]..."
"xdg-open:Open a file/URL in the default app | xdg-open {FILE|URL}"
"notify-send:Send a desktop notification | notify-send [OPTION]... TITLE [BODY]"
"lolcat:Rainbow-colorize text output | lolcat [OPTION]... [FILE]..."
"figlet:Render text as ASCII art banners | figlet [OPTION]... [MESSAGE]"
) )
# Parse arguments # Parse arguments
+2549 -50
View File
File diff suppressed because it is too large Load Diff