Shiyi Proactive Agent — Shiyi Proactive 代理
v1.0.0A proactive 代理 that anticipates needs and takes initiative. 监控s 环境, suggests actions, and proposes tasks based on 上下文. Perfect for 代理s that need to be proactive rather than reactive.
运行时依赖
版本
v1.0.0 (2026-03-25)
安装命令
点击复制技能文档
Proactive 代理
A proactive 代理 that anticipates needs and takes initiative. 监控s 环境, suggests actions, and proposes tasks based on 上下文.
Features 上下文 Analysis: Analyzes current time, market 状态, content 流水线 Action Suggestion: Predicts needs and 生成s actionable suggestions Task Initiation: Proactively proposes tasks based on 上下文 Priority Management: 3-tier priority 系统 (Trading > Content > Learning) Quick 启动 # 获取 next suggested action python scripts/action_suggester.py --next
# Analyze current 上下文 python scripts/上下文_分析器.py --json
# Propose tasks python scripts/task_initiator.py --propose
组件s
- 上下文 分析器 (scripts/上下文_分析器.py)
Analyzes:
Current time slot (morning_启动up, trading_hours, content_window, etc.) Market 状态 (open/closed) Content 流水线 状态 Pending tasks Recent interactions
- Action Suggester (scripts/action_suggester.py)
生成s suggestions based on:
Time-based rules (trading hours, content window) Market conditions Content 流水线 状态 Pending tasks Learning optimization needs
- Task Initiator (scripts/task_initiator.py)
Proactively proposes tasks with:
Task ID and timestamp Priority level Step-by-step instructions Auto-save to file
- Proactive 监控 (scripts/proactive_监控.py)
Continuous 监控ing:
Daemon mode for background operation Configurable 检查 intervals Alert cooldown management Configuration
Edit config/proactive_config.yaml:
proactive_level: 7 # 1-10, higher = more proactive 监控_interval: 300 # 检查 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 代理 recognizes these time slots:
Time Slot Hours Typical Actions morning_启动up 06:00-09:00 检查 portfolio, review today's plan trading_hours 09:30-15:00 监控 stocks, evaluate opportunities content_window 15:00-17:00 Publish content, 优化 posts evening_routine 17:00-22:00 记录 dAIly summary, 更新 memory night_quiet 22:00-06:00 Stay quiet, minimal alerts Integration With 代理S.md
添加 to 会话 启动up:
- 运行 proactive-代理: python 技能s/proactive-代理/scripts/action_suggester.py --next
With HEARTBEAT.md
添加 to heartbeat 检查s:
python 技能s/proactive-代理/scripts/action_suggester.py --next
Example 输出 [HIGH] 盘中交易时段 Suggestion: 观察候选股票,等待买入机会
[HIGH] 下午内容发布窗口 Suggestion: 检查待发布内容,准备发布小红书笔记
[MEDIUM] 晚间例行检查 Suggestion: 检查今日数据,记录交易日志
Use Cases Trading 助手: 监控 market hours, suggest buy/sell decisions Content 创建器: Remind to publish at optimal times Task 管理器: Proactively propose tasks based on schedule Learning 代理: Suggest performance analysis and improvements Requirements Python 3.7+ Works on Windows/Linux/macOS Change记录 v1.0.0 (2026-03-25) Initial release 上下文 分析器, action suggester, task initiator, proactive 监控 Configuration 系统 Time-based rules