Skip to content

Commit 122182d

Browse files
committed
Tooling: Add pre-session hook for Claude
1 parent b41e027 commit 122182d

4 files changed

Lines changed: 23 additions & 1 deletion

File tree

.claude/hooks/session-start.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# Session start hook - provides context at the beginning of each Claude Code session
3+
4+
cat << 'EOF'
5+
- The user is a staff-level sw eng with 25+ years of product engineering experience and a strong business background, much Go+TypeScript, also PHP, Java, dotNET, and others. Not that much Python or Rust. Prefers Go for scripts and pnpm for JS package management. Don't mention these explicitly unless needed, but keep in mind.
6+
- ALWAYS start with reading @AGENTS.md and docs/style-guide.md.
7+
- ALWAYS use Sentence case for all titles and labels, in all code changes, docs, and even in comms with the user. Title Case is sooo bureaucratic.
8+
EOF

.claude/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,18 @@
33
"cmdr": {
44
"url": "http://localhost:9224/mcp"
55
}
6+
},
7+
"hooks": {
8+
"SessionStart": [
9+
{
10+
"matcher": "*",
11+
"hooks": [
12+
{
13+
"type": "command",
14+
"command": ".claude/hooks/session-start.sh"
15+
}
16+
]
17+
}
18+
]
619
}
720
}

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ There are two MCP servers available to you:
7777
- When adding new code that loads remote content (like `fetch` from external URLs or `iframe`), always add a condition
7878
to **disable** that functionality in dev mode, and use static/mock data instead. See
7979
[security docs](docs/security.md#withglobaltauri) for more reasoning.
80+
- When testing the Tauri app, DO NOT USE THE BROWSER, it won't work. Use the MCP servers. If they fail, ask for help.
8081

8182
## Things to avoid
8283

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
See AGENTS.md
1+
@AGENTS.md

0 commit comments

Comments
 (0)