[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EVPF750M2WG1189PBVQ6J1":3,"skill-same:01M7EVPF750M2WG1189PBVQ6J1":47},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EVPF750M2WG1189PBVQ6J1","redis-pro",null,"Redis data structures, caching strategies, and production operations — use when adding caching, queues, or rate limiting with Redis.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-redis-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: redis-pro\ndescription: Redis data structures, caching strategies, and production operations — use when adding caching, queues, or rate limiting with Redis.\ncategory: database\n---\n\n## Overview\n\nRedis is an in-memory data structure server: strings, hashes, lists, sets, sorted\nsets, streams, and more — each with atomic operations that make it far more than\n\"a cache\". This skill covers choosing the right structure, cache patterns,\npersistence trade-offs, and running Redis reliably.\n\n## When to use\n\n- Designing a cache layer (cache-aside, write-through, TTLs)\n- Building rate limiters, leaderboards, queues, or pub\u002Fsub with Redis\n- Choosing persistence (RDB snapshots vs AOF) and eviction policies\n- Debugging memory growth, latency spikes, or key-space problems\n- Using Redis Streams, probabilistic structures (HyperLogLog, Bloom), or Lua scripts\n\n## Core concepts\n\n**Pick the structure for the operation.** Counters → `INCR` on strings. Objects\nwith field access → hashes (`HGET`\u002F`HSET`) to avoid serializing whole blobs.\nLeaderboards → sorted sets (`ZADD`\u002F`ZRANGE` with scores). Queues → lists\n(`LPUSH`\u002F`BRPOP`) or Streams for durable consumer groups. Time-series-ish\nexpiring data → keys with TTL. The wrong structure turns O(1) ops into O(N).\n\n**Cache invalidation is the hard part.** Cache-aside (read-through on miss, write\naround or through on update) is the default. Set explicit TTLs even when you\ninvalidate on write — TTLs are your safety net against stale data when\ninvalidation fails. For thundering-herd protection on hot keys, use request\ncoalescing or short stale-while-revalidate windows.\n\n**Single-threaded means slow commands hurt everyone.** `KEYS *`, `SMEMBERS` on\nhuge sets, and `SORT` without `STORE` block the event loop. Use `SCAN` with\n`COUNT` for iteration, and keep Lua scripts short — they execute atomically and\nblock everything while running.\n\n**Persistence is a spectrum.** RDB snapshots are compact and fast to restore but\nlose recent writes on crash. AOF logs every write (durable, larger, slower\nrewrites). Many cache-only deployments disable persistence entirely and treat\nRedis as ephemeral — a valid choice if the source of truth is elsewhere.\n\n**Eviction policies.** `noeviction` (error on full — for non-cache uses),\n`allkeys-lru` \u002F `volatile-lru` (classic cache behavior), `allkeys-lfu`. Match the\npolicy to the workload; the wrong one evicts hot keys or errors under load.\n\n## Practical workflow\n\n1. **Define the access pattern** (read\u002Fwrite ratio, key lifetime, consistency\n   needs) before choosing structures or TTLs.\n2. **Namespace keys** (`service:entity:id`) and keep values small — huge values\n   waste memory and network; consider hashes or splitting.\n3. **Set TTLs everywhere** for cache data; monitor `expired_keys` and\n   `evicted_keys` in `INFO stats` to confirm expiry behaves as expected.\n4. **Load-test the slow path:** benchmark `SCAN` iterations, Lua scripts, and\n   large `ZRANGE` calls under realistic data sizes.\n5. **Monitor memory:** `INFO memory` (used vs peak, fragmentation ratio),\n   `MEMORY USAGE \u003Ckey>` for suspicious keys, and `--bigkeys` sampling to find\n   offenders.\n6. **Plan failover:** Redis Sentinel or Cluster for HA; test failover before you\n   need it; decide whether clients tolerate brief write loss during failover.\n\n## Common pitfalls\n\n- **No TTL on cache keys** — memory grows forever until eviction or OOM; always\n  bound key lifetime.\n- **Storing sessions or critical data in Redis with no persistence and no\n  fallback** — a restart wipes everything; know what \"ephemeral\" costs you.\n- **Hot keys on Cluster** — one extremely hot key lands on one shard; mitigate\n  with local client-side caching or key sharding (`key:{shard}:...`).\n- **Blocking commands in request paths** (`BLPOP` with long timeouts,\n  `SUBSCRIBE` in a web worker) — tie up connections; use dedicated connections\n  for blocking\u002Fpub-sub use.\n- **Lua scripts that loop over unbounded data** — atomicity means the whole\n  server waits; bound the work or move it client-side.\n- **Assuming `DEL`\u002F`EXPIRE` are instant on huge values** — in older versions\n  deleting multi-MB values blocks; use `UNLINK` (non-blocking delete) for large\n  keys.\n","## Overview\n\nRedis is an in-memory data structure server: strings, hashes, lists, sets, sorted\nsets, streams, and more — each with atomic operations that make it far more than\n\"a cache\". This skill covers choosing the right structure, cache patterns,\npersistence trade-offs, and running Redis reliably.\n\n## When to use\n\n- Designing a cache layer (cache-aside, write-through, TTLs)\n- Building rate limiters, leaderboards, queues, or pub\u002Fsub with Redis\n- Choosing persistence (RDB snapshots vs AOF) and eviction policies\n- Debugging memory growth, latency spikes, or key-space problems\n- Using Redis Streams, probabilistic structures (HyperLogLog, Bloom), or Lua scripts\n\n## Core concepts\n\n**Pick the structure for the operation.** Counters → `INCR` on strings. Objects\nwith field access → hashes (`HGET`\u002F`HSET`) to avoid serializing whole blobs.\nLeaderboards → sorted sets (`ZADD`\u002F`ZRANGE` with scores). Queues → lists\n(`LPUSH`\u002F`BRPOP`) or Streams for durable consumer groups. Time-series-ish\nexpiring data → keys with TTL. The wrong structure turns O(1) ops into O(N).\n\n**Cache invalidation is the hard part.** Cache-aside (read-through on miss, write\naround or through on update) is the default. Set explicit TTLs even when you\ninvalidate on write — TTLs are your safety net against stale data when\ninvalidation fails. For thundering-herd protection on hot keys, use request\ncoalescing or short stale-while-revalidate windows.\n\n**Single-threaded means slow commands hurt everyone.** `KEYS *`, `SMEMBERS` on\nhuge sets, and `SORT` without `STORE` block the event loop. Use `SCAN` with\n`COUNT` for iteration, and keep Lua scripts short — they execute atomically and\nblock everything while running.\n\n**Persistence is a spectrum.** RDB snapshots are compact and fast to restore but\nlose recent writes on crash. AOF logs every write (durable, larger, slower\nrewrites). Many cache-only deployments disable persistence entirely and treat\nRedis as ephemeral — a valid choice if the source of truth is elsewhere.\n\n**Eviction policies.** `noeviction` (error on full — for non-cache uses),\n`allkeys-lru` \u002F `volatile-lru` (classic cache behavior), `allkeys-lfu`. Match the\npolicy to the workload; the wrong one evicts hot keys or errors under load.\n\n## Practical workflow\n\n1. **Define the access pattern** (read\u002Fwrite ratio, key lifetime, consistency\n   needs) before choosing structures or TTLs.\n2. **Namespace keys** (`service:entity:id`) and keep values small — huge values\n   waste memory and network; consider hashes or splitting.\n3. **Set TTLs everywhere** for cache data; monitor `expired_keys` and\n   `evicted_keys` in `INFO stats` to confirm expiry behaves as expected.\n4. **Load-test the slow path:** benchmark `SCAN` iterations, Lua scripts, and\n   large `ZRANGE` calls under realistic data sizes.\n5. **Monitor memory:** `INFO memory` (used vs peak, fragmentation ratio),\n   `MEMORY USAGE \u003Ckey>` for suspicious keys, and `--bigkeys` sampling to find\n   offenders.\n6. **Plan failover:** Redis Sentinel or Cluster for HA; test failover before you\n   need it; decide whether clients tolerate brief write loss during failover.\n\n## Common pitfalls\n\n- **No TTL on cache keys** — memory grows forever until eviction or OOM; always\n  bound key lifetime.\n- **Storing sessions or critical data in Redis with no persistence and no\n  fallback** — a restart wipes everything; know what \"ephemeral\" costs you.\n- **Hot keys on Cluster** — one extremely hot key lands on one shard; mitigate\n  with local client-side caching or key sharding (`key:{shard}:...`).\n- **Blocking commands in request paths** (`BLPOP` with long timeouts,\n  `SUBSCRIBE` in a web worker) — tie up connections; use dedicated connections\n  for blocking\u002Fpub-sub use.\n- **Lua scripts that loop over unbounded data** — atomicity means the whole\n  server waits; bound the work or move it client-side.\n- **Assuming `DEL`\u002F`EXPIRE` are instant on huge values** — in older versions\n  deleting multi-MB values blocks; use `UNLINK` (non-blocking delete) for large\n  keys.\n",{"name":5,"category":24,"description":7},"database","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-redis-pro",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill redis-pro",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill redis-pro",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill redis-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-redis-pro\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]