[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74GECGD560Z9TEHS96NPBFS":3,"skill-same:01M74GECGD560Z9TEHS96NPBFS":44},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M74GECGD560Z9TEHS96NPBFS","audit-redis-config",null,"Audit a live Redis instance's config — maxmemory + eviction, persistence (RDB\u002FAOF), replication, slow-log, ACL, TLS. Audits existing settings; not cache design (design-cache-layer).","MohammadBafkar\u002Fpolymath","MohammadBafkar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34940462?v=4","01M74G540TQFZWK6KVAPKFVGNR","Mohammad Bafkar","01M74G541HG19QP9V5DQCJVKYE",0,"MIT","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-performance\u002Fskills\u002Faudit-redis-config\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: audit-redis-config\ndescription: Audit a live Redis instance's config — maxmemory + eviction, persistence (RDB\u002FAOF), replication, slow-log, ACL, TLS. Audits existing settings; not cache design (design-cache-layer).\n---\n\n# audit-redis-config\n\n> Sanity-check a Redis deployment against the workload. Output: parameter findings + concrete changes.\n\n**Mode:** analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked `[TBD]` or `[VERIFY]`, never filled in.\n\n## When to use\n\n- A Redis instance is evicting unexpectedly, running out of memory, slow, or about to take more load.\n- A security review needs the instance's auth\u002FTLS\u002Fexposure posture.\n\n## Inputs\n\n- Effective settings: `CONFIG GET *` and `INFO` (`memory`, `persistence`, `replication`, `clients`), plus the version. Managed services (ElastiCache, Memorystore, Azure Cache) often disable or rename `CONFIG` — read their parameter group \u002F console instead.\n- The workload role: pure cache, session store, queue, or primary store.\n\n**Read-only.** Never run `CONFIG SET`, `CONFIG REWRITE`, `FLUSH*`, `DEBUG`, or `KEYS *` against a live instance — recommend; the owner applies.\n\n## Procedure\n\n1. **Memory.**\n   - `maxmemory` set explicitly, not \"no limit\". Without a cap, Redis OOMs the host.\n   - `maxmemory-policy` matches the workload: `allkeys-lru` (pure cache), `volatile-lru` (mixed), `noeviction` (queue \u002F store).\n2. **Persistence.**\n   - RDB snapshots — point-in-time + fast load. Lose up-to-snapshot-interval on crash.\n   - AOF — append-only log; choose `appendfsync everysec` (1s window) or `always` (sync per write, slow).\n   - For caches: persistence often off (just warm up from origin).\n   - For queues \u002F sessions: AOF + RDB hybrid is the usual.\n3. **Replication.**\n   - `replicaof` master:port if a replica.\n   - `replica-read-only yes` — replicas should not accept writes.\n   - `repl-diskless-sync yes` for big setups (avoids the disk-write during full sync).\n4. **Slow log.**\n   - `slowlog-log-slower-than 10000` (10 ms, in µs) — logs every command slower than the threshold (a fixed cutoff, not a percentile).\n   - `slowlog-max-len 1024` — small ring buffer.\n5. **Client connections.**\n   - `maxclients` should match the connecting application's connection pool.\n   - `timeout` (idle client disconnect) — 0 by default; set 300s in shared environments.\n6. **ACL.**\n   - Default user disabled or non-default password.\n   - Per-application ACLs with command + key-prefix scoping.\n   - `requirepass` (legacy) is single-user; ACLs are the modern way.\n7. **Exposure.**\n   - `protected-mode yes` and `bind` limited to private interfaces — never `0.0.0.0` on a reachable network without auth.\n   - Dangerous commands (`FLUSHALL`, `FLUSHDB`, `KEYS`, `CONFIG`, `DEBUG`) denied to application users via ACL categories (`-@dangerous`), or renamed on older versions.\n8. **TLS.**\n   - `tls-port` enabled in any non-trusted network.\n   - `tls-cert-file` \u002F `tls-key-file` + `tls-auth-clients` for mTLS.\n9. **Cluster vs single.** Cluster mode (`cluster-enabled yes`) shards across nodes; consumers must use cluster-aware clients (no `KEYS *` across slots).\n\n## Output\n\n```text\naudit-redis-config\n\nHost:    cache-1.refund-prod\nVersion: 7.2\n\nMemory\n  ✓ maxmemory = 8gb\n  ⚠ maxmemory-policy = noeviction; workload is cache. Recommend allkeys-lru.\n\nPersistence\n  RDB: snapshots every 1h.\n  AOF: off.\n  ✓ Acceptable for pure cache.\n\nReplication\n  ✓ Two replicas, replica-read-only = yes.\n\nSlow log\n  ⚠ slowlog-log-slower-than = -1 (disabled). Set to 10000.\n\nACL\n  ✗ default user enabled with empty password.\n    Fix: disable default; create per-app users with key-prefix scoping.\n\nTLS\n  ✗ TLS not configured; cluster on a private VPC may still benefit.\n\nRecommendation: 3 changes (eviction policy, slow-log, ACL hygiene).\n```\n\n## Anti-patterns to avoid\n\n- `noeviction` on a workload that exceeds maxmemory. Writes start failing instead of evicting.\n- AOF disabled + RDB at 24h interval on a session store. Up to 24h of session loss on crash.\n- Single shared password across all clients. Compromise of one client compromises all.\n- `KEYS *` recommended anywhere. Blocks the server; use `SCAN` for iteration.\n","# audit-redis-config\n\n> Sanity-check a Redis deployment against the workload. Output: parameter findings + concrete changes.\n\n**Mode:** analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked `[TBD]` or `[VERIFY]`, never filled in.\n\n## When to use\n\n- A Redis instance is evicting unexpectedly, running out of memory, slow, or about to take more load.\n- A security review needs the instance's auth\u002FTLS\u002Fexposure posture.\n\n## Inputs\n\n- Effective settings: `CONFIG GET *` and `INFO` (`memory`, `persistence`, `replication`, `clients`), plus the version. Managed services (ElastiCache, Memorystore, Azure Cache) often disable or rename `CONFIG` — read their parameter group \u002F console instead.\n- The workload role: pure cache, session store, queue, or primary store.\n\n**Read-only.** Never run `CONFIG SET`, `CONFIG REWRITE`, `FLUSH*`, `DEBUG`, or `KEYS *` against a live instance — recommend; the owner applies.\n\n## Procedure\n\n1. **Memory.**\n   - `maxmemory` set explicitly, not \"no limit\". Without a cap, Redis OOMs the host.\n   - `maxmemory-policy` matches the workload: `allkeys-lru` (pure cache), `volatile-lru` (mixed), `noeviction` (queue \u002F store).\n2. **Persistence.**\n   - RDB snapshots — point-in-time + fast load. Lose up-to-snapshot-interval on crash.\n   - AOF — append-only log; choose `appendfsync everysec` (1s window) or `always` (sync per write, slow).\n   - For caches: persistence often off (just warm up from origin).\n   - For queues \u002F sessions: AOF + RDB hybrid is the usual.\n3. **Replication.**\n   - `replicaof` master:port if a replica.\n   - `replica-read-only yes` — replicas should not accept writes.\n   - `repl-diskless-sync yes` for big setups (avoids the disk-write during full sync).\n4. **Slow log.**\n   - `slowlog-log-slower-than 10000` (10 ms, in µs) — logs every command slower than the threshold (a fixed cutoff, not a percentile).\n   - `slowlog-max-len 1024` — small ring buffer.\n5. **Client connections.**\n   - `maxclients` should match the connecting application's connection pool.\n   - `timeout` (idle client disconnect) — 0 by default; set 300s in shared environments.\n6. **ACL.**\n   - Default user disabled or non-default password.\n   - Per-application ACLs with command + key-prefix scoping.\n   - `requirepass` (legacy) is single-user; ACLs are the modern way.\n7. **Exposure.**\n   - `protected-mode yes` and `bind` limited to private interfaces — never `0.0.0.0` on a reachable network without auth.\n   - Dangerous commands (`FLUSHALL`, `FLUSHDB`, `KEYS`, `CONFIG`, `DEBUG`) denied to application users via ACL categories (`-@dangerous`), or renamed on older versions.\n8. **TLS.**\n   - `tls-port` enabled in any non-trusted network.\n   - `tls-cert-file` \u002F `tls-key-file` + `tls-auth-clients` for mTLS.\n9. **Cluster vs single.** Cluster mode (`cluster-enabled yes`) shards across nodes; consumers must use cluster-aware clients (no `KEYS *` across slots).\n\n## Output\n\n```text\naudit-redis-config\n\nHost:    cache-1.refund-prod\nVersion: 7.2\n\nMemory\n  ✓ maxmemory = 8gb\n  ⚠ maxmemory-policy = noeviction; workload is cache. Recommend allkeys-lru.\n\nPersistence\n  RDB: snapshots every 1h.\n  AOF: off.\n  ✓ Acceptable for pure cache.\n\nReplication\n  ✓ Two replicas, replica-read-only = yes.\n\nSlow log\n  ⚠ slowlog-log-slower-than = -1 (disabled). Set to 10000.\n\nACL\n  ✗ default user enabled with empty password.\n    Fix: disable default; create per-app users with key-prefix scoping.\n\nTLS\n  ✗ TLS not configured; cluster on a private VPC may still benefit.\n\nRecommendation: 3 changes (eviction policy, slow-log, ACL hygiene).\n```\n\n## Anti-patterns to avoid\n\n- `noeviction` on a workload that exceeds maxmemory. Writes start failing instead of evicting.\n- AOF disabled + RDB at 24h interval on a session store. Up to 24h of session loss on crash.\n- Single shared password across all clients. Compromise of one client compromises all.\n- `KEYS *` recommended anywhere. Blocks the server; use `SCAN` for iteration.\n",{"name":5,"description":7},"main","23f6e21841a39580c9da2b5ec941f39dda17cd86","plugins\u002Fpolymath-performance\u002Fskills\u002Faudit-redis-config","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath","https:\u002F\u002Fgithub.com\u002FMohammadBafkar","2026-10-29 18:34:59",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add MohammadBafkar\u002Fpolymath --skill audit-redis-config",{"tool":36,"command":37},"bunx","bunx skills add MohammadBafkar\u002Fpolymath --skill audit-redis-config",{"tool":39,"command":40},"pnpm","pnpm dlx skills add MohammadBafkar\u002Fpolymath --skill audit-redis-config","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-performance\u002Fskills\u002Faudit-redis-config\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M74GN87EBRHM9N87M7AP1HDD","runbook","Write or refresh an operational runbook for an alert\u002Fsymptom; structured as TL;DR + Pre-checks + Steps + Verification + Rollback + Escalation.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Frunbook\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M74GN5GPKEC1JEKP2DFQNEQJ","rfc","Draft a lightweight design RFC to docs\u002Frfcs\u002F\u003Cslug>.md; Summary, Motivation, Detailed design, Drawbacks, Alternatives, Unresolved questions. A proposal to debate, not a recorded decision (adr).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Frfc\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M74GN2F4CWPMV4X09TG4E304","editorial-pass","Review and tighten prose in a Markdown artifact for a target tone (terse, formal, friendly) without dropping information; preserve quotations and load-bearing constraints.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Feditorial-pass\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M74GMZWGYMZ37C4DYGT6P23G","architecture-review-facilitation","Run an architecture review as a process — entry criteria, reviewer checklist, decision log, and follow-up actions — pairing the design artifact with a red-team pass.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Farchitecture-review-facilitation\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M74GMXVX0YX3ETDXS527XDGM","architecture-doc","Write a C4-style architecture document; System Context + Containers (+ Components when interesting) with mermaid diagrams. Describes structure, not a decision (adr) or proposal (rfc).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Farchitecture-doc\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M74GMVG1WSMCK066S3KE6V5K","adr","Write an Architecture Decision Record (Michael Nygard format) to docs\u002Fadrs\u002FNNNN-\u003Cslug>.md; frontmatter validated by the ADR artifact schema. Records a made decision, not a proposal to debate (rfc).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Fadr\u002FSKILL.md",[],[]]