chezmoi-source (чистая пересборка, не дамп 1.2 ГБ): - dot_claude: CLAUDE.md лин-роутер, AGENTS.md.tmpl (VPS вычищен), settings.json.tmpl (deny-щит 20 + security-guard hook), rules (structure + ECC 21 язык), 30 generic ECC-агентов, health-check - dot_codex: symlink-паритет; dot_agents: registry 13 скриптов HOME-генерик + методология docs - плагины: plugins.manifest + bootstrap Слой 1b (marketplace+install) - launchd: health.plist (PATH-фикс 127) + session-reaper.example - smoke++: secret-токен guard + канон-проверки (зелёный) - 0 hard личных данных; cut личного (kb/references/gsd/owner) → Ф4
26 lines
715 B
Markdown
26 lines
715 B
Markdown
---
|
|
paths:
|
|
- "**/*.cs"
|
|
- "**/*.csx"
|
|
- "**/*.csproj"
|
|
- "**/*.sln"
|
|
- "**/Directory.Build.props"
|
|
- "**/Directory.Build.targets"
|
|
---
|
|
# C# Hooks
|
|
|
|
> This file extends [common/hooks.md](../common/hooks.md) with C#-specific content.
|
|
|
|
## PostToolUse Hooks
|
|
|
|
Configure in `~/.claude/settings.json`:
|
|
|
|
- **dotnet format**: Auto-format edited C# files and apply analyzer fixes
|
|
- **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 C# changes
|
|
- Warn on modified `appsettings*.json` files so secrets do not get committed
|