proactive-agent
A proactive agent that anticipates needs and takes initiative. Monitors environment, suggests actions, and proposes tasks based on context. Perfect for agents that need to be proactive rather than reactive.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/552134926-alt/shiyi-proactive-agentProactive Agent
A proactive agent that anticipates needs and takes initiative. Monitors environment, suggests actions, and proposes tasks based on context.
Features
- Context Analysis: Analyzes current time, market status, content pipeline
- Action Suggestion: Predicts needs and generates actionable suggestions
- Task Initiation: Proactively proposes tasks based on context
- Priority Management: 3-tier priority system (Trading > Content > Learning)
Quick Start
# Get next suggested action
python scripts/action_suggester.py --next
# Analyze current context
python scripts/context_analyzer.py --json
# Propose tasks
python scripts/task_initiator.py --propose
Components
1. Context Analyzer (scripts/context_analyzer.py)
Analyzes:
- Current time slot (morning_startup, trading_hours, content_window, etc.)
- Market status (open/closed)
- Content pipeline status
- Pending tasks
- Recent interactions
2. Action Suggester (scripts/action_suggester.py)
Generates suggestions based on:
- Time-based rules (trading hours, content window)
- Market conditions
- Content pipeline status
- Pending tasks
- Learning optimization needs
3. Task Initiator (scripts/task_initiator.py)
Proactively proposes tasks with:
- Task ID and timestamp
- Priority level
- Step-by-step instructions
- Auto-save to file
4. Proactive Monitor (scripts/proactive_monitor.py)
Continuous monitoring:
- Daemon mode for background operation
- Configurable check intervals
- Alert cooldown management
Configuration
Edit config/proactive_config.yaml:
proactive_level: 7 # 1-10, higher = more proactive
monitor_interval: 300 # Check interval in seconds
alert_cooldown: 1800 # Alert cooldown in seconds
priority_weights:
trading: 10
content: 8
tasks: 6
learning: 4
routine: 3
Time Rules
The agent recognizes these time slots:
| Time Slot | Hours | Typical Actions |
|---|---|---|
| morning_startup | 06:00-09:00 | Check portfolio, review today's plan |
| trading_hours | 09:30-15:00 | Monitor stocks, evaluate opportunities |
| content_window | 15:00-17:00 | Publish content, optimize posts |
| evening_routine | 17:00-22:00 | Log daily summary, update memory |
| night_quiet | 22:00-06:00 | Stay quiet, minimal alerts |
Integration
With AGENTS.md
Add to session startup:
1. Run proactive-agent: python skills/proactive-agent/scripts/action_suggester.py --next
With HEARTBEAT.md
Add to heartbeat checks:
python skills/proactive-agent/scripts/action_suggester.py --next
Example Output
[HIGH] 盘中交易时段
Suggestion: 观察候选股票,等待买入机会
[HIGH] 下午内容发布窗口
Suggestion: 检查待发布内容,准备发布小红书笔记
[MEDIUM] 晚间例行检查
Suggestion: 检查今日数据,记录交易日志
Use Cases
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-552134926-alt-shiyi-proactive-agent": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
context-compressor
Intelligently compress context — conversations, code, logs. Preserve key information while reducing token usage. Auto-detects content type and applies optimal compression.
markdown-knowledge
将本地 Markdown 知识库与 OpenClaw 集成,支持语义检索和上下文注入。仅在用户触发时检索(搜索知识库、查一下知识库等),不主动注入。
daily-report-generator
Automatically generate daily/weekly work reports from git commits, calendar events, and task lists. Use when you need to quickly create professional work reports without manual effort.
auto-context
智能上下文卫生检查器。分析当前会话的上下文污染程度 (长对话、主题漂移、噪声累积),建议:continue、/fork、/btw 或新会话。 支持手动触发(/auto-context)和自动触发(响应层实现)。 基于 ArXiv 论文和认知心理学研究的多维度评估体系。
onlyclaw-social-commerce
在只来龙虾平台以龙虾身份自动发帖带货、读取帖子、检索帖子、点赞评论,支持关联商品/店铺/Skill、封面与视频(先上传再发帖),实现 AI Agent 24h 社交电商自动运营