Kookerella.FsOpenXmlDsl: Instructions file for Claude Code

CLAUDE.md

Kookerella.FsOpenXmlDsl CLAUDE.md is an instructions file for Claude Code from Kookerella-Ltd/Kookerella.FsOpenXmlDsl. It costs 4,432 tokens per session, scanned A, original, MIT.

A set of project instructions for Claude Code in Kookerella.FsOpenXmlDsl, a repository for creating and reading Excel files through a typed programming interface. It explains the repository layout and the checklist for adding features.

In plain words
What is it for?
Use it when adding or updating workbook and worksheet features across the F# library, C# library, MCP server, and command-line converter.
Why use it?
It helps keep the F# core, C# wrapper, and local MCP server in sync when the spreadsheet model changes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is Kookerella-Ltd/Kookerella.FsOpenXmlDsl's own configuration. It tells Claude Code how to work on Kookerella.FsOpenXmlDsl itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Kookerella.FsOpenXmlDsl configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Kookerella-Ltd/Kookerella.FsOpenXmlDsl. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Kookerella-Ltd/Kookerella.FsOpenXmlDsl/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Kookerella-Ltd/Kookerella.FsOpenXmlDsl

Made for: Claude Code.

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 Kookerella.FsOpenXmlDsl CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kookerella-ltd/kookerella.fsopenxmldsl/claude-md/github.svg)](https://agentmods.dev/instructions/kookerella-ltd/kookerella.fsopenxmldsl/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/kookerella-ltd/kookerella.fsopenxmldsl/claude-md"><img src="https://agentmods.dev/badge/instructions/kookerella-ltd/kookerella.fsopenxmldsl/claude-md/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 Kookerella.FsOpenXmlDsl CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kookerella-ltd/kookerella.fsopenxmldsl/claude-md"><img src="https://agentmods.dev/badge/instructions/kookerella-ltd/kookerella.fsopenxmldsl/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,432 This file is loaded in full into every session.
When invoked 4,432 The same file — it is already loaded in full.
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.04432 $0.04432
Opus 5 $0.02216 $0.02216
Sonnet 5 $0.00886 $0.00886
Haiku 4.5 $0.00443 $0.00443

Measured 11d ago against content hash 91ad033f744a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

Kookerella.FsOpenXmlDsl CLAUDE.md 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 11d 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.

CLAUDE.md · 205 lines

How it starts

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

CLAUDE.md

Instructions for any Claude Code session working in this repo. This file exists because every item on the checklist below has drifted out of sync at least once in this project's history — each was found reactively (a stray user question, or noticing it while checking something unrelated), never automatically. Treat this as the fix for that: a fact-of-life checklist, not aspirational.

Repo layout

Three packages from one repo:

  • src/Kookerella.FsOpenXmlDsl — the F# core: a typesafe DSL over the OOXML SpreadsheetML schema, interpreted by Interpreter/Writer.fs and reversed by Interpreter/Reader.fs.
  • src/Kookerella.CsOpenXmlDsl — an idiomatic, immutable, fluent C# wrapper over the F# core. As of this writing it has full feature parity with the F# core at the worksheet/workbook level.
  • src/Kookerella.FsOpenXmlDsl.Mcp — a local MCP server exposing both as agent tools, and as a plain fsopenxmldsl-mcp convert CLI command.

Adding a feature to the DSL — checklist

When a new type/DU/field is added to the F# core's model (Worksheet/Workbook or anything they contain), work through all of these, in order. Skipping one is exactly how past drift happened — each step below has a real, specific incident behind it.

  1. F# core (src/Kookerella.FsOpenXmlDsl): model + Writer.fs + Reader.fs + Interpreter/CodeGen.fs (F# source-gen) + Xml.fs/Xml.xsd (the XML surface - a new field/case needs a schema change too, not just a code change; the "every generated workbook.xml validates against Xml.xsd" check inside verifyScenarioNamed is what catches the two drifting apart) + Json.fs/Json.schema.json (the JSON surface - same feature set as Xml.fs, same drift risk; verifyScenarioNamed also writes and validates an Examples/<name>/workbook.json for every scenario, the same way it does workbook.xml - Json.schema.json is test-suite only, so this check runs from JsonTests.assertJsonSchemaValid, not a public Json.schemaSet()-equivalent API - see Json.fs's own doc comment) + a test in tests/Kookerella.FsOpenXmlDsl.Tests for both XmlTests.fs and JsonTests.fs, and the F# core's own <Description> in Kookerella.FsOpenXmlDsl.fsproj (this package went stale once already - Xml.fs shipped in source for several commits before anyone noticed the published package was still an old version without it, because the Mcp server builds against local source via ProjectReference and never surfaced the gap).
  2. C# wrapper (src/Kookerella.CsOpenXmlDsl), in this order:
    • Verify the F#/C# compiled interop shape via a dotnet fsi reflection scratch script before writing any conversion code — constructor parameter order, NewCaseName static factories on DU cases, exact property names. Never guess this.
    • New C# type file(s) mirroring the F# shape (parameterless-only DU → plain enum; data-carrying DU → closed hierarchy, mirroring CellValue's pattern).
    • Sheet.cs/Workbook.cs — new property + fluent With*/Add* methods.
    • WorkbookConverter.csToFsX/FromFsX, both directions.
    • CsCodeGen.csbefore writing tests, not after (a real gap shipped once because this was left until "later").
    • Tests: Examples/ scenario(s) in ExampleTests.cs mirroring the F# test suite's exact reference data, unit tests in WorkbookTests.cs, and update AssertWorkbooksMatch in ExampleTests.cs. This one is easy to miss because the test suite still passes without it — it silently stopped checking round-trip fidelity for five-plus features in a row before anyone noticed.
    • If the new feature is a brand-new F# DU mirrored as a C# enum or closed hierarchy (not just a new case on an existing one), add it to DriftGuardTests.cs's EnumMirrors/ClosedHierarchyMirrors list — that test only guards types already registered with it, so a new type is invisible to it until added.
    • The C# wrapper's own README.md (feature section + ## Scope) and the <Description> in Kookerella.CsOpenXmlDsl.csproj (the NuGet "sales pitch" text — easy to forget since it's metadata, not code, and it directly shapes whether someone chooses this package at all).
  3. Root docs:
    • Root README.md — it asserts the wrapper's scope in at least one place; don't assume old wording ("narrow first pass", feature lists) is still accurate.
    • llms.txt — the C# wrapper's "v1 scope" list and any "not exposed" list.
    • MAPPING.md only if this is a new OOXML-level capability in the F# core itself (not a C# wrapper concern).
  4. MCP server (src/Kookerella.FsOpenXmlDsl.Mcp), if a ProjectReference or a referenced package's version changed:
    • Dockerfile's COPY list must mirror every ProjectReference in the .fsproj exactly — it silently broke once when Kookerella.CsOpenXmlDsl was added as a reference and the Dockerfile wasn't touched; nothing catches this except actually running docker build.
    • Any MCP tool's [<Description>] text that asserts a feature scope (e.g. generate_csharp_script's own doc string in WorkbookTools.fs) — this is what an MCP client/agent sees directly, separately from any README.
    • The Mcp project's own README.md and .mcp/server.json's description field (note: the registry enforces a 100-character limit on that field — it will reject a longer one at publish time, not at edit time).
  5. Version bump + release — bump <Version> by hand in whichever project(s) changed (a semver judgment call, not automated), then run dotnet fake run build.fsx -t PublishAll (see build.fsx — this runs the full test gate first). Use PublishAll, never Push<Core|Wrapper|Mcp> individually, and never a manual dotnet pack/dotnet nuget push - two real incidents behind this, not caution for its own sake:
    • build.fsx exists specifically so a release can't skip the test gate, but that only holds if it's actually invoked; one release went out via plain dotnet pack anyway, purely out of habit, defeating the point.
    • The C# wrapper's ProjectReference to the F# core gets converted into a NuGet dependency floor (>= x.y.z) at whatever version the core happened to be at pack time - dotnet pack/NuGet do this correctly and automatically, but only the wrapper's own next pack captures a newer core version. Calling PushCore alone (three times in a row, across the Xml.fs/Json.fs/font-ordering-fix releases) left the published wrapper silently declaring a dependency floor two minor versions behind the core for weeks, invisible locally because a local checkout is always self-consistent by construction - it only showed up when a from-scratch NuGet restore (a demo project, the decompiled .g.cs's own #:package restore) pulled the ancient floor version. push (in build.fsx) is deliberately a no-op for whichever package(s) didn't change this release rather than erroring on "already published", specifically so PublishAll is always safe and always the right thing to run — every release, not just ones that "feel like" they touched more than one package. PublishAll's own action (not a separate target merely chained after it, which would only run on -t VerifyDependencyFreshness, never on the -t PublishAll people actually type) then checks nuget.org's own live state and fails loudly if the wrapper's published floor still doesn't match the core's latest published version - a backstop for exactly the mistake above, in case PublishAll gets bypassed anyway. Also independently invocable any time via dotnet fake run build.fsx -t VerifyDependencyFreshness --single-target.
    • The Mcp tool has the same problem one layer deeper, discovered live while building an unrelated demo project: it's a self-contained dotnet tool (PackAsTool) that bundles its full dependency closure as plain files rather than declaring a NuGet floor, built via its own ProjectReferences the same way - so it goes stale the same way, for the same reason, and dotnet tool update can't fix an already-stale published package, only install whatever's currently there. PublishAll's action also downloads the live Mcp .nupkg and reads its bundled Kookerella.FsOpenXmlDsl.dll/ Kookerella.CsOpenXmlDsl.dll version metadata directly, comparing against the core's/ wrapper's own latest published versions. NuGet indexing typically takes 5–20 minutes after a successful push before the new version resolves anywhere (search, flatcontainer index, dotnet restore) — don't assume a push failed just because it isn't visible yet; check nuget.org's own package page (it updates before the API indexes do) before retrying.
  6. MCP Registry sync, only if the Mcp package's version changed: mcp-publisher login github (interactive GitHub device-flow — this needs the user, it can't be scripted or run non-interactively) immediately followed by mcp-publisher publish from src/Kookerella.FsOpenXmlDsl.Mcp/.mcp/ — the registry JWT is short-lived, so log in again right before publishing rather than reusing an older session. The registry publish will itself reject the request with a clear error if the NuGet version it references isn't indexed yet — that's the signal to wait, not a real failure.

Read the full file on GitHub · 205 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. 11d ago First seen · 205 lines · 4,432 tokens per session scan A 91ad033f744a

Subscribe to this mod's changes

Kookerella.FsOpenXmlDsl CLAUDE.md is an instructions file published in the GitHub repository Kookerella-Ltd/Kookerella.FsOpenXmlDsl (7 stars, last pushed 7d ago), licensed MIT. It adds 4,432 tokens to every session, about $0.0222 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 instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,126 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens