erpnext-code-mode

erpnext-code-mode is a skill for Claude Code, Codex from Casys-AI/mcp-erpnext. It costs 35 tokens per session (4,334 once invoked), scanned A, original, MIT.

An ERPNext connection for reading and changing business records, opening invoices, and saving or rerunning ERPNext programs. ERPNext is business software for areas such as sales, purchasing, and accounting.

In plain words
What is it for?
Use it to find overdue sales invoices, inspect a specific invoice, update ERPNext records, run calculations, or rerun saved ERPNext programs.
Why use it?
It removes the need to switch between chat and ERPNext for supported record and program tasks. It also helps choose available operations and supply their accepted inputs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find overdue sales invoices, inspect a specific invoice, update ERPNext records, run calculations, or rerun saved ERPNext programs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/casys-ai/mcp-erpnext/erpnext-code-mode
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 Casys-AI/mcp-erpnext --skill erpnext-code-mode
Clone the repo
git clone --depth 1 https://github.com/Casys-AI/mcp-erpnext

Made for: Claude Code, Codex.

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 erpnext-code-mode

README.md
[![agentmods](https://agentmods.dev/badge/skills/casys-ai/mcp-erpnext/erpnext-code-mode/github.svg)](https://agentmods.dev/skills/casys-ai/mcp-erpnext/erpnext-code-mode)
Your own site
<a href="https://agentmods.dev/skills/casys-ai/mcp-erpnext/erpnext-code-mode"><img src="https://agentmods.dev/badge/skills/casys-ai/mcp-erpnext/erpnext-code-mode/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 erpnext-code-mode

Your own site · 80×15
<a href="https://agentmods.dev/skills/casys-ai/mcp-erpnext/erpnext-code-mode"><img src="https://agentmods.dev/badge/skills/casys-ai/mcp-erpnext/erpnext-code-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,334 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.00035 $0.04334
Opus 5.5 $0.00014 $0.01734
Sonnet 5.5 $0.00007 $0.00867
Haiku 4.5 $0.00003 $0.00433

Measured 4d ago against content hash 3a5190770552, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

erpnext-code-mode 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 4d 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/erpnext-code-mode/SKILL.md · 314 lines

How it starts

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

Use the ERPNext connection's execute tool. Its code argument is the body of an asynchronous JavaScript function. Inside that function, erp.catalog lists the currently available business operations, with their names, descriptions and input schemas. Use it when choosing an operation or checking accepted arguments. The catalogue reflects this server's enabled categories and exclusions.

For example, find the sales invoice operations and their parameters:

return erp.catalog.filter((op) => op.name.includes("sales_invoice"));

Use await erp.call(name, args) to work with the connected ERP. To open the business result for the user, return the original result. For a calculation, return the computed value and its units. A programme may make several reads. Use the document's exact ERPNext identifier for a detail request. If the server reports an ambiguous name, ask the user to choose from the candidates.

List the first page of overdue sales invoices:

return await erp.call("erpnext_sales_invoice_list", {
  status: "Overdue",
  limit: 20,
});

Open an invoice, substituting the identifier supplied by the user or a preceding read:

return await erp.call("erpnext_sales_invoice_get", { name: "SINV-00042" });

To show several existing business views in one response, select each original result with erp.panel(result, title) in the requested display order. A programme can use the output of an operation without displaying it. Return a short summary after selecting the panels. For example, show a customer's overdue list alongside the invoice whose exact name the user supplied in execute.params.invoice:

const rows = await erp.call("erpnext_sales_invoice_list", {
  status: "Overdue",
  customer: erp.params.customer,
  limit: 20,
});
const invoice = await erp.call("erpnext_sales_invoice_get", {
  name: erp.params.invoice,
});
erp.panel(rows, "Overdue invoices");
erp.panel(invoice, "Invoice details");
return { invoice: erp.params.invoice };

If the user wants the invoice detail to follow selections in the list, add this line after both erp.panel calls and before the return:

erp.sync({
  from: rows,
  event: "invoice.selected",
  to: invoice,
  action: "invoice.focus",
});

The source is a Sales Invoice list from erpnext_sales_invoice_list or erpnext_doc_list with doctype: "Sales Invoice" and the name field. The target is an original result from erpnext_sales_invoice_get. Use the exact requested invoice as the initial detail, or the first row when the user asks to start with the first invoice. Clicking a row opens that invoice immediately in the linked panel. Cmd/Ctrl+click, flipping the header mode switch to Select, or long press toggles that invoice in the conversation context. Dragging a rectangle adds the rows it covers on the visible page. The basket preserves records the user has already joined from other pages. When answering questions about pinned records, use the host's current context and respect any reported limit on the number of records it contains. Show just the list if there is no invoice to open.

To let the user recalculate gross margin for a month in the Sales Order revenue series, link the cards as shown below. Clicking a monthly bar updates the margin immediately for that month. Cmd/Ctrl+click, flipping the header mode switch to Select, or long press adds or removes that month from context, even while the margin shows a different month. Drag a rectangle over several bars to add those months together. Start the margin at the current month to date and keep any requested company or valuation options in the original margin call.

const revenue = await erp.call("erpnext_kpi_revenue", {});
const margin = await erp.call("erpnext_kpi_gross_margin", {
  ...revenue.sparklinePeriods.at(-1),
});
erp.panel(revenue, "Sales Order revenue");
erp.panel(margin, "Estimated gross margin");
erp.sync({
  from: revenue,
  event: "kpi.period.selected",
  to: margin,
  action: "kpi.period.apply",
});
return { shown: 2 };

Read the full file on GitHub · 314 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. 4d ago First seen · 314 lines · 35 tokens per session scan A 3a5190770552

Subscribe to this mod's changes

erpnext-code-mode is a skill published in the GitHub repository Casys-AI/mcp-erpnext (126 stars, last pushed 5d ago), licensed MIT. It adds 35 tokens to every session and 4,334 once invoked, about $0.0001 per session on Opus 5.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-12-02.

Related

erpnext-code-mode compared with skills from other repositories

erpnext-code-mode next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
erpnext-code-modeCasys-AI/mcp-erpnextSkill1265d agoMITA35Claude Code, Codex
frappe-core-apiImpertio-Studio/Frappe_Claude_Skill_PackageSkill2142mo agononeA99Claude Code, Codex
frappe-errors-apiImpertio-Studio/Frappe_Claude_Skill_PackageSkill2142mo agononeA196Claude Code, Codex
frappe-errors-hooksImpertio-Studio/Frappe_Claude_Skill_PackageSkill2142mo agononeA137Claude Code, Codex
frappe-impl-jinjaImpertio-Studio/Frappe_Claude_Skill_PackageSkill2142mo agononeA122Claude Code, Codex
frappe-impl-whitelistedImpertio-Studio/Frappe_Claude_Skill_PackageSkill2142mo agononeA130Claude Code, Codex
frappe-impl-workflowImpertio-Studio/Frappe_Claude_Skill_PackageSkill2142mo agononeA111Claude Code, Codex