房贷计算器
Mortgage Calculator
by BytesAgain
Calculate mortgage payments with equal-principal and equal-interest comparisons. Use when comparing loans, calculating payments, evaluating prepayment.
安装
claude skill add --url github.com/openclaw/skills/tree/main/skills/ckchzh/mortgage-calculator文档
Mortgage Calculator
Multi-purpose utility tool for managing structured data entries related to mortgage and financial calculations. Add, list, search, remove, and export data items — all stored locally in a simple log-based format with full history tracking.
Commands
All commands are invoked via mortgage-calculator <command> [args].
| Command | Description |
|---|---|
run <args> | Execute the main function — logs and confirms execution of the specified operation |
config | Show the configuration file path ($DATA_DIR/config.json) |
status | Show current status (reports "ready" when the tool is operational) |
init | Initialize the data directory (creates the data folder if it doesn't exist) |
list | List all data entries from the data log file |
add <text> | Add a new dated entry to the data log (auto-prefixed with YYYY-MM-DD) |
remove <item> | Remove an entry and log the removal |
search <term> | Search the data log for a keyword (case-insensitive match via grep -i) |
export | Export all data from the data log to stdout |
info | Show current version number and data directory path |
help | Show the built-in help message with all available commands |
version | Print version string (mortgage-calculator v2.0.0) |
Data Storage
- Location:
~/.local/share/mortgage-calculator/(override withMORTGAGE_CALCULATOR_DIRenvironment variable, orXDG_DATA_HOME) - Data log:
data.log— stores all entries added viaadd, one per line, prefixed withYYYY-MM-DD - History:
history.log— every command execution is recorded with a timestamp (MM-DD HH:MM command: details) for auditing - Format: Plain text, one entry per line, human-readable
Requirements
- Bash 4+
- Standard Unix utilities (
date,grep,cat,echo) - No external dependencies, no API keys, no network access needed
When to Use
- Financial record keeping — Use
mortgage-calculator addto log mortgage-related events (payments made, rate changes, lender communications) and build a local history - Payment tracking — Record monthly payments, extra payments, or escrow changes with
add, then review the full log withlist - Comparison notes — Store notes from different loan scenarios or lender quotes using
add, thensearchto find specific terms or rates - Data export for spreadsheets — Use
mortgage-calculator exportto dump all entries to stdout and redirect to a file for import into Excel or Google Sheets - Automation and scripting — Integrate
mortgage-calculator addandmortgage-calculator exportinto shell scripts or cron jobs for automated financial logging workflows
Examples
# Initialize the data directory
mortgage-calculator init
# Add a mortgage payment record
mortgage-calculator add "Monthly payment: ¥4,235.00 — principal ¥2,100 + interest ¥2,135"
# Add a rate change note
mortgage-calculator add "Rate adjusted from 3.85% to 3.50% effective 2025-01-01"
# Add a prepayment record
mortgage-calculator add "Prepayment: ¥50,000 applied to principal, new balance ¥680,000"
# List all entries
mortgage-calculator list
# Search for entries about rate changes
mortgage-calculator search "rate"
# Search for prepayment records
mortgage-calculator search "prepayment"
# Export all data to a file
mortgage-calculator export > mortgage-history.txt
# Check current status
mortgage-calculator status
# Show version and data path
mortgage-calculator info
# Run a custom operation
mortgage-calculator run "quarterly review"
Output
All command output goes to stdout. Redirect to save:
mortgage-calculator list > all-records.txt
mortgage-calculator export > backup.txt
Configuration
Set the MORTGAGE_CALCULATOR_DIR environment variable to change the data directory:
export MORTGAGE_CALCULATOR_DIR="$HOME/my-mortgage-data"
mortgage-calculator init
Default location: ~/.local/share/mortgage-calculator/
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
相关 Skills
面试体系设计
by alirezarezvani
按岗位、级别和团队设计面试流程,生成能力矩阵、题库与评分标准,分析面试官偏差并校准招聘门槛,适合搭建或优化企业招聘体系。
✎ 团队招人没章法时,用它快速搭建岗位化面试流程、题库与评分标准,还能兼顾校准面试偏差,招聘更稳更准。
期权交易
by binance-skills-hub
Binance Derivatives-trading-options request using the Binance API. Authentication requires API key and secret key. Supports testnet and mainnet.
A股交易助手
by alvisdunlop
A股股票智能交易助手,专服务中国大陆股票市场。当用户询问A股股票行情、个股分析、大盘情绪、热点板块、交易策略、价格预警、涨跌幅、成交量、技术面或基本面分析时触发。只处理沪深A股(代码�?/00/30/68开头),自动忽略港股和美股。所有数据实时从东方财富、新浪财经、同花顺、雪球抓取。Use when: user asks about Chinese A-share stocks, 股票行情, 个股分析, 大盘分析, 板块热点, 买卖�? 止盈止损, 仓位建议, or any A-share trading-related query.
相关 MCP 服务
by boosted-chat
Flight search & booking for AI agents. 400+ airlines, $20-50 cheaper than OTAs.
by jjlabsio
检索韩国市场公司的披露文件与财务报表,并获取股票概况等关键信息。
✎ 想研究韩股公司时,它能一站式拉取披露、财报和股票概况,省去跨站查资料的麻烦,对跨境投研尤其省时。
by jjlabsio
Search company disclosures and financial statements from the Korean market. Retrieve stock profiles, market classifications, and historical trading data across major exchanges. Accelerate equity research with accurate, date-specific insights for Korean securities.
✎ 做韩国股研时,用它能一站查公司披露、财报和历史行情,按日期精确追溯关键信息,比手动翻交易所高效太多。