docs: salvage F# agent and language guidance

This commit is contained in:
Affaan Mustafa
2026-05-11 21:34:30 -04:00
committed by Affaan Mustafa
parent a8836d7bbd
commit fd9453f6ee
22 changed files with 843 additions and 20 deletions

26
rules/fsharp/hooks.md Normal file
View File

@@ -0,0 +1,26 @@
---
paths:
- "**/*.fs"
- "**/*.fsx"
- "**/*.fsproj"
- "**/*.sln"
- "**/*.slnx"
- "**/Directory.Build.props"
- "**/Directory.Build.targets"
---
# F# Hooks
> This file extends [common/hooks.md](../common/hooks.md) with F#-specific content.
## PostToolUse Hooks
Configure in `~/.claude/settings.json`:
- **fantomas**: Auto-format edited F# files
- **dotnet build**: Verify the solution or project still compiles after edits
- **dotnet test --no-build**: Re-run the nearest relevant test project after behavior changes
## Stop Hooks
- Run a final `dotnet build` before ending a session with broad F# changes
- Warn on modified `appsettings*.json` files so secrets do not get committed