Token导航 LogoToken导航

Agent Skill · 研究检索

memory-compression-system(内存压缩系统)

memory-compression-system 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

memory-compression-system 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 4,884。

总安装 29,225周安装 1,230GitHub Stars 公开资料未说明下载 10,234核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
3.0.1

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:memory-compression-system(内存压缩系统)
来源仓库:https://github.com/hassffw/memory-compression-system
安装命令:
openclaw skills install memory-compression-system
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install memory-compression-system

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

OpenClaw 的集成内存管理和极端上下文压缩。将内存管理、压缩、搜索和自动化结合在一项统一的技能中。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install memory-compression-system;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

memory-compression-system 怎么安装?

在终端执行 openclaw skills install memory-compression-system。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

memory-compression-system 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

memory-compression-system 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

memory-compression-system 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

memory-compression-system 用的人多吗?

公开数据是累计安装 29,225 次,近一周安装 1,230 次,下载 10,234 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

memory-compression-system 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
memory-compression-system

内存压缩系统 · 本页

29,225—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
memory-compression-system
description
Integrated memory management and extreme context compression for OpenClaw. Combines memory management, compression, search, and automation in one unified skill.
version
3.0.0
author
tenx (@Safetbear)
tags
[memory, compression, automation, optimization, search]

Memory Compression System v3.0

Integrated memory management and extreme context compression for OpenClaw. Combines the best features of memory management and extreme compression into a single, streamlined skill with automatic scheduling.

Quick Start

# Install skill
openclaw skill install memory-compression-system

# Enable automatic compression (runs every 6 hours)
scripts/enable.sh

# Check status
scripts/status.sh

# Manual compression
scripts/compress.sh --format ultra

# Search memory
scripts/search.sh "keyword"

Features

1. Integrated Memory Management

  • Automatic compression: Every 6 hours (00:00, 06:00, 12:00, 18:00 UTC)
  • Smart cleanup: Daily cleanup of old files
  • Search functionality: Unified search across all memory files
  • Backup system: Automatic backups before compression

2. Three Compression Formats

  • Base64 Compact (B64C): Universal compatibility, ~40% reduction
  • Custom Binary (CBIN): Optimized binary, ~70% reduction
  • Ultra Compact (UCMP): Extreme compression, ~85% reduction, target ~150 tokens

3. Automated Scheduling

  • Single cron job: No overlapping schedules
  • Configurable: Adjust frequency and timing
  • Reliable: Built-in error recovery and logging
  • Efficient: Minimal resource usage

4. Search & Retrieval

  • Unified search: Across all memory formats
  • Fast indexing: Real-time search updates
  • Context aware: Understands compressed formats
  • Export options: Search results in multiple formats

5. ClawHub Ready

  • Standard structure: Compatible with ClawHub
  • Easy installation: One-command setup
  • Health checks: Built-in monitoring
  • Documentation: Comprehensive guides

Installation

Via ClawHub (Recommended)

openclaw skill search memory-compression-system
openclaw skill install memory-compression-system

Manual Installation

cd /home/node/.openclaw/workspace/skills
git clone [repository-url] memory-compression-system
cd memory-compression-system
scripts/install.sh

Usage

Basic Operations

# Enable automatic compression
scripts/enable.sh

# Disable automatic compression  
scripts/disable.sh

# Check system status
scripts/status.sh

# Run health check
scripts/health.sh

Compression Operations

# Compress with auto format selection
scripts/compress.sh

# Compress to specific format
scripts/compress.sh --format base64
scripts/compress.sh --format binary
scripts/compress.sh --format ultra

# Decompress files
scripts/decompress.sh [filename]

# List compressed files
scripts/list.sh

Search Operations

# Search across all memory
scripts/search.sh "keyword"

# Search with filters
scripts/search.sh "keyword" --format ultra --date 2026-02-15

# Export search results
scripts/search.sh "keyword" --export json

# View search history
scripts/search-history.sh

Management Operations

# Cleanup old files
scripts/cleanup.sh --days 30

# Backup system
scripts/backup.sh

# Restore from backup
scripts/restore.sh [backup-file]

# View logs
scripts/logs.sh

# Performance metrics
scripts/metrics.sh

Configuration

Main Configuration File

Edit config/default.conf:

# Compression settings
COMPRESSION_ENABLED=true
DEFAULT_FORMAT=ultra
RETENTION_DAYS=30
MAX_COMPRESSED_FILES=100

# Cron schedule (UTC)
CRON_SCHEDULE="0 */6 * * *"  # Every 6 hours
CLEANUP_SCHEDULE="0 4 * * *" # Daily at 04:00

# Search settings
SEARCH_ENABLED=true
SEARCH_INDEX_AUTO_UPDATE=true
SEARCH_HISTORY_SIZE=1000

# Performance settings
MAX_MEMORY_MB=100
MAX_PROCESSING_TIME_SEC=300

Environment Variables

export MEMORY_COMPRESSION_DEBUG=1  # Enable debug mode
export MEMORY_COMPRESSION_QUIET=0  # Disable quiet mode
export MEMORY_COMPRESSION_TEST=0   # Enable test mode

Compression Formats

Format 1: Base64 Compact (B64C)

VERSION:3.0
FORMAT:B64C
TIMESTAMP:2026-02-15T14:55:00Z
SIZE:1024
CHECKSUM:crc32
DATA:<base64_encoded>

Features:

  • Human readable
  • Easy debugging
  • Universal compatibility
  • CRC32 integrity check

Format 2: Custom Binary (CBIN)

[Magic:CBIN][Version:3][Flags:1][Size:4][Dictionary:var][Data:var][Checksum:2]

Features:

  • Optimized binary format
  • Shared string dictionary
  • Huffman encoding
  • CRC16 integrity check

Format 3: Ultra Compact (UCMP)

Target: ~150 tokens for complete context

Features:

  • Extreme compression (~85% reduction)
  • 3-letter abbreviations
  • Bit packing
  • Delta encoding
  • String interning

Automatic Scheduling

Compression Schedule

  • Every 6 hours: 00:00, 06:00, 12:00, 18:00 UTC
  • Operations:

1. Backup current memory 2. Compress with optimal format 3. Update search index 4. Cleanup old files 5. Log results

Cleanup Schedule

  • Daily at 04:00 UTC
  • Operations:

1. Remove files older than RETENTION_DAYS 2. Archive logs 3. Optimize search index 4. Update statistics

Health Check Schedule

  • Integrated with OpenClaw health checks
  • Operations:

1. Check compression status 2. Verify file integrity 3. Monitor resource usage 4. Report issues

Search System

Search Index

  • Real-time updates: Index updates after each compression
  • Multiple formats: Searches across all compression formats
  • Fast retrieval: Optimized for speed
  • Context aware: Understands compressed content

Search Features

# Basic search
scripts/search.sh "compression"

# Advanced search
scripts/search.sh "compression ratio" --format ultra --after 2026-02-01

# Export results
scripts/search.sh "test" --export csv --output results.csv

# Search history
scripts/search.sh --history

Search Index Structure

{
  "version": "3.0",
  "last_updated": "2026-02-15T18:00:00Z",
  "files": [
    {
      "filename": "memory_20260215_180000.ultra",
      "format": "ultra",
      "size": 256,
      "original_size": 1024,
      "ratio": 0.25,
      "keywords": ["compression", "memory", "test"],
      "timestamp": "2026-02-15T18:00:00Z"
    }
  ]
}

Error Handling & Recovery

Automatic Recovery

  • Backup system: Automatic backups before operations
  • Transaction logs: All operations logged
  • Rollback capability: Automatic rollback on failure
  • Error notifications: Alerts for critical issues

Manual Recovery

# Check error logs
scripts/logs.sh --error

# Restore from backup
scripts/restore.sh latest

# Repair search index
scripts/repair-index.sh

# Reset system
scripts/reset.sh --safe

Common Issues & Solutions

Issue: Compression fails Solution: Check disk space and run scripts/repair.sh

Issue: Search not working Solution: Rebuild index with scripts/rebuild-index.sh

Issue: Cron job not running Solution: Check with scripts/status.sh --cron

Issue: Performance degradation Solution: Run scripts/cleanup.sh --aggressive

Monitoring & Logging

Log Files

  • logs/compression.log: Compression operations
  • logs/search.log: Search operations
  • logs/error.log: Error messages
  • logs/performance.log: Performance metrics
  • logs/cron.log: Cron job execution

Status Monitoring

# Basic status
scripts/status.sh

# Detailed health check
scripts/health.sh

# Performance metrics
scripts/metrics.sh

# System information
scripts/info.sh

Alert System

  • Email alerts: For critical errors (if configured)
  • Telegram notifications: For important events
  • Log monitoring: Automatic log analysis
  • Performance alerts: For resource issues

Testing

Test Suite

cd test
./run-tests.sh

Test Coverage

  • Unit tests: Format encoding/decoding
  • Integration tests: Full system integration
  • Performance tests: Speed and memory usage
  • Error tests: Failure scenarios
  • Cron tests: Automatic scheduling

Manual Testing

# Test compression
scripts/test-compression.sh

# Test search
scripts/test-search.sh

# Test cron job
scripts/test-cron.sh

# Test error handling
scripts/test-errors.sh

Performance

Compression Performance

  • Base64: < 50ms for 10KB
  • Binary: < 100ms for 10KB
  • Ultra: < 200ms for 10KB
  • Target ratio: 75-90% reduction

Search Performance

  • Indexing: < 100ms per file
  • Search: < 50ms for 1000 files
  • Memory: < 10MB for index
  • Updates: Real-time

Resource Usage

  • CPU: Minimal impact
  • Memory: < 50MB peak
  • Disk: Configurable retention
  • Network: Local only

Updates & Maintenance

Update Procedure

# Update via ClawHub
openclaw skill update memory-compression-system

# Manual update
scripts/update.sh

# Check for updates
scripts/check-updates.sh

Backup Recommendations

  • Regular backups: Weekly backups of data/ directory
  • Export search index: Monthly export of search index
  • Archive logs: Monthly log archiving
  • Configuration backup: Backup config/ after changes

Version History

  • 3.0.0: Integrated memory-compression-system (current)
  • 2.0.0: Extreme context compression skill
  • 1.0.0: Memory manager skill

Contributing

Development Setup

# Clone repository
git clone [repo-url]

# Install dependencies
npm install

# Run tests
npm test

# Build package
npm run build

Code Standards

  • Bash scripts: Follow Google Bash Style Guide
  • JavaScript: Follow Standard JS style
  • Documentation: Keep SKILL.md updated
  • Testing: Add tests for new features

Pull Request Process

  1. Fork the repository
  2. Create feature branch
  3. Add tests for new functionality
  4. Update documentation
  5. Submit pull request

Support

Documentation

  • SKILL.md: This file
  • README.md: User documentation
  • examples/: Usage examples
  • test/: Test examples

Troubleshooting

  1. Check logs/ directory
  2. Run scripts/diagnose.sh
  3. Review examples/troubleshooting.md
  4. Contact maintainer if needed

Community

  • ClawHub: Skill repository
  • Discord: OpenClaw community
  • GitHub: Issue tracker
  • Documentation: OpenClaw docs

License

MIT License - See LICENSE file for details.


Note: This skill is designed for OpenClaw context optimization. Always maintain backups of important data and test in a safe environment before production use.

平台分布

OpenClaw

98.27%
按下载量换算10,057

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills