Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

financial-calculator金融计算器

Agent Skill

financial-calculator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

285

周安装

12

GitHub Stars

52

下载量

496
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:financial-calculator(金融计算器)
来源仓库:https://github.com/aaaaqwq/claude-code-skills
仓库路径:skills/financial-calculator
安装命令:
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill financial-calculator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill financial-calculator

简介

financial-calculator 提供未来价值、现值、折扣与加价等核心金融计算功能,支持批量表格输出。

  • 适用于财务建模、定价策略与复利分析等需要精确数值计算的场景。
  • 可通过命令行调用或直接集成脚本,灵活适配不同输入参数与输出格式需求。
  • 使用前请核对利率、周期与计息频率等参数准确性,避免因输入错误导致计算偏差。
  • 该工具不包含实时市场数据,建议结合业务上下文手动更新变量以反映最新情况。

SKILL.md

Financial Calculator

Comprehensive financial calculations including future value, present value, discount/markup pricing, compound interest, and comparative tables.

Quick Start

CLI Usage

# Future Value
python3 scripts/calculate.py fv 10000 0.05 10 12
# PV=$10,000, Rate=5%, Years=10, Monthly compounding

# Present Value
python3 scripts/calculate.py pv 20000 0.05 10 12
# FV=$20,000, Rate=5%, Years=10, Monthly compounding

# Discount
python3 scripts/calculate.py discount 100 20
# Price=$100, Discount=20%

# Markup
python3 scripts/calculate.py markup 100 30
# Cost=$100, Markup=30%

# Future Value Table
python3 scripts/calculate.py fv_table 10000 0.03 0.05 0.07 --periods 1 5 10 20
# Principal=$10,000, Rates=3%,5%,7%, Periods=1,5,10,20 years

# Discount Table
python3 scripts/calculate.py discount_table 100 10 15 20 25 30
# Price=$100, Discounts=10%,15%,20%,25%,30%

Web UI

Launch the interactive calculator:

./scripts/launch_ui.sh [port]
# Default port: 5050
# Opens at: http://localhost:5050
# Auto-creates venv and installs Flask if needed

Or manually:

cd skills/financial-calculator
python3 -m venv venv  # First time only
venv/bin/pip install flask  # First time only
venv/bin/python scripts/web_ui.py [port]

Features:

  • 7 calculator types with intuitive tabs
  • Real-time calculations
  • Interactive tables
  • Beautiful gradient UI
  • Mobile-responsive design

Calculators

1. Future Value (FV)

Calculate what an investment will be worth in the future with compound interest.

Use cases:

  • Investment growth projections
  • Savings account growth
  • Retirement planning

Inputs:

  • Principal amount
  • Annual interest rate (%)
  • Time period (years)
  • Compounding frequency (annual/quarterly/monthly/daily)

2. Present Value (PV)

Calculate the current value of a future amount (discounted value).

Use cases:

  • Loan valuation
  • Bond pricing
  • Investment analysis

Inputs:

  • Future value
  • Annual discount rate (%)
  • Time period (years)
  • Compounding frequency

3. Discount Calculator

Calculate final price after applying percentage discount.

Use cases:

  • Retail pricing
  • Sale calculations
  • Cost savings analysis

Inputs:

  • Original price
  • Discount percentage

Outputs:

  • Discount amount
  • Final price
  • Savings percentage

4. Markup Calculator

Calculate selling price from cost and markup percentage.

Use cases:

  • Product pricing
  • Profit margin calculation
  • Business pricing strategy

Inputs:

  • Cost price
  • Markup percentage

Outputs:

  • Markup amount
  • Selling price
  • Profit margin (as % of selling price)

5. Compound Interest

Detailed breakdown of compound interest calculations.

Use cases:

  • Interest analysis
  • Effective rate comparison
  • Loan interest calculation

Outputs:

  • Final amount
  • Total interest earned
  • Effective annual rate

6. Future Value Table

Generate comparison table across multiple rates and time periods.

Use cases:

  • Investment scenario comparison
  • Rate shopping
  • Long-term planning

Features:

  • Add multiple interest rates
  • Add multiple time periods
  • View all combinations in sortable table
  • See total gain and gain percentage

7. Discount Table

Compare multiple discount percentages for the same price.

Use cases:

  • Bulk pricing strategies
  • Promotional planning
  • Price comparison

Features:

  • Add multiple discount percentages
  • See all discount scenarios
  • Compare final prices and savings

Installation

Requires Python 3.7+ and Flask:

pip install flask

Or with venv:

python3 -m venv venv
source venv/bin/activate
pip install flask

Python API

Import the calculation module:

from calculate import (
    future_value,
    present_value,
    discount_amount,
    markup_price,
    compound_interest,
    generate_fv_table,
    generate_discount_table
)

# Calculate FV
fv = future_value(
    present_value=10000,
    rate=0.05,  # 5% as decimal
    periods=10,
    compound_frequency=12  # Monthly
)

# Generate table
table = generate_fv_table(
    principal=10000,
    rates=[0.03, 0.05, 0.07],  # As decimals
    periods=[1, 5, 10, 20]
)

Formulas

See references/formulas.md for detailed mathematical formulas, examples, and use cases for all calculations.

Tips

Rate Format:

  • CLI: Use decimals (0.05 for 5%)
  • Web UI: Use percentages (5 for 5%)
  • Python API: Use decimals (0.05 for 5%)

Compounding Frequencies:

  • 1 = Annual
  • 4 = Quarterly
  • 12 = Monthly
  • 365 = Daily

Table Generation: Best practices for meaningful comparisons:

  • FV tables: Use 3-5 rates, 4-6 time periods
  • Discount tables: Use 5-10 discount percentages
  • Keep tables focused for easier analysis

Performance:

  • Web UI calculations are instant
  • Tables with >100 combinations may take a few seconds
  • CLI is fastest for single calculations

Common Workflows

Investment Planning

  1. Use FV Calculator to project single investment
  2. Generate FV Table to compare different rates
  3. Check Compound Interest for detailed breakdown

Pricing Strategy

  1. Use Markup Calculator to set selling price
  2. Generate Discount Table to plan promotions
  3. Compare margins and final prices

Loan Analysis

  1. Use PV Calculator to value loan
  2. Check Compound Interest for total interest cost
  3. Generate FV Table to compare loan terms

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.18%
按下载量换算165

Claude

29.7%
按下载量换算147

Cursor

18.81%
按下载量换算93

Gemini CLI

9.4%
按下载量换算47

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills