Communitygithub.com

加密貨幣投資組合追蹤器

即時追蹤加密貨幣投資組合,提供資產估值、配置分析及損益追蹤功能。

加密貨幣投資組合追蹤器 是什麼?

這是一款專為開發者和進階使用者設計的加密貨幣投資組合追蹤技能,透過 CoinGecko API 提供即時市場數據,支援快速查詢投資組合總值、各資產持有明細、配置比例分析,以及自定義風險門檻的集中度警告。技能需要使用者準備一個 JSON 格式的持倉檔案,並透過 CLI 腳本執行多種檢視模式,包括摘要、明細和詳細分析,同時支援 JSON 與 CSV 格式匯出,方便串接外部工具或報稅軟體。該技能相容於 Claude Code 等支援自訂技能的平台,具備完善的錯誤處理機制與參考文件,適合用於日常資產監控與投資決策輔助。腳本會自動抓取最新幣價,計算 24 小時與 7 日變化,並在持倉超過預設門檻(例如 25%)時顯示警告。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/HEAD/plugins/crypto/crypto-portfolio-tracker/skills/tracking-crypto-portfolio

在你喜歡的 AI 中提問

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

說明文件

加密貨幣投資組合追蹤

概述

即時追蹤加密貨幣持倉,透過 CoinGecko 提供即時估值、配置分析、損益追蹤及集中度風險警告。

前置需求

  1. Python 3.8+ 已安裝
  2. 相依套件:pip install requests
  3. 需有網路連線以存取 CoinGecko API
  4. 一份包含持倉資料的 JSON 檔案(格式詳見 references/implementation.md)

指令

  1. 評估使用者意圖 - 確認需要的投資組合檢視方式:

    • 快速查詢:總值與前幾大持倉
    • 持倉列表:所有部位的完整明細
    • 詳細分析:配置、損益、風險標記
    • 匯出:JSON 或 CSV 供外部工具使用
  2. 使用適當選項執行投資組合追蹤器:

    # 快速摘要
    python ${CLAUDE_SKILL_DIR}/scripts/portfolio_tracker.py --portfolio holdings.json
    
    # 完整持倉明細
    python ${CLAUDE_SKILL_DIR}/scripts/portfolio_tracker.py --portfolio holdings.json --holdings
    
    # 詳細分析(含損益與配置)
    python ${CLAUDE_SKILL_DIR}/scripts/portfolio_tracker.py --portfolio holdings.json --detailed
    
  3. 匯出結果,用於分析工具或報稅:

    python ${CLAUDE_SKILL_DIR}/scripts/portfolio_tracker.py --portfolio holdings.json --format json --output portfolio_export.json
    python ${CLAUDE_SKILL_DIR}/scripts/portfolio_tracker.py --portfolio holdings.json --format csv --output portfolio.csv
    
  4. 向使用者呈現結果:

    • 突出顯示投資組合總值
    • 標示 24 小時與 7 日變化
    • 說明各資產配置百分比
    • 標記任何集中度風險(預設部位 > 25% 時警告)

輸出

摘要顯示總值、24 小時/7 日變化、各資產配置,以及超過門檻的集中度警告:

==============================================================================
  加密貨幣投資組合追蹤器                        更新時間:2026-01-14 15:30
==============================================================================

  投資組合摘要:我的投資組合
------------------------------------------------------------------------------
  總值:           $125,450.00 USD
  24 小時變化:    +$2,540.50 (+2.07%)
  7 日變化:       +$8,125.00 (+6.92%)
  持倉數量:       8 項資產

  前五大持倉
------------------------------------------------------------------------------
  幣種     數量         價格           價值       配置   24小時
  BTC      0.500     $95,000.00   $47,500.00    37.9%   +2.5%
  ETH      10.000     $3,200.00   $32,000.00    25.5%   +1.8%
  SOL      100.000      $180.00   $18,000.00    14.4%   +4.2%

  警告:BTC(37.9%)超過 25% 門檻

==============================================================================

錯誤處理

錯誤原因解決方案
找不到投資組合檔案路徑無效檢查檔案路徑是否存在
JSON 格式無效檔案格式錯誤驗證 JSON 語法
找不到幣種未知代號檢查代號拼寫,使用標準代號
API 速率限制請求過多等待後重試,或啟用快取

完整的錯誤處理方式請參閱 ${CLAUDE_SKILL_DIR}/references/errors.md。

範例

從快速查詢到詳細分析及匯出的投資組合追蹤工作流程:

# 基本投資組合查詢
python ${CLAUDE_SKILL_DIR}/scripts/portfolio_tracker.py --portfolio ~/crypto/holdings.json

# 依配置排序所有持倉
python ${CLAUDE_SKILL_DIR}/scripts/portfolio_tracker.py --portfolio holdings.json --holdings --sort allocation

# 詳細分析,自訂 15% 門檻
python ${CLAUDE_SKILL_DIR}/scripts/portfolio_tracker.py --portfolio holdings.json --detailed --threshold 15

# 匯出供報稅軟體使用
python ${CLAUDE_SKILL_DIR}/scripts/portfolio_tracker.py --portfolio holdings.json --format csv --output tax_export.csv

資源

  • ${CLAUDE_SKILL_DIR}/references/implementation.md - 投資組合檔案格式、CLI 選項、配置門檻、JSON 格式
  • ${CLAUDE_SKILL_DIR}/references/errors.md - 完整的錯誤處理說明
  • ${CLAUDE_SKILL_DIR}/references/examples.md - 詳細使用範例
  • CoinGecko API:https://www.coingecko.com/en/api
  • ${CLAUDE_SKILL_DIR}/config/settings.yaml - 設定選項

Individual skills in this repo

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

jeremylongshore/tons-of-skills-marketplace

Use when asked to structure a landing page for positioning, plan a conversion-optimized page layout, or design a launch page. Examples: "landing page for product launch", "conversion-optimized layout for SaaS

jeremylongshore/tons-of-skills-marketplace

Use when asked to design growth-optimized landing pages, activation funnel layouts, or experiment-friendly page structures. Examples: "growth-optimized landing", "activation funnel layout", "A/B testable page

jeremylongshore/tons-of-skills-marketplace

Use when asked to structure a landing page, design page layout for conversion, or plan landing page information architecture. Examples: "landing page structure for SaaS", "conversion-optimized layout

jeremylongshore/tons-of-skills-marketplace

Generate polished demo videos from a single prompt. Use when the user asks to create a demo video, product walkthrough, feature showcase, or animated presentation. Trigger with "make a demo video", "create a product video", "demo walkthrough", or "feature showcase video".

jeremylongshore/tons-of-skills-marketplace

Runs the full release workflow for the current project. Commits any uncommitted changes, pushes to remote, creates and merges a PR if on a feature branch, determines the next semver version from conventional commits, creates an annotated git tag and GitHub release with generated notes, cleans up merged branches, and returns to a clean main. Use when the user says promote, ship, release, commit and push, tag and release, or get back to main.

jeremylongshore/tons-of-skills-marketplace

Agent skill at plugins/productivity/content-multiplier/skills/channel-formats/SKILL.md

jeremylongshore/tons-of-skills-marketplace

Operate an evidence-backed editorial queue, balance topic and format coverage, schedule approved drafts, and reconcile backlog state with the publishing system. Use when choosing or scheduling the next blog work. Trigger with "show the editorial calendar" or "pick the next topic".

jeremylongshore/tons-of-skills-marketplace

Configure CI/CD pipeline for AppFolio property management integrations. Trigger: "appfolio CI".

jeremylongshore/tons-of-skills-marketplace

Diagnose and fix common AppFolio API integration errors. Trigger: "appfolio error".

jeremylongshore/tons-of-skills-marketplace

Build property management dashboard with AppFolio API data. Trigger: "appfolio property dashboard".

jeremylongshore/tons-of-skills-marketplace

Automate tenant management and lease operations with AppFolio. Trigger: "appfolio tenant management".

jeremylongshore/tons-of-skills-marketplace

Collect AppFolio API debug evidence for support tickets. Trigger: "appfolio debug".

jeremylongshore/tons-of-skills-marketplace

Deploy AppFolio integration service to cloud infrastructure. Trigger: "deploy appfolio".

jeremylongshore/tons-of-skills-marketplace

Query AppFolio properties, units, and tenants via REST API. Trigger: "appfolio hello world".

jeremylongshore/tons-of-skills-marketplace

Configure AppFolio Stack API authentication with OAuth 2.0. Use when setting up property management API access, registering as an AppFolio Stack partner, or configuring client credentials for API calls. Trigger: "install appfolio", "setup appfolio", "appfolio auth", "appfolio API key".

jeremylongshore/tons-of-skills-marketplace

Set up local development for AppFolio property management API integration. Trigger: "appfolio local dev".

jeremylongshore/tons-of-skills-marketplace

Production readiness checklist for AppFolio integrations. Trigger: "appfolio production checklist".

jeremylongshore/tons-of-skills-marketplace

Handle AppFolio API rate limits with throttling and backoff. Trigger: "appfolio rate limit".

jeremylongshore/tons-of-skills-marketplace

Reference architecture for AppFolio property management integration. Trigger: "appfolio architecture".

jeremylongshore/tons-of-skills-marketplace

Apply production-ready patterns for AppFolio REST API integration. Trigger: "appfolio patterns".

相關技能