optimize-context
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
02 资源文件 8
- 参考文档_meta.json287 B
- 脚本commands/optimize-context.js5.2 KB
- 参考文档commands/optimize-context.json423 B
- 脚本commands/process-task.js2.6 KB
- 参考文档commands/process-task.json502 B
- 参考文档systems/context-monitor-config.json537 B
- 脚本systems/context-monitor.js8.0 KB
- 参考文档task_processing_config.json948 B
03 SKILL.md 正文
Context Optimizer & Task Processing Skills Package
Overview
This package contains two powerful OpenClaw skills for automated context management:
- Context Optimizer - Automatically optimizes conversation context to prevent "prompt too large" errors
- Task Processor - Handles large tasks by automatically splitting them into smaller subtasks
Files Included
skills/context-optimizer/- Main skill directory with all implementation filescommands/optimize-context.js- Command handler for context optimizationcommands/optimize-context.json- Command configuration for context optimizationcommands/process-task.js- Command handler for processing large taskscommands/process-task.json- Command configuration for task processingsystems/context-monitor.js- Background context monitoring systemsystems/context-monitor-config.json- Configuration for context monitoringtask_processing_config.json- Global task processing configuration
Installation Instructions
-
Extract this package to your OpenClaw workspace:
cd ~/.openclaw/workspace tar -xzf /path/to/context-optimizer-skill.tar.gz -
Install dependencies (if any are needed):
cd ~/.openclaw/workspace/skills/context-optimizer npm install -
The skills should now be available in your OpenClaw system with:
/optimize-contextcommand for manual context optimization/process-taskcommand for handling large tasks with automatic splitting
Features
Context Optimizer
- Automatically monitors conversation length
- Triggers optimization when message count exceeds thresholds
- Extracts key points and facts while clearing old context
- Prevents "prompt too large" errors
Task Processor
- Detects large tasks that exceed token limits
- Automatically splits large tasks into smaller subtasks
- Processes subtasks sequentially while maintaining context
- Integrates with context optimization to prevent overflow
Automatic Monitoring
- Continuous background monitoring of context length
- Configurable thresholds for automatic optimization
- Seamless integration with normal conversation flow
Configuration
- Adjust settings in
task_processing_config.json - Modify thresholds for message counts and token limits
- Configure timing for automatic optimization triggers
The skills are ready to use immediately after installation!
04 同仓库更多 Skills
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/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
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.