fsharp

fsharp is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 145 tokens per session (1,792 once invoked), scanned A, original, MIT.

A language and project guide for F#, a functional programming language in the .NET ecosystem. It covers F# source files, project setup, typed data models, pattern matching, asynchronous workflows, and C# interoperability.

In plain words
What is it for?
Use it to create or modernize F# projects, model domain data, write functional logic, and connect F# code with other .NET code.
Why use it?
It helps keep F# code and project structure consistent when adding features or working alongside C# libraries. It also addresses F# build ordering and validation.

Skill for Claude CodeCodex

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

Good fit Use it to create or modernize F# projects, model domain data, write functional logic, and connect F# code with other .NET code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/fsharp"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/fsharp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,792 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.00145 $0.01792
Opus 5.5 $0.00058 $0.00717
Sonnet 5.5 $0.00029 $0.00358
Haiku 4.5 $0.00015 $0.00179

Measured 2mo ago against content hash fac8845c2894, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fsharp 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 2mo 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.

catalog/Tools/FSharp/skills/fsharp/SKILL.md · 210 lines

How it starts

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

F# for .NET

Trigger On

  • the task touches .fs, .fsx, .fsi, or .fsproj files
  • domain logic benefits from records, discriminated unions, options, results, or exhaustive pattern matching
  • generated code needs a strongly typed functional model instead of nullable primitive state
  • F# code must interoperate with C# or other .NET libraries
  • the repository needs project setup, source ordering, or validation for F# code

Do Not Use For

  • C# language feature selection; use modern-csharp
  • analyzer-only, formatter-only, or CI-only work with no F# language decisions
  • one-off REPL or scripting exploration that does not affect project code; use fsi
  • non-.NET functional languages

Project Setup

Use the .NET SDK templates when adding F# projects.

dotnet new classlib -lang "F#" -o src/Domain
dotnet new console -lang "F#" -o src/App
dotnet new xunit -lang "F#" -o tests/Domain.Tests
dotnet sln add src/Domain/Domain.fsproj tests/Domain.Tests/Domain.Tests.fsproj
dotnet add tests/Domain.Tests/Domain.Tests.fsproj reference src/Domain/Domain.fsproj
dotnet build

FSharp.Core is normally supplied by the F# SDK project. Add or pin it explicitly only when the repo has a package policy that requires deterministic package versions.

dotnet add src/Domain/Domain.fsproj package FSharp.Core

Source Ordering

F# compiles files in the order listed in the project file. Define types and modules before files that consume them.

<ItemGroup>
  <Compile Include="Domain.fs" />
  <Compile Include="Validation.fs" />
  <Compile Include="Program.fs" />
</ItemGroup>

When adding a file, update the .fsproj intentionally. Do not assume wildcard ordering.

Workflow

  1. Inspect the existing .fsproj, .fs, .fsi, and .fsx files to determine compile order, public boundaries, and whether the code is F#-first or C#-facing.
  2. Choose the smallest F# model that represents the invariant: records for named product data, discriminated unions for closed state, option for absence, and Result for expected failures.
  3. Add or edit source files in dependency order, then update the .fsproj compile list before consumers reference the new code.
  4. Review public API shape for .NET interop. Translate F#-specific internal models to DTOs, methods, or Try* patterns when C# callers need a stable surface.
  5. Run dotnet build, targeted tests, and any relevant dotnet fsi probes before returning the final result.

Read the full file on GitHub · 210 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 210 lines · 145 tokens per session scan A fac8845c2894

Subscribe to this mod's changes

fsharp is a skill published in the GitHub repository managedcode/dotnet-skills (527 stars, last pushed 16d ago), licensed MIT. It adds 145 tokens to every session and 1,792 once invoked, about $0.0006 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-09-03.

Related

fsharp compared with skills from other repositories

fsharp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fsharpmanagedcode/dotnet-skillsSkill52716d agoMITA145Claude Code, Codex
clean-architecture-dotnetSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A50Claude Code, Codex
creating-dotnet-mcp-serversSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A43Claude Code, Codex
jackson-3-migrationnavikt/copilotSkill65yesterdayMITA53Claude Code, Codex
java-to-kotlinnavikt/copilotSkill65yesterdayMITA35Claude Code, Codex
rust-developmentnavikt/copilotSkill65yesterdayMITA27Claude Code, Codex
spring-boot-scaffoldnavikt/copilotSkill65yesterdayMITA32Claude Code, Codex