[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EA41HXXVSM69THC2MPC5YT":3,"skill-same:01M7EA41HXXVSM69THC2MPC5YT":98},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7EA41HXXVSM69THC2MPC5YT","redis",null,"Caching and Redis or Valkey code in .NET with HybridCache and StackExchange.Redis 3. Use when code or a review touches a cache (HybridCache, IDistributedCache, IMemoryCache, GetOrCreateAsync, cache keys, TTLs, invalidation, tags), AddStackExchangeRedisCache, IConnectionMultiplexer, Redis or Valkey keys, a distributed lock, pub\u002Fsub, streams, or a cached value that must be fresh on more than one instance. Not for output caching middleware or HTTP cache headers (dev-stack:aspnetcore), EF Core queries without a cache (dev-stack:efcore), or a message broker (dev-stack:rabbitmq, dev-stack:wolverine).","Charmedme\u002Fmaikelsoft-skills","Charmedme","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11330182?v=4","01M7E9YWP4Z4JJ1BRXTMWNXAEV","01M7E9YWPS4N3GKRGAYBBDJWNQ",0,"MIT","https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: redis\ndescription: Caching and Redis or Valkey code in .NET with HybridCache and StackExchange.Redis 3. Use when code or a review touches a cache (HybridCache, IDistributedCache, IMemoryCache, GetOrCreateAsync, cache keys, TTLs, invalidation, tags), AddStackExchangeRedisCache, IConnectionMultiplexer, Redis or Valkey keys, a distributed lock, pub\u002Fsub, streams, or a cached value that must be fresh on more than one instance. Not for output caching middleware or HTTP cache headers (dev-stack:aspnetcore), EF Core queries without a cache (dev-stack:efcore), or a message broker (dev-stack:rabbitmq, dev-stack:wolverine).\nmetadata:\n  verified: \"2026-10-27\"\n  versions: \"Microsoft.Extensions.Caching.Hybrid 10.11.0, Microsoft.Extensions.Caching.StackExchangeRedis 10.0.14, StackExchange.Redis 3.4.20, Valkey 9.1, Redis Open Source 8.10, .NET 10\"\n---\n\n# Redis and caching\n\nCaching in .NET with HybridCache: L1 in the process, Redis or Valkey as L2. Also direct StackExchange.Redis code: the connection, keys, TTLs, locks, pub\u002Fsub, and streams. The write path of the data (`SaveChangesAsync`, then remove the key) starts in `dev-stack:efcore`. Output caching and HTTP cache headers are in `dev-stack:aspnetcore`.\n\n## First\n\n1. Read `references\u002Fstack-rules.md`.\n2. Find the package versions: `Microsoft.Extensions.Caching.Hybrid`, `Microsoft.Extensions.Caching.StackExchangeRedis`, and `StackExchange.Redis` in `*.csproj` or `Directory.Packages.props`. Find the image tag of the cache server in the compose files.\n   - StackExchange.Redis 3.x: use this file.\n   - StackExchange.Redis 2.x, or no direct reference: the cache package alone resolves 2.7.27. Run `dotnet package list --include-transitive` to see it. Add a direct 3.x reference in each change that touches cache code (rule 2), also when the task does not name the client.\n   - No HybridCache, only `IDistributedCache` or `IMemoryCache`: existing code keeps its style. New cache code uses HybridCache (CACHE-01).\n3. Count the instances of the app. One instance needs no L2. More than one instance needs L2, and each cached value needs a freshness rule (rule 6).\n\nDone when you can name the package versions, the server (Redis or Valkey), and the number of instances.\n\n## Defaults for new code\n\nAsk the human before you apply a default that has no accepted decision (stack rule 4). The full entries are in `references\u002Fdecisions.md`.\n\n| Area | Default | ID |\n|------|---------|----|\n| Layer | No cache until a measured need. Then HybridCache. Redis or Valkey as L2 only for more than one instance. | CACHE-01 |\n| Server and client | Valkey 9, server-neutral code, StackExchange.Redis 3.x with a direct reference | CACHE-02 |\n| Keys | `InstanceName = \"{service}:\"`, key `v{n}:{entity}:{id}[:{variant}]` | CACHE-03 |\n| TTL | `Expiration` 5 min, `LocalCacheExpiration` 1 min | CACHE-04 |\n| Invalidation | `RemoveAsync` after the commit, tags for groups, short L1 TTL | CACHE-05 |\n| Serialization | System.Text.Json with a source-generated context, `sealed` DTO records | CACHE-06 |\n| Fresh on all nodes | No backplane. `DisableLocalCache` for data that must be fresh | CACHE-07 |\n| Locks | `LockTakeAsync` and `LockReleaseAsync` with a token. DistributedLock.Redis for work that can outlive the TTL. | CACHE-08 |\n\n## Existing code\n\nIn cache code, the defects of stack rule 3 include these. Each one gives stale or wrong data without an error, and a test with one app instance passes.\n\n| Defect | Rule |\n|--------|------|\n| No direct `StackExchange.Redis` 3.x reference: the app runs on 2.7.27. | 2 |\n| A write decision (a price to charge, stock, a permission) reads its value through the cache. | 5a |\n| No `LocalCacheExpiration`: L1 lives as long as `Expiration` on each node. | 6 |\n| `RemoveAsync` before `SaveChangesAsync`. | 7 |\n| A key without a version segment for a type that the change gives new fields. | 9a |\n\nNew code that copies one of these patterns depends on the defect. So does new code that changes the data behind it. Fix both, and name the fix under \"Changes\".\n\n## Rules\n\n### Connection\n\n1. Register one `IConnectionMultiplexer` as a singleton. Connect with `ConnectAsync` at startup, set `AbortOnConnectFail = false` and `ClientName`, and give the same instance to `AddStackExchangeRedisCache` through `ConnectionMultiplexerFactory`. A multiplexer per call uses up sockets, and `abortConnect=true` stops the app when the server is down for a moment.\n2. Reference `StackExchange.Redis` 3.x directly, or add a `PackageVersion` when the repository uses `CentralPackageTransitivePinningEnabled`. `Microsoft.Extensions.Caching.StackExchangeRedis` 10.0.14 declares `StackExchange.Redis >= 2.7.27`, so NuGet takes 2.7.27 from 2023.\n3. Await each Redis call. Set SER305 to SER308 to `error` in `.editorconfig`. Do not raise `ThreadPool.SetMinThreads` to fix timeouts. A thread that blocks on a Redis task starves the pool that must process the reply.\n\n```csharp\nvar cacheOptions = ConfigurationOptions.Parse(\n    builder.Configuration.GetConnectionString(\"Cache\")\n        ?? throw new InvalidOperationException(\"ConnectionStrings:Cache is not set.\"));\ncacheOptions.AbortOnConnectFail = false; \u002F\u002F start, and reconnect, while the server is down\ncacheOptions.ClientName = \"orders-api\";\nvar cacheConnection = await ConnectionMultiplexer.ConnectAsync(cacheOptions);\nbuilder.Services.AddSingleton\u003CIConnectionMultiplexer>(cacheConnection);\n\nbuilder.Services.AddStackExchangeRedisCache(options =>\n{\n    options.ConnectionMultiplexerFactory = () => Task.FromResult\u003CIConnectionMultiplexer>(cacheConnection);\n    options.InstanceName = \"orders:\";\n});\nbuilder.Services.AddKeyedSingleton\u003CJsonSerializerOptions>(\n    typeof(IHybridCacheSerializer\u003C>),\n    new JsonSerializerOptions { TypeInfoResolver = CacheJsonContext.Default });\nbuilder.Services.AddHybridCache(options =>\n    options.DefaultEntryOptions = new HybridCacheEntryOptions\n    {\n        Expiration = TimeSpan.FromMinutes(5),\n        LocalCacheExpiration = TimeSpan.FromMinutes(1),\n    });\n```\n\n### Reads with HybridCache\n\n4. Read through `HybridCache.GetOrCreateAsync`. Pass the state as an argument and use a `static` lambda. Do not write cache-aside by hand with `IDistributedCache` and a lock. HybridCache does L1, L2, and one factory call per key in one call.\n5. Expect the factory to run one time per process, not one time per cluster. The stampede protection does not cross instances.\n5a. Read a value for a write decision from the database, not from the cache. Examples: the price that checkout charges, stock, a permission. Find each write path that reads through a cached read method (for example a `ProductCache` in checkout). When the change makes that value change, fix the read. Then say in the report how the write path gets the current value.\n6. L1 has no backplane. `RemoveAsync` and `RemoveByTagAsync` on node A clear the L1 of node A and the L2. Node B serves its L1 copy until `LocalCacheExpiration`. Give data that must be fresh on all nodes `Flags = HybridCacheEntryFlags.DisableLocalCache`. For other data, keep L1 shorter than L2: the L1 TTL is the maximum staleness. Without `LocalCacheExpiration`, L1 gets the `Expiration` of the same options. So `Expiration = 30 min` alone keeps a stale L1 copy for 30 minutes.\n\n```csharp\npublic static readonly HybridCacheEntryOptions OrderEntry = new()\n{\n    Expiration = TimeSpan.FromMinutes(5),\n    Flags = HybridCacheEntryFlags.DisableLocalCache, \u002F\u002F a cancel must show on each node at once\n};\n\nvar order = await cache.GetOrCreateAsync(\n    $\"v1:order:{id:N}\",\n    (db, id),\n    static async (state, token) =>\n    {\n        var entity = await state.db.Orders.AsNoTracking().Include(o => o.Lines)\n            .SingleOrDefaultAsync(o => o.Id == state.id, token);\n        return entity?.ToResponse(); \u002F\u002F a DTO, never the entity\n    },\n    OrderEntry,\n    cancellationToken: ct);\n```\n\n### Writes and invalidation\n\n7. In the write path, save to the database first, then call `RemoveAsync`. Do not write the new value into the cache from the write path. Two writers can store the older value last.\n8. Remove groups with tags (`tags: [\"tenant:42\"]`, then `RemoveByTagAsync(\"tenant:42\")`). A tag removal is logical. The old values stay in L2 until they expire, and other nodes keep their L1 copies (rule 6). `RemoveByTagAsync(\"*\")` removes all. A prefix delete and `KEYS` do not exist as a cache API.\n\n```csharp\nawait db.SaveChangesAsync(ct);\nawait cache.RemoveAsync($\"v1:order:{id:N}\", ct); \u002F\u002F after the commit, never SetAsync with the new value\n```\n\n### Keys, TTLs, and values\n\n9. Build keys only from internal IDs or allow-listed values, with a delimiter and a version segment. Raw user input in a key lets a caller fill the cache, and keys without a delimiter collide.\n9a. Increase the version segment (`v1:` to `v2:`) when the change adds, removes, or renames a field of a cached type. Add a segment when the existing key has none. During a rolling deploy, the old version writes the old shape under the same key. The new version reads it with default values (`0`, `null`) and no error. Give this reason in the report.\n10. Give each direct Redis key a TTL (`StringSetAsync(key, value, expiry)`). Add jitter to keys that you write at the same time, so they do not expire at the same time. HybridCache sends `Expiration` to L2 itself.\n11. Cache DTOs, never EF entities. An entity with private setters loses data in the JSON round trip, with no error. Mark a DTO `sealed` with `[ImmutableObject(true)]`, so L1 can return the same instance. Plug in the source-generated context with a keyed `JsonSerializerOptions` (key `typeof(IHybridCacheSerializer\u003C>)`), and add a round-trip test for each cached DTO.\n12. Keep each value under `MaximumPayloadBytes` (default 1 MB). HybridCache logs a larger value and does not store it.\n\n### Locks, pub\u002Fsub, and streams\n\n13. Use a Redis lock only to prevent duplicate work. Release it with its token (`LockReleaseAsync`), never with `KeyDeleteAsync`. Protect correctness with a database constraint or a concurrency token. Do not use RedLock. A lock that expires during a GC pause or a failover has two holders.\n14. Use pub\u002Fsub only for signals that can get lost, with `RedisChannel.Literal`. Use a stream with a consumer group and `StreamAcknowledgeAsync` for work. Put cache data and durable data on separate instances, and set `maxmemory` with `allkeys-lru` on the cache instance.\n\nDetail and examples: `references\u002Fhybridcache.md` and `references\u002Fstackexchange-redis.md`.\n\n## Never write\n\n| Wrong | Correct |\n|-------|---------|\n| `using var redis = ConnectionMultiplexer.Connect(cs);` in a method or a scoped service | One singleton from `ConnectAsync` at startup |\n| `db.StringGetAsync(key).Result` | `await db.StringGetAsync(key)` |\n| `ThreadPool.SetMinThreads(200, 200)` to fix timeouts | Remove the sync over async (SER307) |\n| `cache.GetOrSetAsync(...)`, `services.AddRedisCache(...)`, `AddHybridCache().AddRedis(...)`, `db.GetAsync\u003CT>(...)` | `GetOrCreateAsync`, `AddStackExchangeRedisCache` plus `AddHybridCache` |\n| `server.Keys(pattern: \"orders:*\")` to clear a prefix | Tags (`RemoveByTagAsync`) or a new version segment in the key |\n| `await cache.SetAsync(key, updated)` before or after `SaveChangesAsync` | `SaveChangesAsync`, then `RemoveAsync(key)` |\n| `GetOrCreateAsync(key, ct => db.Orders.Include(o => o.Lines)...)` that returns the entity | Map to a `sealed record` DTO in the factory |\n| `o.MaximumPayloadBytes = 1024 * 1024;` to \"make big objects cache\" | Nothing: 1 MB is the default, and HybridCache logs a skip |\n| `AddKeyedSingleton(typeof(IHybridCacheSerializer\u003C>), options)` | `AddKeyedSingleton\u003CJsonSerializerOptions>(typeof(IHybridCacheSerializer\u003C>), options)` (the other call is ambiguous, CS0121) |\n| `await db.KeyDeleteAsync(lockKey)` to release a lock | `await db.LockReleaseAsync(lockKey, token)` |\n| `subscriber.PublishAsync(\"channel\", message)` | `subscriber.PublishAsync(RedisChannel.Literal(\"channel\"), message)` |\n| `services.AddDistributedMemoryCache()` as the shared L2 | A Redis or Valkey `IDistributedCache` (HybridCache ignores the memory one) |\n| `\u003CPackageVersion Include=\"StackExchange.Redis\" Version=\"2.13.17\" \u002F>` as \"latest stable 2.x\" | `Version=\"3.4.20\"`: SER305 to SER308 exist only in 3.x, so on 2.x their `.editorconfig` lines do nothing |\n| `new RedisBuilder().Build()` | `new RedisBuilder(\"valkey\u002Fvalkey:9.1\").Build()` |\n\n## Check\n\n1. Build with the analyzers as errors. Add this to `.editorconfig` first:\n\n   ```\n   [*.cs]\n   dotnet_diagnostic.SER305.severity = error\n   dotnet_diagnostic.SER306.severity = error\n   dotnet_diagnostic.SER307.severity = error\n   dotnet_diagnostic.SER308.severity = error\n   ```\n\n   ```\n   dotnet build -warnaserror\n   ```\n\n   Pass: `Build succeeded` with 0 warnings. CS0618 catches a string channel.\n\n2. Check the resolved client version:\n\n   ```\n   dotnet package list --include-transitive\n   ```\n\n   Pass: `StackExchange.Redis` 3.x in each project. stackcheck cannot see a transitive version, so run this command.\n\n3. Run the rules of this skill:\n\n   ```\n   python3 \u003Cskill folder>\u002Fscripts\u002Fstackcheck.py --root \u003Crepo>\n   ```\n\n   Pass: 0 errors. For each warning, fix it or add `\u002F\u002F stackcheck: ignore \u003CRULE-ID> \u003Creason>`.\n\n4. Run the tests. Data that must be fresh on all nodes needs a test with two app instances on one Valkey container (`references\u002Ftesting.md`). Pass: all tests green.\n\n## Review checklist\n\nThe full list is in `references\u002Freview-checklist.md`.\n\n1. One multiplexer for the process, `ConnectAsync`, `AbortOnConnectFail = false`. tool (RDS-MUX-CONNECT, RDS-ABORT-CONNECT)\n2. `StackExchange.Redis` 3.x resolves in each project. tool (`dotnet package list --include-transitive`, RDS-PKG-SER2)\n3. No sync over async on Redis calls, no `SetMinThreads`. tool (SER307, SER308, RDS-MIN-THREADS)\n4. No `KEYS` or `server.Keys`. tool (RDS-KEYS-SCAN)\n5. Locks release with their token. tool (RDS-KEY-DELETE-LOCK), judge\n6. Reads use `GetOrCreateAsync`, not hand-written cache-aside. judge\n7. Each cached value that must be fresh on all nodes has `DisableLocalCache` or a backplane. judge\n7a. No write decision (checkout price, stock, permission) reads through the cache. This includes existing code that the change depends on. Severity: blocking. judge\n8. The write path saves first, then removes the key. No `SetAsync` with the new value. judge\n9. Cached values are DTOs, not EF entities, with a round-trip test. judge\n10. Keys have a version segment and come from internal IDs, never raw user input. The version goes up when a cached type gets new fields. judge\n11. Each direct Redis key has a TTL. L1 is shorter than L2. judge\n12. Correctness does not depend on a Redis lock. judge\n13. Work goes through streams with acknowledgement, not pub\u002Fsub. tool (CS0618 for string channels), judge\n14. No old or unsafe packages (`Microsoft.Extensions.Caching.Redis`, `RedLock.net`). `dotnet package list --deprecated` does not flag them. tool (RDS-PKG-OLD, RDS-PKG-REDLOCK)\n\n## Report\n\nEnd with the report of stack rule 8 (`references\u002Fstack-rules.md`): the same headings in the same order on each run. For each cached type, state in one sentence why it is a DTO and not the entity (rule 11). Also give:\n\n- Under \"Packages\": the `StackExchange.Redis` version that resolved before the change, and the direct 3.x reference (rule 2).\n- Under \"Changes\": the key version and its reason (rule 9a), and how each write decision now reads its value (rule 5a).\n- Under \"Decisions\": each CACHE decision that the change uses, at least CACHE-03, CACHE-04, and CACHE-07 when it touches keys, TTLs, or freshness. Mark each one accepted or assumed.\n\n## References\n\n- `references\u002Fdecisions.md`: read before new code needs a CACHE decision. It has the question, the options, and the recommendation.\n- `references\u002Fhybridcache.md`: read when you set up HybridCache, choose entry options or tags, plug in a serializer, or decide how nodes see a change.\n- `references\u002Fstackexchange-redis.md`: read when you write direct Redis code: the connection, keys and TTLs, locks, pub\u002Fsub, streams, server settings, or timeouts.\n- `references\u002Ftesting.md`: read before you write a test for cached code or for Redis code.\n- `references\u002Freview-checklist.md`: read for a full review.\n- `references\u002Fsources.md`: the primary sources and the credits.\n- `references\u002Fstack-rules.md` and `references\u002Flanguage.md`: the common rules and the output language.\n- `scripts\u002Fstackcheck.py`: the rule check of this skill.\n","# Redis and caching\n\nCaching in .NET with HybridCache: L1 in the process, Redis or Valkey as L2. Also direct StackExchange.Redis code: the connection, keys, TTLs, locks, pub\u002Fsub, and streams. The write path of the data (`SaveChangesAsync`, then remove the key) starts in `dev-stack:efcore`. Output caching and HTTP cache headers are in `dev-stack:aspnetcore`.\n\n## First\n\n1. Read `references\u002Fstack-rules.md`.\n2. Find the package versions: `Microsoft.Extensions.Caching.Hybrid`, `Microsoft.Extensions.Caching.StackExchangeRedis`, and `StackExchange.Redis` in `*.csproj` or `Directory.Packages.props`. Find the image tag of the cache server in the compose files.\n   - StackExchange.Redis 3.x: use this file.\n   - StackExchange.Redis 2.x, or no direct reference: the cache package alone resolves 2.7.27. Run `dotnet package list --include-transitive` to see it. Add a direct 3.x reference in each change that touches cache code (rule 2), also when the task does not name the client.\n   - No HybridCache, only `IDistributedCache` or `IMemoryCache`: existing code keeps its style. New cache code uses HybridCache (CACHE-01).\n3. Count the instances of the app. One instance needs no L2. More than one instance needs L2, and each cached value needs a freshness rule (rule 6).\n\nDone when you can name the package versions, the server (Redis or Valkey), and the number of instances.\n\n## Defaults for new code\n\nAsk the human before you apply a default that has no accepted decision (stack rule 4). The full entries are in `references\u002Fdecisions.md`.\n\n| Area | Default | ID |\n|------|---------|----|\n| Layer | No cache until a measured need. Then HybridCache. Redis or Valkey as L2 only for more than one instance. | CACHE-01 |\n| Server and client | Valkey 9, server-neutral code, StackExchange.Redis 3.x with a direct reference | CACHE-02 |\n| Keys | `InstanceName = \"{service}:\"`, key `v{n}:{entity}:{id}[:{variant}]` | CACHE-03 |\n| TTL | `Expiration` 5 min, `LocalCacheExpiration` 1 min | CACHE-04 |\n| Invalidation | `RemoveAsync` after the commit, tags for groups, short L1 TTL | CACHE-05 |\n| Serialization | System.Text.Json with a source-generated context, `sealed` DTO records | CACHE-06 |\n| Fresh on all nodes | No backplane. `DisableLocalCache` for data that must be fresh | CACHE-07 |\n| Locks | `LockTakeAsync` and `LockReleaseAsync` with a token. DistributedLock.Redis for work that can outlive the TTL. | CACHE-08 |\n\n## Existing code\n\nIn cache code, the defects of stack rule 3 include these. Each one gives stale or wrong data without an error, and a test with one app instance passes.\n\n| Defect | Rule |\n|--------|------|\n| No direct `StackExchange.Redis` 3.x reference: the app runs on 2.7.27. | 2 |\n| A write decision (a price to charge, stock, a permission) reads its value through the cache. | 5a |\n| No `LocalCacheExpiration`: L1 lives as long as `Expiration` on each node. | 6 |\n| `RemoveAsync` before `SaveChangesAsync`. | 7 |\n| A key without a version segment for a type that the change gives new fields. | 9a |\n\nNew code that copies one of these patterns depends on the defect. So does new code that changes the data behind it. Fix both, and name the fix under \"Changes\".\n\n## Rules\n\n### Connection\n\n1. Register one `IConnectionMultiplexer` as a singleton. Connect with `ConnectAsync` at startup, set `AbortOnConnectFail = false` and `ClientName`, and give the same instance to `AddStackExchangeRedisCache` through `ConnectionMultiplexerFactory`. A multiplexer per call uses up sockets, and `abortConnect=true` stops the app when the server is down for a moment.\n2. Reference `StackExchange.Redis` 3.x directly, or add a `PackageVersion` when the repository uses `CentralPackageTransitivePinningEnabled`. `Microsoft.Extensions.Caching.StackExchangeRedis` 10.0.14 declares `StackExchange.Redis >= 2.7.27`, so NuGet takes 2.7.27 from 2023.\n3. Await each Redis call. Set SER305 to SER308 to `error` in `.editorconfig`. Do not raise `ThreadPool.SetMinThreads` to fix timeouts. A thread that blocks on a Redis task starves the pool that must process the reply.\n\n```csharp\nvar cacheOptions = ConfigurationOptions.Parse(\n    builder.Configuration.GetConnectionString(\"Cache\")\n        ?? throw new InvalidOperationException(\"ConnectionStrings:Cache is not set.\"));\ncacheOptions.AbortOnConnectFail = false; \u002F\u002F start, and reconnect, while the server is down\ncacheOptions.ClientName = \"orders-api\";\nvar cacheConnection = await ConnectionMultiplexer.ConnectAsync(cacheOptions);\nbuilder.Services.AddSingleton\u003CIConnectionMultiplexer>(cacheConnection);\n\nbuilder.Services.AddStackExchangeRedisCache(options =>\n{\n    options.ConnectionMultiplexerFactory = () => Task.FromResult\u003CIConnectionMultiplexer>(cacheConnection);\n    options.InstanceName = \"orders:\";\n});\nbuilder.Services.AddKeyedSingleton\u003CJsonSerializerOptions>(\n    typeof(IHybridCacheSerializer\u003C>),\n    new JsonSerializerOptions { TypeInfoResolver = CacheJsonContext.Default });\nbuilder.Services.AddHybridCache(options =>\n    options.DefaultEntryOptions = new HybridCacheEntryOptions\n    {\n        Expiration = TimeSpan.FromMinutes(5),\n        LocalCacheExpiration = TimeSpan.FromMinutes(1),\n    });\n```\n\n### Reads with HybridCache\n\n4. Read through `HybridCache.GetOrCreateAsync`. Pass the state as an argument and use a `static` lambda. Do not write cache-aside by hand with `IDistributedCache` and a lock. HybridCache does L1, L2, and one factory call per key in one call.\n5. Expect the factory to run one time per process, not one time per cluster. The stampede protection does not cross instances.\n5a. Read a value for a write decision from the database, not from the cache. Examples: the price that checkout charges, stock, a permission. Find each write path that reads through a cached read method (for example a `ProductCache` in checkout). When the change makes that value change, fix the read. Then say in the report how the write path gets the current value.\n6. L1 has no backplane. `RemoveAsync` and `RemoveByTagAsync` on node A clear the L1 of node A and the L2. Node B serves its L1 copy until `LocalCacheExpiration`. Give data that must be fresh on all nodes `Flags = HybridCacheEntryFlags.DisableLocalCache`. For other data, keep L1 shorter than L2: the L1 TTL is the maximum staleness. Without `LocalCacheExpiration`, L1 gets the `Expiration` of the same options. So `Expiration = 30 min` alone keeps a stale L1 copy for 30 minutes.\n\n```csharp\npublic static readonly HybridCacheEntryOptions OrderEntry = new()\n{\n    Expiration = TimeSpan.FromMinutes(5),\n    Flags = HybridCacheEntryFlags.DisableLocalCache, \u002F\u002F a cancel must show on each node at once\n};\n\nvar order = await cache.GetOrCreateAsync(\n    $\"v1:order:{id:N}\",\n    (db, id),\n    static async (state, token) =>\n    {\n        var entity = await state.db.Orders.AsNoTracking().Include(o => o.Lines)\n            .SingleOrDefaultAsync(o => o.Id == state.id, token);\n        return entity?.ToResponse(); \u002F\u002F a DTO, never the entity\n    },\n    OrderEntry,\n    cancellationToken: ct);\n```\n\n### Writes and invalidation\n\n7. In the write path, save to the database first, then call `RemoveAsync`. Do not write the new value into the cache from the write path. Two writers can store the older value last.\n8. Remove groups with tags (`tags: [\"tenant:42\"]`, then `RemoveByTagAsync(\"tenant:42\")`). A tag removal is logical. The old values stay in L2 until they expire, and other nodes keep their L1 copies (rule 6). `RemoveByTagAsync(\"*\")` removes all. A prefix delete and `KEYS` do not exist as a cache API.\n\n```csharp\nawait db.SaveChangesAsync(ct);\nawait cache.RemoveAsync($\"v1:order:{id:N}\", ct); \u002F\u002F after the commit, never SetAsync with the new value\n```\n\n### Keys, TTLs, and values\n\n9. Build keys only from internal IDs or allow-listed values, with a delimiter and a version segment. Raw user input in a key lets a caller fill the cache, and keys without a delimiter collide.\n9a. Increase the version segment (`v1:` to `v2:`) when the change adds, removes, or renames a field of a cached type. Add a segment when the existing key has none. During a rolling deploy, the old version writes the old shape under the same key. The new version reads it with default values (`0`, `null`) and no error. Give this reason in the report.\n10. Give each direct Redis key a TTL (`StringSetAsync(key, value, expiry)`). Add jitter to keys that you write at the same time, so they do not expire at the same time. HybridCache sends `Expiration` to L2 itself.\n11. Cache DTOs, never EF entities. An entity with private setters loses data in the JSON round trip, with no error. Mark a DTO `sealed` with `[ImmutableObject(true)]`, so L1 can return the same instance. Plug in the source-generated context with a keyed `JsonSerializerOptions` (key `typeof(IHybridCacheSerializer\u003C>)`), and add a round-trip test for each cached DTO.\n12. Keep each value under `MaximumPayloadBytes` (default 1 MB). HybridCache logs a larger value and does not store it.\n\n### Locks, pub\u002Fsub, and streams\n\n13. Use a Redis lock only to prevent duplicate work. Release it with its token (`LockReleaseAsync`), never with `KeyDeleteAsync`. Protect correctness with a database constraint or a concurrency token. Do not use RedLock. A lock that expires during a GC pause or a failover has two holders.\n14. Use pub\u002Fsub only for signals that can get lost, with `RedisChannel.Literal`. Use a stream with a consumer group and `StreamAcknowledgeAsync` for work. Put cache data and durable data on separate instances, and set `maxmemory` with `allkeys-lru` on the cache instance.\n\nDetail and examples: `references\u002Fhybridcache.md` and `references\u002Fstackexchange-redis.md`.\n\n## Never write\n\n| Wrong | Correct |\n|-------|---------|\n| `using var redis = ConnectionMultiplexer.Connect(cs);` in a method or a scoped service | One singleton from `ConnectAsync` at startup |\n| `db.StringGetAsync(key).Result` | `await db.StringGetAsync(key)` |\n| `ThreadPool.SetMinThreads(200, 200)` to fix timeouts | Remove the sync over async (SER307) |\n| `cache.GetOrSetAsync(...)`, `services.AddRedisCache(...)`, `AddHybridCache().AddRedis(...)`, `db.GetAsync\u003CT>(...)` | `GetOrCreateAsync`, `AddStackExchangeRedisCache` plus `AddHybridCache` |\n| `server.Keys(pattern: \"orders:*\")` to clear a prefix | Tags (`RemoveByTagAsync`) or a new version segment in the key |\n| `await cache.SetAsync(key, updated)` before or after `SaveChangesAsync` | `SaveChangesAsync`, then `RemoveAsync(key)` |\n| `GetOrCreateAsync(key, ct => db.Orders.Include(o => o.Lines)...)` that returns the entity | Map to a `sealed record` DTO in the factory |\n| `o.MaximumPayloadBytes = 1024 * 1024;` to \"make big objects cache\" | Nothing: 1 MB is the default, and HybridCache logs a skip |\n| `AddKeyedSingleton(typeof(IHybridCacheSerializer\u003C>), options)` | `AddKeyedSingleton\u003CJsonSerializerOptions>(typeof(IHybridCacheSerializer\u003C>), options)` (the other call is ambiguous, CS0121) |\n| `await db.KeyDeleteAsync(lockKey)` to release a lock | `await db.LockReleaseAsync(lockKey, token)` |\n| `subscriber.PublishAsync(\"channel\", message)` | `subscriber.PublishAsync(RedisChannel.Literal(\"channel\"), message)` |\n| `services.AddDistributedMemoryCache()` as the shared L2 | A Redis or Valkey `IDistributedCache` (HybridCache ignores the memory one) |\n| `\u003CPackageVersion Include=\"StackExchange.Redis\" Version=\"2.13.17\" \u002F>` as \"latest stable 2.x\" | `Version=\"3.4.20\"`: SER305 to SER308 exist only in 3.x, so on 2.x their `.editorconfig` lines do nothing |\n| `new RedisBuilder().Build()` | `new RedisBuilder(\"valkey\u002Fvalkey:9.1\").Build()` |\n\n## Check\n\n1. Build with the analyzers as errors. Add this to `.editorconfig` first:\n\n   ```\n   [*.cs]\n   dotnet_diagnostic.SER305.severity = error\n   dotnet_diagnostic.SER306.severity = error\n   dotnet_diagnostic.SER307.severity = error\n   dotnet_diagnostic.SER308.severity = error\n   ```\n\n   ```\n   dotnet build -warnaserror\n   ```\n\n   Pass: `Build succeeded` with 0 warnings. CS0618 catches a string channel.\n\n2. Check the resolved client version:\n\n   ```\n   dotnet package list --include-transitive\n   ```\n\n   Pass: `StackExchange.Redis` 3.x in each project. stackcheck cannot see a transitive version, so run this command.\n\n3. Run the rules of this skill:\n\n   ```\n   python3 \u003Cskill folder>\u002Fscripts\u002Fstackcheck.py --root \u003Crepo>\n   ```\n\n   Pass: 0 errors. For each warning, fix it or add `\u002F\u002F stackcheck: ignore \u003CRULE-ID> \u003Creason>`.\n\n4. Run the tests. Data that must be fresh on all nodes needs a test with two app instances on one Valkey container (`references\u002Ftesting.md`). Pass: all tests green.\n\n## Review checklist\n\nThe full list is in `references\u002Freview-checklist.md`.\n\n1. One multiplexer for the process, `ConnectAsync`, `AbortOnConnectFail = false`. tool (RDS-MUX-CONNECT, RDS-ABORT-CONNECT)\n2. `StackExchange.Redis` 3.x resolves in each project. tool (`dotnet package list --include-transitive`, RDS-PKG-SER2)\n3. No sync over async on Redis calls, no `SetMinThreads`. tool (SER307, SER308, RDS-MIN-THREADS)\n4. No `KEYS` or `server.Keys`. tool (RDS-KEYS-SCAN)\n5. Locks release with their token. tool (RDS-KEY-DELETE-LOCK), judge\n6. Reads use `GetOrCreateAsync`, not hand-written cache-aside. judge\n7. Each cached value that must be fresh on all nodes has `DisableLocalCache` or a backplane. judge\n7a. No write decision (checkout price, stock, permission) reads through the cache. This includes existing code that the change depends on. Severity: blocking. judge\n8. The write path saves first, then removes the key. No `SetAsync` with the new value. judge\n9. Cached values are DTOs, not EF entities, with a round-trip test. judge\n10. Keys have a version segment and come from internal IDs, never raw user input. The version goes up when a cached type gets new fields. judge\n11. Each direct Redis key has a TTL. L1 is shorter than L2. judge\n12. Correctness does not depend on a Redis lock. judge\n13. Work goes through streams with acknowledgement, not pub\u002Fsub. tool (CS0618 for string channels), judge\n14. No old or unsafe packages (`Microsoft.Extensions.Caching.Redis`, `RedLock.net`). `dotnet package list --deprecated` does not flag them. tool (RDS-PKG-OLD, RDS-PKG-REDLOCK)\n\n## Report\n\nEnd with the report of stack rule 8 (`references\u002Fstack-rules.md`): the same headings in the same order on each run. For each cached type, state in one sentence why it is a DTO and not the entity (rule 11). Also give:\n\n- Under \"Packages\": the `StackExchange.Redis` version that resolved before the change, and the direct 3.x reference (rule 2).\n- Under \"Changes\": the key version and its reason (rule 9a), and how each write decision now reads its value (rule 5a).\n- Under \"Decisions\": each CACHE decision that the change uses, at least CACHE-03, CACHE-04, and CACHE-07 when it touches keys, TTLs, or freshness. Mark each one accepted or assumed.\n\n## References\n\n- `references\u002Fdecisions.md`: read before new code needs a CACHE decision. It has the question, the options, and the recommendation.\n- `references\u002Fhybridcache.md`: read when you set up HybridCache, choose entry options or tags, plug in a serializer, or decide how nodes see a change.\n- `references\u002Fstackexchange-redis.md`: read when you write direct Redis code: the connection, keys and TTLs, locks, pub\u002Fsub, streams, server settings, or timeouts.\n- `references\u002Ftesting.md`: read before you write a test for cached code or for Redis code.\n- `references\u002Freview-checklist.md`: read for a full review.\n- `references\u002Fsources.md`: the primary sources and the credits.\n- `references\u002Fstack-rules.md` and `references\u002Flanguage.md`: the common rules and the output language.\n- `scripts\u002Fstackcheck.py`: the rule check of this skill.\n",{"name":5,"metadata":23,"description":7},{"verified":24,"versions":25},"2026-10-27","Microsoft.Extensions.Caching.Hybrid 10.11.0, Microsoft.Extensions.Caching.StackExchangeRedis 10.0.14, StackExchange.Redis 3.4.20, Valkey 9.1, Redis Open Source 8.10, .NET 10","main","c247fa77bdea99449b9df09f93d92a35fed91874","plugins\u002Fdev-stack\u002Fskills\u002Fredis","https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills","https:\u002F\u002Fgithub.com\u002FCharmedme","2026-11-13 14:41:21",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Charmedme\u002Fmaikelsoft-skills --skill redis",{"tool":38,"command":39},"bunx","bunx skills add Charmedme\u002Fmaikelsoft-skills --skill redis",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Charmedme\u002Fmaikelsoft-skills --skill redis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002FSKILL.md",true,[46,52,56,60,64,68,72,76,80,84,90,94],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fdecisions.md","REFERENCE","参考文档",8433,"https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002Freferences\u002Fdecisions.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fhybridcache.md",6895,"https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002Freferences\u002Fhybridcache.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Flanguage.md",4840,"https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002Freferences\u002Flanguage.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Freview-checklist.md",6351,"https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002Freferences\u002Freview-checklist.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fsources.md",6762,"https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002Freferences\u002Fsources.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fstack-rules.md",7772,"https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002Freferences\u002Fstack-rules.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fstackexchange-redis.md",7034,"https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002Freferences\u002Fstackexchange-redis.md",{"path":77,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Ftesting.md",3222,"https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002Freferences\u002Ftesting.md",{"path":81,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":82,"sourceHtmlUrl":83},"rules.json",8058,"https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002Frules.json",{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Fconvert.py","SCRIPT","脚本",2928,"https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002Fscripts\u002Fconvert.py",{"path":91,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fdoccheck.py",29463,"https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002Fscripts\u002Fdoccheck.py",{"path":95,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fstackcheck.py",12200,"https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdev-stack\u002Fskills\u002Fredis\u002Fscripts\u002Fstackcheck.py",[99,106,113,120,127,134],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7EA9S53810TTZTXYDGBWXHY","web-accessibility","Web accessibility to WCAG 2.2 AA - a checklist for the design, the tool checks (axe-core, the Tab walk, reduced motion), and the manual checks that no tool does (screen reader, zoom, status messages) - with the EAA and EN 301 549 status. Use when a design, mockup, or built feature must be checked for accessibility, when a review must cover keyboard and screen reader use, when the user asks about focus, a focus trap, contrast, or a screen reader on a page, or when the user asks which accessibility rules apply.","https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fux-design\u002Fskills\u002Fweb-accessibility\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M7EA9MGJ7ESKQ7WE2Z96858T","ux-states","State inventory for each screen - default, empty, loading, partial, error, success, disabled, overflow, offline, and the business states (no permission, stale data, locked by another user, waiting on an external system, bulk result with failures, read only) - with what the user sees, can do, and how the user recovers. Use when a screen or flow needs its states designed or checked, or when a design shows only the happy path.","https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fux-design\u002Fskills\u002Fux-states\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":18},"01M7EA9FHYR0C26BHNQF7AZT4Q","ux-setup","Set up a project for UX work - finds the design tools, the design-system source, the brand files, the languages, and the run command, asks the human one round of questions, and writes the \"## Design\" section of .claude\u002Frules\u002Fdelivery.md that the ux-design commands and the ux-designer agent read. Moves an older \"## Design\" section out of CLAUDE.md. Use when \u002Fsetup, \u002Fux-design, or \u002Fux-review needs the design facts, when the ux-designer agent returns NEEDS_HUMAN because the \"## Design\" section is missing, or when the user wants to set up or change the design tools of a project.","https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fux-design\u002Fskills\u002Fux-setup\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":18},"01M7EA99DQDFVJQBJNYDJQC643","ux-review","UX review of a built feature against its approved design - Playwright walks each flow and state at 390, 820, and 1440 px, axe-core and the tell checks run on each state, and each heuristic gets a verdict - with findings by owner, severity, and origin, and a verdict in ux-review.md in the work folder of the item. Use when a built feature or screen must be checked against its design, mockups, or prototype, in each state or at each screen size, when built screens need findings by severity, when the build of an item with a UX design is done, or when existing screens need a UX audit.","https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fux-design\u002Fskills\u002Fux-review\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":18},"01M7EA95YPJQQ1YDW5HS0RVAN2","ux-prototype","Clickable prototype of a designed story in the proto-shell standard, with variants for an A\u002FB test, all states in scope, three sizes, and a test plan with tasks. Use when a design or mockups exist and the team must test the flow or compare variants with users before the build.","https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fux-design\u002Fskills\u002Fux-prototype\u002FSKILL.md",[],[],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":18},"01M7EA91SKA2RNFGW9VDG9JFW7","ux-practice","The method of the ux-designer agent for the UX design of a story, a feature, or a screen - Double Diamond phases, a design spec with a source for each decision, the UX decision log, evidence tags, severity, and the modes light, full, and new-direction. Preloaded by the ux-designer agent. Use when the ux-designer agent or another UX skill names this method. For the design of an item, a person starts ux-design:ux-design.","https:\u002F\u002Fgithub.com\u002FCharmedme\u002Fmaikelsoft-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fux-design\u002Fskills\u002Fux-practice\u002FSKILL.md",[],[]]