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.
git clone --depth 1 https://github.com/SAP/leanix-ai-pluginsnpx agentmods add skills/sap/leanix-ai-plugins/calculations-toolkitWrote 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.
[](https://agentmods.dev/skills/sap/leanix-ai-plugins/calculations-toolkit)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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. 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.jsonparsing 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:
- Fact sheet types are enumerated in the
create_calculationtool schema — no discovery call needed- Fetch SDL using
mcp__leanix__list_graphql_types+mcp__leanix__get_graphql_type_definitionsfor fields, relations, and enums- Present discovered options to the user (not hardcoded lists)
- 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) |
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.
- examples/aggregation/average-rating.js 822 B runs code
- examples/aggregation/max-user-count.js 631 B runs code
- examples/aggregation/min-eol-days.js 953 B runs code
- examples/aggregation/sum-annual-costs.js 568 B runs code
- examples/aggregation/weighted-average.js 1.1 KB runs code
- examples/basic/echo-field.js 412 B runs code
- examples/basic/hello-world.js 283 B runs code
- examples/basic/simple-count.js 390 B runs code
- examples/completeness/data-quality-score.js 1.8 KB runs code
- examples/completeness/field-completeness.js 1.2 KB runs code
- examples/completeness/relation-coverage.js 870 B runs code
- examples/conditional-logic/approval-required.js 1.5 KB runs code
- examples/conditional-logic/retirement-eligibility.js 1.6 KB runs code
- examples/conditional-logic/risk-level.js 1.5 KB runs code
- examples/conditional-logic/tech-debt-score.js 1.7 KB runs code
- examples/counting/count-active-relations.js 593 B runs code
- examples/counting/count-by-usage-type.js 477 B runs code
- examples/counting/count-linked-itcs.js 282 B runs code
- examples/counting/count-with-threshold.js 652 B runs code
- examples/date-calculations/age-in-months.js 477 B runs code
- examples/date-calculations/days-since-creation.js 469 B runs code
- examples/date-calculations/days-to-eol.js 671 B runs code
- examples/date-calculations/earliest-related-eol.js 1018 B runs code
- examples/INDEX.md 11 KB
- examples/multi-select/collect-categories.js 734 B runs code
- examples/multi-select/collect-provider-types.js 710 B runs code
- examples/multi-select/collect-risk-flags.js 1.4 KB runs code
- examples/status-derivation/best-case-rating.js 825 B runs code
- examples/status-derivation/criticality-to-status.js 708 B runs code
- examples/status-derivation/lifecycle-to-flag.js 539 B runs code
- examples/status-derivation/majority-category.js 998 B runs code
- examples/status-derivation/worst-case-status.js 832 B runs code
- examples/string-operations/display-label.js 624 B runs code
- examples/string-operations/id-prefix.js 590 B runs code
- examples/string-operations/provider-list.js 521 B runs code
- examples/string-operations/summary-text.js 1.1 KB runs code
- references/ANALYSIS-RULES.md 8.3 KB
- references/API-REFERENCE.md 13 KB
- references/LEANIX-MODEL.md 12 KB
- references/NAMING-CONVENTION.md 3.8 KB
- references/TEMPLATES.md 29 KB
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.
- today First seen · 1,042 lines · 68 tokens per session scan A c9c4a0548b7a
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.
calculations-toolkit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| calculations-toolkitSAP/leanix-ai-plugins | Skill | 10 | 1mo ago | Apache-2.0 | A | 68 | Claude Code |
| nightly-audit-engineer-opsmakecindy/cindy | Skill | 9.3k | yesterday | Apache-2.0 | A | 43 | Claude Code, Codex |
| ha-logsshiwenwen/hope-agent | Skill | 1.9k | yesterday | MIT | A | 183 | Claude Code, Codex |
| therapeutic-ifswinstonkoh87/Athena-Public | Skill | 620 | yesterday | MIT | A | 34 | Claude Code |
| report-issue-localcyanheads/obsidian-mcp-server | Skill | 702 | 7d ago | Apache-2.0 | A | 44 | Claude Code |
| opik-diagnosecomet-ml/opik-mcp | Skill | 225 | 9d ago | Apache-2.0 | A | 187 | Claude Code |
| opik-explaincomet-ml/opik-mcp | Skill | 225 | 9d ago | Apache-2.0 | A | 113 | Claude Code |