[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6N3BCT3JNJ6NCDZ1QRFPDNJ":3,"skill-same:01M6N3BCT3JNJ6NCDZ1QRFPDNJ":51},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6N3BCT3JNJ6NCDZ1QRFPDNJ","better-memory",null,"Kernel8901\u002Fai-agent-skills-classification","Kernel8901","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F72647553?v=4","01M6KV388J2H5PNC8D8P940BJD","01M6KV38CS5B3AY63RKZB410YM",7,"MIT","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Ftoken-optimizer\u002Fskills\u002Fbetter-memory\u002FSKILL.md",[],[17,18],"memory","better memory","2026-11-10 10:12:30",false,"# Better Memory\n\n> Semantic memory, intelligent compression, and context management for AI agents\n\n**Package:** better-memory\n\n**Description:** Prevents context limit amnesia with real embeddings, priority-based compression, and identity persistence.\n\n## Key Capabilities\n\n- **Vector-based memory storage** using local embeddings\n- **Semantic retrieval** through similarity matching\n- **Automatic deduplication** (exact hash + cosine similarity >0.9)\n- **Token-budget-aware retrieval**\n- **User identity persistence** across sessions\n- **Intelligent compression** when approaching limits\n\n## Dependencies\n\n```json\n{\n  \"@xenova\u002Ftransformers\": \"^2.x\",\n  \"tiktoken\": \"^1.x\",\n  \"sql.js\": \"^1.x\"\n}\n```\n\n## Installation\n\n```bash\ncd ~\u002F.clawdbot\u002Fskills\u002Fbetter-memory && npm install\n```\n\n## Configuration\n\n| Parameter | Default | Description |\n|-----------|---------|-------------|\n| dataDir | ~\u002F.better-memory | Storage location |\n| contextLimit | 128000 | Maximum tokens |\n| tokenEncoding | cl100k_base | Token encoder |\n| warningThreshold | 0.75 | 75% warning |\n| compressThreshold | 0.85 | 85% auto-compress |\n| emergencyThreshold | 0.95 | 95% emergency |\n\n## Basic Usage\n\n```javascript\nconst { ContextGuardian } = require('better-memory');\n\n\u002F\u002F Initialize with token budget\nconst guardian = new ContextGuardian({\n  contextLimit: 128000\n});\n\n\u002F\u002F Store memory with priority\nawait guardian.store({\n  content: \"User prefers dark mode\",\n  role: \"user\",\n  priority: 8\n});\n\n\u002F\u002F Semantic search\nconst results = await guardian.search(\"user preferences\");\n\n\u002F\u002F Get context within token budget\nconst context = await guardian.getContext({\n  maxTokens: 4000,\n  query: \"UI preferences\"\n});\n```\n\n## Priority Scoring\n\nCombines multiple signals:\n- **Role weight**: system=7, user=6, assistant=5\n- **Regex patterns**: Important keywords boost score\n- **Semantic similarity**: To query archetypes\n- **Content length**: Reasonable length preferred\n\n## Memory Decay\n\n- Age penalty: Older memories score lower\n- Access bonus: Frequently accessed memories persist\n- Configurable decay rate\n\n## Embedding Model\n\nUses `@xenova\u002Ftransformers` with **all-MiniLM-L6-v2**:\n- 384-dimensional vectors\n- Local processing (no API calls)\n- Fast inference\n\n## Storage\n\nSQLite via sql.js (WASM):\n- Location: `~\u002F.better-memory\u002Fmemories.db`\n- Tables: memories, identity, sessions\n- Binary embedding blobs for efficiency\n\n## License\n\nMIT\n",{},"main","f4cb2d49f7667e79ef7804f50396d5aaffdf1f56","人工智能与大型语言模型\u002Ftoken-optimizer\u002Fskills\u002Fbetter-memory",1,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification","https:\u002F\u002Fgithub.com\u002FKernel8901","a little little little dobe in life but science geek","2026-04-05 16:43:56",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Kernel8901\u002Fai-agent-skills-classification --skill better-memory",{"tool":37,"command":38},"bunx","bunx skills add Kernel8901\u002Fai-agent-skills-classification --skill better-memory",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Kernel8901\u002Fai-agent-skills-classification --skill better-memory","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Ftoken-optimizer\u002Fskills\u002Fbetter-memory\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"README.md","REFERENCE","参考文档",4532,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Ftoken-optimizer\u002Fskills\u002Fbetter-memory\u002FREADME.md",[52,76,112,123,133,163],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M6Q5R6WZ06RRB9RQTW54B34B","zyfai","Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit\u002Fwithdraw anytime.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzyfai-sdk\u002FSKILL.md",[],[54,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75],"safe","ethereum","defi","Optimization","user","use","Wallet","base","deposit","withdraw","yield","arbitrum","non-custodial","passive","defi yield","earn","yield optimization",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":94,"publishedAt":19},"01M6Q5R337B5JSNER4P4YS03TN","zerion-api","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api\u002FSKILL.md",[81,86,89],{"categoryNo":82,"categoryName":83,"taxonomyType":84,"taxonomyTypeDesc":85},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":87,"categoryName":88,"taxonomyType":84,"taxonomyTypeDesc":85},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":90,"categoryName":91,"taxonomyType":92,"taxonomyTypeDesc":93},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[95,96,97,98,99,100,101,61,102,65,103,104,105,106,107,108,109,110,111],"api","zerion api","zerion","MCP","mcp server","server","blockchain","transactions","crypto wallet","crypto","evm","solana","query","across","positions","token","prices",{"skillNo":113,"name":114,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":120,"publishedAt":19},"01M6Q5QZFYTDAZMZ27BN5VZXAR","zerion-api-skill","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-skill\u002FSKILL.md",[117,118,119],{"categoryNo":82,"categoryName":83,"taxonomyType":84,"taxonomyTypeDesc":85},{"categoryNo":87,"categoryName":88,"taxonomyType":84,"taxonomyTypeDesc":85},{"categoryNo":90,"categoryName":91,"taxonomyType":92,"taxonomyTypeDesc":93},[95,121,122,96,97,98,99,100,101,61,102,65,104,105,106,107,108,109,110,111],"api skill","zerion api skill",{"skillNo":124,"name":125,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":131,"publishedAt":19},"01M6Q5QW17QW98RA3FE45E4RD8","zerion-api-mcp","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-mcp\u002FSKILL.md",[128,129,130],{"categoryNo":82,"categoryName":83,"taxonomyType":84,"taxonomyTypeDesc":85},{"categoryNo":87,"categoryName":88,"taxonomyType":84,"taxonomyTypeDesc":85},{"categoryNo":90,"categoryName":91,"taxonomyType":92,"taxonomyTypeDesc":93},[98,95,132,96,97,99,100,61,102,65,103,104,105,106,107,108,109,110,111],"zerion api mcp",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":142,"publishedAt":19},"01M6Q5QQYZB7A501BDEQWKGSJT","yahoo-finance-forex","Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR\u002FUSD, GBP\u002FUSD, USD\u002FJPY, etc.). Analyzes sentiment and provides trading context.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-forex\u002FSKILL.md",[139],{"categoryNo":140,"categoryName":141,"taxonomyType":92,"taxonomyTypeDesc":93},"01JBSEEDCAT000000000000040","财务",[143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162],"finance","yahoo finance","forex","yahoo","yahoo finance forex","github","https","sentiment","real-time","python3","install","Market","usd","news","time","currency","gbp","pip","market data","for",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":170,"publishedAt":19},"01M6Q5QM6VS84WZVM7BKXXPF32","yahoo-finance","This skill should be used when the user asks to \"get stock prices\", \"check stock quotes\", \"look up earnings\", \"get financial data\", \"find trending stocks\", or needs stock market data from Yahoo Finance.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-cli\u002FSKILL.md",[169],{"categoryNo":140,"categoryName":141,"taxonomyType":92,"taxonomyTypeDesc":93},[143,144,146,171,172,173,174,175,176,154,177,178,179,180,181,182,183,184,111,161],"cli","homebrew","find","check","brew","up","local","get","stock","link","trending","sf","quotes","ln"]