calculations-toolkit

calculations-toolkit is a skill for Claude Code from SAP/leanix-ai-plugins. It costs 68 tokens per session (8,717 once invoked), scanned A, original, Apache-2.0.

Build, debug, and create LeanIX Calculations — populate computed fields from other fields and relations. Use when creating new calculations, debugging errors, understanding calculation capabilities, managing workspace calculations, or analyzing existing calculations. Covers target field types, field access patterns…

Skill for Claude Code ✓ vendor

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; mentions Claude Code.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is See [MCP Setup](../../MCP-SETUP.md) for full instructions..

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/SAP/leanix-ai-plugins
agentmods
npx agentmods add skills/sap/leanix-ai-plugins/calculations-toolkit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for calculations-toolkit

README.md
[![agentmods](https://agentmods.dev/badge/skills/sap/leanix-ai-plugins/calculations-toolkit/github.svg)](https://agentmods.dev/skills/sap/leanix-ai-plugins/calculations-toolkit)
Your own site
<a href="https://agentmods.dev/skills/sap/leanix-ai-plugins/calculations-toolkit"><img src="https://agentmods.dev/badge/skills/sap/leanix-ai-plugins/calculations-toolkit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for calculations-toolkit

Your own site · 80×15
<a href="https://agentmods.dev/skills/sap/leanix-ai-plugins/calculations-toolkit"><img src="https://agentmods.dev/badge/skills/sap/leanix-ai-plugins/calculations-toolkit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,717 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.08717
Opus 5.5 $0.00027 $0.03487
Sonnet 5.5 $0.00014 $0.01743
Haiku 4.5 $0.00007 $0.00872

Measured today against content hash c9c4a0548b7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

calculations-toolkit scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 35 executable files (examples/aggregation/average-rating.js, examples/aggregation/max-user-count.js, examples/aggregation/min-eol-days.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**All LeanIX API calls use MCP tools.** No shell commands, no token exchange, no curl.
skills/calculations-toolkit/SKILL.md · 1,042 lines

How it starts

The opening of the file, as written. The whole thing — 1,042 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LeanIX Calculation Assistant

Comprehensive help for LeanIX Calculations: create, debug, design, and manage.

CRITICAL: API Access

All LeanIX API calls use MCP tools. No shell commands, no token exchange, no curl.

  • Authentication is handled internally by the MCP server
  • No bearer tokens need to be managed in the skill workflow
  • No .mcp.json parsing is required — MCP handles credentials automatically

Before any LeanIX tool call: if only mcp__leanix__authenticate and mcp__leanix__complete_authentication are available, tell the user to run /mcp and authenticate the leanix server (browser opens automatically). Do NOT call authenticate yourself or suggest claude mcp add — the former returns a URL without triggering the browser flow (copy-paste UX), the latter would shadow the plugin's bundled server. If /mcp doesn't surface tools after auth, treat it as a plugin bug.


⚠️ WORKSPACE-SPECIFIC DATA MODEL

Do NOT assume standard fact sheet types, fields, or relations exist.

Every LeanIX workspace has custom configurations. Before creating or debugging calculations:

  1. Fact sheet types are enumerated in the create_calculation tool schema — no discovery call needed
  2. Fetch SDL using mcp__leanix__list_graphql_types + mcp__leanix__get_graphql_type_definitions for fields, relations, and enums
  3. Present discovered options to the user (not hardcoded lists)
  4. Validate all names exist before generating code

Reference files in this skill contain static examples only. Always use live workspace data.

CRITICAL: Calculations vs Automations

Calculations are fundamentally different from Automations:

Aspect Calculations Automations
Purpose Populate computed fields React to events with actions
Trigger Auto-triggers on source field change 12 explicit trigger types
API calls NOT allowed Allowed (fetch, GraphQL)
Async NOT supported Supported
Output Single value (string/number/array) Object with field names
Creation Single API call Two calls (script + template)

Read the full file on GitHub · 1,042 lines

Files

What ships with it

41 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 1,042 lines · 68 tokens per session scan A c9c4a0548b7a

Subscribe to this mod's changes

calculations-toolkit is a skill published in the GitHub repository SAP/leanix-ai-plugins (10 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 68 tokens to every session and 8,717 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.

Related

calculations-toolkit compared with skills from other repositories

calculations-toolkit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
calculations-toolkitSAP/leanix-ai-pluginsSkill101mo agoApache-2.0A68Claude Code
nightly-audit-engineer-opsmakecindy/cindySkill9.3kyesterdayApache-2.0A43Claude Code, Codex
ha-logsshiwenwen/hope-agentSkill1.9kyesterdayMITA183Claude Code, Codex
therapeutic-ifswinstonkoh87/Athena-PublicSkill620yesterdayMITA34Claude Code
report-issue-localcyanheads/obsidian-mcp-serverSkill7027d agoApache-2.0A44Claude Code
opik-diagnosecomet-ml/opik-mcpSkill2259d agoApache-2.0A187Claude Code
opik-explaincomet-ml/opik-mcpSkill2259d agoApache-2.0A113Claude Code