Skip to content

"Vibe-Trading: Your Personal Trading Agent"

feat(frontend): add Value Investing examples to welcome screen

sambazhu5d9fd088ea27
diff --git a/frontend/src/components/chat/WelcomeScreen.tsx b/frontend/src/components/chat/WelcomeScreen.tsx
index 7e602943a..54b933953 100644
--- a/frontend/src/components/chat/WelcomeScreen.tsx
+++ b/frontend/src/components/chat/WelcomeScreen.tsx
@@ -1,5 +1,5 @@
import { useTranslation } from "react-i18next";
-import { Bot, TrendingUp, Globe, Sparkles, Users, UserCircle2, NotebookPen, Landmark } from "lucide-react";
+import { Bot, TrendingUp, Globe, Sparkles, Users, UserCircle2, NotebookPen, Landmark, Gem } from "lucide-react";
interface Example {
titleKey: string;
@@ -54,6 +54,33 @@ const CATEGORIES: Category[] = [
},
],
},
+ {
+ labelKey: "welcome.categories.valueInvesting",
+ icon: <Gem className="h-4 w-4" />,
+ color: "text-yellow-400 border-yellow-500/30 hover:border-yellow-500/60 hover:bg-yellow-500/5",
+ examples: [
+ {
+ titleKey: "welcome.examples.valueCommittee",
+ descKey: "welcome.examples.valueCommitteeDesc",
+ promptKey: "welcome.examples.valueCommitteePrompt",
+ },
+ {
+ titleKey: "welcome.examples.bottleneckHunter",
+ descKey: "welcome.examples.bottleneckHunterDesc",
+ promptKey: "welcome.examples.bottleneckHunterPrompt",
+ },
+ {
+ titleKey: "welcome.examples.thesisTracker",
+ descKey: "welcome.examples.thesisTrackerDesc",
+ promptKey: "welcome.examples.thesisTrackerPrompt",
+ },
+ {
+ titleKey: "welcome.examples.valuationCheck",
+ descKey: "welcome.examples.valuationCheckDesc",
+ promptKey: "welcome.examples.valuationCheckPrompt",
+ },
+ ],
+ },
{
labelKey: "welcome.categories.swarmTeams",
icon: <Users className="h-4 w-4" />,
diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json
index e5d91aaca..2778a9b0c 100644
--- a/frontend/src/i18n/locales/en.json
+++ b/frontend/src/i18n/locales/en.json
@@ -129,7 +129,8 @@
"docWebResearch": "Document & Web Research",
"tradeJournal": "Trade Journal",
"tradingConnectors": "Trading Connectors",
- "shadowAccount": "Shadow Account"
+ "shadowAccount": "Shadow Account",
+ "valueInvesting": "Value Investing"
},
"examples": {
"crossMarketPortfolio": "A-Share Portfolio Optimization",
@@ -147,6 +148,18 @@
"optionsGreeks": "Options Greeks Analysis",
"optionsGreeksDesc": "Black-Scholes pricing with Delta/Gamma/Theta/Vega",
"optionsGreeksPrompt": "Calculate option Greeks using Black-Scholes: spot=100, strike=105, risk-free rate=3%, vol=25%, expiry=90 days, analyze Delta/Gamma/Theta/Vega",
+ "valueCommittee": "Value Investing Committee",
+ "valueCommitteeDesc": "Buffett / Munger / Duan Yongping / Li Lu — four-master debate on one stock",
+ "valueCommitteePrompt": "Use run_swarm with the value_investing_committee preset to analyze Tencent (00700.HK): Buffett on moat & price, Munger on inversion, Duan Yongping on business & management, Li Lu on 10-year certainty, then the chair synthesizes consensus and contradictions",
+ "bottleneckHunter": "Supply-Chain Bottleneck Hunter",
+ "bottleneckHunterDesc": "Find hidden Layer 2/3 choke-point winners in a super-trend",
+ "bottleneckHunterPrompt": "Use the bottleneck-hunter skill to find Layer 2/3 supply-chain bottleneck opportunities in AI infrastructure (optics / lasers / InP substrates), score each choke point and list candidate companies that pass the valuation gate",
+ "thesisTracker": "Investment Thesis Tracker",
+ "thesisTrackerDesc": "Write a 5-sentence thesis + red lines + valuation anchors for a holding",
+ "thesisTrackerPrompt": "Use the thesis-tracker skill to build an investment thesis for Kweichow Moutai (600519.SH): 5-sentence core thesis, falsifiable assumptions, red lines, and valuation anchors, verified with financial_rigor",
+ "valuationCheck": "Exact Valuation Check",
+ "valuationCheckDesc": "Verify PE / PB / ROE / market cap with exact decimal arithmetic (no float drift)",
+ "valuationCheckPrompt": "Use the financial_rigor tool to verify Kweichow Moutai's valuation: price 1500, EPS 68.6, book value per share 180 — compute PE, PB, ROE exactly, then a three-scenario valuation (growth 12%/8%/0%, PE 22/18/14, 3 years)",
"investmentCommittee": "Investment Committee Review",
"investmentCommitteeDesc": "Multi-agent debate: long vs short, risk review, PM decision",
"investmentCommitteePrompt": "[Swarm Team Mode] Use the investment_committee preset to evaluate whether to go long or short on 600519.SH given current market conditions",
diff --git a/frontend/src/i18n/locales/zh-CN.json b/frontend/src/i18n/locales/zh-CN.json
index 6c8fbd880..f81d94313 100644
--- a/frontend/src/i18n/locales/zh-CN.json
+++ b/frontend/src/i18n/locales/zh-CN.json
@@ -124,7 +124,8 @@
"docWebResearch": "文档与网络研究",
"tradeJournal": "交易日志",
"tradingConnectors": "交易连接器",
- "shadowAccount": "影子账户"
+ "shadowAccount": "影子账户",
+ "valueInvesting": "价值投资"
},
"examples": {
"crossMarketPortfolio": "A股组合优化",
@@ -137,6 +138,18 @@
"multiFactorAlphaDesc": "对 300 只股票进行 IC 加权因子合成",
"optionsGreeks": "期权希腊字母分析",
"optionsGreeksDesc": "Black-Scholes 定价,Delta/Gamma/Theta/Vega 分析",
+ "valueCommittee": "四大师价值委员会",
+ "valueCommitteeDesc": "巴菲特/芒格/段永平/李录 四视角辩论一只股票",
+ "valueCommitteePrompt": "用 run_swarm 执行 value_investing_committee,分析腾讯(00700.HK):巴菲特看护城河和价格、芒格做逆向、段永平看生意和人、李录看十年确定性,主席综合共识和矛盾",
+ "bottleneckHunter": "供应链瓶颈猎手",
+ "bottleneckHunterDesc": "在超级趋势里找 Layer 2/3 咽喉环节的隐藏赢家",
+ "bottleneckHunterPrompt": "用 bottleneck-hunter 技能找 AI 基础设施的 Layer 2/3 供应链瓶颈机会(光模块/激光器/InP 衬底),给瓶颈评级和过估值门的候选公司",
+ "thesisTracker": "投资论文追踪",
+ "thesisTrackerDesc": "为持仓写 5 句话论文 + 红线 + 估值锚点",
+ "thesisTrackerPrompt": "用 thesis-tracker 技能给贵州茅台(600519.SH)建立投资论文:5 句话核心论文、可验证假设、红线清单、估值锚点,用 financial_rigor 验算",
+ "valuationCheck": "精确估值验算",
+ "valuationCheckDesc": "用精确十进制验算 PE/PB/ROE/市值(无浮点误差)",
+ "valuationCheckPrompt": "用 financial_rigor 工具验算贵州茅台估值:股价 1500、EPS 68.6、每股净资产 180,精确算 PE/PB/ROE,再做三情景估值(增速 12%/8%/0%,PE 22/18/14,3 年)",
"investmentCommittee": "投资委员会评审",
"investmentCommitteeDesc": "多智能体辩论:多头 vs 空头,风险审查,投资经理决策",
"quantStrategyDesk": "量化策略工作台",