Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
RY avatar

Math

  • Updated December 28, 2025
  • Yomiamy/claude-code-plugin

math is a Claude Code plugin that provides on-demand math computation as a callable service so agents can run calculations reliably.

About

A math operations service exposed as a Claude Code plugin, providing arithmetic and computation on demand. The description is minimal (Chinese: math computation service), so scope beyond basic calculation is unclear. A developer would use it to give an agent reliable math capabilities as a callable tool rather than relying on the model's own arithmetic.

  • Math computation service
  • Claude Code plugin

Math by the numbers

  • Data as of Jul 7, 2026 (Skillselion catalog sync)
/plugin marketplace add Yomiamy/claude-code-plugin
/plugin install math@ry-plugins

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Last updatedDecember 28, 2025
RepositoryYomiamy/claude-code-plugin

How do I get accurate math calculations inside Claude Code without trusting the model to arithmetic?

Provide a math computation service callable from Claude Code.

Who is it for?

A developer using Claude Code who wants dependable arithmetic and computation via a plugin tool.

Skip if: Heavy symbolic math, CAS workflows, or scientific computing beyond basic computation needs.

When should I use this skill?

When a workflow needs numeric or mathematical computation executed through a dedicated plugin.

What you get

Computed numeric or mathematical results from the math plugin service.

README.md

Claude Code Plugin Collection

A collection of useful plugins for Claude Code CLI, focusing on translation and text processing capabilities.

Features

Translation Commands

  • /to-ch - Translate text to Traditional Chinese
  • /to-en - Translate text to English

Both commands maintain technical terminology accuracy during translation.

Math Commands

  • /abs - 計算數值的絕對值。若輸入不是數字,則回報錯誤訊息。

Installation

Local Installation

  1. Clone this repository:
git clone https://github.com/yourusername/claude-code-plugin.git
cd claude-code-plugin
  1. Install the plugin to Claude Code:
claude plugin add ./

NPM Installation (Coming Soon)

claude plugin add @ry/claude-code-plugins

Usage

取絕對值(/abs 指令)

claude /abs "-15"

Output:

15

如果輸入非數字:

claude /abs "hello"

Output:

請輸入數值

Translate to Chinese

claude /to-ch "Hello, World! This is a technical document."

Output:

你好,世界!這是一個技術文件。

Translate to English

claude /to-en "這是一個測試訊息,包含技術術語。"

Output:

This is a test message containing technical terminology.

Plugin Structure

claude-code-plugin/
├── plugin.json                  # Plugin configuration
├── plugins/
│   ├── math/
│   │   ├── .claude-plugin/
│   │   │   └── plugin.json      # math plugin 設定檔
│   │   └── commands/
│   │       └── abs.md           # abs(絕對值)指令 prompt
│   └── translation/
│       ├── .claude-plugin/
│       │   └── plugin.json
│       └── commands/
│           ├── to-ch.md        # Chinese translation prompt
│           └── to-en.md        # English translation prompt
├── package.json                 # NPM package configuration
├── README.md                   # This file
├── LICENSE                     # MIT License
├── .gitignore                  # Git ignore rules
└── .npmignore                  # NPM ignore rules

Development

Adding New Commands

  1. Create a new prompt file in commands/ directory:
touch commands/your-command.md
  1. Add command definition to plugin.json:
{
  "name": "your-command",
  "description": "Command description",
  "prompt": "commands/your-command.md"
}
  1. Test the command:
claude /your-command "test input"

Testing

npm run validate

Requirements

  • Claude Code CLI >= 0.1.0
  • Node.js >= 18.0.0

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

RY

Changelog

v1.0.1 (2025-12-28)

  • 新增 Math 指令 /abs

v1.0.0 (2025-12-21)

  • Initial release
  • Added Chinese translation command (/to-ch)
  • Added English translation command (/to-en)

Support

If you encounter any issues or have questions, please open an issue.

Related Links

Related skills

FAQ

What does the math plugin provide?

A math computation service callable from Claude Code.

Why use a plugin for math?

To get reliable calculations as a tool rather than model-estimated arithmetic.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.