modify-caching — community modify-caching, elixir_cache, community, ide skills

v1.0.0

关于此技能

适用于寻求优化缓存策略的Elixir代理,使用统一的缓存API Caching patterns for the elixir_cache project. TRIGGER when: writing or modifying caching code involving Redis, ETS, elixir_cache, Cachex, or any of the _cache apps. Also trigger when working with RedisLock, Cache.Redis, Cache.ETS, or cache sandbox testing. DO NOT TRIGGER when: working with code that doesnt involve caching layers.

MikaAK MikaAK
[0]
[0]
更新于: 3/12/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 6/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
6/11
Quality Score
36
Canonical Locale
en
Detected Body Locale
en

适用于寻求优化缓存策略的Elixir代理,使用统一的缓存API Caching patterns for the elixir_cache project. TRIGGER when: writing or modifying caching code involving Redis, ETS, elixir_cache, Cachex, or any of the _cache apps. Also trigger when working with RedisLock, Cache.Redis, Cache.ETS, or cache sandbox testing. DO NOT TRIGGER when: working with code that doesnt involve caching layers.

核心价值

赋予代理实现高效缓存的能力,使用可插拔的适配器如Cache.Agent和Cache.ConCache,同时优先考虑测试,并通过`use Cache`宏提供统一的缓存API,支持类库如con_cache和DETS

适用 Agent 类型

适用于寻求优化缓存策略的Elixir代理,使用统一的缓存API

赋予的主要能力 · modify-caching

实现Elixir应用程序的缓存模式
使用DETS或con_cache适配器优化缓存存储
使用可插拔适配器测试和验证缓存策略

! 使用限制与门槛

  • 需要Elixir环境
  • 仅限Elixir缓存用例
  • 依赖于类库如con_cache和DETS

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

评审后的下一步

先决定动作,再继续看上游仓库材料

Killer-Skills 的主价值不应该停在“帮你打开仓库说明”,而是先帮你判断这项技能是否值得安装、是否应该回到可信集合复核,以及是否已经进入工作流落地阶段。

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

modify-caching 是什么?

适用于寻求优化缓存策略的Elixir代理,使用统一的缓存API Caching patterns for the elixir_cache project. TRIGGER when: writing or modifying caching code involving Redis, ETS, elixir_cache, Cachex, or any of the _cache apps. Also trigger when working with RedisLock, Cache.Redis, Cache.ETS, or cache sandbox testing. DO NOT TRIGGER when: working with code that doesnt involve caching layers.

如何安装 modify-caching?

运行命令:npx killer-skills add MikaAK/elixir_cache/modify-caching。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

modify-caching 适用于哪些场景?

典型场景包括:实现Elixir应用程序的缓存模式、使用DETS或con_cache适配器优化缓存存储、使用可插拔适配器测试和验证缓存策略。

modify-caching 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

modify-caching 有哪些限制?

需要Elixir环境;仅限Elixir缓存用例;依赖于类库如con_cache和DETS。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add MikaAK/elixir_cache/modify-caching。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    modify-caching 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

modify-caching

安装 modify-caching,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看评审结论、使用场景与安装路径。

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Caching Patterns

For the full library API reference, read references/elixir-cache-reference.md.

Architecture

elixir_cache provides a unified caching API via the use Cache macro with pluggable adapters:

lib/
├── cache.ex              # Main module: behaviour, `use` macro, delegation
├── cache/
│   ├── agent.ex          # Cache.Agent adapter (simple Agent-based)
│   ├── con_cache.ex      # Cache.ConCache adapter (wraps con_cache library)
│   ├── dets.ex           # Cache.DETS adapter (disk-persisted via Erlang DETS)
│   ├── ets.ex            # Cache.ETS adapter (high-performance in-memory)
│   ├── redis.ex          # Cache.Redis adapter (Redix + Poolboy)
│   ├── sandbox.ex        # Cache.Sandbox adapter (test isolation)
│   ├── sandbox_registry.ex  # Process registry for sandbox isolation
│   ├── term_encoder.ex   # Binary term encoding/decoding
│   └── metrics.ex        # Telemetry event definitions

Cache Behaviour

All adapters implement @behaviour Cache:

elixir
1@callback child_spec({cache_name :: atom, cache_opts :: Keyword.t()}) :: Supervisor.child_spec() 2@callback opts_definition() :: Keyword.t() 3@callback start_link(cache_opts :: Keyword.t()) :: {:ok, pid()} | {:error, term()} | :ignore 4@callback put(cache_name, key, ttl, value) :: :ok | ErrorMessage.t() 5@callback put(cache_name, key, ttl, value, opts) :: :ok | ErrorMessage.t() 6@callback get(cache_name, key) :: ErrorMessage.t_res(any) 7@callback get(cache_name, key, opts) :: ErrorMessage.t_res(any) 8@callback delete(cache_name, key) :: :ok | ErrorMessage.t() 9@callback delete(cache_name, key, opts) :: :ok | ErrorMessage.t()

use Cache Macro

The macro generates public API functions (get/1, put/2, put/3, delete/1, get_or_create/2, etc.) plus adapter-specific functions if the adapter exports __using__/1.

Required options: adapter, name Optional: sandbox?, opts

Adapters

AdapterDescription
Cache.AgentSimple agent-based caching
Cache.DETSDisk-persisted caching with Erlang DETS
Cache.ETSHigh-performance in-memory cache with ETS
Cache.RedisRedis adapter using Redix & Poolboy, supports JSON and Hashes
Cache.ConCacheWrapper around the ConCache library
Cache.SandboxTest adapter (auto-selected when sandbox?: true)

Adapter-specific functions

Some adapters inject extra functions via __using__/1:

  • Cache.ETS — full set of ETS operations (lookup/1, insert_raw/1, match_pattern/1, select/1, tab2list/0, update_counter/2, etc.)
  • Cache.Redis — hash and pipeline functions

Sandbox Testing

When sandbox?: true, Cache.Sandbox adapter is used. Keys are prefixed with a sandbox ID from Cache.SandboxRegistry for per-test isolation.

Setup in test/test_helper.exs:

elixir
1Cache.SandboxRegistry.start_link() 2ExUnit.start()

In test setup:

elixir
1Cache.SandboxRegistry.start([MyCache])

Telemetry Events

  • [:elixir_cache, :cache, :put] — span
  • [:elixir_cache, :cache, :get] — span
  • [:elixir_cache, :cache, :get, :miss] — counter on cache miss
  • [:elixir_cache, :cache, :delete] — span
  • [:elixir_cache, :cache, :put, :error] — counter on error
  • [:elixir_cache, :cache, :get, :error] — counter on error
  • [:elixir_cache, :cache, :delete, :error] — counter on error

All events include %{cache_name: cache_name} metadata.

Adding a New Adapter

  1. Create lib/cache/my_adapter.ex
  2. Implement @behaviour Cache callbacks
  3. Define opts_definition/0 returning a NimbleOptions schema
  4. Optionally export __using__/1 to inject adapter-specific functions
  5. Add tests in test/cache/my_adapter_test.exs
  6. Cache.ETS is the simplest adapter to use as a reference

相关技能

寻找 modify-caching 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具