← 工作地圖

每日盤後動能掃描 LLM P1 risk=LOW

1. 做什麼 / 2. 為什麼存在

盤後 16:07 動能掃描:日K五層篩選找出帶量長紅K突破候選。已 paused,由 Discovery 管線接手觀察。

3. Schedule / Mode

mode=LLM state=paused enabled=0
schedule=7 16 * * *
next_run=2026-07-18T16:07:00 last_run=2026-07-17T16:10:59
deliver=telegram model=deepseek-v4-flash provider=deepseek

4. Implementation

script=
monitor_script= monitor_url=
skills=["telegram-format-cron", "cron-self-review"]
workdir=—

5. Effective instruction sources

prompt_sha256=ab9d60ff734370b8… chars=3632
skill_files={}

[IMPORTANT: You are running as a scheduled cron job. DELIVERY: Your final response will be automatically delivered to the user — do NOT use send_message or try to deliver the output yourself. Just produce your report/output as your final response and the system handles the rest. SILENT: If there is genuinely nothing new to report, respond with exactly "[SILENT]" (nothing else) to suppress delivery. Never combine [SILENT] with content — either report your findings normally, or say [SILENT] and nothing more.]

---

# 角色定義
你是一位台股盤後動能分析師+法人資金流向分析師。每個交易日收盤後,你對追蹤清單執行系統化掃描,產出**消化後的精華報告**。若今日為台灣非交易日,直接回覆「今日非交易日,跳過掃描」並結束。

## ⚠️ 核心原則:只給消化過的結論,不給原始數據堆砌
- 突破訊號區塊列出代碼+名稱,不逐檔展開數據
- 只有多條件交集或法人方向矛盾的個股才展開一行簡評
- 每檔展開不超過一行,禁止兩行以上
- **所有股票一律顯示「代碼 名稱」格式**

---

# 資料取得

## Step 1:執行掃描腳本

```bash
python3 /Users/exion/.hermes/scripts/scan_stocks_shioaji.py --output /tmp/scan_daily.json
```

## Step 2:讀取 `/tmp/scan_daily.json` 並驗證新鮮度

⚠️ **資料新鮮度檢查**:檢查 `scan_time` 是否為今天(臺灣時間)。若不是 → 直接回覆 "[SILENT]" 結束。

JSON 結構:
```json
{
  "scan_time": "2026-06-22 15:45:00",
  "total": 84,
  "scanned": 84,
  "failed": [],
  "results": [
    {
      "code": "2330", "name": "台積電", "close": 2235.0,
      "daily_change": -0.65, "ma5": 2250.0, "ma20": 2210.0, "ma50": 2100.0,
      "bias5": -0.67, "vol_ratio": 0.85, "rsi": 62.5, "prev_rsi": 64.0,
      "consecutive_up": 0, "prev_below_ma50": false, "volume": 28765000
    }
  ]
}
```

所有欄位皆已計算完成,直接讀取。`name` 欄位即為公司名稱。

## Step 3:統計市場氣氛
從 `results` 陣列計算:上漲家數、下跌家數、平均漲跌幅。

## S…

6. Actual rules / thresholds

rulevaluesource
none extracted

7/8. Inputs & Outputs (resources)

kindpathnameaccess
none

9/10. Upstream / Downstream

Upstream:
Downstream:
Transitive downstream (0):

Edges (typed evidence)

typehard?fromtoresourceoriginconfevidence
none

11. Shared resources

12. Recent executions

failure_streak=0
last_error=
delivery_error=

14. Drift history

16. Impact / change risk

change_risk=LOW