npoi

npoi is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 60 tokens per session (2,638 once invoked), scanned A, original, MIT.

A .NET library for reading and writing Excel, Word, and PowerPoint files without Microsoft Office installed. It supports older and newer Office formats, including .xls, .xlsx, .doc, and .docx.

In plain words
What is it for?
Importing and exporting spreadsheets, generating reports from templates, applying styles and formulas, adding charts or images, creating Word documents, and processing large Excel files.
Why use it?
It lets server-side or cross-platform applications generate and process Office documents without opening desktop Office programs.

Skill for Claude CodeCodex

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

Good fit Importing and exporting spreadsheets, generating reports from templates, applying styles and formulas, adding charts or images, creating Word documents, and processing large Excel files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/npoi
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 znlgis/opengis-skills --skill npoi
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

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 npoi

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/npoi/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/npoi)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/npoi"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/npoi/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 npoi

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/npoi"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/npoi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,638 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00060 $0.02638
Opus 5 $0.00030 $0.01319
Sonnet 5 $0.00012 $0.00528
Haiku 4.5 $0.00006 $0.00264

Measured today against content hash 249751a7447f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

npoi 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 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.

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.

csharp/npoi/SKILL.md · 290 lines

How it starts

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

项目地址: https://github.com/nissl-lab/npoi

NuGet: NPOI

官方文档: https://github.com/nissl-lab/npoi/wiki

许可证: Apache-2.0

注意: 自 NPOI 2.8.0(2026-04)起,产生收入的商业用户需通过 GitHub Sponsors 支付月度维护费用。详见 NPOI GitHub

概述

NPOI 主要能力:

  • xls(HSSF) / xlsx(XSSF) / 流式 xlsx(SXSSF) 读写
  • 公式计算FormulaEvaluator
  • 样式:字体、边框、对齐、数据格式、条件格式
  • 图表 / 图片 / 批注
  • Word .doc(HWPF) / Word .docx(XWPF)
  • PowerPoint .ppt/.pptx
  • 跨平台:.NET Framework / .NET 6+ / Linux / macOS

大文件写入推荐 SXSSF(流式),可处理百万行 Excel;大文件读取推荐 EventModel(XSSF SAX)。


安装

dotnet add package NPOI

主要命名空间:

  • NPOI.HSSF.UserModel — xls
  • NPOI.XSSF.UserModel — xlsx
  • NPOI.XSSF.Streaming — 流式 xlsx
  • NPOI.SS.UserModel — 通用接口(IWorkbook / ISheet / IRow / ICell)
  • NPOI.SS.Util — CellRangeAddress、WorkbookUtil

写入 Excel(xlsx)

using NPOI.SS.UserModel;
using NPOI.XSSF.UserModel;

IWorkbook wb = new XSSFWorkbook();
ISheet sh = wb.CreateSheet("Sheet1");

// 标题样式
ICellStyle headStyle = wb.CreateCellStyle();
IFont font = wb.CreateFont();
font.Boldweight = (short)FontBoldWeight.Bold; font.FontHeightInPoints = 12;
headStyle.SetFont(font);
headStyle.FillForegroundColor = IndexedColors.Grey25Percent.Index;
headStyle.FillPattern = FillPattern.SolidForeground;
headStyle.Alignment = HorizontalAlignment.Center;

string[] head = { "ID", "Name", "Score", "Time" };
IRow row = sh.CreateRow(0);
for (int i = 0; i < head.Length; i++) {
    var c = row.CreateCell(i);
    c.SetCellValue(head[i]);
    c.CellStyle = headStyle;
}

// 数据
for (int r = 1; r <= 10; r++) {
    var dr = sh.CreateRow(r);
    dr.CreateCell(0).SetCellValue(r);
    dr.CreateCell(1).SetCellValue("User" + r);
    dr.CreateCell(2).SetCellValue(80 + r);
    dr.CreateCell(3).SetCellValue(DateTime.Now);   // 注意要设置日期样式
}

// 列宽
sh.AutoSizeColumn(1);

using var fs = new FileStream("out.xlsx", FileMode.Create);
wb.Write(fs, leaveOpen: false);

Read the full file on GitHub · 290 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. today Changed 249751a7447f
  2. 9d ago Changed 16725cb47f99
  3. 13d ago First seen · 290 lines · 60 tokens per session scan A 11a2d1964a93

Subscribe to this mod's changes

npoi is a skill published in the GitHub repository znlgis/opengis-skills (61 stars, last pushed yesterday), licensed MIT. It adds 60 tokens to every session and 2,638 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories