Communitygithub.com

modbender/skill-library-mcp

使用命令列追蹤股票與加密貨幣投資組合,提供即時價格、損益與股利管理功能

skill-library-mcp 是什麼?

Portfolio Tracker 是一款專為開發者與投資人設計的 CLI 工具,支援股票與加密貨幣投資組合的本地追蹤。透過 Yahoo Finance 與 CoinGecko API 取得即時價格,並自動計算未實現與已實現損益(P&L)。除了基本持倉管理(新增、賣出、移除)外,還提供完整的股利追蹤功能,包含股利收益率、成本收益率(YOC)、預估年收益以及即將到來的除息日曆。支援多個投資組合管理,可建立、切換或列出不同組合,並能將資料匯出為 CSV。此外,該工具也提供可選的網頁介面,以 React/Next.js 呈現投資組合價值圓餅圖、股利摘要卡與除息日曆視覺化。資料以 JSON 格式儲存在本機 `data/portfolio.json` 中,適合注重隱私與離線操作的用戶。支援所有主流 CLI 環境,安裝依賴後即可透過 `npx tsx portfolio.ts` 或全域連結後的 `portfolio` 指令使用。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/modbender/skill-library-mcp/tree/HEAD/data/claw-portfolio

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

投資組合追蹤器

一套 CLI 工具,用於追蹤股票與加密貨幣投資組合,提供即時價格、損益(P&L)與股利管理功能。

何時使用此技能

當您需要以下功能時,可使用此技能:

  • 在本機追蹤股票與加密貨幣持倉
  • 取得即時價格與損益
  • 追蹤股利收益率、成本收益率(YOC)與預估收益
  • 查看即將到來的除息日期
  • 管理多個投資組合
  • 將投資組合資料匯出為 CSV

工具

此技能提供以下功能:

1. 列出持倉

顯示所有持倉的當前價值與損益。

指令:

npx tsx portfolio.ts list

2. 新增持倉

新增一筆股票或加密貨幣持倉。

指令:

npx tsx portfolio.ts add <symbol> <quantity> <price> <name> [type]

範例:

npx tsx portfolio.ts add AAPL 10 150 "Apple Inc." stock
npx tsx portfolio.ts add BTC 0.5 45000 Bitcoin crypto

3. 賣出持倉

使用 FIFO(先進先出)成本基礎法賣出股份。

指令:

npx tsx portfolio.ts sell <symbol> <quantity> <price> [date]

範例:

npx tsx portfolio.ts sell AAPL 5 180 2025-06-01
npx tsx portfolio.ts sell BTC 0.25 50000

4. 交易歷史

查看所有持倉或特定標的的賣出歷史。

指令:

npx tsx portfolio.ts history [symbol]

範例:

npx tsx portfolio.ts history
npx tsx portfolio.ts history AAPL

5. 損益摘要

顯示已實現與未實現的損益。

指令:

npx tsx portfolio.ts pnl

6. 股利追蹤

查看股票持倉的詳細股利資訊,包含收益率、成本收益率(YOC)與預估年收益。

指令:

npx tsx portfolio.ts dividends

7. 股利摘要

顯示投資組合層級的股利摘要:總預估收益、加權平均收益率與成本收益率。

指令:

npx tsx portfolio.ts dividend-summary

輸出包含:

  • 總預估年收益
  • 每月/每季收益估計
  • 所有持倉的加權平均收益率
  • 投資組合成本收益率
  • 配息股票數量

8. 股利行事曆

查看持倉的即將到來除息日期。

指令:

npx tsx portfolio.ts calendar [days]

範例:

npx tsx portfolio.ts calendar       # 未來 30 天
npx tsx portfolio.ts calendar 60    # 未來 60 天

9. 列出含股利

list 指令會自動擷取股利資料。使用 --no-dividends 標記可略過。

指令:

npx tsx portfolio.ts list           # 包含股利資訊
npx tsx portfolio.ts list --no-dividends  # 略過股利

10. 移除持倉

按標的符號移除持倉。

指令:

npx tsx portfolio.ts remove <symbol>

11. 投資組合價值

顯示總投資組合價值與損益。

指令:

npx tsx portfolio.ts value

12. 管理投資組合

列出、切換或建立投資組合。

指令:

npx tsx portfolio.ts portfolios
npx tsx portfolio.ts switch "投資組合名稱"
npx tsx portfolio.ts create "新投資組合"

提示: 執行 npm link 後,您可以使用較短的 portfolio 指令代替 npx tsx portfolio.ts。

安裝

首先,安裝所需的相依套件:

npm install

這將安裝所有必要套件,包含 TypeScript 執行環境 (tsx)、Next.js、React,以及 package.json 中列出的其他相依套件。

選擇性: 全域連結 CLI 以便更輕鬆存取:

npm link

連結後,您可以使用 portfolio <command> 代替 npx tsx portfolio.ts <command>。

NPM 腳本

npm run dev        # 啟動網頁介面(選擇性)
npm run build      # 建置正式環境

網頁介面(選擇性)

您也可以執行選擇性的網頁介面,支援完整的股利追蹤功能:

npm run dev

然後開啟 http://localhost:3000

網頁介面功能:

  • 即時投資組合價值與損益追蹤
  • 股利摘要卡片(年收益、加權收益率、YOC、即將到來日期)
  • 每檔股票的詳細股利細項表格
  • 即將到來除息日期的視覺化行事曆
  • 投資組合配置的互動式圓餅圖

資料儲存

投資組合資料儲存在本機的 data/portfolio.json 中。首次執行時會自動建立資料檔案,並包含空的投資組合。

功能特色

  • 透過 Yahoo Finance API 取得即時股價
  • 透過 CoinGecko API 取得即時加密貨幣價格
  • 支援多個投資組合
  • 每筆持倉的損益追蹤
  • 股利追蹤(收益率、YOC、預估收益、除息日期)
  • CLI 與選擇性網頁介面

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

modbender/skill-library-mcp

Paid acquisition strategy, budget allocation, and avoiding common advertising mistakes across platforms

modbender/skill-library-mcp

Complete investment portfolio risk management system. Analyze positions, calculate risk metrics, stress test scenarios, optimize allocations, and generate institutional-grade risk reports — all wit...

modbender/skill-library-mcp

Borrow from Aave via credit delegation. Agent self-funds by borrowing against delegator collateral. Supports borrow, repay, health checks. Works on Aave V2/V3.

modbender/skill-library-mcp

Discover and register autonomous AI agents. Use when: browsing the agent registry, submitting an agent for verification, or embedding agent badges. NOT for: general web search or agent capability analysis.

modbender/skill-library-mcp

Create AI avatar and talking head videos with OmniHuman, Fabric, PixVerse via inference.sh CLI. Models: OmniHuman 1.5, OmniHuman 1.0, Fabric 1.0, PixVerse Lipsync. Capabilities: audio-driven avatars, lipsync videos, talking head generation, virtual presenters. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human

modbender/skill-library-mcp

AI代码编辑器规则模板集合 - 为Cursor、Windsurf、Claude Code、Cline等AI编辑器提供项目规则配置。适用于需要配置AI编码助手规则的开发者,包含全栈Web、移动端、Vue3+SpringBoot等技术栈模板。

modbender/skill-library-mcp

Generate landing page code from product descriptions

modbender/skill-library-mcp

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awareness. Triggers: marketing video, ad video, promo video, commercial, brand video, product video, explainer video, ad creative, video ad, facebook ad video, youtube ad, instagram ad, tiktok ad, promotional video, launch video

modbender/skill-library-mcp

Generate AI music videos end-to-end. Creates music with Suno (sunoapi.org), generates visuals with OpenAI/Seedream/Google/Seedance, and assembles into music video with ffmpeg. Supports timestamped lyrics (auto SRT), Suno native music video generation, slideshow/video/hybrid modes. Token-based cost tracking per generation.

modbender/skill-library-mcp

Generate AI-powered notes from videos (document, outline, or graphic-text formats)

modbender/skill-library-mcp

The video AI notes tool is provided by Baidu. Based on the video download address provided by the user, it downloads and parses the video, and finally generates AI notes corresponding to the video (a total of three types of notes can be generated: document notes, outline notes, and image-text notes).

modbender/skill-library-mcp

Automated appointment management for beauty salons, clinics, studios, and photo booths. Handles booking requests, calendar sync, conflict detection, reminders, no-show tracking, and waitlist management.

modbender/skill-library-mcp

Bird identification, life list tracking, and trading card generation. Use this skill when the user: sends a bird photo to identify, says "set up my Birdfolio" or "set my region", asks "how's my checklist", asks "Birdfolio progress", asks "how many birds have I found", asks "show my Birdfolio" or "show my life list", asks "what's my rarest bird", or asks "tell me about [bird species]". Handles everything from first-time setup through ongoing life list tracking and visual trading card generation.

modbender/skill-library-mcp

Multi-project task and research management (JSON-first CLI)

modbender/skill-library-mcp

Track cryptocurrency portfolios with real-time prices, P&L calculations, and allocation analysis. Query Bitcoin, Ethereum, Solana and 10,000+ token holdings.

modbender/skill-library-mcp

加密貨幣Portfolio追蹤 - 支援TRON/ETH/BSC,分析持倉、收益、Gas費用

modbender/skill-library-mcp

Lead strategy with competitive analysis, strategic planning, growth roadmaps, and business portfolio management.

modbender/skill-library-mcp

Create ATS-optimized resumes and CVs with proper structure, metrics, and industry targeting.

modbender/skill-library-mcp

Use this skill when the user asks to build, create, design, develop, or improve ANY frontend interface, web page, UI component, or visual element. This includes: - Building landing pages, websites, web apps, dashboards, portfolios, or any web interface - Creating UI components (buttons, forms, cards, navbars, modals, etc.) - Designing pages with React, Vue, Next.js, Svelte, or any frontend framework - Adding styling or improving visual design of existing components - Implementing specific design aesthetics (modern, dark, minimalist, brutalist, etc.) - User mentions "frontend", "UI", "UX", "design", "interface", "web design", or "styling" - User asks for "beautiful", "modern", "professional", "clean", or any aesthetic adjective - User requests help with CSS, Tailwind, styled-components, or any styling approach This skill automatically retrieves the appropriate design system prompt (Neo-brutalism, Modern Dark, Bauhaus, Cyberpunk, Material, etc.) to help create visually distinctive, production-grade frontend...

modbender/skill-library-mcp

Native video analysis using Google Gemini API. Upload and analyze video files — describe scenes, extract text/UI, answer questions about content, transcribe speech, identify objects and actions. Use when: (1) User sends a video file and wants it analyzed, (2) Video summarization or description needed, (3) Extracting text, UI elements, or information from screen recordings, (4) Answering questions about video content, (5) Comparing multiple videos, (6) Analyzing tutorials, demos, or walkthroughs.

相關技能