npoi

npoi is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 85 tokens per session (3,753 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 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,753 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.00085 $0.03753
Opus 5.5 $0.00034 $0.01501
Sonnet 5.5 $0.00017 $0.00751
Haiku 4.5 $0.00009 $0.00375

Measured today against content hash 29eb3884008e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 · 362 lines

How it starts

The opening of the file, as written. The whole thing — 362 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

最新版本: 2.8.1(2026-10-07 仓库最后提交;截至 2026-10,NuGet 实测)

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

许可证: Apache-2.0

注意(OSMF): 自 2.8.0 起 NuGet 包附带 OSMF EULA,年收入超过 1 万美元的组织/商业用户需通过 GitHub Sponsors 支付月度维护费;初创、自由职业者与业余项目免费。详见 https://github.com/nissl-lab/npoi 与 https://opensourcemaintenancefee.org/consumers/。

概述

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 CLI

dotnet add package NPOI

方式二:PackageReference

<ItemGroup>
  <PackageReference Include="NPOI" Version="2.8.1" />
</ItemGroup>

方式三:包管理器控制台

Install-Package NPOI -Version 2.8.1

验证安装

dotnet list package | grep -i 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

核心 API 速查

对象 入口 说明
工作簿 new XSSFWorkbook() / new HSSFWorkbook() / new SXSSFWorkbook(rowAccessWindow) xlsx / xls / 流式写大文件
读任意格式 WorkbookFactory.Create(stream) 按魔数自动识别 xls/xlsx
表 wb.CreateSheet(name) / wb.GetSheetAt(i) / wb.GetSheet(name)
行 / 单元格 sh.CreateRow(i) / row.CreateCell(j)
单元格值 cell.SetCellValue(...) / cell.CellType 枚举 CellType.String/Numeric/Boolean/Formula/Blank
样式 wb.CreateCellStyle() + wb.CreateFont() + wb.CreateDataFormat()
公式求值 wb.GetCreationHelper().CreateFormulaEvaluator() 读公式结果用它,不要自己解析
Word XWPFDocument / XWPFParagraph .docx 读写

写入 Excel(xlsx)

Read the full file on GitHub · 362 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 · +31 lines · +25 tokens per session 29eb3884008e
  2. 13d ago Changed · +39 lines 890b746d575b
  3. 1mo ago Changed · +2 lines a79bae27653b
  4. 1mo ago Changed 249751a7447f
  5. 1mo ago Changed 16725cb47f99
  6. 1mo 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 (75 stars, last pushed yesterday), licensed MIT. It adds 85 tokens to every session and 3,753 once invoked, about $0.0003 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-08-30.