kevin801221

Stock AI Graph — AI skill for Claude Code

AI community

可以依照股票其不同的產業股性來做圖分類,並且可以連接到相關的股票.

How to install Stock AI Graph

This entry records only its repository, not the path inside it, so there is no exact command to give. Open kevin801221/stock-ai-graph and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Stock AI Graph does

可以依照股票其不同的產業股性來做圖分類,並且可以連接到相關的股票。 比如說台積電 -> CPO組建 -> 上詮 -> "AI 帶動光通訊"

Alternatives in AI

  • Wiki Graph — Build the LLM Wiki knowledge graph 2.3k ★
  • Iwe — Markdown knowledge graph — LSP for your editor, CLI + MCP memory for your AI agents 1.8k ★
  • Nocturne Memory — A lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents 1.3k ★

README

產業股票分析為例的 LLM Wiki Graph

![LLM Wiki General Cover](assets/Wiki-CPO-LLM.jpg)

圖中為分析半導體, CPO, 光通, 電動車, 等科技產業的台股美股之間的複雜關係所產生的 Wiki Graph, 讓我們一眼就看明白美股、台股,產業、公司,之間的複雜關係。

然後我們最後的目標當然是,一個通用、可本地運行、可逐步擴充的 LLM Wiki 工作流。 目標是把任何領域的原始資料,整理成一套可累積、可查詢、可視覺化的 Markdown 知識庫,最後長成一張知識圖。

這個 repo 是 `llm-wiki-graph` 的 general 版本。 `llm-wiki-graph` 偏金融與 Podcast 實作;這個版本則把方法抽象化,讓別人可以拿去做股票、產業研究、公司訪談、政策資料、學術摘要、產品競品、課程筆記,甚至任何可切成 `raw -> source -> concept/entity -> synthesis` 的工作流。

這套流程不只給 Codex 用。只要是會讀檔、寫檔、能跑 Python 的 code agent,都可以照同一套 SOP 來做,例如 Claude Code、Gemini CLI、Cursor agent、Aider,或你之後換成其他本地 / 雲端代理工具也一樣能套用。

為什麼這個 repo 有機會提升價值?

大多數「第二大腦」專案只有資料收集,沒有知識沉澱。 大多數「RAG」專案只有檢索,沒有長期維護。 大多數「AI 摘要」專案只能回答,不能把答案變成可持續更新的知識網。

這個 repo 的定位不是聊天機器人,而是:

  • 一套 local-first 的知識整理流水線
  • 一套 LLM 可以遵循的 Wiki SOP
  • 一套能把 raw data 變成 linked knowledge graph 的骨架
  • 一套讓人類與 agent 可以共同維護的 Markdown knowledge base
  • 一套可被不同 code agent 共用的標準化 ingest / graph 流程

簡單說,這不是「再一個筆記工具」,而是「讓 LLM 幫你長期經營自己的知識圖譜」。

核心概念

整個系統的資料流如下:

raw/*.json
  -> wiki/sources/*.md
  -> wiki/concepts/*.md
  -> wiki/entities/*.md
  -> wiki/synthesis/*.md
  -> wiki/index.md / wiki/overview.md / wiki/log.md
  -> wiki/graph.html

這五種頁面是整個系統的骨架:

  • source:單一來源的摘要頁
  • concept:抽象知識、方法論、主題頁
  • entity:人物、公司、產品、技術、事件、地點、法規、組織
  • synthesis:跨來源整理後的洞察頁
  • overview:整個 wiki 目前長什麼樣

這個 repo 適合哪些使用場景

  • 股票與產業研究
  • Podcast / YouTube / 訪談知識庫
  • 企業內部研究報告歸檔
  • 競品觀察與市場情報
  • 法規與政策演變整理
  • 學術論文閱讀與概念圖譜
  • 個人學習型 wiki
  • 團隊共用研究底稿

目錄結構

llm-wiki-general/
├── CLAUDE.md
├── README.md
├── pyproject.toml
├── raw/
├── examples/
│   └── yfinance_to_raw.py
└── wiki/
    ├── index.md
    ├── log.md
    ├── overview.md
    ├── concepts/
    ├── entities/
    ├── sources/
    └── synthesis/

從零開始建立一個新的 General Wiki

Step 1. Clone repo

git clone  llm-wiki-general
cd llm-wiki-general

Step 2. 用 uv 建立環境

這個 repo 的 Python 執行與套件管理統一用 `uv`。

uv sync

如果你之後要加依賴:

uv add 套件名

如果你要移除依賴: