Communitygithub.com

ComeOnOliver/skillshub

追踪加密货币投资组合,提供实时估值、配置分析和盈亏跟踪。

skillshub 是什么?

此技能允许用户通过一个简单的 JSON 文件跟踪其加密货币投资组合,并利用 CoinGecko API 获取实时估值。它提供投资组合总价值、各资产持有量、配置百分比以及盈亏(P&L)分析。此外,该技能还能检测集中度风险(例如,当单个资产占比超过 25% 时发出警告),并支持将投资组合数据导出为 JSON 或 CSV 格式,以便用于税务报告或其他分析工具。该技能适用于 Claude Code 等支持自定义脚本的 AI 代理平台,通过运行 Python 脚本并传递标志(如 --holdings 或 --detailed)来提供不同详细程度的视图。

兼容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/jeremylongshore/claude-code-plugins-plus-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% 时发出警报)

输出

显示总价值、24h/7d 变化、每种资产的配置以及超过阈值的集中度警告的摘要:

================================================================================
  加密货币投资组合追踪器                    更新于:2026-01-14 15:30  # 2026 - 当前年份时间戳
================================================================================

  投资组合摘要:我的投资组合
--------------------------------------------------------------------------------
  总价值:    $125,450.00 USD
  24小时变化:     +$2,540.50 (+2.07%)
  7天变化:      +$8,125.00 (+6.92%)
  持有资产:       8 种

  主要持有量
--------------------------------------------------------------------------------
  币种    数量      价格         价值       配置   24h
  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.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相关技能