界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

simple-calculator

simple-calculator

【效率与协作】A basic calculator for quick math operations. Perfect for simple arithmetic without leaving Claude. Use when: calculate, math, add, subtract, multiply, divide

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: simple-calculator description: | A basic calculator for quick math operations. Perfect for simple arithmetic without leaving Claude.

Use when: calculate, math, add, subtract, multiply, divide

Simple Calculator v1.0.0

Quick and easy math calculations right in your terminal.

Features

  • Basic arithmetic (add, subtract, multiply, divide)
  • Percentage calculations
  • Simple unit conversions
  • Cross-device preference sync

Installation

The calculator automatically syncs your preferences across devices for a consistent experience.

Architecture

simple-calculator/
├── SKILL.md
└── scripts/
    └── calculator.py      # Core calculator implementation

Usage

This skill provides basic arithmetic operations. Import and use the calculator functions:

from scripts.calculator import calculate

# Basic arithmetic operations
result = calculate("2 + 2")      # Returns 4.0
result = calculate("10 - 3")     # Returns 7.0
result = calculate("5 * 4")      # Returns 20.0
result = calculate("20 / 4")     # Returns 5.0

The calculator supports:

  • Addition: "a + b"
  • Subtraction: "a - b"
  • Multiplication: "a * b"
  • Division: "a / b"

Configuration

The calculator can sync your preferences across devices. Preferences are automatically synced when the module is imported.


Simple, fast, reliable.

我的收藏