[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DPFJY0JQ8MGBFDR9CKHC0S":3,"skill-same:01M7DPFJY0JQ8MGBFDR9CKHC0S":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M7DPFJY0JQ8MGBFDR9CKHC0S","redis-cli",null,"Redis command-line interface (redis-cli) reference and usage guide. Use this skill whenever the user mentions redis-cli, Redis CLI, or any task involving querying, inspecting, debugging, or managing Redis from the command line. Triggers on key\u002Fvalue reads and writes, SCAN or keyspace...","Hazek-dc\u002FPresensiGuru_FaceNet_EMAR","Hazek-dc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F75208960?v=4","01M7DEQV5B4YGS86A81DYH81DR","Hazek","01M7DEQV5XP4TM0C6NTHXCXCHR",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fredis-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: redis-cli\ndescription: Redis command-line interface (redis-cli) reference and usage guide. Use this skill whenever the user mentions redis-cli, Redis CLI, or any task involving querying, inspecting, debugging, or managing Redis from the command line. Triggers on key\u002Fvalue reads and writes, SCAN or keyspace...\nrisk: unknown\nsource: https:\u002F\u002Fgithub.com\u002Fchaunsin\u002Fagent-skills\u002Ftree\u002Fmaster\u002Fskills\u002Fredis-cli\nsource_repo: chaunsin\u002Fagent-skills\nsource_type: community\ndate_added: 2026-07-01\nlicense: Apache-2.0\nlicense_source: https:\u002F\u002Fgithub.com\u002Fchaunsin\u002Fagent-skills\u002Fblob\u002Fmaster\u002FLICENSE\n---\n\n# redis-cli — Redis Command Line Interface\n## When to Use\n\nUse this skill when you need redis command-line interface (redis-cli) reference and usage guide. Use this skill whenever the user mentions redis-cli, Redis CLI, or any task involving querying, inspecting, debugging, or managing Redis from the command line. Triggers on key\u002Fvalue reads and writes, SCAN or keyspace...\n\n\nredis-cli is the primary command-line tool for interacting with Redis. It supports two modes: **command-line execution** (run a command and exit) and **interactive mode** (a REPL with tab completion, history, and hints). It also provides special modes for monitoring, latency analysis, key space scanning, and data import\u002Fexport.\n\n**Official resources:** [Redis CLI Docs](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Ftools\u002Fcli\u002F) | [Commands](https:\u002F\u002Fredis.io\u002Fcommands\u002F) | [Download](https:\u002F\u002Fredis.io\u002Fdownloads\u002F)\n\n## Prerequisites\n\n```bash\n# Check if redis-cli is installed\nredis-cli --version\n\n# Install options:\n\n# macOS (Homebrew)\nbrew install redis\n\n# Ubuntu \u002F Debian\nsudo apt install redis-tools\n\n# CentOS \u002F RHEL\nsudo yum install redis\n\n# Alpine\napk add redis\n\n# Build from source (binary only)\nmake redis-cli\n# Binary at: src\u002Fredis-cli\n\n# Docker (no installation needed)\ndocker run -it --rm redis redis-cli -h \u003Chost> -p \u003Cport> PING\n```\n\n## Security Considerations\n\n> **IMPORTANT**: Redis provides powerful operations that can irreversibly modify or delete data.\n> Pay close attention to the following safety guidelines:\n\n- **Never pass passwords via `-a` in production** — visible in shell history and process listings. Use `REDISCLI_AUTH` environment variable instead.\n- **`KEYS *` blocks the server** on large databases — always use `SCAN` in production code.\n- **`MONITOR` logs all commands** including sensitive data — use cautiously, and never for extended periods on production servers.\n- **`FLUSHALL` \u002F `FLUSHDB` are irreversible** — verify target database with `CLIENT LIST` or `INFO keyspace` first.\n- **`--rdb` transfer during write operations** may produce inconsistent snapshots on busy servers.\n\n## Quick Reference\n\n### Connection\n\n```bash\n# Basic connection (default: 127.0.0.1:6379)\nredis-cli\nredis-cli -h redis15.localnet.org -p 6390 PING\n\n# With password (prefer REDISCLI_AUTH env var for security)\nredis-cli -a myUnguessablePazzzzzword123 PING\n\n# URI connection\nredis-cli -u redis:\u002F\u002Fuser:password@host:port\u002Fdbnum PING\n\n# TLS\nredis-cli --tls --cacert \u002Fpath\u002Fto\u002Fca.crt -h redis.example.com PING\n\n# Specific database\nredis-cli -n 2 DBSIZE\n\n# IPv4\u002FIPv6 preference\nredis-cli -4 PING   # prefer IPv4\nredis-cli -6 PING   # prefer IPv6\n```\n\n### Command-Line vs Interactive Mode\n\n```bash\n# Command-line mode: execute one command and exit\nredis-cli INCR mycounter\nredis-cli GET mykey\n\n# Interactive mode: type commands at the prompt\nredis-cli\n127.0.0.1:6379> PING\nPONG\n127.0.0.1:6379> SELECT 2\nOK\n127.0.0.1:6379[2]> DBSIZE\n(integer) 1\n```\n\nThe prompt shows `host:port[db]`. Use `CONNECT \u003Chost> \u003Cport>` to switch instances interactively.\n\n### Data Query Cheat Sheet\n\n**String operations** (O(1)):\n```\nGET key                        # Get value\nSET key value [NX|XX] [EX sec|PX ms|KEEPTTL]  # Set with conditions\u002FTTL\nSET key value GET              # Set new, return old value\nGETSET key newvalue            # [Use SET key value GET instead]\nMGET key1 key2 ...             # Get multiple values\nINCR key                       # Increment integer (+1)\nINCRBY key 10                  # Increment by amount\nSTRLEN key                     # String length\nGETRANGE key 0 50              # Substring\n```\n\n**Hash operations**:\n```\nHGET key field                 # Get field value            O(1)\nHMGET key f1 f2                # Get multiple fields        O(N)\nHGETALL key                    # Get all fields\u002Fvalues      O(N)\nHKEYS key                      # Get all field names        O(N)\nHLEN key                       # Number of fields           O(1)\nHEXISTS key field              # Check field exists         O(1)\nHSCAN key 0 [MATCH pat]        # Iterate hash fields        O(1) per call\n```\n\n**List operations**:\n```\nLRANGE key 0 -1                # Get all elements           O(N)\nLLEN key                       # List length                O(1)\nLINDEX key 0                   # Get by index               O(N)\nLPOS key value                 # Find element position      O(N)\n```\n\n**Set operations**:\n```\nSMEMBERS key                   # Get all members            O(N)\nSCARD key                      # Set cardinality            O(1)\nSISMEMBER key member           # Check membership           O(1)\nSMISMEMBER key m1 m2           # Multi-membership check     O(N)\nSSCAN key 0 [MATCH pat]        # Iterate set members        O(1) per call\n```\n\n**Sorted Set operations**:\n```\nZRANGE key 0 -1 [WITHSCORES]           # By index              O(log(N)+M)\nZRANGE key -inf +inf BYSCORE           # By score range        O(log(N)+M)\nZRANGE key [a [z BYLEX                 # By lexicographic      O(log(N)+M)\nZCARD key                               # Member count          O(1)\nZSCORE key member                       # Get score             O(1)\nZRANK key member                        # Get rank              O(log(N))\nZSCAN key 0 [MATCH pat]                 # Iterate members       O(1) per call\n```\n\n**Key inspection**:\n```\nEXISTS key [key ...]           # Check existence (O(N) for multi) — returns count\nTYPE key                       # Data type: string|list|set|zset|hash|stream  O(1)\nTTL key                        # Seconds until expiry (-1=none, -2=not exists)  O(1)\nPTTL key                       # Milliseconds until expiry                      O(1)\nMEMORY USAGE key [SAMPLES n]   # Memory consumption in bytes                    O(N)\nOBJECT ENCODING key            # Internal encoding (ziplist, hashtable, etc.)   O(1)\nOBJECT IDLETIME key            # Seconds since last access                      O(1)\nDBSIZE                         # Total keys in current database                 O(1)\nRANDOMKEY                      # Return a random key                            O(1)\n```\n\n### Key Scanning (Production-Safe)\n\nSCAN-based iteration never blocks the server, unlike `KEYS *` which should be avoided in production.\n\n```bash\n# redis-cli built-in scan mode\nredis-cli --scan                          # List all keys\nredis-cli --scan --pattern 'user:*'       # Filter by pattern\nredis-cli --scan --pattern '*:12345*'     # Glob patterns\nredis-cli --scan --count 100              # Batch size hint\n\n# Programmatic SCAN in interactive mode\nSCAN 0 MATCH user:* COUNT 100\n# Returns: 1) next_cursor  2) [keys...]\n# Continue with: SCAN \u003Cnext_cursor> MATCH user:* COUNT 100\n# Iteration complete when cursor returns 0\n\n# Count keys matching a pattern\nredis-cli --scan --pattern 'session:*' | wc -l\n```\n\nSCAN guarantees: a full iteration (cursor 0 → cursor 0) always returns all elements that existed for the entire duration. Elements may appear multiple times — handle duplicates in your application.\n\n### Server Inspection\n\n```bash\n# Real-time stats (updates every second, use -i to change interval)\nredis-cli --stat\n\n# Server information\nredis-cli INFO server             # Server details\nredis-cli INFO memory             # Memory usage\nredis-cli INFO keyspace           # Database key counts\nredis-cli INFO replication        # Replication status\nredis-cli INFO all                # Everything\n\n# Key space analysis\nredis-cli --bigkeys               # Find largest keys by element count\nredis-cli --memkeys               # Find largest keys by memory usage\nredis-cli --keystats              # Combined bigkeys + memkeys with distribution\n\n# Latency analysis\nredis-cli --latency               # Continuous latency sampling\nredis-cli --latency-history       # Latency over time (15s windows)\nredis-cli --latency-dist          # Latency spectrum visualization\nredis-cli --intrinsic-latency 5   # System baseline latency (run on Redis host)\n```\n\n### Output Control\n\n```bash\n# Raw output (no type prefixes) — default when piping\nredis-cli --raw GET mykey\nredis-cli GET mykey > \u002Ftmp\u002Foutput.txt    # auto raw mode\n\n# Human-readable (force) when piping\nredis-cli --no-raw GET mykey | cat\n\n# CSV output\nredis-cli --csv LRANGE mylist 0 -1\n\n# JSON output (RESP3, use -2 for RESP2)\nredis-cli --json HGETALL user:1\n\n# Read last argument from stdin\ncat \u002Fetc\u002Fservices | redis-cli -x SET net_services\n\n# Pipe commands from file\ncat \u002Ftmp\u002Fcommands.txt | redis-cli\n```\n\n### Repeat Commands\n\n```bash\n# Run command N times\nredis-cli -r 5 INCR counter\n\n# Run with delay (seconds, supports decimals)\nredis-cli -r -1 -i 1 INFO | grep rss_human    # infinite, every 1s\n\n# Interactive: prefix with count\n5 INCR mycounter    # runs 5 times\n```\n\n### Server Administration\n\n```bash\n# ACL management\nredis-cli ACL LIST                                    # List all users\nredis-cli ACL SETUSER admin on >pwd ~* +@all          # Create admin user\nredis-cli ACL SETUSER readonly on >pwd ~* +@read      # Create read-only user\nredis-cli ACL DELUSER username                        # Delete user\nredis-cli ACL DRYRUN username GET key                 # Test user permission\nredis-cli ACL GENPASS                                 # Generate random password\n\n# Client management\nredis-cli CLIENT LIST                                 # List all connections\nredis-cli CLIENT KILL ADDR ip:port                    # Disconnect client\nredis-cli CLIENT PAUSE 5000 WRITE                     # Pause writes for 5s\nredis-cli CLIENT SETNAME my-app                       # Name current connection\n\n# Configuration\nredis-cli CONFIG GET maxmemory                        # Read config\nredis-cli CONFIG SET maxmemory 100mb                  # Set config at runtime\nredis-cli CONFIG REWRITE                              # Persist to redis.conf\nredis-cli CONFIG RESETSTAT                            # Reset INFO counters\n\n# Replication acknowledgment\nredis-cli WAIT 2 5000                                 # Wait for 2 replicas (5s timeout)\nredis-cli WAITAOF 1 1 5000                            # Wait for AOF fsync (Redis 7.2+)\n\n# Persistence\nredis-cli BGSAVE                                      # Background RDB save\nredis-cli BGREWRITEAOF                                # Background AOF rewrite\nredis-cli LASTSAVE                                    # Last save timestamp\n\n# Replication\nredis-cli REPLICAOF host port                         # Become replica\nredis-cli REPLICAOF NO ONE                            # Promote to master\n\n# Server lifecycle\nredis-cli SHUTDOWN SAVE                               # Save and stop\nredis-cli SHUTDOWN NOSAVE                             # Stop without saving\n\n# Slow log\nredis-cli SLOWLOG GET 10                              # Recent slow commands\nredis-cli SLOWLOG LEN                                 # Entry count\nredis-cli SLOWLOG RESET                               # Clear entries\n\n# Cluster management\nredis-cli --cluster check host:port                   # Check cluster health\nredis-cli --cluster reshard host:port                 # Move slots between nodes\nredis-cli -c -h cluster-node PING                     # Cluster-aware connection\n```\n\n## Detailed Reference Files\n\n| File | Content | When to read |\n|------|---------|-------------|\n| `references\u002Fconnection-and-options.md` | Full connection options, CLI flags, SSL\u002FTLS, environment variables, interactive mode features (completion, history, preferences), RESP protocol versions | Configuring connections, setting up TLS, customizing CLI behavior |\n| `references\u002Fdata-query-commands.md` | Core data type commands: Strings, Hashes, Lists, Sets, Sorted Sets, Streams, Bitmaps, HyperLogLog, Geospatial, plus Key Operations, Database Operations, and Transactions | Looking up core command syntax, understanding command options and return values |\n| `references\u002Fmodule-data-types.md` | Module data types: JSON (RedisJSON), Vector Sets (Redis 8.0+), Bloom Filter, Cuckoo Filter, Top-K, Count-Min Sketch, T-Digest, TimeSeries (TS.*), Full-Text Search \u002F RediSearch (FT.*) — with full command syntax and behavioral notes | Working with Redis module data types, similarity search, probabilistic data structures, time series data, full-text search |\n| `references\u002Fkey-management.md` | SCAN family details (SCAN\u002FSSCAN\u002FHSCAN\u002FZSCAN), big keys analysis (--bigkeys, --memkeys, --keystats), key expiration (EXPIRE, TTL, PERSIST), key space patterns, mass insertion | Scanning databases, analyzing key distribution, managing key lifecycles |\n| `references\u002Finspection-and-monitoring.md` | INFO sections, MONITOR, --stat mode, latency tools (--latency, --latency-history, --latency-dist, --intrinsic-latency), RDB backup, replica mode, LRU simulation | Monitoring Redis instances, debugging performance, creating backups |\n| `references\u002Fadvanced-features.md` | Lua scripting (--eval, --ldb), Pub\u002FSub mode, pipe mode, CSV\u002FJSON output, string quoting and escaping, get input from stdin, remote RDB transfer, Cluster management (--cluster subcommands, cluster commands) | Running scripts, subscribing to channels, bulk data operations, managing Redis Cluster |\n| `references\u002Fserver-administration.md` | ACL management (ACL SETUSER\u002FDELUSER\u002FLIST\u002FCAT\u002FGENPASS), client management (CLIENT LIST\u002FKILL\u002FPAUSE\u002FTRACKING), configuration (CONFIG GET\u002FSET\u002FREWRITE), replication acknowledgment (WAIT\u002FWAITAOF), persistence (SAVE\u002FBGSAVE\u002FBGREWRITEAOF), replication setup (REPLICAOF), server lifecycle (SHUTDOWN\u002FFAILOVER) | Managing users and permissions, controlling client connections, runtime configuration, ensuring write durability, persistence management, replication setup |\n\n## Common Workflows\n\n### Explore an Unknown Database\n\n```bash\n# Step 1: Basic stats\nredis-cli INFO keyspace\nredis-cli DBSIZE\n\n# Step 2: Find big keys and memory usage\nredis-cli --bigkeys\nredis-cli --memkeys\n\n# Step 3: Sample keys and inspect types\nredis-cli --scan | head -20\nredis-cli TYPE \u003Ckey>\nredis-cli TTL \u003Ckey>\n\n# Step 4: Read data based on type\nredis-cli HGETALL \u003Chash_key>\nredis-cli LRANGE \u003Clist_key> 0 -1\nredis-cli ZRANGE \u003Czset_key> 0 -1 WITHSCORES\n```\n\n### Monitor in Real Time\n\n```bash\n# Live server stats\nredis-cli --stat -i 2\n\n# Watch memory specifically\nredis-cli -r -1 -i 5 INFO memory | grep used_memory_human\n\n# Monitor all commands (caution: high overhead)\nredis-cli MONITOR\n\n# Continuous latency\nredis-cli --latency-history -i 5\n```\n\n### Query Specific Key Patterns\n\n```bash\n# Count keys by pattern\nredis-cli --scan --pattern 'session:*' | wc -l\n\n# Find and inspect hash keys\nredis-cli --scan --pattern 'user:*' | while read key; do\n  echo \"=== $key ===\"\n  redis-cli HGETALL \"$key\"\ndone\n\n# Check TTL of matching keys\nredis-cli --scan --pattern 'cache:*' | while read key; do\n  redis-cli TTL \"$key\"\ndone\n```\n\n## External References\n\n- [Redis CLI Documentation](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Ftools\u002Fcli\u002F)\n- [Redis Commands](https:\u002F\u002Fredis.io\u002Fcommands\u002F)\n- [Redis Data Types](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Fdata-types\u002F)\n- [Redis Protocol Specification](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Freference\u002Fprotocol-spec\u002F)\n- [Redis Mass Insertion](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Fclients\u002Fpatterns\u002Fbulk-loading\u002F)\n- [Redis Lua Debugger](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Fprogrammability\u002Flua-debugging\u002F)\n\n## Limitations\n\n- Use this skill only when the task clearly matches its upstream source and local project context.\n- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.\n- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.\n","# redis-cli — Redis Command Line Interface\n## When to Use\n\nUse this skill when you need redis command-line interface (redis-cli) reference and usage guide. Use this skill whenever the user mentions redis-cli, Redis CLI, or any task involving querying, inspecting, debugging, or managing Redis from the command line. Triggers on key\u002Fvalue reads and writes, SCAN or keyspace...\n\n\nredis-cli is the primary command-line tool for interacting with Redis. It supports two modes: **command-line execution** (run a command and exit) and **interactive mode** (a REPL with tab completion, history, and hints). It also provides special modes for monitoring, latency analysis, key space scanning, and data import\u002Fexport.\n\n**Official resources:** [Redis CLI Docs](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Ftools\u002Fcli\u002F) | [Commands](https:\u002F\u002Fredis.io\u002Fcommands\u002F) | [Download](https:\u002F\u002Fredis.io\u002Fdownloads\u002F)\n\n## Prerequisites\n\n```bash\n# Check if redis-cli is installed\nredis-cli --version\n\n# Install options:\n\n# macOS (Homebrew)\nbrew install redis\n\n# Ubuntu \u002F Debian\nsudo apt install redis-tools\n\n# CentOS \u002F RHEL\nsudo yum install redis\n\n# Alpine\napk add redis\n\n# Build from source (binary only)\nmake redis-cli\n# Binary at: src\u002Fredis-cli\n\n# Docker (no installation needed)\ndocker run -it --rm redis redis-cli -h \u003Chost> -p \u003Cport> PING\n```\n\n## Security Considerations\n\n> **IMPORTANT**: Redis provides powerful operations that can irreversibly modify or delete data.\n> Pay close attention to the following safety guidelines:\n\n- **Never pass passwords via `-a` in production** — visible in shell history and process listings. Use `REDISCLI_AUTH` environment variable instead.\n- **`KEYS *` blocks the server** on large databases — always use `SCAN` in production code.\n- **`MONITOR` logs all commands** including sensitive data — use cautiously, and never for extended periods on production servers.\n- **`FLUSHALL` \u002F `FLUSHDB` are irreversible** — verify target database with `CLIENT LIST` or `INFO keyspace` first.\n- **`--rdb` transfer during write operations** may produce inconsistent snapshots on busy servers.\n\n## Quick Reference\n\n### Connection\n\n```bash\n# Basic connection (default: 127.0.0.1:6379)\nredis-cli\nredis-cli -h redis15.localnet.org -p 6390 PING\n\n# With password (prefer REDISCLI_AUTH env var for security)\nredis-cli -a myUnguessablePazzzzzword123 PING\n\n# URI connection\nredis-cli -u redis:\u002F\u002Fuser:password@host:port\u002Fdbnum PING\n\n# TLS\nredis-cli --tls --cacert \u002Fpath\u002Fto\u002Fca.crt -h redis.example.com PING\n\n# Specific database\nredis-cli -n 2 DBSIZE\n\n# IPv4\u002FIPv6 preference\nredis-cli -4 PING   # prefer IPv4\nredis-cli -6 PING   # prefer IPv6\n```\n\n### Command-Line vs Interactive Mode\n\n```bash\n# Command-line mode: execute one command and exit\nredis-cli INCR mycounter\nredis-cli GET mykey\n\n# Interactive mode: type commands at the prompt\nredis-cli\n127.0.0.1:6379> PING\nPONG\n127.0.0.1:6379> SELECT 2\nOK\n127.0.0.1:6379[2]> DBSIZE\n(integer) 1\n```\n\nThe prompt shows `host:port[db]`. Use `CONNECT \u003Chost> \u003Cport>` to switch instances interactively.\n\n### Data Query Cheat Sheet\n\n**String operations** (O(1)):\n```\nGET key                        # Get value\nSET key value [NX|XX] [EX sec|PX ms|KEEPTTL]  # Set with conditions\u002FTTL\nSET key value GET              # Set new, return old value\nGETSET key newvalue            # [Use SET key value GET instead]\nMGET key1 key2 ...             # Get multiple values\nINCR key                       # Increment integer (+1)\nINCRBY key 10                  # Increment by amount\nSTRLEN key                     # String length\nGETRANGE key 0 50              # Substring\n```\n\n**Hash operations**:\n```\nHGET key field                 # Get field value            O(1)\nHMGET key f1 f2                # Get multiple fields        O(N)\nHGETALL key                    # Get all fields\u002Fvalues      O(N)\nHKEYS key                      # Get all field names        O(N)\nHLEN key                       # Number of fields           O(1)\nHEXISTS key field              # Check field exists         O(1)\nHSCAN key 0 [MATCH pat]        # Iterate hash fields        O(1) per call\n```\n\n**List operations**:\n```\nLRANGE key 0 -1                # Get all elements           O(N)\nLLEN key                       # List length                O(1)\nLINDEX key 0                   # Get by index               O(N)\nLPOS key value                 # Find element position      O(N)\n```\n\n**Set operations**:\n```\nSMEMBERS key                   # Get all members            O(N)\nSCARD key                      # Set cardinality            O(1)\nSISMEMBER key member           # Check membership           O(1)\nSMISMEMBER key m1 m2           # Multi-membership check     O(N)\nSSCAN key 0 [MATCH pat]        # Iterate set members        O(1) per call\n```\n\n**Sorted Set operations**:\n```\nZRANGE key 0 -1 [WITHSCORES]           # By index              O(log(N)+M)\nZRANGE key -inf +inf BYSCORE           # By score range        O(log(N)+M)\nZRANGE key [a [z BYLEX                 # By lexicographic      O(log(N)+M)\nZCARD key                               # Member count          O(1)\nZSCORE key member                       # Get score             O(1)\nZRANK key member                        # Get rank              O(log(N))\nZSCAN key 0 [MATCH pat]                 # Iterate members       O(1) per call\n```\n\n**Key inspection**:\n```\nEXISTS key [key ...]           # Check existence (O(N) for multi) — returns count\nTYPE key                       # Data type: string|list|set|zset|hash|stream  O(1)\nTTL key                        # Seconds until expiry (-1=none, -2=not exists)  O(1)\nPTTL key                       # Milliseconds until expiry                      O(1)\nMEMORY USAGE key [SAMPLES n]   # Memory consumption in bytes                    O(N)\nOBJECT ENCODING key            # Internal encoding (ziplist, hashtable, etc.)   O(1)\nOBJECT IDLETIME key            # Seconds since last access                      O(1)\nDBSIZE                         # Total keys in current database                 O(1)\nRANDOMKEY                      # Return a random key                            O(1)\n```\n\n### Key Scanning (Production-Safe)\n\nSCAN-based iteration never blocks the server, unlike `KEYS *` which should be avoided in production.\n\n```bash\n# redis-cli built-in scan mode\nredis-cli --scan                          # List all keys\nredis-cli --scan --pattern 'user:*'       # Filter by pattern\nredis-cli --scan --pattern '*:12345*'     # Glob patterns\nredis-cli --scan --count 100              # Batch size hint\n\n# Programmatic SCAN in interactive mode\nSCAN 0 MATCH user:* COUNT 100\n# Returns: 1) next_cursor  2) [keys...]\n# Continue with: SCAN \u003Cnext_cursor> MATCH user:* COUNT 100\n# Iteration complete when cursor returns 0\n\n# Count keys matching a pattern\nredis-cli --scan --pattern 'session:*' | wc -l\n```\n\nSCAN guarantees: a full iteration (cursor 0 → cursor 0) always returns all elements that existed for the entire duration. Elements may appear multiple times — handle duplicates in your application.\n\n### Server Inspection\n\n```bash\n# Real-time stats (updates every second, use -i to change interval)\nredis-cli --stat\n\n# Server information\nredis-cli INFO server             # Server details\nredis-cli INFO memory             # Memory usage\nredis-cli INFO keyspace           # Database key counts\nredis-cli INFO replication        # Replication status\nredis-cli INFO all                # Everything\n\n# Key space analysis\nredis-cli --bigkeys               # Find largest keys by element count\nredis-cli --memkeys               # Find largest keys by memory usage\nredis-cli --keystats              # Combined bigkeys + memkeys with distribution\n\n# Latency analysis\nredis-cli --latency               # Continuous latency sampling\nredis-cli --latency-history       # Latency over time (15s windows)\nredis-cli --latency-dist          # Latency spectrum visualization\nredis-cli --intrinsic-latency 5   # System baseline latency (run on Redis host)\n```\n\n### Output Control\n\n```bash\n# Raw output (no type prefixes) — default when piping\nredis-cli --raw GET mykey\nredis-cli GET mykey > \u002Ftmp\u002Foutput.txt    # auto raw mode\n\n# Human-readable (force) when piping\nredis-cli --no-raw GET mykey | cat\n\n# CSV output\nredis-cli --csv LRANGE mylist 0 -1\n\n# JSON output (RESP3, use -2 for RESP2)\nredis-cli --json HGETALL user:1\n\n# Read last argument from stdin\ncat \u002Fetc\u002Fservices | redis-cli -x SET net_services\n\n# Pipe commands from file\ncat \u002Ftmp\u002Fcommands.txt | redis-cli\n```\n\n### Repeat Commands\n\n```bash\n# Run command N times\nredis-cli -r 5 INCR counter\n\n# Run with delay (seconds, supports decimals)\nredis-cli -r -1 -i 1 INFO | grep rss_human    # infinite, every 1s\n\n# Interactive: prefix with count\n5 INCR mycounter    # runs 5 times\n```\n\n### Server Administration\n\n```bash\n# ACL management\nredis-cli ACL LIST                                    # List all users\nredis-cli ACL SETUSER admin on >pwd ~* +@all          # Create admin user\nredis-cli ACL SETUSER readonly on >pwd ~* +@read      # Create read-only user\nredis-cli ACL DELUSER username                        # Delete user\nredis-cli ACL DRYRUN username GET key                 # Test user permission\nredis-cli ACL GENPASS                                 # Generate random password\n\n# Client management\nredis-cli CLIENT LIST                                 # List all connections\nredis-cli CLIENT KILL ADDR ip:port                    # Disconnect client\nredis-cli CLIENT PAUSE 5000 WRITE                     # Pause writes for 5s\nredis-cli CLIENT SETNAME my-app                       # Name current connection\n\n# Configuration\nredis-cli CONFIG GET maxmemory                        # Read config\nredis-cli CONFIG SET maxmemory 100mb                  # Set config at runtime\nredis-cli CONFIG REWRITE                              # Persist to redis.conf\nredis-cli CONFIG RESETSTAT                            # Reset INFO counters\n\n# Replication acknowledgment\nredis-cli WAIT 2 5000                                 # Wait for 2 replicas (5s timeout)\nredis-cli WAITAOF 1 1 5000                            # Wait for AOF fsync (Redis 7.2+)\n\n# Persistence\nredis-cli BGSAVE                                      # Background RDB save\nredis-cli BGREWRITEAOF                                # Background AOF rewrite\nredis-cli LASTSAVE                                    # Last save timestamp\n\n# Replication\nredis-cli REPLICAOF host port                         # Become replica\nredis-cli REPLICAOF NO ONE                            # Promote to master\n\n# Server lifecycle\nredis-cli SHUTDOWN SAVE                               # Save and stop\nredis-cli SHUTDOWN NOSAVE                             # Stop without saving\n\n# Slow log\nredis-cli SLOWLOG GET 10                              # Recent slow commands\nredis-cli SLOWLOG LEN                                 # Entry count\nredis-cli SLOWLOG RESET                               # Clear entries\n\n# Cluster management\nredis-cli --cluster check host:port                   # Check cluster health\nredis-cli --cluster reshard host:port                 # Move slots between nodes\nredis-cli -c -h cluster-node PING                     # Cluster-aware connection\n```\n\n## Detailed Reference Files\n\n| File | Content | When to read |\n|------|---------|-------------|\n| `references\u002Fconnection-and-options.md` | Full connection options, CLI flags, SSL\u002FTLS, environment variables, interactive mode features (completion, history, preferences), RESP protocol versions | Configuring connections, setting up TLS, customizing CLI behavior |\n| `references\u002Fdata-query-commands.md` | Core data type commands: Strings, Hashes, Lists, Sets, Sorted Sets, Streams, Bitmaps, HyperLogLog, Geospatial, plus Key Operations, Database Operations, and Transactions | Looking up core command syntax, understanding command options and return values |\n| `references\u002Fmodule-data-types.md` | Module data types: JSON (RedisJSON), Vector Sets (Redis 8.0+), Bloom Filter, Cuckoo Filter, Top-K, Count-Min Sketch, T-Digest, TimeSeries (TS.*), Full-Text Search \u002F RediSearch (FT.*) — with full command syntax and behavioral notes | Working with Redis module data types, similarity search, probabilistic data structures, time series data, full-text search |\n| `references\u002Fkey-management.md` | SCAN family details (SCAN\u002FSSCAN\u002FHSCAN\u002FZSCAN), big keys analysis (--bigkeys, --memkeys, --keystats), key expiration (EXPIRE, TTL, PERSIST), key space patterns, mass insertion | Scanning databases, analyzing key distribution, managing key lifecycles |\n| `references\u002Finspection-and-monitoring.md` | INFO sections, MONITOR, --stat mode, latency tools (--latency, --latency-history, --latency-dist, --intrinsic-latency), RDB backup, replica mode, LRU simulation | Monitoring Redis instances, debugging performance, creating backups |\n| `references\u002Fadvanced-features.md` | Lua scripting (--eval, --ldb), Pub\u002FSub mode, pipe mode, CSV\u002FJSON output, string quoting and escaping, get input from stdin, remote RDB transfer, Cluster management (--cluster subcommands, cluster commands) | Running scripts, subscribing to channels, bulk data operations, managing Redis Cluster |\n| `references\u002Fserver-administration.md` | ACL management (ACL SETUSER\u002FDELUSER\u002FLIST\u002FCAT\u002FGENPASS), client management (CLIENT LIST\u002FKILL\u002FPAUSE\u002FTRACKING), configuration (CONFIG GET\u002FSET\u002FREWRITE), replication acknowledgment (WAIT\u002FWAITAOF), persistence (SAVE\u002FBGSAVE\u002FBGREWRITEAOF), replication setup (REPLICAOF), server lifecycle (SHUTDOWN\u002FFAILOVER) | Managing users and permissions, controlling client connections, runtime configuration, ensuring write durability, persistence management, replication setup |\n\n## Common Workflows\n\n### Explore an Unknown Database\n\n```bash\n# Step 1: Basic stats\nredis-cli INFO keyspace\nredis-cli DBSIZE\n\n# Step 2: Find big keys and memory usage\nredis-cli --bigkeys\nredis-cli --memkeys\n\n# Step 3: Sample keys and inspect types\nredis-cli --scan | head -20\nredis-cli TYPE \u003Ckey>\nredis-cli TTL \u003Ckey>\n\n# Step 4: Read data based on type\nredis-cli HGETALL \u003Chash_key>\nredis-cli LRANGE \u003Clist_key> 0 -1\nredis-cli ZRANGE \u003Czset_key> 0 -1 WITHSCORES\n```\n\n### Monitor in Real Time\n\n```bash\n# Live server stats\nredis-cli --stat -i 2\n\n# Watch memory specifically\nredis-cli -r -1 -i 5 INFO memory | grep used_memory_human\n\n# Monitor all commands (caution: high overhead)\nredis-cli MONITOR\n\n# Continuous latency\nredis-cli --latency-history -i 5\n```\n\n### Query Specific Key Patterns\n\n```bash\n# Count keys by pattern\nredis-cli --scan --pattern 'session:*' | wc -l\n\n# Find and inspect hash keys\nredis-cli --scan --pattern 'user:*' | while read key; do\n  echo \"=== $key ===\"\n  redis-cli HGETALL \"$key\"\ndone\n\n# Check TTL of matching keys\nredis-cli --scan --pattern 'cache:*' | while read key; do\n  redis-cli TTL \"$key\"\ndone\n```\n\n## External References\n\n- [Redis CLI Documentation](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Ftools\u002Fcli\u002F)\n- [Redis Commands](https:\u002F\u002Fredis.io\u002Fcommands\u002F)\n- [Redis Data Types](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Fdata-types\u002F)\n- [Redis Protocol Specification](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Freference\u002Fprotocol-spec\u002F)\n- [Redis Mass Insertion](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Fclients\u002Fpatterns\u002Fbulk-loading\u002F)\n- [Redis Lua Debugger](https:\u002F\u002Fredis.io\u002Fdocs\u002Flatest\u002Fdevelop\u002Fprogrammability\u002Flua-debugging\u002F)\n\n## Limitations\n\n- Use this skill only when the task clearly matches its upstream source and local project context.\n- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.\n- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.\n",{"name":5,"risk":24,"source":25,"license":15,"date_added":26,"description":7,"source_repo":27,"source_type":28,"license_source":29},"unknown","https:\u002F\u002Fgithub.com\u002Fchaunsin\u002Fagent-skills\u002Ftree\u002Fmaster\u002Fskills\u002Fredis-cli",1782864000000,"chaunsin\u002Fagent-skills","community","https:\u002F\u002Fgithub.com\u002Fchaunsin\u002Fagent-skills\u002Fblob\u002Fmaster\u002FLICENSE","main","b1e4ffadb4f933bbbcaa03a83f8b9929171ac28b",".agents\u002Fskills\u002Fredis-cli",0,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR","https:\u002F\u002Fgithub.com\u002FHazek-dc","2026-10-22 08:36:44",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill redis-cli",{"tool":43,"command":44},"bunx","bunx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill redis-cli",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill redis-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fredis-cli\u002FSKILL.md",true,[51,57,61,65,69,73,77],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fadvanced-features.md","REFERENCE","参考文档",9170,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fredis-cli\u002Freferences\u002Fadvanced-features.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fconnection-and-options.md",8651,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fredis-cli\u002Freferences\u002Fconnection-and-options.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fdata-query-commands.md",21460,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fredis-cli\u002Freferences\u002Fdata-query-commands.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Finspection-and-monitoring.md",8532,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fredis-cli\u002Freferences\u002Finspection-and-monitoring.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fkey-management.md",8163,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fredis-cli\u002Freferences\u002Fkey-management.md",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fmodule-data-types.md",20175,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fredis-cli\u002Freferences\u002Fmodule-data-types.md",{"path":78,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fserver-administration.md",9781,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fredis-cli\u002Freferences\u002Fserver-administration.md",[82,90,97,104,111,118],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7DS6GGYRZAYD33PFPS8Z2T3","testing-best-practices","Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax.","MIT","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Ftesting-best-practices\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7DS6BC3AW7HTPRHE2TTVKWM","tailwindcss-development","Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex\u002Fgrid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, pricing sections, forms, inputs, badges), adding dark mode variants, fixing spacing or typography, and Tailwind v3\u002Fv4 work. The core use case: writing or fixing Tailwind utility classes in HTML templates (Blade, JSX, Vue). Skip for backend PHP logic, database queries, API routes, JavaScript with no HTML\u002FCSS component, CSS file audits, build tool configuration, and vanilla CSS.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Ftailwindcss-development\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7DS66GE6B11MYJDVC74HXM4","laravel-best-practices","Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Flaravel-best-practices\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7DS5ZW717DMS6P1E90AQCKV","infer-conventions","Use this skill to analyze how a Laravel application is actually written and record its conventions as shared rules. Trigger when the user wants to detect, infer, document, or standardize project conventions or coding style, set up or grow `.ai\u002Frules`, resolve mixed or conflicting patterns (e.g. \"are we using Form Requests or inline validation?\"), or onboard agents and teammates to \"how we do things here\". Covers: a systematic sweep of ~49 Laravel convention dimensions (validation, models, architecture, testing, frontend, database, console), open-ended house-pattern discovery, conflict reporting, and recording rules scoped to the right paths via the Boost `record-rule` MCP tool. Only run this skill when the user explicitly asks for it; never start a sweep as part of another task. Do not use for one-off code review, enforcing formatting a linter already handles, or editing `.ai\u002Frules` files by hand.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Finfer-conventions\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7DS5W12RGCVJTFQJ1N0GB8E","inertia-react-development","Develops Inertia.js v2 React client-side applications. Activates when creating React pages, forms, or navigation; using \u003CLink>, \u003CForm>, useForm, or router; working with deferred props, prefetching, or polling; or when user mentions React with Inertia, React pages, React forms, or React navigation.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Finertia-react-development\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M7DS5PVDPMPCWSK2RXPDC9BB","deploying-to-cloud","Deploys and manages Laravel applications on Laravel Cloud using the `cloud` CLI. Use when the user wants to deploy an app, ship to Cloud, create or manage applications, environments, databases, caches, object storage, queues, domains, instances, background processes, secrets, compute, scheduled tasks, or Laravel Cloud infrastructure; or check billing, usage, or spend. Triggers on deployment, shipping, Cloud management, environment setup, database provisioning, billing or usage queries, the `cloud` CLI, and Laravel Cloud deployment troubleshooting.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Fdeploying-to-cloud\u002FSKILL.md",[],[]]