Zenith Finance Syncのロゴ

Zenith Finance Sync

コミュニティ
adityahimaone
zenith-finance-sync

Auto-sync Zenith Finance data (transactions, ledger) to Google Sheets. Creates/updates a spreadsheet with Dashboard and History sheets.

概要

公開者adityahimaone
リポジトリhermes-agent-rtk-caveman
スキル名zenith-finance-sync
スター
84
フォーク
4
同梱ファイル
4
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 4個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    adityahimaoneがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Zenith Finance Sync」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/adityahimaone/hermes-agent-rtk-caveman/tree/main/skills/finance/zenith-finance-sync
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/adityahimaone/hermes-agent-rtk-caveman.git /tmp/hermes-agent-rtk-caveman
mkdir -p .claude/skills
cp -r /tmp/hermes-agent-rtk-caveman/skills/finance/zenith-finance-sync .claude/skills/zenith-finance-sync
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでZenith Finance Syncを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にZenith Finance Syncを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Zenith Finance Syncは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Zenith Finance to Google Sheets Auto-Sync Skill

Purpose

Automatically synchronizes Zenith Finance transaction data and ledger balances to a Google Sheets spreadsheet with:

  • Dashboard sheet: Summary metrics, charts-ready data with correct formulas
  • History sheet: Complete transaction log with timestamps

Enhanced Features

  • Correctly references Category column (D) for income/expense calculations
  • Account balances calculated as Income - Expense per account
  • Robust transaction handling with duplicate prevention
  • Extended dashboard with monthly summaries and detailed accounting
  • Preserves custom formulas in Dashboard cells (especially B2 and B3 for Income/Expense SUMIFs) by using user-specified column references in the sync script
  • Supports enhanced pipe-separated Transactions.md format: [timestamp] | description | amount | Income/Expense | Category | Source | Balance
  • ENHANCED: Now includes actual Category field (Food/Transport/etc.) in Google Sheets Column E for detailed tracking
  • Updated to sync 7 columns: Timestamp, Description, Amount, Income/Expense, Category, Source, Balance

Prerequisites

  1. Google Workspace skill must be authenticated with scopes including:
  2. Zenith Finance data must exist in ~/Documents/Obsidian/Notes/Finance/

Configuration

The skill stores the target spreadsheet ID in:

  • ~/.hermes/zenith_spreadsheet_id.txt
  • Can be overridden by setting ZENITH_SPREADSHEET_ID environment variable

Workflow

  1. Check if Google authentication is valid
  2. Load Zenith Finance data from Ledger.md and Transactions.md
  3. If no target spreadsheet exists, create one with Dashboard and History sheets
  4. Append new transactions to History sheet (since last sync)
  5. Update Dashboard summary metrics
  6. Record sync timestamp for next run

Troubleshooting\n\n### Regex Pattern Issues\nIf encountering "bad character range" errors in parse_transactions_file:\n1. Timestamp regex (around line 91): Should be r'$$\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}$$' to match [2026-04-07 21:32]\n2. Transaction parser (around line 109): Should be r'$$(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2})$$\\s*\\|\\s*(.+?)\\s*\\|\\s*(.+?)\\s*\\|\\s*(.+?)\\s*\\|\\s*(.+)'\n3. Amount extraction (around line 117): Should be r'-\\s*Rp([\\d,.]+)$' to extract amounts like "- Rp12345.67"\n4. Amount/Balance cleaning (around lines 126, 134): Should be re.sub(r'[Rp,\\s]', '', string) to remove Rp, commas, and spaces\n\n### String Escaping Issues\nIf encountering "unexpected character after line continuation character" errors:\n- Check print statements for incorrectly escaped quotes\n- Should be print(f\"Warning: message {variable}\") not print(f\\\"Warning: message {variable}\\\")\n\n### PATH Construction Issues\nIf seeing "google_token.json not found" errors despite file existing:\n- Check TOKEN_PATH assignment - should be Path(HERMES_HOME) / \"google_token.json\" not malformed concatenation\n\n### Sync State Issues\nIf load_sync_state() errors occur:\n- Ensure the sync state file (~/.hermes/zenith_sync_state.json) contains valid JSON\n- Is absent for first run (will be created after successful sync)\n\n### Google Auth Problems\nIf API calls fail with authentication errors:\n- Re-authenticate using the google-workspace-setup skill\n- Verify token file exists at ~/.hermes/google_token.json\n- Ensure required scopes are granted: spreadsheets and drive

Trigger this skill after any Zenith Finance transaction is recorded, or run manually to sync all data.

Data Mapping

History Sheet Columns:

  • Timestamp: ISO format from transaction
  • Description: Transaction description/item
  • Amount: Numeric amount (positive for income, negative for expense)
  • Category: Transaction category (Income, Expense)
  • Source: Account involved (BCA, Gopay, Dompet, etc.)
  • Balance: Running net worth after transaction

Dashboard Sheet:

  • Metrics: Total Income, Total Expenses, Net Savings, Last Updated
  • Formulas that auto-calculate from History data

Implementation

This skill uses the scripts/sync.py script to perform the actual synchronization. The script handles robust parsing of Transactions.md format in two versions:

Legacy Format (still supported):

  • Multiple transactions may appear on the same line without separators
  • Transaction descriptions follow the format "Description - RpAmount" where the amount needs extraction
  • Special formats like "-RpAmount" (without description dash) are handled for consistency

New Pipe-Separated Format (current):

  • Each transaction on its own line: [timestamp] | description | amount | Income/Expense | Category | Source | Balance

  • Amount is a numeric value (may include commas)

  • Income/Expense field indicates transaction type

  • Category provides detailed categorization (Food, Transport, etc.)

  • Source indicates the account involved

  • Balance shows running net worth after transaction (prefixed with "Rp")

  • Opening balance transactions are identified and processed correctly

  • Sync state is tracked using timestamps to only process new transactions since last sync

  • The parser handles malformed lines gracefully with warnings rather than failures

  • Dashboard summary formulas are preserved per user specification, specifically ensuring B2 and B3 use column D (Category) for SUMIF calculations rather than column E (Source)

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Zenith Finance Sync」では何ができますか?

Auto-sync Zenith Finance data (transactions, ledger) to Google Sheets. Creates/updates a spreadsheet with Dashboard and History sheets.

TypingMindでZenith Finance Syncを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Zenith Finance Syncはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにZenith Finance Syncをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/adityahimaone/hermes-agent-rtk-caveman/tree/main/skills/finance/zenith-finance-syncを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Zenith Finance Syncを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Zenith Finance Syncで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもZenith Finance Syncを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Zenith Finance Sync」は無料ですか?

はい。adityahimaoneがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇