dr-departments

dr-departments is a skill for Claude Code from Datarails/dr-claude-code-plugins-re. It costs 27 tokens per session (5,130 once invoked), scanned A, original, MIT.

A skill for analyzing profit-and-loss results and performance by department, then producing reports in Excel and PowerPoint. A department is a business unit or team used to compare spending, income, and resources.

In plain words
What is it for?
Use it to compare departmental results, examine resource allocation, and create Excel reports or PowerPoint presentations.
Why use it?
It turns department-level financial data into comparisons and review materials for team leads or management.

Skill for Claude Code

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

Part of the datarails-financeos plugin — 18 skills, 4 commands shipped together

Good fit Use it to compare departmental results, examine resource allocation, and create Excel…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/datarails/dr-claude-code-plugins-re/departments
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Datarails/dr-claude-code-plugins-re --skill departments
Clone the repo
git clone --depth 1 https://github.com/Datarails/dr-claude-code-plugins-re

Made for: Claude Code.

Or install datarails-financeos, the plugin that ships this one along with the rest of its 18 skills, 4 commands.

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 dr-departments

README.md
[![agentmods](https://agentmods.dev/badge/skills/datarails/dr-claude-code-plugins-re/departments.svg)](https://agentmods.dev/skills/datarails/dr-claude-code-plugins-re/departments)
Your own site
<a href="https://agentmods.dev/skills/datarails/dr-claude-code-plugins-re/departments"><img src="https://agentmods.dev/badge/skills/datarails/dr-claude-code-plugins-re/departments.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,130 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00027 $0.05130
Opus 5 $0.00014 $0.02565
Sonnet 5 $0.00005 $0.01026
Haiku 4.5 $0.00003 $0.00513

Measured 6d ago against content hash 1625f602c8d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

dr-departments scanned grade A with 0 findings 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 6d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/departments/SKILL.md · 343 lines

How it starts

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

Department Analytics

Analyze departmental P&L performance and resource allocation.

Creates detailed departmental reports for team leads and management reviews.

Excel Context — Routing Preamble

Before any data pull, establish whether this skill is running in a live Excel context (Claude for Excel with the Datarails Add-In loaded) and route accordingly.

Detect — never infer from the user's wording. A sheet list containing __dr_agent means the add-in is loaded. Confirm with the agent.get_session probe, which you run by executing Office.js through the execute_office_js tool (see the Excel Context Contract in CLAUDE.md, §Transport) — it is not an MCP tool and has no MCP equivalent. A failed probe is a normal detection result, not an error: it means "no bridge here", which is the expected outcome in Claude Code. Do not surface it, do not retry it, and do not apply this skill's connection-error or Connectors-UI guidance to it — that guidance is about datarails-finance-os connector calls only. A successful probe means Excel context, on either transport. The bridge serves two add-in tracks and their session payloads differ: Flex (Office.js task pane) exposes isLoggedIn; the COM desktop add-in — the majority of live workbooks — exposes isConnected instead, and isConnected: false is not a login failure, an error, or a reason to stop or send the user anywhere. It merely means the workbook isn't connected to a Datarails file, which matters only to drilldown_* / create_dynamic_range (the bridge skill gates those itself). Only Flex's explicit isLoggedIn: false means sign-in is needed.

Route by the target of the request, not by whether a workbook is open.

  • Org / server data — which tables, models and fields exist, aggregations, raw rows, distinct values, metrics, profiling — always the datarails-finance-os MCP connector, even in Excel. The bridge cannot answer these.
  • Workbook actions — refresh, drill a cell, insert a DR function, read what a cell returns, publish, submit — always the add-in bridge. Never a native Excel recalc (calculate(), F9): it does not pull Datarails data and silently yields stale values.

Read the full file on GitHub · 343 lines

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. 6d ago First seen · 343 lines · 27 tokens per session scan A 1625f602c8d8

Subscribe to this mod's changes

dr-departments is a skill published in the GitHub repository Datarails/dr-claude-code-plugins-re (3 stars, last pushed 7d ago), licensed MIT. It adds 27 tokens to every session and 5,130 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories