coding-style

coding-style is a command for Claude Code from jovaneyck/fsi-mcp-server. It costs 0 tokens per session (1,343 once invoked), scanned A, original, MIT.

A set of F# coding conventions derived from an existing Advent of Code codebase. It recommends pipe-based data flow, descriptive names, clear function definitions, and pattern matching.

In plain words
What is it for?
Use it while writing or reviewing F# code that should follow the project’s naming, indentation, pipeline, and control-flow preferences.
Why use it?
It helps new code fit the style already used in the project, making it easier to read and maintain.

Command for Claude Code

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.

agentmods
npx agentmods add commands/jovaneyck/fsi-mcp-server/coding-style
Clone the repo
git clone --depth 1 https://github.com/jovaneyck/fsi-mcp-server

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 coding-style

README.md
[![agentmods](https://agentmods.dev/badge/commands/jovaneyck/fsi-mcp-server/coding-style.svg)](https://agentmods.dev/commands/jovaneyck/fsi-mcp-server/coding-style)
Your own site
<a href="https://agentmods.dev/commands/jovaneyck/fsi-mcp-server/coding-style"><img src="https://agentmods.dev/badge/commands/jovaneyck/fsi-mcp-server/coding-style.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01343
Opus 5 $0.00000 $0.00672
Sonnet 5 $0.00000 $0.00269
Haiku 4.5 $0.00000 $0.00134

Measured 4d ago against content hash 43c1c2b8aa78, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coding-style 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 4d 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/commands/coding-style.md · 125 lines

How it starts

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

F# Coding Style Preferences

Based on analysis of existing codebase (/mnt/c/projects/advent-of-code-2024), follow these consistent coding patterns:

1. Pipe Operators and Data Flow

  • Heavy preference for pipe operators (|>) over nested parentheses
  • Multi-line pipe chains with aligned operators
  • Example:
    // Preferred pipeline style
    input
    |> List.map parseRule
    |> List.filter isValid
    |> List.collect expand
    |> Set.ofList
    
    // Use parentheses only for: function calls with multiple args, complex expressions, tuples
    abs (x - y)
    (r1,c1),(r2,c2)
    

2. Naming Conventions

  • Descriptive names: validUpdates, robotLocation, firstNonBoxLoc
  • Short names for common patterns: r, c for row/column, h, t for head/tail
  • camelCase throughout: maxRow, inBounds
  • Plural forms for collections: rules, updates, obstacles

3. Function Definitions

  • Simple let bindings: let coord (r,c) = 100*r+c
  • Pattern matching with function keyword:
    let parseCommand =
        function
        | '^' -> U | '>' -> R
        | 'v' -> D | '<' -> L
    
  • Multi-line definitions with clear indentation

4. Pattern Matching (Preferred over conditionals)

  • List patterns: | [] -> base | h :: t -> process h t
  • Tuple destructuring: | (r1,c1),(r2,c2) when r1 = r2 ->
  • Discriminated union patterns
  • failwith for unexpected cases: | unknown -> failwith $"unknown %A{unknown}"

5. Collection Processing - PURE FUNCTIONAL STYLE

  • NEVER use for loops - use collection functions instead
  • Higher-order functions: List.map, List.filter, List.collect, List.fold, List.mapi, List.choose
  • Pipeline transformations: Chain operations with |>
  • Immutable data structures: List, Set, Map, Array (but prefer List)
  • Functional patterns:
    • Use List.fold for accumulation instead of mutable counters
    • Use List.filter instead of conditional accumulation
    • Use List.choose for map filter combinations
    • Use List.mapi when you need index access

Read the full file on GitHub · 125 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. 4d ago First seen · 125 lines · 0 tokens per session scan A 43c1c2b8aa78

Subscribe to this mod's changes

coding-style is a command published in the GitHub repository jovaneyck/fsi-mcp-server (38 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,343 tokens. 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.