chore: .claude hooks (pretooluse_bash, posttooluse_writeedit, sessionstart) + settings.local.json.example#37
Merged
Merged
Conversation
…start) + settings.local.json.example (#15) Port the three .claude/hooks/*.py scripts and settings.local.json.example verbatim from Teller. Drop .svelte from PRETTIER_EXTENSIONS and add .jsx (template uses React, not Svelte). Strip Teller-specific PR references in comments. Run ruff format on the result. .claude/bash-log.txt and .claude/settings.local.json are already in .gitignore from #5. Closes #15 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.claude/hooks/scripts from Teller verbatim:pretooluse_bash.py— blocksgit --no-verify|--no-hooks|--no-gpg-sign, scans the staged diff ongit commitfor AWS/sk-*/ghp_/PEM/Slack secrets, audits every Bash invocation to.claude/bash-log.txt.posttooluse_writeedit.py— formatter dispatch: ruff for.py, prettier for.ts/.tsx/.js/.jsx/.json/.css/.html/.md. Swap.svelte→.jsx(template is React).sessionstart.py— emits# Repository context(current branch +git status --short) asadditionalContextso the agent gets the same orientation a human gets from opening the terminal..claude/settings.local.json.examplewiring all three underPreToolUse:Bash,PostToolUse:Write|Edit, andSessionStart:startup|resume.Closes #15.
Test plan
ruff check .claude/hooks/→ All checks passedruff format --check .claude/hooks/→ 3 files formattedmypy --strict .claude/hooks/→ no issues in 3 source files.claude/settings.local.jsonand.claude/bash-log.txtare gitignored (from chore: .gitignore, .editorconfig, .dockerignore #5)--no-verifyblocked;.pyEdit triggers ruff format) — runtime-verified in test: end-to-end smoke (docker compose up, sample PR runs every gate green, eval workflow_dispatch) #27 e2e.🤖 Generated with Claude Code