Agent SkillsAlphaGBM/skills › alphagbm-investment-thesis

alphagbm-investment-thesis

GitHub

用于记录、追踪和监控股票投资论据。支持创建买入理由与卖出触发条件,自动检测论据是否被打破并更新状态,适用于撰写买入逻辑、设置退出策略及审查活跃论据。

skills/alphagbm-investment-thesis/SKILL.md AlphaGBM/skills

Trigger Scenarios

用户希望记录购买某只股票的原因 用户需要设置止损或退出触发条件 用户查询哪些投资论据已被触发或失效 用户要求更新或完善现有的投资论据 提及'论据'、'买入理由'、'卖出条件'等关键词

Install

npx skills add AlphaGBM/skills --skill alphagbm-investment-thesis -g -y
More Options

Use without installing

npx skills use AlphaGBM/skills@alphagbm-investment-thesis

指定 Agent (Claude Code)

npx skills add AlphaGBM/skills --skill alphagbm-investment-thesis -a claude-code -g -y

安装 repo 全部 skill

npx skills add AlphaGBM/skills --all -g -y

预览 repo 内 skill

npx skills add AlphaGBM/skills --list

SKILL.md

Frontmatter
{
    "name": "alphagbm-investment-thesis",
    "description": "Record and track the \"why I bought\" and \"when I sell\" for each position. Each thesis is attached to a company profile: buy reasons in prose, sell conditions as structured triggers (price drop, PE spike, thesis breach). The system monitors conditions automatically and flips the thesis to \"triggered\" when one fires. Use when: writing buy logic, setting exit triggers, reviewing active theses, seeing which triggered. Triggers on: \"write a thesis for NVDA\", \"why did I buy AAPL\", \"set a stop loss logic on TSLA\", \"which theses are triggered\", \"update my thesis\", \"投资论据\", \"卖出条件\", \"买入理由\", \"论据被打破\"."
}

AlphaGBM Investment Thesis

Turn "I bought this because…" into a tracked, monitored record. Each thesis pairs a prose buy-reason with structured sell conditions so the system can auto-detect when the reasoning no longer holds.

When to use

  • User wants to document why they bought a stock
  • User wants to set exit triggers (price, PE, fundamental breach)
  • User asks which theses are still valid vs triggered
  • User asks to update / refine an existing thesis
  • User mentions "论据" / "买入理由" / "卖出条件" / "thesis" / "exit trigger"

Prerequisites

  • API Key: env ALPHAGBM_API_KEY (format agbm_xxxx…).
  • Base URL: default https://alphagbm.zeabur.app. Override via ALPHAGBM_BASE_URL.
  • Profile required: A thesis must attach to an existing company profile. If the user hasn't created a profile for the ticker, call POST /api/research/profiles first (see alphagbm-company-profile).

API Endpoints

All endpoints require Authorization: Bearer $ALPHAGBM_API_KEY.

1. List theses

GET /api/research/theses?status=active
Query Values Description
status active / triggered / closed Optional filter

Response:

{
  "success": true,
  "theses": [
    { "id": 12, "ticker": "NVDA", "buy_thesis": "...", "status": "active", ... }
  ]
}

2. Get thesis by ticker

GET /api/research/theses/<TICKER>

Returns the active thesis for a ticker. 404 if none exists.

3. Create thesis

POST /api/research/theses
Content-Type: application/json

{
  "ticker": "NVDA",
  "buy_thesis": "AI capex cycle; data-center GPU moat; FCF > $60B.",
  "sell_conditions": [
    { "type": "price_drop_pct",  "value": 20 },
    { "type": "pe_above",        "value": 60 },
    { "type": "growth_below",    "value": 15 },
    { "type": "thesis_breach",   "value": "cloud capex guidance cut > 20%" }
  ]
}
Parameter Type Required Description
ticker string yes Must match an existing profile
buy_thesis string yes Free-form prose, recommend 2-4 sentences
sell_conditions array no Structured triggers (see types below)

Common sell_conditions types:

  • price_drop_pct — drop from purchase/peak %
  • pe_above / pb_above — valuation ceiling
  • growth_below — revenue/earnings growth threshold
  • thesis_breach — free-text qualitative trigger (monitored manually)

4. Update thesis (by id)

PUT /api/research/theses/<THESIS_ID>
Content-Type: application/json

{"buy_thesis": "updated prose", "sell_conditions": [...], "status": "closed"}

Partial updates allowed. Note: uses thesis_id (int), not ticker — read the id from a prior list or get.

5. Delete thesis (by id)

DELETE /api/research/theses/<THESIS_ID>

Hard-delete. Also uses numeric id.

Response schema — full thesis

{
  id, ticker,
  buy_thesis,                     // prose
  sell_conditions,                // [{type, value}]
  status,                         // "active" | "triggered" | "closed"
  thesis_score,                   // AI confidence 0-100 (if scored)
  ai_feedback,                    // AI critique of the thesis (markdown)
  triggered_at, trigger_detail,   // populated when status flips
  created_at, updated_at
}

Status lifecycle

active ──(sell condition fires)──▶ triggered
   │                                   │
   └────────(user closes)──▶ closed ◀──┘

When status = "triggered", trigger_detail shows which condition fired. Surface this to the user — it's the whole point of the system.

Typical Workflow

1. User: "I'm buying NVDA because AI capex is still accelerating"
   → (ensure profile exists — see alphagbm-company-profile)
   → POST /api/research/theses with buy_thesis + sell_conditions
   → Confirm: "Saved. Monitoring: price drop > 20%, PE > 60, growth < 15%."

2. User: "What are my active theses?"
   → GET /api/research/theses?status=active
   → Table: ticker · one-line thesis · conditions · score

3. User: "Any theses triggered?"
   → GET /api/research/theses?status=triggered
   → Alert list with trigger_detail explaining why

4. User: "Update my NVDA thesis — exit if PE > 70 instead of 60"
   → GET /api/research/theses/NVDA to find id
   → PUT /api/research/theses/<id> with revised sell_conditions

Output Formatting Tips

When presenting a thesis to the user, highlight:

  1. Ticker + status (with color/emoji: active=green, triggered=red, closed=gray)
  2. Buy thesis — first 2 sentences verbatim
  3. Sell conditions — bulleted, human-phrased ("Exit if price drops 20%")
  4. If triggered — which trigger fired, lead with that
  5. AI feedback / score — if present, show as a pull-quote
  6. Age — "written 3 weeks ago, reviewed 2 days ago"

Related Skills

  • alphagbm-company-profile — Prerequisite. A thesis attaches to a profile.
  • alphagbm-health-check — Surfaces theses that may have drifted from their original premise
  • alphagbm-stock-analysis — Run a fresh analysis to sanity-check a thesis

Powered by AlphaGBM — Real-data options & research intelligence for traders and AI agents. 10K+ users.

Version History

  • c69fa1b Current 2026-07-05 20:18

Same Skill Collection

skills/alphagbm-alert/SKILL.md
skills/alphagbm-compare/SKILL.md
skills/alphagbm-earnings-crush/SKILL.md
skills/alphagbm-market-sentiment/SKILL.md
skills/alphagbm-options-score/SKILL.md
skills/alphagbm-polymarket/SKILL.md
skills/alphagbm-stock-analysis/SKILL.md
skills/alphagbm-unusual-activity/SKILL.md
skills/alphagbm-watchlist/SKILL.md
skills/alphagbm-bps-backtest/SKILL.md
skills/alphagbm-buffett-analysis/SKILL.md
skills/alphagbm-company-profile/SKILL.md
skills/alphagbm-duan-analysis/SKILL.md
skills/alphagbm-fear-score/SKILL.md
skills/alphagbm-greeks/SKILL.md
skills/alphagbm-health-check/SKILL.md
skills/alphagbm-hedge-advisor/SKILL.md
skills/alphagbm-iv-rank/SKILL.md
skills/alphagbm-macro-view/SKILL.md
skills/alphagbm-marks-cycle/SKILL.md
skills/alphagbm-options-strategy/SKILL.md
skills/alphagbm-pnl-simulator/SKILL.md
skills/alphagbm-take-profit/SKILL.md
skills/alphagbm-tepper-signal/SKILL.md
skills/alphagbm-theme-research/SKILL.md
skills/alphagbm-vix-status/SKILL.md
skills/alphagbm-vol-smile/SKILL.md
skills/alphagbm-vol-surface/SKILL.md

Metadata

Files
0
Version
c69fa1b
Hash
7d3e4b46
Indexed
2026-07-05 20:18

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-08 22:24
浙ICP备14020137号-1 $Гость$