fsharp

F# functional-first programming on .NET. Use for .fs files.

7 stars

Best use case

fsharp is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

F# functional-first programming on .NET. Use for .fs files.

Teams using fsharp should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/fsharp/SKILL.md --create-dirs "https://raw.githubusercontent.com/G1Joshi/Agent-Skills/main/skills/languages/fsharp/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/fsharp/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How fsharp Compares

Feature / AgentfsharpStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

F# functional-first programming on .NET. Use for .fs files.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# F#

F# is the functional sibling of C# on .NET. v9.0 (2025) brings **Nullable Reference Types** integration and better performance for list comprehensions.

## When to Use

- **Financial Tech**: Correctness and domain modeling.
- **Data Processing**: Pipeline operator `|>` and immutability by default.
- **Interpro**: Seamlessly use any NuGet package.

## Core Concepts

### Discriminated Unions

`type Shape = Circle of float | Rect of float * float`.

### Pipe Operator

`data |> filter |> map`.

### Computation Expressions

`async { ... }`, `task { ... }`.

## Best Practices (2025)

**Do**:

- **Use Records**: Immutable data containers.
- **Use Pattern Matching**: `match x with ...`.
- **Use `SAFE Stack`**: For full-stack F# web apps (Saturn, Azure, Fable, Elmish).

**Don't**:

- **Don't mimic C#**: Avoid classes/inheritance unless interoperating.

## References

- [F# Guide](https://fsharp.org/)