·multiversx-cache-patterns
!

multiversx-cache-patterns

Gas-optimized cache patterns for MultiversX smart contracts using Drop-based write-back caches. Use when building contracts that read/write multiple storage values per transaction, DeFi protocols, or any gas-sensitive contract.

6Installs·0Trend·@multiversx

Installation

$npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-cache-patterns

How to Install multiversx-cache-patterns

Quickly install multiversx-cache-patterns AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-cache-patterns
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: multiversx/mx-ai-skills.

SKILL.md

View raw

The core pattern: load state into a struct on entry, mutate in memory, commit on scope exit via Drop.

For view functions or read-heavy operations where you don't need write-back:

When your cache needs derived values computed from the cached fields, add methods directly on the cache struct:

Gas-optimized cache patterns for MultiversX smart contracts using Drop-based write-back caches. Use when building contracts that read/write multiple storage values per transaction, DeFi protocols, or any gas-sensitive contract. Source: multiversx/mx-ai-skills.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-cache-patterns
Category
!Security
Verified
First Seen
2026-02-22
Updated
2026-03-10

Browse more skills from multiversx/mx-ai-skills

Quick answers

What is multiversx-cache-patterns?

Gas-optimized cache patterns for MultiversX smart contracts using Drop-based write-back caches. Use when building contracts that read/write multiple storage values per transaction, DeFi protocols, or any gas-sensitive contract. Source: multiversx/mx-ai-skills.

How do I install multiversx-cache-patterns?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-cache-patterns Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/multiversx/mx-ai-skills