Zenith Finance Maintenanceのロゴ

Zenith Finance Maintenance

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

Maintain Zenith Finance local files (Ledger.md and Transactions.md) in an easy-to-maintain format. Provides simple key-value format for ledger, standard transaction format, helper scripts, and procedures for fixing common formatting issues while maintaining compatibility with Google Sheets sync.

概要

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

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

AIスキル「Zenith Finance Maintenance」を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-maintenance
  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-maintenance .claude/skills/zenith-finance-maintenance
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Zenith Finance Local File Maintenance

This skill provides methods to maintain Zenith Finance's local files (Ledger.md and Transactions.md) in formats that are easy to maintain, parse, and update programmatically while remaining human-readable and compatible with the zenith-finance-sync skill for Google Sheets synchronization.

Problem

The default Zenith Finance Ledger.md format uses complex markdown that can break when edited:

- **BCA (Main Bank)**: Rp28.632.790,57

This format is prone to errors when:

  • Manually editing the file
  • Using search/replace operations
  • Programmatic updates with regex
  • Accidental removal of markdown formatting

Solution: Easy Maintenance Format

Ledger.md Format

Convert to simple key-value pairs:

## Liquid Assets
BCA: 28632790
Blu: 175501
Gopay: 6670
Dompet: 452000

## Investments
RDN: 7231400
Emas: 11936534

Benefits:

  • Easy to read and edit
  • Simple to parse with regex or split
  • Hard to break accidentally
  • Compatible with helper scripts
  • Still human-readable

Transactions.md Format

Keep the existing pipe-delimited format (already optimal):

[YYYY-MM-DD HH:MM] | Description - RpAmount | Category | Source | RpBalance

Example:

[2026-04-11 09:51] | Gojek - Rp20,490.00 | Food | BCA (Main Bank) | Rp28,643,790.57

Benefits:

  • Each transaction on its own line (easy to append/modify/remove)
  • Consistent format for parsing
  • Already compatible with zenith-finance-sync
  • Human-readable

Helper Script: update_ledger.py

A Python script for easy ledger updates:

python
#!/usr/bin/env python3
"""
Helper script to update Ledger.md values easily.
Usage: python3 update_ledger.py --bca 28632790 --blu 175501 --gopay 6670 --dompet 452000 --rdn 7231400 --emas 11936534
"""

import argparse
import os
import re

def update_ledger(bca=None, blu=None, gopay=None, dompet=None, rdn=None, emas=None):
    ledger_path = os.path.join(os.path.dirname(__file__), "Ledger.md")
    
    # Read current content
    with open(ledger_path, 'r') as f:
        content = f.read()
    
    # Update values if provided
    if bca is not None:
        content = re.sub(r'(BCA: )\d+', f'\\1{bca}', content)
    if blu is not None:
        content = re.sub(r'(Blu: )\d+', f'\\1{blu}', content)
    if gopay is not None:
        content = re.sub(r'(Gopay: )\d+', f'\\1{gopay}', content)
    if dompet is not None:
        content = re.sub(r'(Dompet: )\d+', f'\\1{dompet}', content)
    if rdn is not None:
        content = re.sub(r'(RDN: )\d+', f'\\1{rdn}', content)
    if emas is not None:
        content = re.sub(r'(Emas: )\d+', f'\\1{emas}', content)
    
    # Write back
    with open(ledger_path, 'w') as f:
        f.write(content)
    
    print("Ledger.md updated successfully!")

if __name__ == "__main__":
    parser = argparse.ArgumentParser(description='Update Ledger.md values')
    parser.add_argument('--bca', type=int, help='BCA balance')
    parser.add_argument('--blu', type=int, help='Blu balance')
    parser.add_argument('--gopay', type=int, help='Gopay balance')
    parser.add_argument('--dompet', type=int, help='Dompet balance')
    parser.add_argument('--rdn', type=int, help='RDN balance')
    parser.add_argument('--emas', type=int, help='Emas value')
    
    args = parser.parse_args()
    update_ledger(
        bca=args.bca,
        blu=args.blu,
        gopay=args.gopay,
        dompet=args.dompet,
        rdn=args.rdn,
        emas=args.emas
    )

Place this script in: ~/Documents/Obsidian/Notes/Finance/update_ledger.py Make it executable: chmod +x update_ledger.py

Common Maintenance Tasks

1. Updating a Balance

bash
# Update BCA balance
python3 ~/Documents/Obsidian/Notes/Finance/update_ledger.py --bca 28632790

# Update multiple balances
python3 ~/Documents/Obsidian/Notes/Finance/update_ledger.py --bca 28632790 --blu 175501

2. Adding a Transaction

Append to Transactions.md in the standard format:

[YYYY-MM-DD HH:MM] | Merchant - RpAmount | Category | Source | RpRunningBalance

Example:

[2026-04-11 10:15] | Kopi Soklin - Rp15,000.00 | Food | BCA (Main Bank) | Rp28,617,790.57

3. Fixing Concatenated Transactions

If transactions get concatenated (missing newline between them):

... | Rp28,632,790.57[2026-04-11 10:12] | Goride ...

Use this Python snippet to fix:

python
import re

def fix_concatenated_transactions(content):
    # Pattern: balance ending with .57 or .00 followed immediately by [
    pattern = r'(\| Rp\d[\d.,]*\.\d{2})(\[[^\]]+\])'
    return re.sub(pattern, r'\1\n\2', content)

# Apply to file
with open('Transactions.md', 'r') as f:
    content = f.read()
    
fixed = fix_concatenated_transactions(content)

with open('Transactions.md', 'w') as f:
    f.write(fixed)

4. Backup and Restore

Before making major changes:

bash
# Create backup directory
mkdir -p ~/Documents/Obsidian/Notes/Finance/backups

# Backup with timestamp
cp ~/Documents/Obsidian/Notes/Finance/Ledger.md ~/Documents/Obsidian/Notes/Finance/backups/Ledger_$(date +%Y%m%d_%H%M%S).md
cp ~/Documents/Obsidian/Notes/Finance/Transactions.md ~/Documents/Obsidian/Notes/Finance/backups/Transactions_$(date +%Y%m%d_%H%M%S).md

To restore:

bash
cp ~/Documents/Obsidian/Notes/Finance/backups/Ledger_20260411_100447.md ~/Documents/Obsidian/Notes/Finance/Ledger.md
cp ~/Documents/Obsidian/Notes/Finance/backups/Transactions_20260411_100447.md ~/Documents/Obsidian/Notes/Finance/Transactions.md

Compatibility with zenith-finance-sync

This maintenance approach remains fully compatible with the zenith-finance-sync skill because:

  1. Ledger.md: The sync script parses the values regardless of format (it extracts numbers from patterns like Rp[\d.,]+)
  2. Transactions.md: The sync script expects the pipe-delimited format which we preserve
  3. Formulas: The sync preserves custom formulas in Dashboard cells (especially B2/B3 SUMIFs) as specified in zenith-finance-sync

When to Use

Use this skill when you want to:

  • Maintain Zenith Finance records in a format that's resistant to accidental breakage
  • Easily update balances without worrying about markdown formatting
  • Add/remove/modify transactions safely
  • Fix common formatting issues like concatenated transactions
  • Maintain compatibility with Google Sheets synchronization
  • Have a reliable backup and restore procedure

Example Workflow

  1. Record new expense:

    bash
    # Update ledger (decrease BCA by 20490)
    python3 update_ledger.py --bca 28612300
    
    # Add transaction to Transactions.md
    echo "[2026-04-11 10:15] | Gojek - Rp20,490.00 | Food | BCA (Main Bank) | Rp28,612,300.57" >> Transactions.md
  2. Sync to Google Sheets:

    bash
    zenith-finance-sync
  3. Verify:

    • Check Ledger.md shows updated balance
    • Check Transactions.md has new line
    • Verify Google Sheets updated via zenith-finance-sync output

Notes

  • The Ledger.md values are stored as integers (no decimal places) for simplicity
  • Transactions.md uses standard format with 2 decimal places for currency
  • Always ensure Transactions.md ends with a newline
  • Run zenith-finance-sync after making changes to back up to Google Sheets
  • Keep the update_ledger.py script in your Finance directory for easy access

よくある質問

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

Maintain Zenith Finance local files (Ledger.md and Transactions.md) in an easy-to-maintain format. Provides simple key-value format for ledger, standard transaction format, helper scripts, and procedures for fixing common formatting issues while maintaining compatibility with Google Sheets sync.

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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