[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76XMZ7BQ63VPPVP2YKGJ6KJ":3,"skill-same:01M76XMZ7BQ63VPPVP2YKGJ6KJ":57},{"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":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M76XMZ7BQ63VPPVP2YKGJ6KJ","Smart Cache",null,"Intelligent caching with LRU\u002FLFU strategies and TTL management","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fraghulpasupathi\u002Fsmart-cache\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nid: smart-cache\nversion: 1.0.0\nname: Smart Cache\ndescription: Intelligent caching with LRU\u002FLFU strategies and TTL management\nauthor: NeoClaw Team\ncategory: utility\ntags:\n  - caching\n  - performance\n  - lru\n  - lfu\ndependencies: []\n---\n\n# Smart Cache\n\nHigh-performance caching with multiple eviction strategies.\n\n## Implementation\n\n```javascript\nclass SmartCache {\n  constructor(options = {}) {\n    this.strategy = options.strategy || 'lru'; \u002F\u002F 'lru' or 'lfu'\n    this.maxSize = options.maxSize || 500;\n    this.defaultTTL = options.defaultTTL || 3600000; \u002F\u002F 1 hour\n    \n    this.cache = new Map();\n    this.accessCount = new Map();\n    this.accessOrder = [];\n  }\n\n  set(key, value, ttl = this.defaultTTL) {\n    \u002F\u002F Evict if at capacity\n    if (this.cache.size >= this.maxSize && !this.cache.has(key)) {\n      this.evict();\n    }\n\n    const entry = {\n      value,\n      expiresAt: Date.now() + ttl,\n      createdAt: Date.now()\n    };\n\n    this.cache.set(key, entry);\n    this.accessCount.set(key, 0);\n    this.updateAccessOrder(key);\n\n    return true;\n  }\n\n  get(key) {\n    const entry = this.cache.get(key);\n\n    if (!entry) {\n      return { hit: false, value: null };\n    }\n\n    \u002F\u002F Check TTL\n    if (Date.now() > entry.expiresAt) {\n      this.delete(key);\n      return { hit: false, value: null, reason: 'expired' };\n    }\n\n    \u002F\u002F Update access tracking\n    this.accessCount.set(key, (this.accessCount.get(key) || 0) + 1);\n    this.updateAccessOrder(key);\n\n    return { hit: true, value: entry.value };\n  }\n\n  delete(key) {\n    this.cache.delete(key);\n    this.accessCount.delete(key);\n    this.accessOrder = this.accessOrder.filter(k => k !== key);\n  }\n\n  evict() {\n    if (this.strategy === 'lru') {\n      this.evictLRU();\n    } else if (this.strategy === 'lfu') {\n      this.evictLFU();\n    }\n  }\n\n  evictLRU() {\n    \u002F\u002F Remove least recently used\n    if (this.accessOrder.length > 0) {\n      const keyToEvict = this.accessOrder[0];\n      this.delete(keyToEvict);\n    }\n  }\n\n  evictLFU() {\n    \u002F\u002F Remove least frequently used\n    let minCount = Infinity;\n    let keyToEvict = null;\n\n    for (const [key, count] of this.accessCount.entries()) {\n      if (count \u003C minCount) {\n        minCount = count;\n        keyToEvict = key;\n      }\n    }\n\n    if (keyToEvict) {\n      this.delete(keyToEvict);\n    }\n  }\n\n  updateAccessOrder(key) {\n    \u002F\u002F Remove from current position\n    this.accessOrder = this.accessOrder.filter(k => k !== key);\n    \u002F\u002F Add to end (most recent)\n    this.accessOrder.push(key);\n  }\n\n  clear() {\n    this.cache.clear();\n    this.accessCount.clear();\n    this.accessOrder = [];\n  }\n\n  getStats() {\n    return {\n      size: this.cache.size,\n      maxSize: this.maxSize,\n      strategy: this.strategy,\n      hitRate: this.calculateHitRate()\n    };\n  }\n\n  calculateHitRate() {\n    \u002F\u002F Simplified - would track actual hits\u002Fmisses in production\n    return Math.round((this.cache.size \u002F this.maxSize) * 100);\n  }\n}\n\n\u002F\u002F Export for OpenClaw\nmodule.exports = { SmartCache };\n```\n\n## Usage\n\n```javascript\nconst cache = new skills.smartCache.SmartCache({\n  strategy: 'lru',\n  maxSize: 500,\n  defaultTTL: 3600000\n});\n\n\u002F\u002F Set value\ncache.set('key1', { data: 'value' }, 60000);\n\n\u002F\u002F Get value\nconst result = cache.get('key1');\nif (result.hit) {\n  console.log('Cache hit:', result.value);\n}\n\n\u002F\u002F Stats\nconsole.log(cache.getStats());\n```\n\n## Configuration\n\n```json\n{\n  \"strategy\": \"lru\",\n  \"maxSize\": 500,\n  \"defaultTTL\": 3600000\n}\n```\n","# Smart Cache\n\nHigh-performance caching with multiple eviction strategies.\n\n## Implementation\n\n```javascript\nclass SmartCache {\n  constructor(options = {}) {\n    this.strategy = options.strategy || 'lru'; \u002F\u002F 'lru' or 'lfu'\n    this.maxSize = options.maxSize || 500;\n    this.defaultTTL = options.defaultTTL || 3600000; \u002F\u002F 1 hour\n    \n    this.cache = new Map();\n    this.accessCount = new Map();\n    this.accessOrder = [];\n  }\n\n  set(key, value, ttl = this.defaultTTL) {\n    \u002F\u002F Evict if at capacity\n    if (this.cache.size >= this.maxSize && !this.cache.has(key)) {\n      this.evict();\n    }\n\n    const entry = {\n      value,\n      expiresAt: Date.now() + ttl,\n      createdAt: Date.now()\n    };\n\n    this.cache.set(key, entry);\n    this.accessCount.set(key, 0);\n    this.updateAccessOrder(key);\n\n    return true;\n  }\n\n  get(key) {\n    const entry = this.cache.get(key);\n\n    if (!entry) {\n      return { hit: false, value: null };\n    }\n\n    \u002F\u002F Check TTL\n    if (Date.now() > entry.expiresAt) {\n      this.delete(key);\n      return { hit: false, value: null, reason: 'expired' };\n    }\n\n    \u002F\u002F Update access tracking\n    this.accessCount.set(key, (this.accessCount.get(key) || 0) + 1);\n    this.updateAccessOrder(key);\n\n    return { hit: true, value: entry.value };\n  }\n\n  delete(key) {\n    this.cache.delete(key);\n    this.accessCount.delete(key);\n    this.accessOrder = this.accessOrder.filter(k => k !== key);\n  }\n\n  evict() {\n    if (this.strategy === 'lru') {\n      this.evictLRU();\n    } else if (this.strategy === 'lfu') {\n      this.evictLFU();\n    }\n  }\n\n  evictLRU() {\n    \u002F\u002F Remove least recently used\n    if (this.accessOrder.length > 0) {\n      const keyToEvict = this.accessOrder[0];\n      this.delete(keyToEvict);\n    }\n  }\n\n  evictLFU() {\n    \u002F\u002F Remove least frequently used\n    let minCount = Infinity;\n    let keyToEvict = null;\n\n    for (const [key, count] of this.accessCount.entries()) {\n      if (count \u003C minCount) {\n        minCount = count;\n        keyToEvict = key;\n      }\n    }\n\n    if (keyToEvict) {\n      this.delete(keyToEvict);\n    }\n  }\n\n  updateAccessOrder(key) {\n    \u002F\u002F Remove from current position\n    this.accessOrder = this.accessOrder.filter(k => k !== key);\n    \u002F\u002F Add to end (most recent)\n    this.accessOrder.push(key);\n  }\n\n  clear() {\n    this.cache.clear();\n    this.accessCount.clear();\n    this.accessOrder = [];\n  }\n\n  getStats() {\n    return {\n      size: this.cache.size,\n      maxSize: this.maxSize,\n      strategy: this.strategy,\n      hitRate: this.calculateHitRate()\n    };\n  }\n\n  calculateHitRate() {\n    \u002F\u002F Simplified - would track actual hits\u002Fmisses in production\n    return Math.round((this.cache.size \u002F this.maxSize) * 100);\n  }\n}\n\n\u002F\u002F Export for OpenClaw\nmodule.exports = { SmartCache };\n```\n\n## Usage\n\n```javascript\nconst cache = new skills.smartCache.SmartCache({\n  strategy: 'lru',\n  maxSize: 500,\n  defaultTTL: 3600000\n});\n\n\u002F\u002F Set value\ncache.set('key1', { data: 'value' }, 60000);\n\n\u002F\u002F Get value\nconst result = cache.get('key1');\nif (result.hit) {\n  console.log('Cache hit:', result.value);\n}\n\n\u002F\u002F Stats\nconsole.log(cache.getStats());\n```\n\n## Configuration\n\n```json\n{\n  \"strategy\": \"lru\",\n  \"maxSize\": 500,\n  \"defaultTTL\": 3600000\n}\n```\n",{"id":24,"name":5,"tags":25,"author":30,"version":31,"category":32,"description":7,"dependencies":33},"smart-cache",[26,27,28,29],"caching","performance","lru","lfu","NeoClaw Team","1.0.0","utility",[],"main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fraghulpasupathi\u002Fsmart-cache",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill \"Smart Cache\"",{"tool":49,"command":50},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill \"Smart Cache\"",{"tool":52,"command":53},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill \"Smart Cache\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fraghulpasupathi\u002Fsmart-cache\u002FSKILL.md",true,[],[58,66,73,80,87,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":65},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"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":65},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\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":65},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\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":65},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":65},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":65},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]