Install command
Provided
Automated documentation coverage analysis with missing docstring detection, API documentation validation, and completeness scoring. This PostToolUse hook automatically checks documentation coverage when code files are modified, providing real-time documentation quality validation during development.
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 // ""')
if [ -z "$FILE_PATH" ]; then
exit 0
fi
# Configuration
REPORT_FILE=".claude/reports/docs-coverage-$(date +%Y%m%d).txt"
MIN_COVERAGE=${DOC_COVERAGE_THRESHOLD:-70}
mkdir -p "$(dirname "$REPORT_FILE")"
# Function to check if file needs documentation review
needs_doc_check() {
local file=$1
case "$file" in
*.js|*.jsx|*.ts|*.tsx|*.py|*.go|*.rs|*.java|*.rb)
return 0
;;
*)
return 1
;;
esac
}
# Function to check JavaScript/TypeScript documentation
check_js_ts_docs() {
local file=$1
echo "📝 Checking JS/TS documentation: $file" >&2
# Count functions
local total_functions=$(grep -cE "^\s*(export\s+)?(async\s+)?function\s+\w+|^\s*const\s+\w+\s*=\s*(async\s+)?\(|^\s*\w+\s*\(.*\)\s*\{" "$file" 2>/dev/null || echo "0")
# Count documented functions (with JSDoc /** */)
local documented=$(grep -B1 -cE "^\s*\/\*\*" "$file" 2>/dev/null || echo "0")
if [ "$total_functions" -gt 0 ]; then
local coverage=$((documented * 100 / total_functions))
echo "" >> "$REPORT_FILE"
echo "JavaScript/TypeScript Documentation - $file" >> "$REPORT_FILE"
echo "Total functions: $total_functions" >> "$REPORT_FILE"
echo "Documented: $documented" >> "$REPORT_FILE"
echo "Coverage: ${coverage}%" >> "$REPORT_FILE"
if [ "$coverage" -lt "$MIN_COVERAGE" ]; then
echo "⚠️ Documentation coverage ${coverage}% below threshold ${MIN_COVERAGE}%" >&2
echo "💡 Add JSDoc comments to exported functions" >&2
else
echo "✅ Documentation coverage: ${coverage}%" >&2
fi
fi
# Check for exported items without docs
if grep -E "^export (class|function|const|interface|type)" "$file" >/dev/null 2>&1; then
echo "📦 Exported items detected - ensure public API is documented" >&2
fi
}
# Function to check Python documentation
check_python_docs() {
local file=$1
echo "🐍 Checking Python documentation: $file" >&2
# Use interrogate if available
if command -v interrogate &> /dev/null; then
echo "" >> "$REPORT_FILE"
echo "Python Docstring Coverage - $file" >> "$REPORT_FILE"
local coverage_output=$(interrogate -v "$file" 2>/dev/null)
echo "$coverage_output" >> "$REPORT_FILE"
# Extract coverage percentage
local coverage=$(echo "$coverage_output" | grep -oE '[0-9]+\.[0-9]+%' | head -1 | tr -d '%')
if [ -n "$coverage" ]; then
if (( $(echo "$coverage < $MIN_COVERAGE" | bc -l) )); then
echo "⚠️ Docstring coverage ${coverage}% below threshold ${MIN_COVERAGE}%" >&2
else
echo "✅ Docstring coverage: ${coverage}%" >&2
fi
fi
else
# Manual check for docstrings
local total_defs=$(grep -cE "^\s*def\s+\w+|^\s*class\s+\w+" "$file" 2>/dev/null || echo "0")
local documented=$(grep -A1 -cE "^\s*def\s+\w+|^\s*class\s+\w+" "$file" | grep -c '"""' || echo "0")
if [ "$total_defs" -gt 0 ]; then
local coverage=$((documented * 100 / total_defs))
echo "⚠️ Estimated docstring coverage: ${coverage}%" >&2
echo "💡 Install interrogate for accurate analysis: pip install interrogate" >&2
fi
fi
}
# Function to check Go documentation
check_go_docs() {
local file=$1
echo "🐹 Checking Go documentation: $file" >&2
if command -v go &> /dev/null; then
# Use go doc if available
if go doc -all 2>/dev/null | grep -q "$file"; then
echo "✅ Go documentation present" >&2
else
echo "💡 Add godoc comments to exported functions/types" >&2
fi
fi
# Check for exported items without comments
local undocumented=$(grep -E "^func [A-Z]|^type [A-Z]" "$file" | \
while read -r line; do
grep -B1 "$line" "$file" | head -1 | grep -q "^//" || echo "$line"
done | wc -l)
if [ "$undocumented" -gt 0 ]; then
echo "⚠️ Found $undocumented undocumented exported items" >&2
fi
}
# Function to check README freshness
check_readme_freshness() {
if [ -f "README.md" ]; then
local readme_age=$(($(date +%s) - $(stat -f%m "README.md" 2>/dev/null || stat -c%Y "README.md" 2>/dev/null || echo "0")))
local days_old=$((readme_age / 86400))
if [ "$days_old" -gt 90 ]; then
echo "📋 README.md is $days_old days old - consider updating" >&2
fi
else
echo "⚠️ No README.md found - create project documentation" >&2
fi
}
# Function to check API documentation
check_api_docs() {
local file=$1
# Check for API route definitions
if grep -iE "@(get|post|put|delete|patch)|router\.(get|post|put|delete|patch)|app\.(get|post|put|delete|patch)" "$file" >/dev/null 2>&1; then
echo "🌐 API endpoint detected in: $file" >&2
# Check for OpenAPI/Swagger comments
if ! grep -E "@swagger|@openapi|@api" "$file" >/dev/null 2>&1; then
echo "💡 Consider adding OpenAPI/Swagger documentation for API endpoints" >&2
fi
# Check for request/response documentation
if ! grep -E "@param|@returns|@request|@response" "$file" >/dev/null 2>&1; then
echo "💡 Document request parameters and response types" >&2
fi
fi
}
# Main execution
if needs_doc_check "$FILE_PATH"; then
echo "📚 Documentation check triggered: $FILE_PATH" >&2
# Language-specific checks
case "$FILE_PATH" in
*.js|*.jsx|*.ts|*.tsx)
check_js_ts_docs "$FILE_PATH"
check_api_docs "$FILE_PATH"
;;
*.py)
check_python_docs "$FILE_PATH"
check_api_docs "$FILE_PATH"
;;
*.go)
check_go_docs "$FILE_PATH"
;;
esac
# General documentation checks
check_readme_freshness
# Documentation best practices
echo "" >&2
echo "📖 Documentation Best Practices:" >&2
echo " • Document all public APIs and exported functions" >&2
echo " • Include parameter types and return values" >&2
echo " • Add usage examples for complex functions" >&2
echo " • Keep README.md up-to-date with recent changes" >&2
echo " • Use consistent documentation format (JSDoc/TSDoc/etc)" >&2
if [ -s "$REPORT_FILE" ]; then
echo "" >&2
echo "📄 Documentation report: $REPORT_FILE" >&2
fi
elif [[ "$FILE_PATH" == *README* ]] || [[ "$FILE_PATH" == *CHANGELOG* ]]; then
echo "📝 Documentation file updated: $(basename "$FILE_PATH")" >&2
echo "✅ Keep documentation current with code changes" >&2
fi
exit 0{
"hooks": {
"postToolUse": {
"script": "./.claude/hooks/documentation-coverage-checker.sh",
"matchers": [
"write",
"edit"
]
}
}
}.claude/settings.local.json~/.claude/settings.json.claude/settings.json{
"hooks": {
"postToolUse": {
"script": "./.claude/hooks/documentation-coverage-checker.sh",
"matchers": ["write", "edit"]
}
}
}
#!/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 // ""')
if [ -z "$FILE_PATH" ]; then
exit 0
fi
# Configuration
REPORT_FILE=".claude/reports/docs-coverage-$(date +%Y%m%d).txt"
MIN_COVERAGE=${DOC_COVERAGE_THRESHOLD:-70}
mkdir -p "$(dirname "$REPORT_FILE")"
# Function to check if file needs documentation review
needs_doc_check() {
local file=$1
case "$file" in
*.js|*.jsx|*.ts|*.tsx|*.py|*.go|*.rs|*.java|*.rb)
return 0
;;
*)
return 1
;;
esac
}
# Function to check JavaScript/TypeScript documentation
check_js_ts_docs() {
local file=$1
echo "📝 Checking JS/TS documentation: $file" >&2
# Count functions
local total_functions=$(grep -cE "^\s*(export\s+)?(async\s+)?function\s+\w+|^\s*const\s+\w+\s*=\s*(async\s+)?\(|^\s*\w+\s*\(.*\)\s*\{" "$file" 2>/dev/null || echo "0")
# Count documented functions (with JSDoc /** */)
local documented=$(grep -B1 -cE "^\s*\/\*\*" "$file" 2>/dev/null || echo "0")
if [ "$total_functions" -gt 0 ]; then
local coverage=$((documented * 100 / total_functions))
echo "" >> "$REPORT_FILE"
echo "JavaScript/TypeScript Documentation - $file" >> "$REPORT_FILE"
echo "Total functions: $total_functions" >> "$REPORT_FILE"
echo "Documented: $documented" >> "$REPORT_FILE"
echo "Coverage: ${coverage}%" >> "$REPORT_FILE"
if [ "$coverage" -lt "$MIN_COVERAGE" ]; then
echo "⚠️ Documentation coverage ${coverage}% below threshold ${MIN_COVERAGE}%" >&2
echo "💡 Add JSDoc comments to exported functions" >&2
else
echo "✅ Documentation coverage: ${coverage}%" >&2
fi
fi
# Check for exported items without docs
if grep -E "^export (class|function|const|interface|type)" "$file" >/dev/null 2>&1; then
echo "📦 Exported items detected - ensure public API is documented" >&2
fi
}
# Function to check Python documentation
check_python_docs() {
local file=$1
echo "🐍 Checking Python documentation: $file" >&2
# Use interrogate if available
if command -v interrogate &> /dev/null; then
echo "" >> "$REPORT_FILE"
echo "Python Docstring Coverage - $file" >> "$REPORT_FILE"
local coverage_output=$(interrogate -v "$file" 2>/dev/null)
echo "$coverage_output" >> "$REPORT_FILE"
# Extract coverage percentage
local coverage=$(echo "$coverage_output" | grep -oE '[0-9]+\.[0-9]+%' | head -1 | tr -d '%')
if [ -n "$coverage" ]; then
if (( $(echo "$coverage < $MIN_COVERAGE" | bc -l) )); then
echo "⚠️ Docstring coverage ${coverage}% below threshold ${MIN_COVERAGE}%" >&2
else
echo "✅ Docstring coverage: ${coverage}%" >&2
fi
fi
else
# Manual check for docstrings
local total_defs=$(grep -cE "^\s*def\s+\w+|^\s*class\s+\w+" "$file" 2>/dev/null || echo "0")
local documented=$(grep -A1 -cE "^\s*def\s+\w+|^\s*class\s+\w+" "$file" | grep -c '"""' || echo "0")
if [ "$total_defs" -gt 0 ]; then
local coverage=$((documented * 100 / total_defs))
echo "⚠️ Estimated docstring coverage: ${coverage}%" >&2
echo "💡 Install interrogate for accurate analysis: pip install interrogate" >&2
fi
fi
}
# Function to check Go documentation
check_go_docs() {
local file=$1
echo "🐹 Checking Go documentation: $file" >&2
if command -v go &> /dev/null; then
# Use go doc if available
if go doc -all 2>/dev/null | grep -q "$file"; then
echo "✅ Go documentation present" >&2
else
echo "💡 Add godoc comments to exported functions/types" >&2
fi
fi
# Check for exported items without comments
local undocumented=$(grep -E "^func [A-Z]|^type [A-Z]" "$file" | \
while read -r line; do
grep -B1 "$line" "$file" | head -1 | grep -q "^//" || echo "$line"
done | wc -l)
if [ "$undocumented" -gt 0 ]; then
echo "⚠️ Found $undocumented undocumented exported items" >&2
fi
}
# Function to check README freshness
check_readme_freshness() {
if [ -f "README.md" ]; then
local readme_age=$(($(date +%s) - $(stat -f%m "README.md" 2>/dev/null || stat -c%Y "README.md" 2>/dev/null || echo "0")))
local days_old=$((readme_age / 86400))
if [ "$days_old" -gt 90 ]; then
echo "📋 README.md is $days_old days old - consider updating" >&2
fi
else
echo "⚠️ No README.md found - create project documentation" >&2
fi
}
# Function to check API documentation
check_api_docs() {
local file=$1
# Check for API route definitions
if grep -iE "@(get|post|put|delete|patch)|router\.(get|post|put|delete|patch)|app\.(get|post|put|delete|patch)" "$file" >/dev/null 2>&1; then
echo "🌐 API endpoint detected in: $file" >&2
# Check for OpenAPI/Swagger comments
if ! grep -E "@swagger|@openapi|@api" "$file" >/dev/null 2>&1; then
echo "💡 Consider adding OpenAPI/Swagger documentation for API endpoints" >&2
fi
# Check for request/response documentation
if ! grep -E "@param|@returns|@request|@response" "$file" >/dev/null 2>&1; then
echo "💡 Document request parameters and response types" >&2
fi
fi
}
# Main execution
if needs_doc_check "$FILE_PATH"; then
echo "📚 Documentation check triggered: $FILE_PATH" >&2
# Language-specific checks
case "$FILE_PATH" in
*.js|*.jsx|*.ts|*.tsx)
check_js_ts_docs "$FILE_PATH"
check_api_docs "$FILE_PATH"
;;
*.py)
check_python_docs "$FILE_PATH"
check_api_docs "$FILE_PATH"
;;
*.go)
check_go_docs "$FILE_PATH"
;;
esac
# General documentation checks
check_readme_freshness
# Documentation best practices
echo "" >&2
echo "📖 Documentation Best Practices:" >&2
echo " • Document all public APIs and exported functions" >&2
echo " • Include parameter types and return values" >&2
echo " • Add usage examples for complex functions" >&2
echo " • Keep README.md up-to-date with recent changes" >&2
echo " • Use consistent documentation format (JSDoc/TSDoc/etc)" >&2
if [ -s "$REPORT_FILE" ]; then
echo "" >&2
echo "📄 Documentation report: $REPORT_FILE" >&2
fi
elif [[ "$FILE_PATH" == *README* ]] || [[ "$FILE_PATH" == *CHANGELOG* ]]; then
echo "📝 Documentation file updated: $(basename "$FILE_PATH")" >&2
echo "✅ Keep documentation current with code changes" >&2
fi
exit 0
Complete hook script that performs documentation coverage checking when code files are modified
#!/usr/bin/env bash
INPUT=$(cat)
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""')
if [ -z "$FILE_PATH" ]; then
exit 0
fi
REPORT_FILE=".claude/reports/docs-coverage-$(date +%Y%m%d).txt"
MIN_COVERAGE=${DOC_COVERAGE_THRESHOLD:-70}
mkdir -p "$(dirname "$REPORT_FILE")"
if [[ "$FILE_PATH" == *.js ]] || [[ "$FILE_PATH" == *.ts ]]; then
total_functions=$(grep -cE "^\s*(export\s+)?(async\s+)?function\s+\w+" "$FILE_PATH" 2>/dev/null || echo "0")
documented=$(grep -B1 -cE "^\s*/\*\*" "$FILE_PATH" 2>/dev/null || echo "0")
if [ "$total_functions" -gt 0 ]; then
coverage=$((documented * 100 / total_functions))
echo "JavaScript/TypeScript Documentation - $FILE_PATH" >> "$REPORT_FILE"
echo "Coverage: ${coverage}%" >> "$REPORT_FILE"
if [ "$coverage" -lt "$MIN_COVERAGE" ]; then
echo "Documentation coverage ${coverage}% below threshold ${MIN_COVERAGE}%" >&2
fi
fi
fi
exit 0
Complete hook configuration for .claude/settings.json to enable documentation coverage checking
{
"hooks": {
"postToolUse": {
"script": "./.claude/hooks/documentation-coverage-checker.sh",
"matchers": ["write", "edit"]
}
}
}
Enhanced hook script using interrogate for Python docstring coverage analysis
#!/usr/bin/env bash
INPUT=$(cat)
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""')
if [[ "$FILE_PATH" == *.py ]]; then
if command -v interrogate &> /dev/null; then
echo "Checking Python documentation with interrogate..." >&2
interrogate -v "$FILE_PATH" 2>/dev/null | grep -E "coverage|missing" || interrogate "$FILE_PATH"
else
echo "Install interrogate for Python docstring coverage: pip install interrogate" >&2
fi
fi
exit 0
Enhanced hook script for API endpoint documentation validation with OpenAPI/Swagger checking
#!/usr/bin/env bash
INPUT=$(cat)
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""')
if [[ "$FILE_PATH" == *.ts ]] || [[ "$FILE_PATH" == *.tsx ]]; then
if grep -iE "@(get|post|put|delete|patch)" "$FILE_PATH" >/dev/null 2>&1; then
echo "API endpoint detected in: $FILE_PATH" >&2
if ! grep -E "@swagger|@openapi|@api" "$FILE_PATH" >/dev/null 2>&1; then
echo "Consider adding OpenAPI/Swagger documentation for API endpoints" >&2
fi
if ! grep -E "@param|@returns|@request|@response" "$FILE_PATH" >/dev/null 2>&1; then
echo "Document request parameters and response types" >&2
fi
fi
fi
exit 0
Enhanced hook script for README freshness validation with automatic age detection
#!/usr/bin/env bash
if [ -f "README.md" ]; then
readme_age=$(($(date +%s) - $(stat -f%m "README.md" 2>/dev/null || stat -c%Y "README.md" 2>/dev/null || echo "0")))
days_old=$((readme_age / 86400))
if [ "$days_old" -gt 90 ]; then
echo "README.md is $days_old days old - consider updating" >&2
fi
else
echo "No README.md found - create project documentation" >&2
fi
exit 0
Hook detects structured docstrings (JSDoc/TSDoc) not inline comments. Convert // comments to /** */ JSDoc format. Use @param and @returns tags for proper documentation detection. Verify TSDoc specification compliance for TypeScript projects.
Activate virtualenv before hook runs: source venv/bin/activate in shell config. Use absolute path to interrogate binary. Add virtualenv bin directory to PATH in hook script. Verify interrogate installation: pip show interrogate.
Hook checks all functions regardless of visibility. Use naming conventions (_private in Python, _method in JavaScript). Configure threshold lower for internal files. Add @internal JSDoc tag to suppress warnings. Exclude test files from coverage checking.
Export DOC_COVERAGE_THRESHOLD before hook execution. Check bash environment in hook context. Set in .clauderc or shell profile. Verify with echo $DOC_COVERAGE_THRESHOLD in hook script. Use default value of 70% if not set.
Hook matches route patterns without context awareness. Exclude test directories from matchers: ! [[$FILE_PATH == test]]. Add separate threshold for test documentation. Use file path filtering to exclude test files from API documentation checks.
Verify TSDoc specification compliance. Use /** */ style comments with @param, @returns, @example tags. Check TSDoc parser configuration. Ensure TypeScript project uses TSDoc-compliant documentation format. Install TSDoc validator if needed.
Hook uses simple grep patterns that may miss multi-line definitions. Use more sophisticated parsing with AST tools. Consider using language-specific parsers (eslint-plugin-jsdoc, pylint) for accurate coverage calculation. Verify function detection patterns match code style.
Use portable stat commands: stat -c%Y for Linux, stat -f%m for macOS. Check file system timestamp format. Verify date command compatibility. Use fallback timestamp detection methods. Test on target file system before deployment.
Show that Documentation Coverage Checker - Hooks is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.
[](https://heyclau.de/entry/hooks/documentation-coverage-checker)Documentation Coverage Checker - Hooks side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | Automated documentation coverage analysis with missing docstring detection, API documentation validation, and completeness scoring. This PostToolUse hook automatically checks documentation coverage when code files are modified, providing real-time documentation quality validation during development. 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 | A Claude Code hook that flags files exceeding complexity thresholds after you edit them — estimating cyclomatic complexity, line and function counts, and nesting depth (via ESLint's complexity rule and Radon). Open dossier | A Claude Code SessionEnd hook that scans a project for dead code and writes a report to .claude/reports. It runs available tools per language: ESLint and Knip for JS/TS, autoflake or pylint for Python, Knip for unused npm dependencies, ripgrep for unreferenced src files, and jq to flag zero-coverage files. 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-10-19 | 2025-09-19 | 2025-09-19 | 2025-10-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 after edits to JS/TS/Python files and prints advisory warnings only; the line/function/brace counts are heuristics, not a substitute for ESLint or Radon run on the full project. | ✓Registered as a SessionEnd hook, so it runs automatically every time a Claude Code session ends. Invokes external tools via npx (ts-prune, Knip, eslint) and locally installed binaries (autoflake, pylint, vulture, jq, rg), which can trigger package downloads and execute project tooling. Defaults to DRY_RUN=true and only writes a report; setting DRY_RUN=false is intended to enable destructive cleanup, so review the report before changing it. Creates directories under .claude/backups and .claude/reports in the working tree. |
| 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. | ✓Reads the contents of files you edit to compute complexity locally; it prints warnings to hook output and does not transmit code, but those messages can reveal file structure. | ✓Writes a dead-code report containing file paths, export names, and dependency names from the project to .claude/reports/dead-code-report.txt and echoes it to stderr. Running tools via npx may fetch packages from the npm registry over the network. |
| 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.
Set autoMode.hard_deny rules to block risky actions in auto mode.
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.