[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A7CVX79Z4J9R11TB5HT73J":3,"skill-same:01M7A7CVX79Z4J9R11TB5HT73J":73},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7A7CVX79Z4J9R11TB5HT73J","redis-cache-expert",null,"Design and implement Redis caching strategies for cloud-native services. Use when adding caching to context-layer, items, or any service using go-redis, ioredis, or redis-py; choosing between cache-aside and write-through; designing TTL strategies; implementing pub\u002Fsub; writing Lua scripts for atomic operations; configuring connection pooling; or debugging cache stampede and hot-key issues. Trigger: Redis, cache, TTL, cache stampede, hot-key, pub\u002Fsub, go-redis, ioredis, redis-py. Do NOT trigger for: database schema design, application-level in-memory caching, CDN configuration.","ronsilver\u002Fagent-covenant","ronsilver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F46677526?v=4","01M7A719H1DVMZSKNAESAC82DA","Jorge Maturana","01M7A719J5GP33TM303CB8NN00",1,"MIT","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fredis-cache-expert\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: redis-cache-expert\ndescription: \"Design and implement Redis caching strategies for cloud-native services. Use when adding caching to context-layer, items, or any service using go-redis, ioredis, or redis-py; choosing between cache-aside and write-through; designing TTL strategies; implementing pub\u002Fsub; writing Lua scripts for atomic operations; configuring connection pooling; or debugging cache stampede and hot-key issues. Trigger: Redis, cache, TTL, cache stampede, hot-key, pub\u002Fsub, go-redis, ioredis, redis-py. Do NOT trigger for: database schema design, application-level in-memory caching, CDN configuration.\"\nlicense: MIT\nmetadata:\n  author: Community\n  version: \"1.0\"\n  category: infrastructure\n  status: stable\n---\n\n# Redis Cache Expert\n\n**Design and implement Redis caching strategies across services.**\n\n**See [references\u002Foverview.md](references\u002Foverview.md)**\n\n## Core Clients\n\n| Language | Library | repos |\n|---|---|---|\n| Go | `go-redis\u002Fredis\u002Fv9` | items, message broker |\n| Python | `redis-py` (async: `aioredis`) | context-layer |\n| Node.js | `ioredis` | API middlewares |\n\n## Data Structures Decision\n\n```\nString   → simple key-value, counters, session tokens\nHash     → object with multiple fields (user profile, config)\nList     → queues, recent items (LPUSH + LTRIM)\nSet      → unique members, tags\nSorted Set → leaderboards, rate-limit windows, priority queues\n```\n\n## Cache Patterns\n\n**See [references\u002Fpatterns.md](references\u002Fpatterns.md)**\n\n```python\n# Cache-aside (read-through — preferred)\nvalue = redis.get(key)\nif not value:\n    value = db.query(...)\n    redis.setex(key, ttl=300, value=serialize(value))\nreturn deserialize(value)\n\n# Write-through: update DB + cache atomically\n# Write-behind: update cache → async flush to DB (use sparingly)\n```\n\n## Workflow\n\n1. Identify hot read path (measured, not assumed)\n2. Choose data structure + pattern (cache-aside vs write-through)\n3. Define TTL (short for volatile data, longer for reference data)\n4. Implement with connection pool (never new connection per request)\n5. Add cache invalidation on write path\n6. Monitor: `INFO stats`, `MONITOR`, hit\u002Fmiss ratio\n\n→ [references\u002Fworkflow.md](references\u002Fworkflow.md) | [references\u002Fcode-patterns.md](references\u002Fcode-patterns.md)\n\n## Constraints\n\n- NEVER new Redis connection per request → reuse pool\n- NEVER cache PII without encryption (personal identifiers, tokens, sensitive fields)\n- NEVER cache without TTL (no unbounded memory growth)\n- ALWAYS use `SETEX` \u002F `SET EX` — never `SET` alone for cached data\n- ALWAYS namespace keys: `\u003Cservice>:\u003Centity>:\u003Cid>` (e.g. `cache:context:customer_123`)\n- ALWAYS invalidate cache on write (stale reads cause bugs worse than cache misses)\n- NEVER use Redis as primary store for transactional data → PostgreSQL is SoT\n- ALWAYS handle `ConnectionError` \u002F `TimeoutError` with fallback to source\n\n## Security\n\n- NEVER deserialize cached blobs from outside the service (CWE-502) — only decode own-service data\n- ALWAYS use Redis ACLs — never run as default user with full permissions\n- ALWAYS enable TLS for Redis transport and require auth (ACL user)\n- ALWAYS namespace keys per service to prevent cross-service access\n\n## Overview\n\nDesign and implement Redis caching strategies for cloud-native services including cache-aside, write-through, and write-behind patterns. Covers data structure selection (String, Hash, List, Set, Sorted Set), connection pooling, TTL management, and cache invalidation. Includes troubleshooting for cache stampede, hot-key issues, and memory eviction.\n\n## Anti-patterns\n\nFAIL: Creating a new Redis connection per request\n```go\nclient := redis.NewClient(&redis.Options{Addr: \"localhost:6379\"})\ndefer client.Close()\n```\n\nPASS: Use a connection pool (single client reused)\n```go\nvar rdb *redis.Client\nfunc init() {\n    rdb = redis.NewClient(&redis.Options{Addr: \"localhost:6379\", PoolSize: 100})\n}\n```\n\nFAIL: Caching without TTL (unbounded memory growth)\n```go\nredis.Set(ctx, \"key\", value, 0) \u002F\u002F 0 = no expiry\n```\n\nPASS: Always set TTL with SETEX or SET EX\n```go\nredis.SetEx(ctx, \"key\", value, 300 * time.Second)\n```\n\nFAIL: Redis as primary store for transactions\n```go\nif err := redis.Set(ctx, \"rec:\"+id, rec, 0).Err(); err != nil { ... }\n```\n\nPASS: PostgreSQL is source of truth; Redis is ephemeral cache\n```go\ndb.Save(&rec)\nredis.SetEx(ctx, \"rec:\"+id, rec, 5*time.Minute)\n```\n\nFAIL: Flat keys without namespace collision\n```go\nredis.Get(ctx, \"user:123\")\n```\n\nPASS: Namespaced keys to prevent collisions\n```go\nredis.Get(ctx, \"items:user:123:profile\")\n```\n\nFAIL: No cache stampede protection for hot keys (thundering herd)\n```go\nfunc getPopularItems(ctx context.Context) ([]Item, error) {\n    val, err := rdb.Get(ctx, \"popular:items\").Result()\n    if err == redis.Nil {\n        items, _ := db.Query(...)  \u002F\u002F all concurrent requests hit DB\n        rdb.SetEx(ctx, \"popular:items\", items, 60*time.Second)\n        return items, nil\n    }\n    ...\n}\n```\n\nPASS: Use Lua locking — one computes, rest wait\n```lua\n-- Lua script: lock + get-or-compute\nlocal key = KEYS[1]\nlocal lock_key = key .. \":lock\"\nlocal ttl = ARGV[1]\nlocal value = redis.call(\"GET\", key)\nif value then return value end\nlocal locked = redis.call(\"SET\", lock_key, \"1\", \"NX\", \"EX\", \"2\")\nif locked then return \"COMPUTE\" end\nfor i = 1, 5 do\n    value = redis.call(\"GET\", key)\n    if value then return value end\n    redis.call(\"SLEEP\", 0.1)\nend\nreturn nil\n```\n\n```go\n\u002F\u002F Go: call script, only COMPUTE caller queries DB\nval, err := rdb.Eval(ctx, stampedeScript, []string{\"popular:items\"}, \"300\").Result()\nif val == \"COMPUTE\" {\n    items := loadFromDB()\n    rdb.SetEx(ctx, \"popular:items\", items, 300*time.Second)\n}\n```\n\nFAIL: Wrong serialization — storing Python dicts without encoding\n```python\nredis.set(\"user:123\", {\"role\": \"admin\", \"permissions\": [\"read\", \"write\"]})\n# TypeError: unhashable type: 'dict'\n```\n\nPASS: Always serialize with JSON or msgpack\n```python\nredis.setex(\"user:123\", 300, json.dumps({\"role\": \"admin\", \"permissions\": [\"read\", \"write\"]}))\n```\n\n## References\n\n| Resource | URL | Last verified |\n|---|---|---|\n| Redis docs — Data structures | https:\u002F\u002Fredis.io\u002Fdocs\u002Fdata-types\u002F | 2026-03 |\n| Redis docs — SETEX command | https:\u002F\u002Fredis.io\u002Fcommands\u002Fsetex\u002F | 2026-03 |\n| go-redis documentation | https:\u002F\u002Fredis.uptrace.dev\u002Fguide\u002F | 2026-03 |\n\n## Verification Checklist\n\n- [ ] Redis connection uses pool (never new connection per request)\n- [ ] All cached entries have explicit TTL (no unbounded memory growth)\n- [ ] Keys namespaced: `\u003Cservice>:\u003Centity>:\u003Cid>`\n- [ ] Cache invalidated on every relevant write path\n- [ ] Fallback to source implemented on `ConnectionError` \u002F `TimeoutError`\n- [ ] No PII cached without encryption\n- [ ] Redis is not used as primary store for transactional data\n- [ ] Only own-service blobs deserialized; ACLs and TLS enforced on Redis\n\n## Troubleshooting\n\n| Symptom | Likely cause | Fix |\n|---------|-------------|-----|\n| High cache miss ratio | TTL too short or cache-aside not populating on miss | Verify cache-aside fill path; increase TTL for stable reference data |\n| Memory usage grows unbounded | Keys created without TTL (0 = no expiry) | Scan for `SET` without `EX`; add TTL to all cached entries |\n| Cache stampede on popular key | Multiple concurrent misses for same key on expiry | Implement mutex\u002Flocking around cache fill; use write-through for hot keys |\n| Connection refused \u002F timeout | Pool exhausted or Redis maxclients limit hit | Reduce pool size; increase Redis `maxclients`; check for slow commands |\n| Lua script returns `NOSCRIPT` error during failover (known issue: EVALSHA cache lost on failover) | EVALSHA script cache not replicated; promoted replica lacks script | Fall back to `EVAL` on `NOSCRIPT` error; use `SCRIPT LOAD` on connection establishment |\n| `KEYS *` blocks Redis for seconds on datasets >10K keys | `KEYS` is O(N) blocking — scans all keys | Use `SCAN 0 COUNT 100` — non-blocking cursor-based iteration |\n| `MGET` returns nil silently for missing keys (no error) | Redis returns nil for non-existent key, not error | Check each returned element for nil; NEVER rely on error return value |\n\n## Quick Reference\n\n| Concept | Rule | Example |\n|---------|------|--------|\n| TTL | Always set on cached data | `SETEX key 300 value` |\n| Namespace | Prevent collisions across services | `items:user:123:profile` |\n| Connection pool | Reuse, never per-request instantiation | `PoolSize: 100` |\n| Eviction policy | Match workload pattern | `maxmemory-policy allkeys-lru` |\n| Serialization | Always encode complex types | `json.dumps()` \u002F `msgpack.packb()` |\n\n| [WARN] Redis `SCAN` cursor wraps around silently, missing keys on large datasets | SCAN cursor is 64-bit; internal hash table rehashing can cause cursor reset to zero mid-scan | Implement multi-cursor tracking; count distinct keys returned vs expected; fall back to KEYS if scan fails |\n","# Redis Cache Expert\n\n**Design and implement Redis caching strategies across services.**\n\n**See [references\u002Foverview.md](references\u002Foverview.md)**\n\n## Core Clients\n\n| Language | Library | repos |\n|---|---|---|\n| Go | `go-redis\u002Fredis\u002Fv9` | items, message broker |\n| Python | `redis-py` (async: `aioredis`) | context-layer |\n| Node.js | `ioredis` | API middlewares |\n\n## Data Structures Decision\n\n```\nString   → simple key-value, counters, session tokens\nHash     → object with multiple fields (user profile, config)\nList     → queues, recent items (LPUSH + LTRIM)\nSet      → unique members, tags\nSorted Set → leaderboards, rate-limit windows, priority queues\n```\n\n## Cache Patterns\n\n**See [references\u002Fpatterns.md](references\u002Fpatterns.md)**\n\n```python\n# Cache-aside (read-through — preferred)\nvalue = redis.get(key)\nif not value:\n    value = db.query(...)\n    redis.setex(key, ttl=300, value=serialize(value))\nreturn deserialize(value)\n\n# Write-through: update DB + cache atomically\n# Write-behind: update cache → async flush to DB (use sparingly)\n```\n\n## Workflow\n\n1. Identify hot read path (measured, not assumed)\n2. Choose data structure + pattern (cache-aside vs write-through)\n3. Define TTL (short for volatile data, longer for reference data)\n4. Implement with connection pool (never new connection per request)\n5. Add cache invalidation on write path\n6. Monitor: `INFO stats`, `MONITOR`, hit\u002Fmiss ratio\n\n→ [references\u002Fworkflow.md](references\u002Fworkflow.md) | [references\u002Fcode-patterns.md](references\u002Fcode-patterns.md)\n\n## Constraints\n\n- NEVER new Redis connection per request → reuse pool\n- NEVER cache PII without encryption (personal identifiers, tokens, sensitive fields)\n- NEVER cache without TTL (no unbounded memory growth)\n- ALWAYS use `SETEX` \u002F `SET EX` — never `SET` alone for cached data\n- ALWAYS namespace keys: `\u003Cservice>:\u003Centity>:\u003Cid>` (e.g. `cache:context:customer_123`)\n- ALWAYS invalidate cache on write (stale reads cause bugs worse than cache misses)\n- NEVER use Redis as primary store for transactional data → PostgreSQL is SoT\n- ALWAYS handle `ConnectionError` \u002F `TimeoutError` with fallback to source\n\n## Security\n\n- NEVER deserialize cached blobs from outside the service (CWE-502) — only decode own-service data\n- ALWAYS use Redis ACLs — never run as default user with full permissions\n- ALWAYS enable TLS for Redis transport and require auth (ACL user)\n- ALWAYS namespace keys per service to prevent cross-service access\n\n## Overview\n\nDesign and implement Redis caching strategies for cloud-native services including cache-aside, write-through, and write-behind patterns. Covers data structure selection (String, Hash, List, Set, Sorted Set), connection pooling, TTL management, and cache invalidation. Includes troubleshooting for cache stampede, hot-key issues, and memory eviction.\n\n## Anti-patterns\n\nFAIL: Creating a new Redis connection per request\n```go\nclient := redis.NewClient(&redis.Options{Addr: \"localhost:6379\"})\ndefer client.Close()\n```\n\nPASS: Use a connection pool (single client reused)\n```go\nvar rdb *redis.Client\nfunc init() {\n    rdb = redis.NewClient(&redis.Options{Addr: \"localhost:6379\", PoolSize: 100})\n}\n```\n\nFAIL: Caching without TTL (unbounded memory growth)\n```go\nredis.Set(ctx, \"key\", value, 0) \u002F\u002F 0 = no expiry\n```\n\nPASS: Always set TTL with SETEX or SET EX\n```go\nredis.SetEx(ctx, \"key\", value, 300 * time.Second)\n```\n\nFAIL: Redis as primary store for transactions\n```go\nif err := redis.Set(ctx, \"rec:\"+id, rec, 0).Err(); err != nil { ... }\n```\n\nPASS: PostgreSQL is source of truth; Redis is ephemeral cache\n```go\ndb.Save(&rec)\nredis.SetEx(ctx, \"rec:\"+id, rec, 5*time.Minute)\n```\n\nFAIL: Flat keys without namespace collision\n```go\nredis.Get(ctx, \"user:123\")\n```\n\nPASS: Namespaced keys to prevent collisions\n```go\nredis.Get(ctx, \"items:user:123:profile\")\n```\n\nFAIL: No cache stampede protection for hot keys (thundering herd)\n```go\nfunc getPopularItems(ctx context.Context) ([]Item, error) {\n    val, err := rdb.Get(ctx, \"popular:items\").Result()\n    if err == redis.Nil {\n        items, _ := db.Query(...)  \u002F\u002F all concurrent requests hit DB\n        rdb.SetEx(ctx, \"popular:items\", items, 60*time.Second)\n        return items, nil\n    }\n    ...\n}\n```\n\nPASS: Use Lua locking — one computes, rest wait\n```lua\n-- Lua script: lock + get-or-compute\nlocal key = KEYS[1]\nlocal lock_key = key .. \":lock\"\nlocal ttl = ARGV[1]\nlocal value = redis.call(\"GET\", key)\nif value then return value end\nlocal locked = redis.call(\"SET\", lock_key, \"1\", \"NX\", \"EX\", \"2\")\nif locked then return \"COMPUTE\" end\nfor i = 1, 5 do\n    value = redis.call(\"GET\", key)\n    if value then return value end\n    redis.call(\"SLEEP\", 0.1)\nend\nreturn nil\n```\n\n```go\n\u002F\u002F Go: call script, only COMPUTE caller queries DB\nval, err := rdb.Eval(ctx, stampedeScript, []string{\"popular:items\"}, \"300\").Result()\nif val == \"COMPUTE\" {\n    items := loadFromDB()\n    rdb.SetEx(ctx, \"popular:items\", items, 300*time.Second)\n}\n```\n\nFAIL: Wrong serialization — storing Python dicts without encoding\n```python\nredis.set(\"user:123\", {\"role\": \"admin\", \"permissions\": [\"read\", \"write\"]})\n# TypeError: unhashable type: 'dict'\n```\n\nPASS: Always serialize with JSON or msgpack\n```python\nredis.setex(\"user:123\", 300, json.dumps({\"role\": \"admin\", \"permissions\": [\"read\", \"write\"]}))\n```\n\n## References\n\n| Resource | URL | Last verified |\n|---|---|---|\n| Redis docs — Data structures | https:\u002F\u002Fredis.io\u002Fdocs\u002Fdata-types\u002F | 2026-03 |\n| Redis docs — SETEX command | https:\u002F\u002Fredis.io\u002Fcommands\u002Fsetex\u002F | 2026-03 |\n| go-redis documentation | https:\u002F\u002Fredis.uptrace.dev\u002Fguide\u002F | 2026-03 |\n\n## Verification Checklist\n\n- [ ] Redis connection uses pool (never new connection per request)\n- [ ] All cached entries have explicit TTL (no unbounded memory growth)\n- [ ] Keys namespaced: `\u003Cservice>:\u003Centity>:\u003Cid>`\n- [ ] Cache invalidated on every relevant write path\n- [ ] Fallback to source implemented on `ConnectionError` \u002F `TimeoutError`\n- [ ] No PII cached without encryption\n- [ ] Redis is not used as primary store for transactional data\n- [ ] Only own-service blobs deserialized; ACLs and TLS enforced on Redis\n\n## Troubleshooting\n\n| Symptom | Likely cause | Fix |\n|---------|-------------|-----|\n| High cache miss ratio | TTL too short or cache-aside not populating on miss | Verify cache-aside fill path; increase TTL for stable reference data |\n| Memory usage grows unbounded | Keys created without TTL (0 = no expiry) | Scan for `SET` without `EX`; add TTL to all cached entries |\n| Cache stampede on popular key | Multiple concurrent misses for same key on expiry | Implement mutex\u002Flocking around cache fill; use write-through for hot keys |\n| Connection refused \u002F timeout | Pool exhausted or Redis maxclients limit hit | Reduce pool size; increase Redis `maxclients`; check for slow commands |\n| Lua script returns `NOSCRIPT` error during failover (known issue: EVALSHA cache lost on failover) | EVALSHA script cache not replicated; promoted replica lacks script | Fall back to `EVAL` on `NOSCRIPT` error; use `SCRIPT LOAD` on connection establishment |\n| `KEYS *` blocks Redis for seconds on datasets >10K keys | `KEYS` is O(N) blocking — scans all keys | Use `SCAN 0 COUNT 100` — non-blocking cursor-based iteration |\n| `MGET` returns nil silently for missing keys (no error) | Redis returns nil for non-existent key, not error | Check each returned element for nil; NEVER rely on error return value |\n\n## Quick Reference\n\n| Concept | Rule | Example |\n|---------|------|--------|\n| TTL | Always set on cached data | `SETEX key 300 value` |\n| Namespace | Prevent collisions across services | `items:user:123:profile` |\n| Connection pool | Reuse, never per-request instantiation | `PoolSize: 100` |\n| Eviction policy | Match workload pattern | `maxmemory-policy allkeys-lru` |\n| Serialization | Always encode complex types | `json.dumps()` \u002F `msgpack.packb()` |\n\n| [WARN] Redis `SCAN` cursor wraps around silently, missing keys on large datasets | SCAN cursor is 64-bit; internal hash table rehashing can cause cursor reset to zero mid-scan | Implement multi-cursor tracking; count distinct keys returned vs expected; fall back to KEYS if scan fails |\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"status":26,"version":27,"category":28},"Community","stable","1.0","infrastructure","main","6692ee5cbe39d4533b824e1c55d7d4fc01c4dde7","content\u002Fskills\u002Fredis-cache-expert",0,"https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant","https:\u002F\u002Fgithub.com\u002Fronsilver",":v","2026-08-27 05:49:26",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add ronsilver\u002Fagent-covenant --skill redis-cache-expert",{"tool":43,"command":44},"bunx","bunx skills add ronsilver\u002Fagent-covenant --skill redis-cache-expert",{"tool":46,"command":47},"pnpm","pnpm dlx skills add ronsilver\u002Fagent-covenant --skill redis-cache-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fredis-cache-expert\u002FSKILL.md",true,[51,57,61,65,69],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"evals\u002Fevals.json","REFERENCE","参考文档",2333,"https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fredis-cache-expert\u002Fevals\u002Fevals.json",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fcode-patterns.md",828,"https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fredis-cache-expert\u002Freferences\u002Fcode-patterns.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Foverview.md",5606,"https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fredis-cache-expert\u002Freferences\u002Foverview.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fpatterns.md",525,"https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fredis-cache-expert\u002Freferences\u002Fpatterns.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fworkflow.md",523,"https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fredis-cache-expert\u002Freferences\u002Fworkflow.md",[74,81,88,95,102,109],{"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},"01M7A7HYVYNZ60GNGWAV51ZQ52","web-browsing-agent-expert","Web browsing for AI agents: driving a headless browser (Playwright, Puppeteer) from agent tooling, navigation and page-state grounding, DOM extraction and structured data capture, form interaction, session and cookie management, anti-bot mitigation awareness, and safe browsing rules (no PII exfiltration, respect robots and terms). Use when building a browsing tool or MCP server for an agent, teaching an agent to navigate and read web pages, extracting structured content from dynamic sites, or handling login walls and pagination in agent workflows. Trigger: web browsing agent, headless browser, Playwright MCP, Puppeteer, browser automation for agents, DOM extraction, page navigation, session management. Do NOT trigger for: end-to-end UI testing of an application (use playwright-expert); writing standalone scraping scripts for data pipelines (use python-expert); fetching a single public URL (use the fetch tool).","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fweb-browsing-agent-expert\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},"01M7A7HRC6951BAJ9NHBZA2M7Y","vector-databases","Design and operate vector databases for cloud-native AI features. Use when selecting between pgvector, Pinecone, or Weaviate for AI context layer or integration-hub; designing embedding schemas and index parameters; implementing ANN search with metadata filtering; managing embedding model versions; optimizing query latency; or debugging low retrieval quality. Pairs with rag-architecture for pipeline design and postgres-database-expert for pgvector specifics. Trigger: vector database, pgvector, Pinecone, Weaviate, embedding, ANN search, HNSW, cosine similarity. Do NOT trigger for: relational SQL optimization, standard PostgreSQL schema design, Redis caching.","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fvector-databases\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},"01M7A7HGHGWE7NZ5A08HQZJXDN","typescript-expert","Full-stack TypeScript stack for modern projects: frontend SSR\u002FCSR with Next.js 14 App Router and React, backend APIs with Node.js (Express\u002FFastify), state management with Zustand\u002FRedux Toolkit, unit and integration testing with Vitest\u002FJest + React Testing Library + MSW, and static analysis with ESLint\u002FPrettier\u002Ftsc. Use when building React components or hooks, implementing Next.js App Router or Server Components, writing Node.js REST API handlers, implementing middleware (auth, rate-limit, logging), managing client state (Zustand\u002FRTK), writing frontend\u002Fbackend tests, or running TypeScript linting\u002Ftype checks. Trigger: TypeScript, Next.js, React, Zustand, Node.js, Express, Fastify, MSW, Vitest. Do NOT trigger for: Python backend development, Go microservices, iOS\u002Fmobile development.","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Ftypescript-expert\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7A7H83JK9SENNYAPTTB6B4A","tool-usage","Guide correct tool selection, design, and orchestration for AI agents. Use when choosing between dedicated vs Bash tools, designing MCP tool interfaces, naming tool parameters, handling tool response limits, orchestrating parallel vs sequential calls, evaluating tool accuracy, applying ACI design principles, selecting workflow patterns, or reading\u002Ffiltering\u002Ftransforming\u002Fgenerating structured data (JSON, YAML, CSV, TOML, XML). Trigger: tool selection, MCP tool design, orchestration, ACI, parallel execution, composite tool, structured data, jq, yq, dasel, mlr, csvkit. Do NOT trigger for: writing application business logic, domain-specific development (route to domain skill), database migrations.","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Ftool-usage\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7A7GZ9A2VA9T7BJ07VV3PD5","token-efficiency","Enforce token-efficient output, compression, caching, and model routing. Use when calibrating response verbosity, applying compression strategies to logs or RAG chunks, routing tasks to the right model tier, setting thinking budgets, enforcing word limits, compressing context before reinitiation, applying KV-cache ordering, masking tool output observations, or applying clarification-first protocol before irreversible actions. Trigger: token efficiency, compression, model routing, thinking budget, KV-cache, clarification protocol. Do NOT trigger for: non-agent tooling, CI\u002FCD pipeline scripting, infrastructure provisioning.","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Ftoken-efficiency\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M7A7GQFTY8GWVN4Z66Q4J52V","time-series-db","Time-series database patterns for cloud-native metrics and analytics: TimescaleDB, InfluxDB, and Amazon Timestream selection; continuous aggregates, retention policies, downsampling, and integration with Prometheus\u002FGrafana. Use when storing business metrics over time, building custom business dashboards, designing high-frequency event storage, or querying time-bucketed aggregations. Trigger: time-series, TimescaleDB, InfluxDB, Prometheus, Grafana, hypertable, continuous aggregate, retention policy. Do NOT trigger for: relational PostgreSQL schema design, NoSQL document stores, Kafka event streaming.","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Ftime-series-db\u002FSKILL.md",[],[]]