Install command
Provided
Prevents direct edits to protected branches like main or master, enforcing PR-based workflows.
Open the source and read safety notes before installing.
Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.
Decision playbook
Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.
0
78
—
No baseline selected
No major trust-signal divergence detected in the current selection.
Confirm ownership and provenance before trusting install instructions.
Source link availableRequired
Open the canonical repository and verify ownership.
Source provenance statusRequired
Marked as source-backed.
Metadata reviewed
Registry metadata indicates a reviewed listing.
Validate risk disclosures before installation or API wiring.
Safety notes presentRequired
Review the listed safety guidance before running commands.
Privacy notes presentRequired
Review data handling notes before connecting accounts or secrets.
Trust level risk gateRequired
Trust level does not block evaluation.
Check package metadata and artifact integrity signals.
Install payload available
Install or copy payload is available for review.
Package verification flag
No package verification flag provided.
Checksum metadata
No checksum provided for downloaded artifact.
Use compare context to validate trade-offs before adoption.
Compare tray has multiple entries
Add at least one more entry to compare trust differences.
Baseline comparison available
No baseline peer selected yet.
Diverging trust signals identified
No major trust-signal divergence found.
Setup at a glance
Copy-ready — paste the snippet to get started.
Install command
Provided
Config snippet
Provided
Copy snippet
Provided
Prerequisites
None
Platforms
1 listed
Difficulty
0/100
Adoption plan
Current risk score 16/100. Use staged verification before broader rollout.
Validate source and review signals before any execution.
Confirm source provenanceRequired
Source URL/provenance metadata is present.
Confirm metadata review state
Listing has review metadata.
Verify install payload
Install/config payload exists and can be inspected.
Confirm safety, privacy, and package integrity signals.
Review safety notesRequired
Safety notes are present.
Review privacy notesRequired
Privacy notes are present.
Verify package integrity metadata
No package verification/checksum metadata.
Adopt in controlled steps based on the selected plan.
Run in isolated sandbox firstRequired
Use a constrained sandbox and observe behavior across multiple tasks.
Roll out graduallyRequired
Roll out to a small cohort before wider usage.
Set monitoring and fallback
Define rollback path and monitor errors after adoption.
Evidence readiness
Required evidence gates are covered (5/6 signals complete).
Source repository/provenance is listed.
Required in this preset
Review metadata is present.
Required in this preset
Safety notes are present.
Required in this preset
Privacy notes are present.
Optional in this preset
Package integrity metadata is missing.
Optional in this preset
Install payload is available.
Required in this preset
Required evidence gates are covered for this preset.
Decision timeline
5/6 steps complete with no blocking gaps for this preset.
triage
Source/provenance metadata is available.
triage
Review metadata is available.
verify
Safety notes are available.
verify
Privacy notes are available.
verify
Package integrity metadata is missing.
rollout
Install payload is available.
No required blockers for this timeline preset.
Safety & privacy surface
1 safety and 1 privacy notes across 2 risk areas. Review closely: credentials & tokens, permissions & scopes.
#!/usr/bin/env bash
# Read the tool input from stdin
INPUT=$(cat)
TOOL_NAME=$(echo "$INPUT" | jq -r '.tool_name')
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""')
# Check if we're in a git repository
if ! git rev-parse --git-dir > /dev/null 2>&1; then
# Not in a git repo, allow the operation
exit 0
fi
# Get current branch
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
if [ -z "$CURRENT_BRANCH" ]; then
# Can't determine branch, allow operation with warning
echo "⚠️ Warning: Unable to determine current Git branch" >&2
exit 0
fi
echo "🔍 Checking branch protection for: $CURRENT_BRANCH" >&2
# Define protected branches (can be customized via environment variables)
PROTECTED_BRANCHES=()
# Default protected branches
DEFAULT_PROTECTED=("main" "master" "production" "prod" "release" "staging" "develop")
# Add custom protected branches from environment variable
if [ -n "$PROTECTED_BRANCHES_LIST" ]; then
IFS=',' read -ra CUSTOM_PROTECTED <<< "$PROTECTED_BRANCHES_LIST"
PROTECTED_BRANCHES+=("${CUSTOM_PROTECTED[@]}")
else
PROTECTED_BRANCHES+=("${DEFAULT_PROTECTED[@]}")
fi
# Check if current branch is protected
IS_PROTECTED=false
for protected_branch in "${PROTECTED_BRANCHES[@]}"; do
if [[ "$CURRENT_BRANCH" == "$protected_branch" ]]; then
IS_PROTECTED=true
break
fi
done
# Check for pattern-based protection (e.g., release/* branches)
PROTECTED_PATTERNS=("release/*" "hotfix/*" "support/*")
if [ -n "$PROTECTED_PATTERNS_LIST" ]; then
IFS=',' read -ra CUSTOM_PATTERNS <<< "$PROTECTED_PATTERNS_LIST"
PROTECTED_PATTERNS+=("${CUSTOM_PATTERNS[@]}")
fi
for pattern in "${PROTECTED_PATTERNS[@]}"; do
if [[ "$CURRENT_BRANCH" == $pattern ]]; then
IS_PROTECTED=true
break
fi
done
# Allow override in emergency situations
if [ "$FORCE_ALLOW_PROTECTED_EDIT" = "true" ]; then
echo "⚠️ EMERGENCY OVERRIDE: Allowing edit on protected branch $CURRENT_BRANCH" >&2
echo "💡 Remove FORCE_ALLOW_PROTECTED_EDIT=true when done" >&2
exit 0
fi
# If branch is protected, prevent the operation
if [ "$IS_PROTECTED" = true ]; then
echo "" >&2
echo "🚫 BRANCH PROTECTION VIOLATION" >&2
echo "=====================================" >&2
echo "❌ Direct edits to '$CURRENT_BRANCH' branch are not allowed" >&2
echo "" >&2
echo "🔒 Protected branches: ${PROTECTED_BRANCHES[*]}" >&2
echo "🔒 Protected patterns: ${PROTECTED_PATTERNS[*]}" >&2
echo "" >&2
echo "✅ Recommended workflow:" >&2
echo " 1. Create a feature branch:" >&2
echo " git checkout -b feature/your-feature-name" >&2
echo "" >&2
echo " 2. Make your changes on the feature branch" >&2
echo "" >&2
echo " 3. Push and create a Pull Request:" >&2
echo " git push -u origin feature/your-feature-name" >&2
echo "" >&2
# Suggest specific branch names based on the file being edited
if [ -n "$FILE_PATH" ]; then
BASE_NAME=$(basename "$FILE_PATH" | cut -d. -f1)
SUGGESTED_BRANCH="feature/update-${BASE_NAME}"
echo "💡 Suggested branch name: $SUGGESTED_BRANCH" >&2
echo " Quick command: git checkout -b $SUGGESTED_BRANCH" >&2
echo "" >&2
fi
# Show current branch status
echo "📊 Current repository status:" >&2
echo " Current branch: $CURRENT_BRANCH" >&2
# Show available branches
AVAILABLE_BRANCHES=$(git branch | grep -v "\*" | head -5 | xargs)
if [ -n "$AVAILABLE_BRANCHES" ]; then
echo " Available branches: $AVAILABLE_BRANCHES" >&2
fi
# Check if there are uncommitted changes
if [ -n "$(git status --porcelain 2>/dev/null)" ]; then
echo " ⚠️ You have uncommitted changes" >&2
echo " 💡 Consider: git stash (to save changes temporarily)" >&2
fi
echo "" >&2
echo "🆘 Emergency override (use with caution):" >&2
echo " FORCE_ALLOW_PROTECTED_EDIT=true [your command]" >&2
echo "" >&2
echo "📚 Branch protection helps maintain:" >&2
echo " • Code quality through peer review" >&2
echo " • Stable main/master branches" >&2
echo " • Proper CI/CD pipeline execution" >&2
echo " • Team collaboration standards" >&2
echo "" >&2
# Exit with error to prevent the tool from running
exit 1
fi
# Branch is not protected, show informational message
echo "✅ Branch '$CURRENT_BRANCH' is not protected - operation allowed" >&2
# Show branch protection tips for unprotected branches
if [[ "$CURRENT_BRANCH" == feature/* ]] || [[ "$CURRENT_BRANCH" == bugfix/* ]] || [[ "$CURRENT_BRANCH" == hotfix/* ]]; then
echo "💡 Working on feature branch - remember to create a PR when ready" >&2
fi
# Check if branch is ahead/behind remote
if git rev-parse --verify "origin/$CURRENT_BRANCH" > /dev/null 2>&1; then
AHEAD=$(git rev-list --count "origin/$CURRENT_BRANCH"..HEAD 2>/dev/null || echo "0")
BEHIND=$(git rev-list --count HEAD.."origin/$CURRENT_BRANCH" 2>/dev/null || echo "0")
if [ "$AHEAD" -gt 0 ]; then
echo "📤 Branch is $AHEAD commits ahead of origin" >&2
fi
if [ "$BEHIND" -gt 0 ]; then
echo "📥 Branch is $BEHIND commits behind origin - consider pulling" >&2
fi
fi
# All checks passed, allow the operation
exit 0{
"hooks": {
"preToolUse": {
"script": "./.claude/hooks/git-branch-protection.sh",
"matchers": [
"edit",
"write",
"multiEdit"
]
}
}
}.claude/settings.local.json~/.claude/settings.json.claude/settings.json{
"hooks": {
"preToolUse": {
"script": "./.claude/hooks/git-branch-protection.sh",
"matchers": ["edit", "write", "multiEdit"]
}
}
}
#!/usr/bin/env bash
# Read the tool input from stdin
INPUT=$(cat)
TOOL_NAME=$(echo "$INPUT" | jq -r '.tool_name')
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""')
# Check if we're in a git repository
if ! git rev-parse --git-dir > /dev/null 2>&1; then
# Not in a git repo, allow the operation
exit 0
fi
# Get current branch
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
if [ -z "$CURRENT_BRANCH" ]; then
# Can't determine branch, allow operation with warning
echo "⚠️ Warning: Unable to determine current Git branch" >&2
exit 0
fi
echo "🔍 Checking branch protection for: $CURRENT_BRANCH" >&2
# Define protected branches (can be customized via environment variables)
PROTECTED_BRANCHES=()
# Default protected branches
DEFAULT_PROTECTED=("main" "master" "production" "prod" "release" "staging" "develop")
# Add custom protected branches from environment variable
if [ -n "$PROTECTED_BRANCHES_LIST" ]; then
IFS=',' read -ra CUSTOM_PROTECTED <<< "$PROTECTED_BRANCHES_LIST"
PROTECTED_BRANCHES+=("${CUSTOM_PROTECTED[@]}")
else
PROTECTED_BRANCHES+=("${DEFAULT_PROTECTED[@]}")
fi
# Check if current branch is protected
IS_PROTECTED=false
for protected_branch in "${PROTECTED_BRANCHES[@]}"; do
if [[ "$CURRENT_BRANCH" == "$protected_branch" ]]; then
IS_PROTECTED=true
break
fi
done
# Check for pattern-based protection (e.g., release/* branches)
PROTECTED_PATTERNS=("release/*" "hotfix/*" "support/*")
if [ -n "$PROTECTED_PATTERNS_LIST" ]; then
IFS=',' read -ra CUSTOM_PATTERNS <<< "$PROTECTED_PATTERNS_LIST"
PROTECTED_PATTERNS+=("${CUSTOM_PATTERNS[@]}")
fi
for pattern in "${PROTECTED_PATTERNS[@]}"; do
if [[ "$CURRENT_BRANCH" == $pattern ]]; then
IS_PROTECTED=true
break
fi
done
# Allow override in emergency situations
if [ "$FORCE_ALLOW_PROTECTED_EDIT" = "true" ]; then
echo "⚠️ EMERGENCY OVERRIDE: Allowing edit on protected branch $CURRENT_BRANCH" >&2
echo "💡 Remove FORCE_ALLOW_PROTECTED_EDIT=true when done" >&2
exit 0
fi
# If branch is protected, prevent the operation
if [ "$IS_PROTECTED" = true ]; then
echo "" >&2
echo "🚫 BRANCH PROTECTION VIOLATION" >&2
echo "=====================================" >&2
echo "❌ Direct edits to '$CURRENT_BRANCH' branch are not allowed" >&2
echo "" >&2
echo "🔒 Protected branches: ${PROTECTED_BRANCHES[*]}" >&2
echo "🔒 Protected patterns: ${PROTECTED_PATTERNS[*]}" >&2
echo "" >&2
echo "✅ Recommended workflow:" >&2
echo " 1. Create a feature branch:" >&2
echo " git checkout -b feature/your-feature-name" >&2
echo "" >&2
echo " 2. Make your changes on the feature branch" >&2
echo "" >&2
echo " 3. Push and create a Pull Request:" >&2
echo " git push -u origin feature/your-feature-name" >&2
echo "" >&2
# Suggest specific branch names based on the file being edited
if [ -n "$FILE_PATH" ]; then
BASE_NAME=$(basename "$FILE_PATH" | cut -d. -f1)
SUGGESTED_BRANCH="feature/update-${BASE_NAME}"
echo "💡 Suggested branch name: $SUGGESTED_BRANCH" >&2
echo " Quick command: git checkout -b $SUGGESTED_BRANCH" >&2
echo "" >&2
fi
# Show current branch status
echo "📊 Current repository status:" >&2
echo " Current branch: $CURRENT_BRANCH" >&2
# Show available branches
AVAILABLE_BRANCHES=$(git branch | grep -v "\*" | head -5 | xargs)
if [ -n "$AVAILABLE_BRANCHES" ]; then
echo " Available branches: $AVAILABLE_BRANCHES" >&2
fi
# Check if there are uncommitted changes
if [ -n "$(git status --porcelain 2>/dev/null)" ]; then
echo " ⚠️ You have uncommitted changes" >&2
echo " 💡 Consider: git stash (to save changes temporarily)" >&2
fi
echo "" >&2
echo "🆘 Emergency override (use with caution):" >&2
echo " FORCE_ALLOW_PROTECTED_EDIT=true [your command]" >&2
echo "" >&2
echo "📚 Branch protection helps maintain:" >&2
echo " • Code quality through peer review" >&2
echo " • Stable main/master branches" >&2
echo " • Proper CI/CD pipeline execution" >&2
echo " • Team collaboration standards" >&2
echo "" >&2
# Exit with error to prevent the tool from running
exit 1
fi
# Branch is not protected, show informational message
echo "✅ Branch '$CURRENT_BRANCH' is not protected - operation allowed" >&2
# Show branch protection tips for unprotected branches
if [[ "$CURRENT_BRANCH" == feature/* ]] || [[ "$CURRENT_BRANCH" == bugfix/* ]] || [[ "$CURRENT_BRANCH" == hotfix/* ]]; then
echo "💡 Working on feature branch - remember to create a PR when ready" >&2
fi
# Check if branch is ahead/behind remote
if git rev-parse --verify "origin/$CURRENT_BRANCH" > /dev/null 2>&1; then
AHEAD=$(git rev-list --count "origin/$CURRENT_BRANCH"..HEAD 2>/dev/null || echo "0")
BEHIND=$(git rev-list --count HEAD.."origin/$CURRENT_BRANCH" 2>/dev/null || echo "0")
if [ "$AHEAD" -gt 0 ]; then
echo "📤 Branch is $AHEAD commits ahead of origin" >&2
fi
if [ "$BEHIND" -gt 0 ]; then
echo "📥 Branch is $BEHIND commits behind origin - consider pulling" >&2
fi
fi
# All checks passed, allow the operation
exit 0
Complete hook script that prevents direct edits to protected branches
#!/usr/bin/env bash
INPUT=$(cat)
TOOL_NAME=$(echo "$INPUT" | jq -r '.tool_name')
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""')
if ! git rev-parse --git-dir > /dev/null 2>&1; then
exit 0
fi
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
if [ -z "$CURRENT_BRANCH" ]; then
exit 0
fi
PROTECTED_BRANCHES=("main" "master" "production" "prod" "release" "staging" "develop")
IS_PROTECTED=false
for protected_branch in "${PROTECTED_BRANCHES[@]}"; do
if [[ "$CURRENT_BRANCH" == "$protected_branch" ]]; then
IS_PROTECTED=true
break
fi
done
if [ "$FORCE_ALLOW_PROTECTED_EDIT" = "true" ]; then
echo "⚠️ EMERGENCY OVERRIDE: Allowing edit on protected branch $CURRENT_BRANCH" >&2
exit 0
fi
if [ "$IS_PROTECTED" = true ]; then
echo "🚫 BRANCH PROTECTION VIOLATION" >&2
echo "❌ Direct edits to '$CURRENT_BRANCH' branch are not allowed" >&2
echo "✅ Recommended workflow:" >&2
echo " 1. Create a feature branch: git checkout -b feature/your-feature-name" >&2
echo " 2. Make your changes on the feature branch" >&2
echo " 3. Push and create a Pull Request" >&2
exit 1
fi
exit 0
Complete hook configuration for .claude/settings.json to enable branch protection
{
"hooks": {
"preToolUse": {
"script": "./.claude/hooks/git-branch-protection.sh",
"matchers": ["edit", "write", "multiEdit"]
}
}
}
Enhanced hook script for configurable protected branches and pattern matching
#!/usr/bin/env bash
INPUT=$(cat)
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
PROTECTED_BRANCHES=()
DEFAULT_PROTECTED=("main" "master" "production" "prod" "release" "staging" "develop")
if [ -n "$PROTECTED_BRANCHES_LIST" ]; then
IFS=',' read -ra CUSTOM_PROTECTED <<< "$PROTECTED_BRANCHES_LIST"
PROTECTED_BRANCHES+=("${CUSTOM_PROTECTED[@]}")
else
PROTECTED_BRANCHES+=("${DEFAULT_PROTECTED[@]}")
fi
PROTECTED_PATTERNS=("release/*" "hotfix/*" "support/*")
if [ -n "$PROTECTED_PATTERNS_LIST" ]; then
IFS=',' read -ra CUSTOM_PATTERNS <<< "$PROTECTED_PATTERNS_LIST"
PROTECTED_PATTERNS+=("${CUSTOM_PATTERNS[@]}")
fi
IS_PROTECTED=false
for protected_branch in "${PROTECTED_BRANCHES[@]}"; do
if [[ "$CURRENT_BRANCH" == "$protected_branch" ]]; then
IS_PROTECTED=true
break
fi
done
for pattern in "${PROTECTED_PATTERNS[@]}"; do
if [[ "$CURRENT_BRANCH" == $pattern ]]; then
IS_PROTECTED=true
break
fi
done
if [ "$IS_PROTECTED" = true ] && [ "$FORCE_ALLOW_PROTECTED_EDIT" != "true" ]; then
echo "🚫 BRANCH PROTECTION: Direct edits to '$CURRENT_BRANCH' are not allowed" >&2
exit 1
fi
exit 0
Enhanced hook script for feature branch name suggestions based on file names
#!/usr/bin/env bash
INPUT=$(cat)
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""')
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
PROTECTED_BRANCHES=("main" "master" "production")
IS_PROTECTED=false
for protected_branch in "${PROTECTED_BRANCHES[@]}"; do
if [[ "$CURRENT_BRANCH" == "$protected_branch" ]]; then
IS_PROTECTED=true
break
fi
done
if [ "$IS_PROTECTED" = true ] && [ "$FORCE_ALLOW_PROTECTED_EDIT" != "true" ]; then
if [ -n "$FILE_PATH" ]; then
BASE_NAME=$(basename "$FILE_PATH" | cut -d. -f1)
SUGGESTED_BRANCH=$(echo "$BASE_NAME" | tr ' /' '-' | tr -cd 'a-zA-Z0-9-')
echo "💡 Suggested branch name: feature/update-$SUGGESTED_BRANCH" >&2
echo " Quick command: git checkout -b feature/update-$SUGGESTED_BRANCH" >&2
fi
exit 1
fi
exit 0
Enhanced hook script for branch status information and detached HEAD state handling
#!/usr/bin/env bash
INPUT=$(cat)
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
if [ "$CURRENT_BRANCH" = "HEAD" ]; then
echo "⚠️ Detached HEAD state detected - allowing operation" >&2
exit 0
fi
PROTECTED_BRANCHES=("main" "master" "production")
IS_PROTECTED=false
for protected_branch in "${PROTECTED_BRANCHES[@]}"; do
if [[ "$CURRENT_BRANCH" == "$protected_branch" ]]; then
IS_PROTECTED=true
break
fi
done
if [ "$IS_PROTECTED" = true ] && [ "$FORCE_ALLOW_PROTECTED_EDIT" != "true" ]; then
if [ -n "$(git status --porcelain 2>/dev/null)" ]; then
echo "⚠️ You have uncommitted changes" >&2
echo "💡 Consider: git stash (to save changes temporarily)" >&2
fi
AHEAD=$(git rev-list --count "origin/$CURRENT_BRANCH"..HEAD 2>/dev/null || echo "0")
BEHIND=$(git rev-list --count HEAD.."origin/$CURRENT_BRANCH" 2>/dev/null || echo "0")
if [ "$AHEAD" -gt 0 ]; then
echo "📤 Branch is $AHEAD commits ahead of origin" >&2
fi
if [ "$BEHIND" -gt 0 ]; then
echo "📥 Branch is $BEHIND commits behind origin - consider pulling" >&2
fi
exit 1
fi
exit 0
Environment variable not exported to hook subprocess. Use: 'export FORCE_ALLOW_PROTECTED_EDIT=true' before command. Or add to .bashrc/.zshrc for session-wide availability. Verify: 'env | grep FORCE_ALLOW_PROTECTED_EDIT'. Check environment variable is set in correct shell context.
Bash pattern requires proper glob: use 'case "$CURRENT_BRANCH" in release/*) IS_PROTECTED=true;;' instead of [[ match. Or use regex: '[[ "$CURRENT_BRANCH" =~ ^release/ ]]'. Verify pattern syntax matches bash glob patterns. Test pattern matching with sample branch names.
CSV parsing expects exact format. Ensure no spaces: 'main,staging,prod' not 'main, staging, prod'. Or handle: 'IFS=',' read -ra CUSTOM | tr -d ' '' stripping whitespace. Verify environment variable is exported. Check CSV format matches expected pattern.
git rev-parse --abbrev-ref returns 'HEAD' when detached. Add check: 'if [ "$CURRENT_BRANCH" = "HEAD" ]; then echo "Detached HEAD allowed"; exit 0; fi' before protection logic. Verify detached HEAD state handling. Consider allowing operations in detached HEAD state or requiring branch checkout.
Filename with spaces/slashes creates invalid branch names. Sanitize: 'SUGGESTED=$(echo "$BASE_NAME" | tr ' /' '-' | tr -cd 'a-zA-Z0-9-')' removing unsafe characters before suggestion. Verify branch name sanitization. Test with various file names containing special characters.
Hook checks current directory Git repository. Verify you're in the correct repository root. Check for nested Git repositories: 'find . -name .git -type d'. Use git rev-parse --show-toplevel to get repository root. Consider adding repository root detection.
Bash glob patterns have limitations. Use case statements for complex patterns: 'case "$CURRENT_BRANCH" in release/v*) IS_PROTECTED=true;; esac'. Or use regex matching: '[[ "$CURRENT_BRANCH" =~ ^release/v[0-9]+ ]]'. Test pattern matching with actual branch names. Consider using extended glob patterns: 'shopt -s extglob'.
CI/CD environments may not have environment variables available. Use Git config for override: 'git config hooks.allow-protected-edit true'. Or use file-based override: 'touch .claude/allow-protected-edit'. Verify CI/CD environment variable availability. Check hook execution context in CI/CD pipelines.
Git Branch Protection - Hooks side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | Prevents direct edits to protected branches like main or master, enforcing PR-based workflows. Open dossier | Automatically creates timestamped backups of files before modification to prevent data loss. This hook runs before file editing operations (Edit, Write, Multiedit) and creates versioned backups in a centralized .backups directory with ISO 8601-compliant timestamps including nanoseconds for collision prevention. Open dossier | A Stop hook that syncs your changed files to cloud storage when a Claude Code session ends, using rclone to push to S3, Google Cloud Storage, or any of its 70+ supported backends. Open dossier | Automated accessibility testing and compliance checking for web applications following WCAG 2.1 and WCAG 2.2 guidelines. This hook automatically runs accessibility scans on HTML files after they are written or edited, using axe-core for comprehensive WCAG compliance testing. Open dossier |
|---|---|---|---|---|
| Next steps | ||||
| Trust | ||||
| Review status | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed |
| Package trust | Package not verified | Package not verified | Package not verified | Package not verified |
| Source provenance | Source-backed | Source-backed | Source-backed | Source-backed |
| Submitter | — | — | — | — |
| Install risk | Review first | Review first | Review first | Review first |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Brand | — | — | — | |
| Category | hooks | hooks | hooks | hooks |
| Source | source-backed | source-backed | source-backed | source-backed |
| Author | JSONbored | JSONbored | JSONbored | JSONbored |
| Added | 2025-09-19 | 2025-09-19 | 2025-09-19 | 2025-09-19 |
| Platforms | Claude Code | Claude Code | Claude Code | Claude Code |
| Source repo | — | — | — | — |
| Safety notes | ✓Runs automatically on its configured Claude Code hook event and executes shell logic that can read, modify, or delete files in your project (and may run builds, installs, or network calls); review the script and scope it to expected paths before enabling. | ✓Runs automatically on its configured Claude Code hook event and executes shell logic that can read, modify, or delete files in your project (and may run builds, installs, or network calls); review the script and scope it to expected paths before enabling. | ✓Runs automatically at session end and can create compressed archives of modified git files. Uploads backups through AWS CLI, Google Cloud SDK, or rclone when those tools and bucket variables are configured. Writes a temporary archive under /tmp when using the rclone fallback and removes it after the copy attempt. | ✓Runs automatically on its configured Claude Code hook event and executes shell logic that can read, modify, or delete files in your project (and may run builds, installs, or network calls); review the script and scope it to expected paths before enabling. |
| Privacy notes | ✓Receives Claude Code hook input (session metadata, file paths, and tool output) and reads local project files; review what the script logs or forwards to external services and keep credentials out of its output. | ✓Receives Claude Code hook input (session metadata, file paths, and tool output) and reads local project files; review what the script logs or forwards to external services and keep credentials out of its output. | ✓Sends modified file contents to the configured cloud storage destination. Uses locally configured cloud credentials and bucket environment variables but does not define or manage them. Backup archives may include source code, docs, generated files, and any unignored local changes listed by git diff. | ✓Receives Claude Code hook input (session metadata, file paths, and tool output) and reads local project files; review what the script logs or forwards to external services and keep credentials out of its output. |
| Prerequisites | — none listed | — none listed | — none listed | — none listed |
| Install | | | | |
| Config | | | | |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Source-backed guides for putting this to work.
Manage parallel Claude Code background sessions with agent view dispatch, peek/reply, attach/detach, and shell fleet commands.
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.