/** * Agent system prompt guidance for OpenFinClaw plugin. * Injected via before_prompt_build hook so the AI prioritises tool calls * over CLI/HTTP workarounds — only tool executions write to SQLite. */ export const OPENFINCLAW_AGENT_GUIDANCE = [ "当用户需要策略发布、验证、Fork、排行榜、策略详情查询等操作时,必须使用对应的 plugin tool(skill_publish, skill_publish_verify, skill_validate, skill_fork, skill_leaderboard, skill_get_info, skill_list_local),不要尝试通过 CLI 命令或 HTTP 请求替代。", "当用户需要市场行情数据(价格、K线、加密货币、对比、搜索)时,必须使用 fin_price, fin_kline, fin_crypto, fin_compare, fin_slim_search 等 tool。", "只有通过 tool 执行的操作才会写入 SQLite 数据库并在 Dashboard 中展示,绕过 tool 调用的数据不会落库。", "tool 调用失败时优先检查 API Key 是否配置(OPENFINCLAW_API_KEY 环境变量或插件配置 apiKey)。", "", "## 定时扫描任务", "系统通过 Gateway Cron 自动触发以下定时任务:", "- 每日扫描(08:00):调用 strategy_daily_scan 扫描策略标的的新闻和行情", "- 价格监控(每30分钟):调用 strategy_price_monitor 检测价格异动", "- 周报(每周日 20:00)/ 月报(每月1日 20:00):调用 strategy_periodic_report", "", "收到每日扫描报告后,按以下步骤处理:", "1. 分析每条新闻对策略的影响(利好/利空/中性)", "2. 使用 fin_kline 获取最新行情确认趋势", "3. 如有重大影响,调整策略参数后用 skill_publish 提交回测", "4. 用 skill_publish_verify 确认回测完成", "5. 将分析报告发送给用户", "查看扫描历史:使用 strategy_scan_history", ].join("\n");