Skip to content

Instantly share code, notes, and snippets.

View bjornj12's full-sized avatar

Björn Ólafur Jóhannsson bjornj12

View GitHub Profile
@bjornj12
bjornj12 / sensitive-path-check.sh
Created May 4, 2026 21:24
Claude Code PreToolUse hook: blocks reads/writes of .env, ~/.aws, ~/.ssh, gcloud, k8s, terraform secrets.
#!/bin/bash
# SPDX-License-Identifier: MIT
#
# Claude Code PreToolUse hook: block read/write of secret-bearing files
# via Read, Edit, Write, MultiEdit, NotebookEdit, Glob, Grep, Bash, WebFetch.
#
# Hook contract:
# - Receives JSON on stdin: { "tool_name": ..., "tool_input": {...} }
# - Exit 0 = allow the tool call
# - Exit 2 = block the call (stderr is surfaced to Claude)
@bjornj12
bjornj12 / retrospective.md
Last active May 8, 2026 13:21
Retrospective Command - Claude

Retrospective Command - Claude Code

targets description
* Analyze completed implementation to identify AI tooling improvements

Analyze a completed implementation to identify improvements for AI tooling and workflows.

When to Use

@bjornj12
bjornj12 / anomaly_test.sql
Last active December 8, 2021 17:11
Avo Audit 1.0 example usage
select * from {{ ref('event_data') }}