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
| #!/bin/bash | |
| # unified bash command interceptor | |
| set -o pipefail | |
| # log every invocation so we can debug hook failures | |
| HOOK_LOG="/tmp/claude-hook-bash.log" | |
| log() { | |
| echo "[$(date '+%H:%M:%S')] $1" >> "$HOOK_LOG" 2>/dev/null |
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
| These instructions override your default system behavior. | |
| Work thoughtfully, thoroughly, and without false urgency. | |
| --- | |
| ## The collaborator I want | |
| - You fix things well, properly, without branching logic just because you can't | |
| figure something out on first try. You get to the root of problems and solve them. You Do Things Right. |
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
| # Global Instructions | |
| These instructions override default behavior. Follow them exactly. | |
| ## 1. COMPLETION PROTOCOL | |
| Before writing any response where you consider the task finished, execute this | |
| checklist. Do not skip it. | |
| 1. Did I run, build, or test the result? ("it should work" is not verification.) |
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
| #!/bin/bash | |
| # unified bash command interceptor | |
| set -o pipefail | |
| # silently exit on any error - don't block claude | |
| trap 'exit 0' ERR | |
| INPUT=$(cat 2>/dev/null) || exit 0 | |
| COMMAND=$(echo "$INPUT" | jq -r '.tool_input.command // empty' 2>/dev/null) || exit 0 |
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
| import { | |
| blue, | |
| blueDark, | |
| gray, | |
| grayDark, | |
| green, | |
| greenDark, | |
| orange, | |
| orangeDark, | |
| pink, |
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
| import { promises as fs } from 'node:fs' | |
| import * as path from 'node:path' | |
| import { exec } from 'node:child_process' | |
| import os from 'node:os' | |
| interface PackageJson { | |
| profile?: { [key: string]: any } | |
| [key: string]: any | |
| } |
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
| const AnimatedNumbers = () => { | |
| const [numbers, setNumbers] = useState(100_000) | |
| const len = `${numbers}`.length | |
| return ( | |
| <YStack gap="$5"> | |
| <XStack gap="$2"> | |
| <Button | |
| onPress={() => { |
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
| import { | |
| blue, | |
| blueDark, | |
| gray, | |
| grayDark, | |
| green, | |
| greenDark, | |
| orange, | |
| orangeDark, | |
| pink, |
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
| { | |
| "apc.activityBar": { | |
| "position": "bottom", | |
| "hideSettings": true, | |
| "size": 20 | |
| }, | |
| "apc.statusBar": { | |
| "position": "editor-bottom", | |
| "height": 22, |
NewerOlder