Executes specific Newt hooks with configurable options. Hooks provide automated quality checks, security validation, and intelligent code assistance.
From newtnpx claudepluginhub liebies/newt --plugin newtExecutes specific Newt hooks with configurable options. Hooks provide automated quality checks, security validation, and intelligent code assistance.
/hook:execute <hook-name> [--verbose] [--dry-run] [--force]
hook-name: Name of hook to execute (required)--verbose: Show detailed output--dry-run: Show what would be executed without running--force: Execute hook even if disabled# Execute pre-commit hook
/hook:execute pre-commit
# Execute with verbose output
/hook:execute pre-commit --verbose
# Dry run to see what would happen
/hook:execute pre-commit --dry-run
# Execute multiple hooks
/hook:execute pre-commit pre-push
# Execute all hooks
/hook:execute --all
pre-commit - Quality checks on staged filespre-push - Branch-level validationpost-commit - Metrics and loggingpost-merge - Baseline updatesfile-save - Real-time analysis and suggestionsproject-load - Initialization and configurationcommand-execution - Pre/post command validationpre-build - Build readiness checkspost-build - Artifact analysispre-deploy - Deployment validationpost-deploy - Health monitoringsecret-detection - Secret scanningdependency-security - Vulnerability checkingperformance-monitoring - Performance analysisdocumentation-generation - Auto-documentationā
Hook execution completed successfully
Duration: 2.3s
Score: 85/100
Issues: 2 (1 medium, 1 low)
ā Hook execution failed
Duration: 1.8s
Blocked: Yes
Reason: 2 critical issues found
Hook behavior can be customized in .newt/hooks.yml:
hooks:
pre-commit:
enabled: true
thresholds:
min_score: 75
block_on_critical: true
timeout_seconds: 120
Hooks are automatically installed as Git hooks when using /hook:install.
IDE hooks integrate with editor save events and command execution.
CI/CD hooks integrate with build and deployment pipelines.
All sections must be present. Empty sections must state None.