chore: bootstrap Claude setup

Add .claude/settings.json hooks (typecheck on edited .ts files, guard
on package-lock.json edits, Stop runs typecheck + test), CI workflow
(typecheck + test on PRs/pushes to development/main), and a version
bump workflow keyed off package.json. Restructure CLAUDE.md to match
the standard section order (Overview, Commands, Architecture,
Conventions, Workflow quirks, Deployment, Gotchas); docs/, LESSONS.md
and .env.example were already present and in sync.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5 committed 2026-10-18 15:05:18 +02:00
1 parent 722ea15f36
commit bba3fee23a
5 files changed
+139 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
2
+36
View File
@@ -0,0 +1,36 @@
{
"hooks": {
"PreToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "f=$(jq -r '.tool_input.file_path // empty'); case \"$f\" in *package-lock.json) echo 'package-lock.json is managed by npm; run npm install instead of editing it directly' >&2; exit 2 ;; esac"
}
]
}
],
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "f=$(jq -r '.tool_input.file_path // empty'); case \"$f\" in *.ts) cd \"$CLAUDE_PROJECT_DIR\" && npm run typecheck --silent >&2 || exit 2 ;; esac"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "cd \"$CLAUDE_PROJECT_DIR\" && { npm run typecheck --silent && npm test; } >&2 || exit 2"
}
]
}
]
}
}