jpskill.com
📄 ドキュメント コミュニティ

TransactionSyncing

Import and manage Fidelity transaction history CSVs. Two workflows - IngestTransactions (local rolling archive from Downloads) and SyncTransactions (Google Sheets push). USE WHEN user mentions "sync transactions", "import transactions", "ingest transactions", "transaction history", OR wants to import Fidelity History CSV.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o transactionsyncing.zip https://jpskill.com/download/22807.zip && unzip -o transactionsyncing.zip && rm transactionsyncing.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22807.zip -OutFile "$d\transactionsyncing.zip"; Expand-Archive "$d\transactionsyncing.zip" -DestinationPath $d -Force; ri "$d\transactionsyncing.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して transactionsyncing.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → transactionsyncing フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[スキル名] TransactionSyncing

TransactionSyncing

Fidelityの取引履歴CSVをGoogleスプレッドシートにインポートします。ハイブリッドアーキテクチャを使用し、完全な監査証跡のためのマスター「Transactions」タブと、予算プランナー統合のための「Expense Tracker」へのデビットカード購入の自動ルーティングを実現します。

ワークフローのルーティング

このワークフローを実行する際、以下の通知を出力します。

Running the **SyncTransactions** workflow from the **TransactionSyncing** skill...
ワークフロー トリガー ファイル
IngestTransactions "ingest transactions", "import history", "bring in transactions", ユーザーがダウンロードCSVを指す workflows/IngestTransactions.md
SyncTransactions "sync transactions", "push to sheets", "transaction sync" workflows/SyncTransactions.md

一般的なフロー: IngestTransactions (ローカルアーカイブ) -> SyncTransactions (Googleスプレッドシート)

例1: Fidelity取引履歴のダウンロード後に同期

User: "sync transactions"
-> Reads History_for_Account_{account_id}.csv from notebooks/transactions/
-> Creates/updates Transactions tab with full Fidelity data
-> Routes DEBIT CARD PURCHASE entries to Expense Tracker
-> Auto-categorizes expenses (H-E-B -> Groceries, Tesla -> Auto & Transport)
-> Reports: "Added 45 transactions, 12 expenses categorized"

例2: 新しい取引エクスポートをインポート

User: "import the transaction history"
-> Invokes SyncTransactions workflow
-> Detects duplicates by date + action + amount
-> Skips existing entries, adds only new ones
-> Flags uncategorized expenses for manual review

例3: 最近の取引を確認

User: "import fidelity transactions and update expense tracker"
-> Full sync with expense routing
-> Generates summary of dividends received, purchases, margin interest

アーキテクチャの概要

データフロー

Fidelity CSV (notebooks/transactions/)
         |
         v
+-------------------+
| Transactions Tab  |  <- マスターソース (すべての取引)
| (Full Fidelity)   |
+-------------------+
         |
         | Filter: DEBIT CARD PURCHASE
         v
+-------------------+
| Expense Tracker   |  <- 予算プランナー統合
| (Categorized)     |
+-------------------+

処理される取引タイプ

Fidelityアクション 宛先 カテゴリ
DIVIDEND RECEIVED Transactionsのみ DIVIDEND
REINVESTMENT Transactionsのみ REINVESTMENT
DEBIT CARD PURCHASE Transactions + Expense Tracker 自動分類
MARGIN INTEREST Transactionsのみ MARGIN_INTEREST
DIRECT DEPOSIT Transactionsのみ INCOME
LONG-TERM CAP GAIN Transactionsのみ CAP_GAIN
JOURNALED Transactionsのみ INTERNAL_TRANSFER

スマート分類

完全なパターンマッチングルールについては、CategoryRules.mdをご覧ください。

サンプルパターン:

  • H-E-B, KROGER, COSTCO, WAL-MART -> Groceries
  • Tesla, SUPERCHA -> Auto & Transport
  • BENIHANA, GOLDEN CORRAL, PAPA JOHN -> Dining Out
  • CVS, PHARMACY -> Health & Wellness

コアワークフロー

1. Fidelity取引履歴CSVの読み込み

場所: notebooks/transactions/History_for_Account_{account_id}.csv

CSV列:

Run Date, Action, Symbol, Description, Type, Price ($), Quantity,
Commission ($), Fees ($), Accrued Interest ($), Amount ($),
Cash Balance ($), Settlement Date

2. Transactionsタブの作成/更新

Googleスプレッドシートの構造:

ヘッダー ソース
A Date Run Date
B Action Action (クリーンアップ済み)
C Symbol Symbol
D Description Description
E Type Type (Cash/Margin)
F Amount Amount ($)
G Category 自動割り当て
H Balance Cash Balance ($)
I Settlement Settlement Date

3. 重複排除

一致基準: Date + Action + Amount

For each CSV row:
  key = f"{run_date}|{action}|{amount}"
  if key exists in sheet:
    SKIP (already imported)
  else:
    ADD to Transactions tab

4. 経費をExpense Trackerにルーティング

フィルター: Actionに"DEBIT CARD PURCHASE"が含まれる

Expense Trackerの形式: | Date | Description | Category | Amount | Month | |------|-------------|----------|--------|-------|

カテゴリ割り当て: CategoryRules.mdをご覧ください。

5. サマリーの生成

SYNC SUMMARY - [Date]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

TRANSACTIONS TAB:
  New entries: 45
  Skipped (duplicates): 12

EXPENSE TRACKER:
  Expenses routed: 18
  Auto-categorized: 15
  Needs review: 3

BY TYPE:
  Dividends: $342.50
  Margin Interest: -$18.43
  Debit Card: -$1,245.67
  Direct Deposit: +$5,054.09
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Googleスプレッドシート連携

スプレッドシートID: fin-guru/data/user-profile.yaml -> google_sheets.portfolio_tracker.spreadsheet_idから読み取ります。

Transactionsタブの作成 (必要な場合)

// Check if Transactions tab exists
mcp__gdrive__sheets(operation: "listSheets", params: {
    spreadsheetId: SPREADSHEET_ID
})

// Create if missing
mcp__gdrive__sheets(operation: "createSheet", params: {
    spreadsheetId: SPREADSHEET_ID,
    title: "Transactions"
})

// Add headers
mcp__gdrive__sheets(operation: "updateCells", params: {
    spreadsheetId: SPREADSHEET_ID,
    range: "Transactions!A1:I1",
    values: [["Date", "Action", "Symbol", "Description", "Type", "Amount", "Category", "Balance", "Settlement"]]
})

Expense Trackerへの追加

// Append expense row
mcp__gdrive__sheets(operation: "appendRows", params: {
    spreadsheetId: SPREADSHEET_ID,
    sheetName: "Expense Tracker",
    values: [[date, description, category, amount, month]]
})

重要なルール

書き込み可能な宛先

  • Transactionsタブ: すべての列 (新しいタブ、形式を制御します)
  • Expense Tracker: 新しい行のみ追加 (既存のものを保持します)

決して変更しないもの

  • Budget Plannerの数式
  • 既存のExpense Trackerのエントリ

重複排除キー

  • Transactionsタブ: Date|Action|Amount
  • Expense Tracker: Date|Description|Amount

参照ファイル

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

TransactionSyncing

Import Fidelity transaction history CSV into Google Sheets using a hybrid architecture: master Transactions tab for full audit trail + auto-routing of debit card purchases to Expense Tracker for Budget Planner integration.

Workflow Routing

When executing this workflow, output this notification:

Running the **SyncTransactions** workflow from the **TransactionSyncing** skill...
Workflow Trigger File
IngestTransactions "ingest transactions", "import history", "bring in transactions", user points to Downloads CSV workflows/IngestTransactions.md
SyncTransactions "sync transactions", "push to sheets", "transaction sync" workflows/SyncTransactions.md

Typical flow: IngestTransactions (local archive) -> SyncTransactions (Google Sheets)

Examples

Example 1: Sync after downloading Fidelity transaction history

User: "sync transactions"
-> Reads History_for_Account_{account_id}.csv from notebooks/transactions/
-> Creates/updates Transactions tab with full Fidelity data
-> Routes DEBIT CARD PURCHASE entries to Expense Tracker
-> Auto-categorizes expenses (H-E-B -> Groceries, Tesla -> Auto & Transport)
-> Reports: "Added 45 transactions, 12 expenses categorized"

Example 2: Import new transaction export

User: "import the transaction history"
-> Invokes SyncTransactions workflow
-> Detects duplicates by date + action + amount
-> Skips existing entries, adds only new ones
-> Flags uncategorized expenses for manual review

Example 3: Check recent transactions

User: "import fidelity transactions and update expense tracker"
-> Full sync with expense routing
-> Generates summary of dividends received, purchases, margin interest

Architecture Overview

Data Flow

Fidelity CSV (notebooks/transactions/)
         |
         v
+-------------------+
| Transactions Tab  |  <- Master source (ALL transactions)
| (Full Fidelity)   |
+-------------------+
         |
         | Filter: DEBIT CARD PURCHASE
         v
+-------------------+
| Expense Tracker   |  <- Budget Planner integration
| (Categorized)     |
+-------------------+

Transaction Types Handled

Fidelity Action Destination Category
DIVIDEND RECEIVED Transactions only DIVIDEND
REINVESTMENT Transactions only REINVESTMENT
DEBIT CARD PURCHASE Transactions + Expense Tracker Auto-categorized
MARGIN INTEREST Transactions only MARGIN_INTEREST
DIRECT DEPOSIT Transactions only INCOME
LONG-TERM CAP GAIN Transactions only CAP_GAIN
JOURNALED Transactions only INTERNAL_TRANSFER

Smart Categorization

See CategoryRules.md for the full pattern matching rules.

Sample patterns:

  • H-E-B, KROGER, COSTCO, WAL-MART -> Groceries
  • Tesla, SUPERCHA -> Auto & Transport
  • BENIHANA, GOLDEN CORRAL, PAPA JOHN -> Dining Out
  • CVS, PHARMACY -> Health & Wellness

Core Workflow

1. Read Fidelity Transaction History CSV

Location: notebooks/transactions/History_for_Account_{account_id}.csv

CSV Columns:

Run Date, Action, Symbol, Description, Type, Price ($), Quantity,
Commission ($), Fees ($), Accrued Interest ($), Amount ($),
Cash Balance ($), Settlement Date

2. Create/Update Transactions Tab

Google Sheets Structure:

Column Header Source
A Date Run Date
B Action Action (cleaned)
C Symbol Symbol
D Description Description
E Type Type (Cash/Margin)
F Amount Amount ($)
G Category Auto-assigned
H Balance Cash Balance ($)
I Settlement Settlement Date

3. Deduplicate

Match criteria: Date + Action + Amount

For each CSV row:
  key = f"{run_date}|{action}|{amount}"
  if key exists in sheet:
    SKIP (already imported)
  else:
    ADD to Transactions tab

4. Route Expenses to Expense Tracker

Filter: Action contains "DEBIT CARD PURCHASE"

Expense Tracker Format: | Date | Description | Category | Amount | Month | |------|-------------|----------|--------|-------|

Category Assignment: See CategoryRules.md

5. Generate Summary

SYNC SUMMARY - [Date]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

TRANSACTIONS TAB:
  New entries: 45
  Skipped (duplicates): 12

EXPENSE TRACKER:
  Expenses routed: 18
  Auto-categorized: 15
  Needs review: 3

BY TYPE:
  Dividends: $342.50
  Margin Interest: -$18.43
  Debit Card: -$1,245.67
  Direct Deposit: +$5,054.09
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Google Sheets Integration

Spreadsheet ID: Read from fin-guru/data/user-profile.yaml -> google_sheets.portfolio_tracker.spreadsheet_id

Creating Transactions Tab (if needed)

// Check if Transactions tab exists
mcp__gdrive__sheets(operation: "listSheets", params: {
    spreadsheetId: SPREADSHEET_ID
})

// Create if missing
mcp__gdrive__sheets(operation: "createSheet", params: {
    spreadsheetId: SPREADSHEET_ID,
    title: "Transactions"
})

// Add headers
mcp__gdrive__sheets(operation: "updateCells", params: {
    spreadsheetId: SPREADSHEET_ID,
    range: "Transactions!A1:I1",
    values: [["Date", "Action", "Symbol", "Description", "Type", "Amount", "Category", "Balance", "Settlement"]]
})

Adding to Expense Tracker

// Append expense row
mcp__gdrive__sheets(operation: "appendRows", params: {
    spreadsheetId: SPREADSHEET_ID,
    sheetName: "Expense Tracker",
    values: [[date, description, category, amount, month]]
})

Critical Rules

WRITABLE Destinations

  • Transactions tab: All columns (new tab, we control format)
  • Expense Tracker: Append new rows only (preserve existing)

NEVER MODIFY

  • Budget Planner formulas
  • Existing Expense Tracker entries

Deduplication Key

  • Transactions tab: Date|Action|Amount
  • Expense Tracker: Date|Description|Amount

Reference Files

  • CategoryRules.md: Pattern matching rules for expense categorization
  • fin-guru/data/user-profile.yaml: Spreadsheet ID
  • scripts/google-sheets/portfolio-optimizer/: Apps Script reference

Pre-Flight Checklist

Before syncing transactions:

  • [ ] Transaction History CSV exists in notebooks/transactions/
  • [ ] CSV is from Fidelity (not other broker)
  • [ ] Expense Tracker tab exists in Google Sheets
  • [ ] Current date retrieved via date command

Skill Type: Domain (workflow guidance) Enforcement: SUGGEST Priority: Medium Line Count: < 300 (following 500-line rule)