chore: add PR access, typecheck stop hook and commit-msg hook
Rules in CLAUDE.md can be forgotten; hooks can't. Reads are now free, live changes still ask, and PRs go through the claude-bot account since gh doesn't work with Gitea.
This commit is contained in:
1 parent
7c2a37abdb
commit
098c1c93c2
6 files changed
+175
-4
No files matched your search
@@ -41,19 +41,30 @@ A stack's outputs must exist (i.e. it must have been deployed) before any downst
|
||||
|
||||
Branch names, commit messages and PR titles follow @CONVENTIONS.md. Don't add a co-author when committing to git.
|
||||
|
||||
The remote is a self-hosted Gitea, so `gh` doesn't work. For PRs and their CI status use `.claude/scripts/gitea.sh` (acts as `claude-bot`), e.g. `.claude/scripts/gitea.sh GET '/repos/kasun/homelab-infrastructure-as-code/pulls?state=open'`. Use it for PRs only, and ask before opening or merging one.
|
||||
|
||||
## Live infrastructure
|
||||
|
||||
- Don't change live systems (cluster, pfSense, Proxmox, VMs, my local kubeconfig) on your own initiative, even for small or reversible changes. Give me the exact steps and let me decide who runs them.
|
||||
- Code edits in the repo are fine without asking.
|
||||
- Never recreate VMs to apply a change. Write code for a clean fresh install, plus separate manual steps for the running cluster.
|
||||
|
||||
## Looking things up
|
||||
|
||||
- Reading is free: files in this repo, git history, read-only kubectl and pulumi commands.
|
||||
- Search targeted. If two or three searches don't find it, stop and ask me where it is instead of searching the whole filesystem.
|
||||
- Stay inside this repo unless I point you somewhere else.
|
||||
|
||||
## Verifying changes
|
||||
|
||||
After editing a stack, run `npm run typecheck` in that stack's directory, then `pulumi preview`, and show the output of both. A passing typecheck only proves the code compiles; the preview is what shows which resources would be created, updated or replaced.
|
||||
|
||||
Don't silence a check to make it pass (`@ts-ignore`, `as any`, `git commit --no-verify`) without a stated reason and my OK.
|
||||
|
||||
## Common commands (run from a stack directory)
|
||||
|
||||
```bash
|
||||
git config core.hooksPath .githooks # once per clone, from the repo root: enforces CONVENTIONS.md
|
||||
npm install
|
||||
npm run typecheck
|
||||
pulumi preview
|
||||
|
||||
Reference in new issue
Block a user