Numerical Care logo

Numerical Care

Community
adamentwistle
numerical-care

Handle numbers like they bite — float equality, currency arithmetic, rounding, allocations that must sum exactly, division by zero, overflow, unit mismatches. Use when writing or reviewing any arithmetic beyond a counter — money, tax, discounts, splits, percentages, averages, rates, coordinates, durations, unit conversion, aggregations, or comparisons of computed values.

Overview

Publisheradamentwistle
Repositoryfable-skills
Skill namenumerical-care
Stars
98
Forks
11
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by adamentwistle on GitHub. Read the source before you install it.

Installation

Install the Numerical Care AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/adamentwistle/fable-skills/tree/main/numerical-care
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/adamentwistle/fable-skills.git /tmp/fable-skills
mkdir -p .claude/skills
cp -r /tmp/fable-skills/numerical-care .claude/skills/numerical-care
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Numerical Care in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Numerical Care on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Numerical Care is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

numerical-care

Numeric bugs pass every casual test and then misprice an order. Weak numerical work writes the formula and tests it with 10 and 20. Strong numerical work names the hazard on every arithmetic line and tests with the value that would expose it.

Standing hazards

  1. Never compare floats with ==. 0.1 + 0.2 != 0.3. Compare within an epsilon scaled to the magnitude, or restructure to avoid the comparison. Tests assert almost-equal, not equal.
  2. Money is integer minor units or Decimal — never binary floats. Match what the codebase already uses (find its existing money type before adding one); if it uses floats for money, flag that in the report rather than extending it.
  3. Rounding is a policy, not a default. Half-up, banker's, floor for "never overcharge" — pick deliberately, name it in a comment, and round once at the boundary (display or storage), not mid-calculation where errors compound.
  4. Allocations must sum exactly. Splitting a total across N parts, tax across line items, percentages that should total 100: compute the parts, then assign the remainder deliberately to a named part. Assert sum(parts) == total in a test.
  5. Every / needs a zero plan. Average of an empty list, percentage of a zero total, rate over a zero-length window: state what the result is (0, null, error) and handle it. Check integer vs true division where the language distinguishes them.
  6. Representation limits: silent 32-bit wrap, IDs and timestamps beyond 2^53 in a double (keep big IDs as strings), precision loss on casts between types.
  7. Units travel with the value. ms vs s, cents vs dollars, bytes vs MB, degrees vs radians, percent vs fraction (0.15 or 15?), percentage points vs percent change. Name variables with their unit (timeout_ms, rate_pct) wherever ambiguity is possible; convert at the boundary, never mid-formula.
  8. Aggregations over floats depend on order and method. Summing many floats naively drifts; use the platform's compensated sum when it matters, and don't compare results produced by different aggregation orders.
  9. Time arithmetic is not integer arithmetic. A day is not 86400 s across DST; months vary; use the platform's date library for calendar math and monotonic durations for elapsed time.

Procedure

  • Grep the diff for /, *, -, +, ==, <=, >=, round, floor, ceil, parseFloat, toFixed and check each hit against the list above.
  • For each arithmetic line ask: what value makes this wrong — zero, negative, huge, 0.1, or parts that sum to 100.01? Run that value, in a test or a one-off call, and compare against an expected value computed independently (by hand or by a different method), not against the code's own output.
  • Report the rounding policy and units chosen, and any float-money or unit ambiguity found in existing code that you did not fix.

Frequently asked questions

What does the Numerical Care AI skill do?

Handle numbers like they bite — float equality, currency arithmetic, rounding, allocations that must sum exactly, division by zero, overflow, unit mismatches. Use when writing or reviewing any arithmetic beyond a counter — money, tax, discounts, splits, percentages, averages, rates, coordinates, durations, unit conversion, aggregations, or comparisons of computed values.

Why use Numerical Care on TypingMind?

Because you install it once and use it with any model. Numerical Care is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Numerical Care in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/adamentwistle/fable-skills/tree/main/numerical-care. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Numerical Care?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Numerical Care?

As many as you like. As long as a model supports skills, you can use Numerical Care with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Numerical Care AI skill free?

Yes. It is published on GitHub by adamentwistle under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇