[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77X0RWFCXQ7EPZ8CSRT38K0":3,"skill-same:01M77X0RWFCXQ7EPZ8CSRT38K0":52},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M77X0RWFCXQ7EPZ8CSRT38K0","upstash-redis-kv",null,"Read and write to Upstash Redis-compatible key-value store via REST API. Use when there is a need to save or retrieve key-value data, use Redis features (caching, counters, lists, sets, hashes, sorted sets, etc.) for the current interaction, or when the user explicitly asks to use Upstash or Redis.","Reihantt6\u002Fsns-myagent","Reihantt6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219822095?v=4","01M77KK94PV8B7C2D9XWXNS8DJ","Mohamad Reihan tegar prasetya","01M77KK958QFMTHYXGXFV7KZ79",2,"MIT","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fupstash-redis-kv\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Read and write to Upstash Redis-compatible key-value store via REST API. Use when there is a need to save or retrieve key-value data, use Redis features (caching, counters, lists, sets, hashes, sorted sets, etc.) for the current interaction, or when the user explicitly asks to use Upstash or Redis.\"\n---\n# Upstash Redis Key-Value Store\n\nInteract with Upstash's Redis-compatible key-value store using the REST interface.\n\n## Script Location\n\n```bash\nbun run scripts\u002Fupstash-client.ts \u003Ccommand> [args...]\n```\n\n**IMPORTANT**: Always run with `bun run`, not directly.\n\n## Configuration\n\n### Environment Variables\n\nThe script uses these environment variables by default:\n- `UPSTASH_REDIS_REST_URL` - The Upstash REST API URL\n- `UPSTASH_REDIS_REST_TOKEN` - The Upstash REST API token\n\n### Overriding Credentials\n\nIf the user provides credentials from another source (conversation context, a file, etc.), use the `--url` and `--token` flags to override environment variables:\n\n```bash\nbun run scripts\u002Fupstash-client.ts --url \"https:\u002F\u002F...\" --token \"AX...\" GET mykey\n```\n\n**Priority**: Command-line flags > Environment variables\n\n## Command Reference\n\n### String Commands\n\n```bash\n# Get\u002FSet\nGET \u003Ckey>\nSET \u003Ckey> \u003Cvalue> [--ex seconds] [--px ms] [--nx] [--xx] [--keepttl] [--get]\nSETNX \u003Ckey> \u003Cvalue>                    # Set if not exists\nSETEX \u003Ckey> \u003Cseconds> \u003Cvalue>          # Set with expiration\n\n# Multiple keys (key\u002Fvalue pairs)\nMGET \u003Ckey1> [key2...]\nMSET \u003Ckey1> \u003Cval1> [key2 val2...]\nMSETNX \u003Ckey1> \u003Cval1> [key2 val2...]    # Set all if none exist\n\n# Counters\nINCR \u003Ckey>\nINCRBY \u003Ckey> \u003Cincrement>\nINCRBYFLOAT \u003Ckey> \u003Cincrement>\nDECR \u003Ckey>\nDECRBY \u003Ckey> \u003Cdecrement>\n\n# String manipulation\nAPPEND \u003Ckey> \u003Cvalue>\nSTRLEN \u003Ckey>\nGETRANGE \u003Ckey> \u003Cstart> \u003Cend>\nSETRANGE \u003Ckey> \u003Coffset> \u003Cvalue>\n```\n\n### Hash Commands\n\nHashes store field-value pairs. Pass fields and values as alternating arguments:\n\n```bash\n# Set hash fields (field\u002Fvalue pairs)\nHSET \u003Ckey> \u003Cfield1> \u003Cval1> [field2 val2...]\nHSETNX \u003Ckey> \u003Cfield> \u003Cvalue>           # Set field if not exists\n\n# Get hash fields\nHGET \u003Ckey> \u003Cfield>\nHMGET \u003Ckey> \u003Cfield1> [field2...]\nHGETALL \u003Ckey>\n\n# Hash operations\nHDEL \u003Ckey> \u003Cfield1> [field2...]\nHEXISTS \u003Ckey> \u003Cfield>\nHKEYS \u003Ckey>\nHVALS \u003Ckey>\nHLEN \u003Ckey>\nHINCRBY \u003Ckey> \u003Cfield> \u003Cincrement>\nHINCRBYFLOAT \u003Ckey> \u003Cfield> \u003Cincrement>\nHSCAN \u003Ckey> \u003Ccursor> [MATCH pattern] [COUNT count]\n```\n\n**Examples:**\n\n```bash\n# Store user data\nbun run scripts\u002Fupstash-client.ts HSET user:1 name \"John\" email \"john@example.com\" age 30\n\n# Get single field\nbun run scripts\u002Fupstash-client.ts HGET user:1 name\n\n# Get all fields\nbun run scripts\u002Fupstash-client.ts HGETALL user:1\n\n# Increment numeric field\nbun run scripts\u002Fupstash-client.ts HINCRBY user:1 age 1\n```\n\n### List Commands\n\nLists are ordered collections. Values are pushed\u002Fpopped from left (head) or right (tail):\n\n```bash\n# Push elements\nLPUSH \u003Ckey> \u003Cval1> [val2...]           # Push to head\nRPUSH \u003Ckey> \u003Cval1> [val2...]           # Push to tail\nLPUSHX \u003Ckey> \u003Cval1> [val2...]          # Push if list exists\nRPUSHX \u003Ckey> \u003Cval1> [val2...]\n\n# Pop elements\nLPOP \u003Ckey> [count]\nRPOP \u003Ckey> [count]\n\n# Access elements\nLRANGE \u003Ckey> \u003Cstart> \u003Cstop>            # Get range (0 = first, -1 = last)\nLLEN \u003Ckey>\nLINDEX \u003Ckey> \u003Cindex>\n\n# Modify\nLSET \u003Ckey> \u003Cindex> \u003Cvalue>\nLREM \u003Ckey> \u003Ccount> \u003Cvalue>             # Remove count occurrences\nLTRIM \u003Ckey> \u003Cstart> \u003Cstop>             # Keep only range\nLINSERT \u003Ckey> \u003CBEFORE|AFTER> \u003Cpivot> \u003Cvalue>\nLPOS \u003Ckey> \u003Cvalue>\nLMOVE \u003Csrc> \u003Cdst> \u003CLEFT|RIGHT> \u003CLEFT|RIGHT>\n```\n\n**Examples:**\n\n```bash\n# Create a task queue\nbun run scripts\u002Fupstash-client.ts RPUSH tasks \"task1\" \"task2\" \"task3\"\n\n# Get all tasks\nbun run scripts\u002Fupstash-client.ts LRANGE tasks 0 -1\n\n# Pop task from front (FIFO queue)\nbun run scripts\u002Fupstash-client.ts LPOP tasks\n\n# Pop task from back (LIFO stack)\nbun run scripts\u002Fupstash-client.ts RPOP tasks\n```\n\n### Set Commands\n\nSets store unique, unordered members:\n\n```bash\n# Add\u002Fremove members\nSADD \u003Ckey> \u003Cmember1> [member2...]\nSREM \u003Ckey> \u003Cmember1> [member2...]\n\n# Query\nSMEMBERS \u003Ckey>\nSISMEMBER \u003Ckey> \u003Cmember>\nSMISMEMBER \u003Ckey> \u003Cmember1> [member2...]\nSCARD \u003Ckey>\n\n# Random access\nSPOP \u003Ckey> [count]\nSRANDMEMBER \u003Ckey> [count]\n\n# Set operations\nSINTER \u003Ckey1> [key2...]\nSINTERSTORE \u003Cdest> \u003Ckey1> [key2...]\nSUNION \u003Ckey1> [key2...]\nSUNIONSTORE \u003Cdest> \u003Ckey1> [key2...]\nSDIFF \u003Ckey1> [key2...]\nSDIFFSTORE \u003Cdest> \u003Ckey1> [key2...]\nSMOVE \u003Csrc> \u003Cdst> \u003Cmember>\nSSCAN \u003Ckey> \u003Ccursor> [MATCH pattern] [COUNT count]\n```\n\n**Examples:**\n\n```bash\n# Add tags\nbun run scripts\u002Fupstash-client.ts SADD article:1:tags \"javascript\" \"redis\" \"nodejs\"\n\n# Check membership\nbun run scripts\u002Fupstash-client.ts SISMEMBER article:1:tags \"javascript\"\n\n# Get all members\nbun run scripts\u002Fupstash-client.ts SMEMBERS article:1:tags\n\n# Find common tags between articles\nbun run scripts\u002Fupstash-client.ts SINTER article:1:tags article:2:tags\n```\n\n### Sorted Set Commands\n\nSorted sets store members with scores for ranking:\n\n```bash\n# Add members (score\u002Fmember pairs)\nZADD \u003Ckey> \u003Cscore1> \u003Cmember1> [score2 member2...] [--nx] [--xx] [--gt] [--lt] [--ch]\n\n# Remove\nZREM \u003Ckey> \u003Cmember1> [member2...]\nZREMRANGEBYRANK \u003Ckey> \u003Cstart> \u003Cstop>\nZREMRANGEBYSCORE \u003Ckey> \u003Cmin> \u003Cmax>\n\n# Scores and ranks\nZSCORE \u003Ckey> \u003Cmember>\nZMSCORE \u003Ckey> \u003Cmember1> [member2...]\nZRANK \u003Ckey> \u003Cmember>                   # Rank (low to high)\nZREVRANK \u003Ckey> \u003Cmember>                # Rank (high to low)\nZINCRBY \u003Ckey> \u003Cincrement> \u003Cmember>\n\n# Range queries\nZRANGE \u003Ckey> \u003Cstart> \u003Cstop> [--withscores] [--rev] [--byscore] [--bylex]\nZRANGEBYSCORE \u003Ckey> \u003Cmin> \u003Cmax> [--withscores] [--limit off,count]\nZREVRANGE \u003Ckey> \u003Cstart> \u003Cstop> [--withscores]\nZREVRANGEBYSCORE \u003Ckey> \u003Cmax> \u003Cmin> [--withscores] [--limit off,count]\n\n# Counting\nZCARD \u003Ckey>\nZCOUNT \u003Ckey> \u003Cmin> \u003Cmax>\n\n# Pop\nZPOPMIN \u003Ckey> [count]\nZPOPMAX \u003Ckey> [count]\n\n# Set operations\nZINTERSTORE \u003Cdest> \u003Cnumkeys> \u003Ckey1> [key2...]\nZUNIONSTORE \u003Cdest> \u003Cnumkeys> \u003Ckey1> [key2...]\nZSCAN \u003Ckey> \u003Ccursor> [MATCH pattern] [COUNT count]\n```\n\n**Examples:**\n\n```bash\n# Create leaderboard (score member pairs)\nbun run scripts\u002Fupstash-client.ts ZADD leaderboard 1000 \"player1\" 1500 \"player2\" 1200 \"player3\"\n\n# Get top 3 with scores (highest first)\nbun run scripts\u002Fupstash-client.ts ZRANGE leaderboard 0 2 --rev --withscores\n\n# Get player's rank\nbun run scripts\u002Fupstash-client.ts ZREVRANK leaderboard \"player2\"\n\n# Increment player's score\nbun run scripts\u002Fupstash-client.ts ZINCRBY leaderboard 100 \"player1\"\n\n# Get players with scores between 1000 and 1500\nbun run scripts\u002Fupstash-client.ts ZRANGEBYSCORE leaderboard 1000 1500 --withscores\n```\n\n### Key Commands\n\n```bash\n# Delete\nDEL \u003Ckey1> [key2...]\nUNLINK \u003Ckey1> [key2...]                # Async delete\n\n# Existence\u002FType\nEXISTS \u003Ckey1> [key2...]\nTYPE \u003Ckey>\n\n# Expiration\nEXPIRE \u003Ckey> \u003Cseconds>\nEXPIREAT \u003Ckey> \u003Ctimestamp>\nPEXPIRE \u003Ckey> \u003Cmilliseconds>\nPEXPIREAT \u003Ckey> \u003Ctimestamp>\nTTL \u003Ckey>\nPTTL \u003Ckey>\nPERSIST \u003Ckey>                          # Remove expiration\n\n# Rename\nRENAME \u003Ckey> \u003Cnewkey>\nRENAMENX \u003Ckey> \u003Cnewkey>\n\n# Search\nKEYS \u003Cpattern>                         # Use with caution in production\nSCAN \u003Ccursor> [MATCH pattern] [COUNT count]\n\n# Other\nCOPY \u003Csrc> \u003Cdst>\nDUMP \u003Ckey>\nTOUCH \u003Ckey1> [key2...]\nRANDOMKEY\nOBJECT ENCODING|FREQ|IDLETIME|REFCOUNT \u003Ckey>\n```\n\n**Examples:**\n\n```bash\n# Set key with 1 hour expiration\nbun run scripts\u002Fupstash-client.ts SET session:abc \"data\"\nbun run scripts\u002Fupstash-client.ts EXPIRE session:abc 3600\n\n# Or in one command\nbun run scripts\u002Fupstash-client.ts SET session:abc \"data\" --ex 3600\n\n# Check TTL\nbun run scripts\u002Fupstash-client.ts TTL session:abc\n\n# Scan keys matching pattern\nbun run scripts\u002Fupstash-client.ts SCAN 0 MATCH \"user:*\" COUNT 100\n```\n\n### Server Commands\n\n```bash\nPING [message]\nECHO \u003Cmessage>\nDBSIZE\nTIME\nINFO [section]\nFLUSHDB                                # Delete all keys in current DB (DANGEROUS)\nFLUSHALL                               # Delete all keys in all DBs (DANGEROUS)\n```\n\n## Command Options\n\n### SET Options\n\n```bash\n--ex \u003Cseconds>     # Expire in seconds\n--px \u003Cms>          # Expire in milliseconds\n--exat \u003Cts>        # Expire at Unix timestamp (seconds)\n--pxat \u003Cts>        # Expire at Unix timestamp (ms)\n--nx               # Only set if key does not exist\n--xx               # Only set if key exists\n--keepttl          # Retain existing TTL\n--get              # Return old value\n```\n\n### ZADD Options\n\n```bash\n--nx               # Only add new members\n--xx               # Only update existing members\n--gt               # Only update if new score > current\n--lt               # Only update if new score \u003C current\n--ch               # Return number of changed elements\n```\n\n### ZRANGE Options\n\n```bash\n--withscores       # Include scores in output\n--byscore          # Range by score instead of rank\n--bylex            # Range by lexicographical order\n--rev              # Reverse order\n--limit off,count  # Limit results (e.g., --limit 0,10)\n```\n\n## Output Format\n\n- **String values**: Printed directly\n- **null\u002Fnil**: Prints `(nil)`\n- **Objects\u002Farrays**: Pretty-printed as JSON\n\n## Confirmation Behaviour\n\n### Default: Ask for Confirmation\n\nBefore executing any destructive operation (write, modify, or delete), you MUST ask the user for confirmation. This includes:\n\n**Write operations:**\n- SET, SETNX, SETEX, PSETEX, MSET, MSETNX\n- HSET, HSETNX\n- LPUSH, RPUSH, LPUSHX, RPUSHX, LSET, LINSERT\n- SADD\n- ZADD\n\n**Modify operations:**\n- INCR, INCRBY, INCRBYFLOAT, DECR, DECRBY\n- APPEND, SETRANGE\n- HINCRBY, HINCRBYFLOAT\n- LREM, LTRIM, LMOVE\n- ZINCRBY\n\n**Delete operations:**\n- DEL, UNLINK\n- HDEL\n- LPOP, RPOP\n- SREM, SPOP, SMOVE\n- ZREM, ZREMRANGEBYRANK, ZREMRANGEBYSCORE, ZPOPMIN, ZPOPMAX\n- FLUSHDB, FLUSHALL (extra caution)\n\n**TTL\u002FRename operations:**\n- EXPIRE, EXPIREAT, PEXPIRE, PEXPIREAT, PERSIST\n- RENAME, RENAMENX\n\nExample confirmation prompt:\n> \"I'm about to HSET `user:1` with fields `{name: \"John\", email: \"john@example.com\"}`. Proceed?\"\n\n### YOLO Mode: Skip Confirmation\n\nIf the user indicates they do not want to be asked for confirmation, respect this for all subsequent operations. Indicators include:\n\n- \"YOLO mode\"\n- \"Don't ask for confirmation\"\n- \"You're free to make changes without asking\"\n- \"Just do it\"\n- \"No need to confirm\"\n- \"Auto-approve\" or \"auto-confirm\"\n- Any similar phrasing indicating blanket approval\n\nOnce YOLO mode is activated, proceed with destructive operations without asking, but still inform the user what was done.\n\nExample:\n> Set `user:1` with `{name: \"John\", email: \"john@example.com\"}` - done.\n\n## Error Handling\n\nIf credentials are missing or invalid, the script will exit with an error message. Ensure the user has configured either:\n1. Environment variables (`UPSTASH_REDIS_REST_URL`, `UPSTASH_REDIS_REST_TOKEN`)\n2. Or provides credentials via `--url` and `--token` flags\n\n## When to Use This Skill\n\n- User explicitly asks to store or retrieve data from Upstash\u002FRedis\n- Need to persist data across conversations or sessions\n- Implementing caching for expensive operations\n- Maintaining counters, rate limits, or statistics\n- Storing user preferences or session data\n- Building leaderboards or rankings (sorted sets)\n- Managing queues or task lists (lists)\n- Tagging or categorisation (sets)\n- Storing structured objects (hashes)\n- Any scenario requiring fast key-value storage\n","# Upstash Redis Key-Value Store\n\nInteract with Upstash's Redis-compatible key-value store using the REST interface.\n\n## Script Location\n\n```bash\nbun run scripts\u002Fupstash-client.ts \u003Ccommand> [args...]\n```\n\n**IMPORTANT**: Always run with `bun run`, not directly.\n\n## Configuration\n\n### Environment Variables\n\nThe script uses these environment variables by default:\n- `UPSTASH_REDIS_REST_URL` - The Upstash REST API URL\n- `UPSTASH_REDIS_REST_TOKEN` - The Upstash REST API token\n\n### Overriding Credentials\n\nIf the user provides credentials from another source (conversation context, a file, etc.), use the `--url` and `--token` flags to override environment variables:\n\n```bash\nbun run scripts\u002Fupstash-client.ts --url \"https:\u002F\u002F...\" --token \"AX...\" GET mykey\n```\n\n**Priority**: Command-line flags > Environment variables\n\n## Command Reference\n\n### String Commands\n\n```bash\n# Get\u002FSet\nGET \u003Ckey>\nSET \u003Ckey> \u003Cvalue> [--ex seconds] [--px ms] [--nx] [--xx] [--keepttl] [--get]\nSETNX \u003Ckey> \u003Cvalue>                    # Set if not exists\nSETEX \u003Ckey> \u003Cseconds> \u003Cvalue>          # Set with expiration\n\n# Multiple keys (key\u002Fvalue pairs)\nMGET \u003Ckey1> [key2...]\nMSET \u003Ckey1> \u003Cval1> [key2 val2...]\nMSETNX \u003Ckey1> \u003Cval1> [key2 val2...]    # Set all if none exist\n\n# Counters\nINCR \u003Ckey>\nINCRBY \u003Ckey> \u003Cincrement>\nINCRBYFLOAT \u003Ckey> \u003Cincrement>\nDECR \u003Ckey>\nDECRBY \u003Ckey> \u003Cdecrement>\n\n# String manipulation\nAPPEND \u003Ckey> \u003Cvalue>\nSTRLEN \u003Ckey>\nGETRANGE \u003Ckey> \u003Cstart> \u003Cend>\nSETRANGE \u003Ckey> \u003Coffset> \u003Cvalue>\n```\n\n### Hash Commands\n\nHashes store field-value pairs. Pass fields and values as alternating arguments:\n\n```bash\n# Set hash fields (field\u002Fvalue pairs)\nHSET \u003Ckey> \u003Cfield1> \u003Cval1> [field2 val2...]\nHSETNX \u003Ckey> \u003Cfield> \u003Cvalue>           # Set field if not exists\n\n# Get hash fields\nHGET \u003Ckey> \u003Cfield>\nHMGET \u003Ckey> \u003Cfield1> [field2...]\nHGETALL \u003Ckey>\n\n# Hash operations\nHDEL \u003Ckey> \u003Cfield1> [field2...]\nHEXISTS \u003Ckey> \u003Cfield>\nHKEYS \u003Ckey>\nHVALS \u003Ckey>\nHLEN \u003Ckey>\nHINCRBY \u003Ckey> \u003Cfield> \u003Cincrement>\nHINCRBYFLOAT \u003Ckey> \u003Cfield> \u003Cincrement>\nHSCAN \u003Ckey> \u003Ccursor> [MATCH pattern] [COUNT count]\n```\n\n**Examples:**\n\n```bash\n# Store user data\nbun run scripts\u002Fupstash-client.ts HSET user:1 name \"John\" email \"john@example.com\" age 30\n\n# Get single field\nbun run scripts\u002Fupstash-client.ts HGET user:1 name\n\n# Get all fields\nbun run scripts\u002Fupstash-client.ts HGETALL user:1\n\n# Increment numeric field\nbun run scripts\u002Fupstash-client.ts HINCRBY user:1 age 1\n```\n\n### List Commands\n\nLists are ordered collections. Values are pushed\u002Fpopped from left (head) or right (tail):\n\n```bash\n# Push elements\nLPUSH \u003Ckey> \u003Cval1> [val2...]           # Push to head\nRPUSH \u003Ckey> \u003Cval1> [val2...]           # Push to tail\nLPUSHX \u003Ckey> \u003Cval1> [val2...]          # Push if list exists\nRPUSHX \u003Ckey> \u003Cval1> [val2...]\n\n# Pop elements\nLPOP \u003Ckey> [count]\nRPOP \u003Ckey> [count]\n\n# Access elements\nLRANGE \u003Ckey> \u003Cstart> \u003Cstop>            # Get range (0 = first, -1 = last)\nLLEN \u003Ckey>\nLINDEX \u003Ckey> \u003Cindex>\n\n# Modify\nLSET \u003Ckey> \u003Cindex> \u003Cvalue>\nLREM \u003Ckey> \u003Ccount> \u003Cvalue>             # Remove count occurrences\nLTRIM \u003Ckey> \u003Cstart> \u003Cstop>             # Keep only range\nLINSERT \u003Ckey> \u003CBEFORE|AFTER> \u003Cpivot> \u003Cvalue>\nLPOS \u003Ckey> \u003Cvalue>\nLMOVE \u003Csrc> \u003Cdst> \u003CLEFT|RIGHT> \u003CLEFT|RIGHT>\n```\n\n**Examples:**\n\n```bash\n# Create a task queue\nbun run scripts\u002Fupstash-client.ts RPUSH tasks \"task1\" \"task2\" \"task3\"\n\n# Get all tasks\nbun run scripts\u002Fupstash-client.ts LRANGE tasks 0 -1\n\n# Pop task from front (FIFO queue)\nbun run scripts\u002Fupstash-client.ts LPOP tasks\n\n# Pop task from back (LIFO stack)\nbun run scripts\u002Fupstash-client.ts RPOP tasks\n```\n\n### Set Commands\n\nSets store unique, unordered members:\n\n```bash\n# Add\u002Fremove members\nSADD \u003Ckey> \u003Cmember1> [member2...]\nSREM \u003Ckey> \u003Cmember1> [member2...]\n\n# Query\nSMEMBERS \u003Ckey>\nSISMEMBER \u003Ckey> \u003Cmember>\nSMISMEMBER \u003Ckey> \u003Cmember1> [member2...]\nSCARD \u003Ckey>\n\n# Random access\nSPOP \u003Ckey> [count]\nSRANDMEMBER \u003Ckey> [count]\n\n# Set operations\nSINTER \u003Ckey1> [key2...]\nSINTERSTORE \u003Cdest> \u003Ckey1> [key2...]\nSUNION \u003Ckey1> [key2...]\nSUNIONSTORE \u003Cdest> \u003Ckey1> [key2...]\nSDIFF \u003Ckey1> [key2...]\nSDIFFSTORE \u003Cdest> \u003Ckey1> [key2...]\nSMOVE \u003Csrc> \u003Cdst> \u003Cmember>\nSSCAN \u003Ckey> \u003Ccursor> [MATCH pattern] [COUNT count]\n```\n\n**Examples:**\n\n```bash\n# Add tags\nbun run scripts\u002Fupstash-client.ts SADD article:1:tags \"javascript\" \"redis\" \"nodejs\"\n\n# Check membership\nbun run scripts\u002Fupstash-client.ts SISMEMBER article:1:tags \"javascript\"\n\n# Get all members\nbun run scripts\u002Fupstash-client.ts SMEMBERS article:1:tags\n\n# Find common tags between articles\nbun run scripts\u002Fupstash-client.ts SINTER article:1:tags article:2:tags\n```\n\n### Sorted Set Commands\n\nSorted sets store members with scores for ranking:\n\n```bash\n# Add members (score\u002Fmember pairs)\nZADD \u003Ckey> \u003Cscore1> \u003Cmember1> [score2 member2...] [--nx] [--xx] [--gt] [--lt] [--ch]\n\n# Remove\nZREM \u003Ckey> \u003Cmember1> [member2...]\nZREMRANGEBYRANK \u003Ckey> \u003Cstart> \u003Cstop>\nZREMRANGEBYSCORE \u003Ckey> \u003Cmin> \u003Cmax>\n\n# Scores and ranks\nZSCORE \u003Ckey> \u003Cmember>\nZMSCORE \u003Ckey> \u003Cmember1> [member2...]\nZRANK \u003Ckey> \u003Cmember>                   # Rank (low to high)\nZREVRANK \u003Ckey> \u003Cmember>                # Rank (high to low)\nZINCRBY \u003Ckey> \u003Cincrement> \u003Cmember>\n\n# Range queries\nZRANGE \u003Ckey> \u003Cstart> \u003Cstop> [--withscores] [--rev] [--byscore] [--bylex]\nZRANGEBYSCORE \u003Ckey> \u003Cmin> \u003Cmax> [--withscores] [--limit off,count]\nZREVRANGE \u003Ckey> \u003Cstart> \u003Cstop> [--withscores]\nZREVRANGEBYSCORE \u003Ckey> \u003Cmax> \u003Cmin> [--withscores] [--limit off,count]\n\n# Counting\nZCARD \u003Ckey>\nZCOUNT \u003Ckey> \u003Cmin> \u003Cmax>\n\n# Pop\nZPOPMIN \u003Ckey> [count]\nZPOPMAX \u003Ckey> [count]\n\n# Set operations\nZINTERSTORE \u003Cdest> \u003Cnumkeys> \u003Ckey1> [key2...]\nZUNIONSTORE \u003Cdest> \u003Cnumkeys> \u003Ckey1> [key2...]\nZSCAN \u003Ckey> \u003Ccursor> [MATCH pattern] [COUNT count]\n```\n\n**Examples:**\n\n```bash\n# Create leaderboard (score member pairs)\nbun run scripts\u002Fupstash-client.ts ZADD leaderboard 1000 \"player1\" 1500 \"player2\" 1200 \"player3\"\n\n# Get top 3 with scores (highest first)\nbun run scripts\u002Fupstash-client.ts ZRANGE leaderboard 0 2 --rev --withscores\n\n# Get player's rank\nbun run scripts\u002Fupstash-client.ts ZREVRANK leaderboard \"player2\"\n\n# Increment player's score\nbun run scripts\u002Fupstash-client.ts ZINCRBY leaderboard 100 \"player1\"\n\n# Get players with scores between 1000 and 1500\nbun run scripts\u002Fupstash-client.ts ZRANGEBYSCORE leaderboard 1000 1500 --withscores\n```\n\n### Key Commands\n\n```bash\n# Delete\nDEL \u003Ckey1> [key2...]\nUNLINK \u003Ckey1> [key2...]                # Async delete\n\n# Existence\u002FType\nEXISTS \u003Ckey1> [key2...]\nTYPE \u003Ckey>\n\n# Expiration\nEXPIRE \u003Ckey> \u003Cseconds>\nEXPIREAT \u003Ckey> \u003Ctimestamp>\nPEXPIRE \u003Ckey> \u003Cmilliseconds>\nPEXPIREAT \u003Ckey> \u003Ctimestamp>\nTTL \u003Ckey>\nPTTL \u003Ckey>\nPERSIST \u003Ckey>                          # Remove expiration\n\n# Rename\nRENAME \u003Ckey> \u003Cnewkey>\nRENAMENX \u003Ckey> \u003Cnewkey>\n\n# Search\nKEYS \u003Cpattern>                         # Use with caution in production\nSCAN \u003Ccursor> [MATCH pattern] [COUNT count]\n\n# Other\nCOPY \u003Csrc> \u003Cdst>\nDUMP \u003Ckey>\nTOUCH \u003Ckey1> [key2...]\nRANDOMKEY\nOBJECT ENCODING|FREQ|IDLETIME|REFCOUNT \u003Ckey>\n```\n\n**Examples:**\n\n```bash\n# Set key with 1 hour expiration\nbun run scripts\u002Fupstash-client.ts SET session:abc \"data\"\nbun run scripts\u002Fupstash-client.ts EXPIRE session:abc 3600\n\n# Or in one command\nbun run scripts\u002Fupstash-client.ts SET session:abc \"data\" --ex 3600\n\n# Check TTL\nbun run scripts\u002Fupstash-client.ts TTL session:abc\n\n# Scan keys matching pattern\nbun run scripts\u002Fupstash-client.ts SCAN 0 MATCH \"user:*\" COUNT 100\n```\n\n### Server Commands\n\n```bash\nPING [message]\nECHO \u003Cmessage>\nDBSIZE\nTIME\nINFO [section]\nFLUSHDB                                # Delete all keys in current DB (DANGEROUS)\nFLUSHALL                               # Delete all keys in all DBs (DANGEROUS)\n```\n\n## Command Options\n\n### SET Options\n\n```bash\n--ex \u003Cseconds>     # Expire in seconds\n--px \u003Cms>          # Expire in milliseconds\n--exat \u003Cts>        # Expire at Unix timestamp (seconds)\n--pxat \u003Cts>        # Expire at Unix timestamp (ms)\n--nx               # Only set if key does not exist\n--xx               # Only set if key exists\n--keepttl          # Retain existing TTL\n--get              # Return old value\n```\n\n### ZADD Options\n\n```bash\n--nx               # Only add new members\n--xx               # Only update existing members\n--gt               # Only update if new score > current\n--lt               # Only update if new score \u003C current\n--ch               # Return number of changed elements\n```\n\n### ZRANGE Options\n\n```bash\n--withscores       # Include scores in output\n--byscore          # Range by score instead of rank\n--bylex            # Range by lexicographical order\n--rev              # Reverse order\n--limit off,count  # Limit results (e.g., --limit 0,10)\n```\n\n## Output Format\n\n- **String values**: Printed directly\n- **null\u002Fnil**: Prints `(nil)`\n- **Objects\u002Farrays**: Pretty-printed as JSON\n\n## Confirmation Behaviour\n\n### Default: Ask for Confirmation\n\nBefore executing any destructive operation (write, modify, or delete), you MUST ask the user for confirmation. This includes:\n\n**Write operations:**\n- SET, SETNX, SETEX, PSETEX, MSET, MSETNX\n- HSET, HSETNX\n- LPUSH, RPUSH, LPUSHX, RPUSHX, LSET, LINSERT\n- SADD\n- ZADD\n\n**Modify operations:**\n- INCR, INCRBY, INCRBYFLOAT, DECR, DECRBY\n- APPEND, SETRANGE\n- HINCRBY, HINCRBYFLOAT\n- LREM, LTRIM, LMOVE\n- ZINCRBY\n\n**Delete operations:**\n- DEL, UNLINK\n- HDEL\n- LPOP, RPOP\n- SREM, SPOP, SMOVE\n- ZREM, ZREMRANGEBYRANK, ZREMRANGEBYSCORE, ZPOPMIN, ZPOPMAX\n- FLUSHDB, FLUSHALL (extra caution)\n\n**TTL\u002FRename operations:**\n- EXPIRE, EXPIREAT, PEXPIRE, PEXPIREAT, PERSIST\n- RENAME, RENAMENX\n\nExample confirmation prompt:\n> \"I'm about to HSET `user:1` with fields `{name: \"John\", email: \"john@example.com\"}`. Proceed?\"\n\n### YOLO Mode: Skip Confirmation\n\nIf the user indicates they do not want to be asked for confirmation, respect this for all subsequent operations. Indicators include:\n\n- \"YOLO mode\"\n- \"Don't ask for confirmation\"\n- \"You're free to make changes without asking\"\n- \"Just do it\"\n- \"No need to confirm\"\n- \"Auto-approve\" or \"auto-confirm\"\n- Any similar phrasing indicating blanket approval\n\nOnce YOLO mode is activated, proceed with destructive operations without asking, but still inform the user what was done.\n\nExample:\n> Set `user:1` with `{name: \"John\", email: \"john@example.com\"}` - done.\n\n## Error Handling\n\nIf credentials are missing or invalid, the script will exit with an error message. Ensure the user has configured either:\n1. Environment variables (`UPSTASH_REDIS_REST_URL`, `UPSTASH_REDIS_REST_TOKEN`)\n2. Or provides credentials via `--url` and `--token` flags\n\n## When to Use This Skill\n\n- User explicitly asks to store or retrieve data from Upstash\u002FRedis\n- Need to persist data across conversations or sessions\n- Implementing caching for expensive operations\n- Maintaining counters, rate limits, or statistics\n- Storing user preferences or session data\n- Building leaderboards or rankings (sorted sets)\n- Managing queues or task lists (lists)\n- Tagging or categorisation (sets)\n- Storing structured objects (hashes)\n- Any scenario requiring fast key-value storage\n",{"description":7},"main","58843b159d7a4050d6b785a98b908cce505c0b92","agent\u002Fskills\u002Fupstash-redis-kv",0,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent","https:\u002F\u002Fgithub.com\u002FReihantt6","reihsns.web.id","2026-08-19 20:08:18",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Reihantt6\u002Fsns-myagent --skill upstash-redis-kv",{"tool":38,"command":39},"bunx","bunx skills add Reihantt6\u002Fsns-myagent --skill upstash-redis-kv",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Reihantt6\u002Fsns-myagent --skill upstash-redis-kv","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fupstash-redis-kv\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"scripts\u002Fupstash-client.ts","SCRIPT","脚本",21530,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fupstash-redis-kv\u002Fscripts\u002Fupstash-client.ts",[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M77XDCYZ407XYMF2T4P6F7VT","youtube-transcript","Extract transcripts from YouTube videos. Use when the user asks for a transcript, subtitles, or captions of a YouTube video and provides a YouTube URL (youtube.com\u002Fwatch?v=, youtu.be\u002F, or similar). Supports output with or without timestamps.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-transcript\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M77XD7PBC98J6MXGJJ2TJ8DX","youtube-thumbnail-design","YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A\u002FB testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-thumbnail-design\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M77XD2541C8HXJ6RHYZP4NGJ","youtube-short-maker","Make YouTube Shorts that hold attention with Pexo — vertical 9:16, fast-paced, hook in the first 3 seconds. Describe your topic and Pexo writes the script, generates the shots, picks the models, and assembles a finished Short with music and captions. Use for YouTube Shorts: \"youtube short\", \"make a youtube short\", \"shorts video\", \"short-form video\". NOT for long-form or landscape video.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-short-maker\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M77XCXKVSYK7KTZ3PQBVVGFD","xcode-project-setup","Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fxcode-project-setup\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M77XCR1DV8ZQK2NHWKVY4EWX","x402","Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — \"just use it\" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing touches your codebase) or \"build it in\" (install the SDK and write the key + code into your project). Walks through wallet setup, funding, .env, and a ~$1 test run. Use when the user asks about x402, pay-per-use, USDC payments, or wants Browser Use Cloud without an API key. For the free-tier signup (reverse-CAPTCHA → API key), use `browser-use cloud signup` or the `cloud` skill instead.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx402\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M77XCMD3R3ZBZQQSW6E0793B","x-twitter-scraper","Build GitHub Copilot workflows with Xquik X API SDKs, REST endpoints, hosted Apify Actor runs, MCP tools, TweetClaw OpenClaw plugin installs, signed webhooks, tweet search, user lookup, follower exports, media actions, and agent automation.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx-twitter-scraper\u002FSKILL.md",[],[]]