Communitygithub.com

baneeishaque/ljt-520_openclaw-backup

完全ローカルで動作する投資ポートフォリオトラッカー。すべてのデータは ~/.portfolio-tracker/ に保存されます。

ljt-520_openclaw-backup とは?

このスキルは、完全にローカル環境で動作する投資ポートフォリオトラッカーであり、すべてのデータは `~/.portfolio-tracker/` ディレクトリに保存されるため、プライバシーが完全に保護されます。主にClaude CodeなどのAIエージェント向けに設計されており、ポートフォリオの表示、資産の追加、価格の更新、取引所やウォレットとの同期をコマンドラインから実行できます。対応プラットフォームはBinance、Interactive Brokers、ブロックチェーンウォレット(EVMチェーン)で、APIキーやウォレットアドレスを設定ファイルで管理します。スクリプトはTypeScriptで書かれており、npx tsxで実行され、標準入出力を通じてデータをやり取りするため、AIエージェントからの操作に適しています。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/baneeishaque/ljt-520_openclaw-backup/tree/HEAD/skills/aigeneralstore/portfolio-tracking-skill

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

ポートフォリオトラッカースキル

完全ローカルで動作する投資ポートフォリオトラッカー。すべてのデータは ~/.portfolio-tracker/ に保存されます。

アーキテクチャ

  • データ: ~/.portfolio-tracker/data.json (ポートフォリオ、資産、価格)
  • 設定: ~/.portfolio-tracker/config.json (APIキー、ウォレットアドレス、ユーザープロファイル)
  • スクリプト: TypeScript CLIツール (<skill-path>/scripts/ 内)、npx tsx で実行

初回セットアップ

スクリプトを実行する前に、依存関係をインストールしてください:

npm install --prefix <skill-path>/scripts

<skill-path> をこのスキルの実際のインストールパスに置き換えてください。

スクリプトの動作方法

各スクリプトはスタンドアロンのCLIツールです。次のように実行します:

npx tsx <skill-path>/scripts/<script>.ts <command> [args]

スクリプトは必要に応じて標準入力から読み取り、JSONを標準出力に出力します。

data-store.ts

  • load — ポートフォリオデータを読み込み (存在しない場合はデフォルトを作成)
  • save — ポートフォリオデータを書き込み (JSONを標準入力から受け取る)
  • load-config — 設定を読み込み
  • save-config — 設定を書き込み (JSONを標準入力から受け取る)

fetch-prices.ts

  • crypto <symbol> — 仮想通貨の価格を取得 (Binance → CoinGecko)
  • stock <symbol> — 株式の価格を取得 (Yahoo Finance)
  • fx — USD/CNY/HKDの為替レートを取得
  • historical <symbol> — 3年分の月次履歴データを取得
  • search <query> — 資産を名前/シンボルで検索
  • refresh — 一括価格更新 (資産JSONを標準入力から受け取る)

binance-sync.ts

  • sync <apiKey> <apiSecret> — すべてのBinance残高を取得 (6つのアカウントタイプ)
  • validate <apiKey> <apiSecret> — API認証情報を検証

ibkr-sync.ts

  • sync <token> <queryId> — Flex Query経由でIBKRポジションを取得
  • validate <token> <queryId> — IBKR認証情報を検証

blockchain-sync.ts

  • sync <address> [chain] — ウォレット残高を取得 (単一チェーンまたは全5つのEVMチェーン)
  • validate <address> — EVMアドレスを検証

データ型

資産 (Asset)

{
  "id": "unique-id",
  "type": "CRYPTO | USSTOCK | HKSTOCK | ASHARE | CASH",
  "symbol": "BTC",
  "name": "Bitcoin",
  "quantity": 1.5,
  "avgPrice": 40000,
  "currentPrice": 50000,
  "currency": "USD | CNY | HKD",
  "transactions": [],
  "source": { "type": "manual | binance | wallet | ibkr" }
}

ポートフォリオ (Portfolio)

{
  "id": "unique-id",
  "name": "メイン",
  "assets": [...]
}

ワークフローパターン

ポートフォリオの表示

  1. data-store.ts load でデータを読み込み
  2. currentPortfolioId で現在のポートフォリオを特定
  3. 資産ごとに quantity * currentPrice で合計価値を計算
  4. exchangeRates を使用して表示通貨に変換
  5. フォーマットされたテーブルとして表示

資産の追加

  1. データを読み込み
  2. fetch-prices.ts search <query> で資産を検索
  3. fetch-prices.ts crypto/stock <symbol> で現在価格を取得
  4. 生成されたユニークIDとともに資産を現在のポートフォリオに追加
  5. データを保存

価格の更新

  1. データを読み込み
  2. 現在のポートフォリオ資産を標準入力で fetch-prices.ts refresh にパイプ
  3. 為替レートのために fetch-prices.ts fx も実行
  4. 各資産の currentPrice と exchangeRates を更新
  5. lastPriceRefresh を現在のISOタイムスタンプに設定
  6. データを保存

取引所/ウォレットからの同期

  1. 設定を読み込み認証情報を取得
  2. 適切な同期スクリプトを実行
  3. 結果をマージ: 既存の資産を更新 (symbol+sourceで一致)、新しいものを追加
  4. データを保存

コマンド

利用可能なユーザーコマンド:

  • /portfolio — ポートフォリオの表示と管理
  • /prices — すべての価格を更新
  • /setup — APIキーとウォレットを設定
  • /sync-binance — Binanceから同期
  • /sync-ibkr — Interactive Brokersから同期
  • /sync-wallet — ブロックチェーンウォレットから同期
  • /advise — AI投資アドバイスを取得

Individual skills in this repo

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

baneeishaque/ljt-520_openclaw-backup

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

baneeishaque/ljt-520_openclaw-backup

Balance tracking, order overview, and market data across exchanges using OpenMM.

baneeishaque/ljt-520_openclaw-backup

Balance tracking, order overview, and market data across exchanges using OpenMM.

baneeishaque/ljt-520_openclaw-backup

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.

baneeishaque/ljt-520_openclaw-backup

Connect to a user's investment accounts via SnapTrade SDK and generate portfolio reports (e.g., daily total value). Use when the user wants SnapTrade-based brokerage connectivity (Webull, E*TRADE, etc.), connection portal links, account registration, or automated portfolio summaries.

baneeishaque/ljt-520_openclaw-backup

Query land ownership, leases, landlord info, and land payments. Write operations for payment management and lease renewals.

baneeishaque/ljt-520_openclaw-backup

Build high-converting landing pages and product sales pages using proven 10-section conversion frameworks. Includes Hero → Social Proof → Benefits → CTA flow for both lead capture and e-commerce pages.

baneeishaque/ljt-520_openclaw-backup

Generate complete, responsive HTML landing pages from a product name, tagline, and description. Clean CSS, mobile-ready, with hero, features, CTA, and footer sections.

baneeishaque/ljt-520_openclaw-backup

Optimize conversion pages for paid traffic from Meta (Facebook/Instagram), Google Ads, TikTok Ads, YouTube Ads, Amazon Ads, and Shopify Ads journeys.

baneeishaque/ljt-520_openclaw-backup

Perform a structured conversion rate optimization (CRO) audit of a landing page. Use when a user shares a landing page URL, pastes their page copy, describes their page content, or uploads a screenshot and asks for a conversion audit, CRO review, conversion analysis, landing page feedback, or wants to know why their page isn't converting. Produces a scored 8-factor audit (0–80 total), prioritized fix list with quick wins and strategic recommendations, and an executive summary. Covers: headline clarity, supporting copy, social proof, CTA effectiveness, visual hierarchy, trust signals, mobile/speed signals, and offer clarity.

baneeishaque/ljt-520_openclaw-backup

Generate landing page content from PRD — hero section, features, A/B headline variants, CTA, and SEO meta tags. Use when user says "create landing page", "write landing copy", "hero section", "A/B headlines", or "landing content". Can scaffold actual pages for astro-static. Do NOT use for SEO auditing (use /seo-audit).

baneeishaque/ljt-520_openclaw-backup

Build high-converting landing pages with proven structure, persuasive copy, and conversion optimization.

baneeishaque/ljt-520_openclaw-backup

Track a crypto portfolio across Binance, Hyperliquid, and Polymarket. Calculates NAV, unrealized P&L, daily drawdown, win rate, and equity curve. Use when you need portfolio tracking, NAV calculation, drawdown monitoring, or multi-venue position management.

関連スキル