Armory
Source

Browse

Search and filter by type across the catalog

172 results in Hooks, Identity · page 6 of 8

HooksPreview

pre-tool-use

Run before every tool call to inspect, gate, or block the tool input (e.g. veto dangerous shell commands).

UnrankedNo signals yet
Harnessclaude
hookdisler
Details
HooksPreview

pre-write-doc-file-warning

PreToolUse hook: Doc file warning: warn about non-standard documentation files (exit code 0; warns only) (matcher: Write).

UnrankedNo signals yet
Harnessclaudecodexcursorgeminiopencode
hookPreToolUse
Details
HooksPreview

prevent-direct-push

Prevent direct pushes to protected branches (main, develop). Blocks git push commands targeting main or develop branches to enforce Git Flow workflow. Requires using feature/release/hotfix branches and pull requests instead of direct commits to protected branches.

UnrankedNo signals yet
Harnessclaude
githooks
Details
HooksPreview

prevent-direct-push-2

❌ Direct push to main/develop is not allowed! Protected branches: - main (production) - develop (integration) Git Flow workflow: 1. Create a feature branch: /feature <name> 2. Make your changes and commit 3. Push feature branch: git push origin feature/<name> 4. Create pull request: gh pr create 5. After approval, merge with: /finish For releases: /release <version> → PR → /finish For hotfixes: /hotfix <name> → PR → /finish Current branch: {current_branch} 💡 Use feature/release/hotfix branches instead of pushing directly to main/develop.

UnrankedNo signals yet
Harnessclaude
githooks
Details
HooksPreview

run-tests-after-changes

Automatically run quick tests after code modifications to ensure nothing breaks. This hook executes 'npm run test:quick' silently after any Edit operation and provides feedback on test status. Helps catch breaking changes immediately during development. Only runs if package.json exists and the test:quick script is available.

UnrankedNo signals yet
Harnessclaude
post-toolhooks
Details
HooksPreview

scope-guard

Scope guard that detects files modified outside the declared scope of a specification. When a .spec.md file contains a 'Files to Create/Modify' section, this hook compares git-modified files against the declared list. Files outside scope trigger a warning (non-blocking). Automatically excludes test files, config files, infrastructure files, and documentation. Essential for Spec-Driven Development to prevent scope creep during implementation.

UnrankedNo signals yet
Harnessclaude
quality-gateshooks
Details
HooksPreview

scope-guard-2

scope-guard.sh — Detect files modified outside the scope of an active spec

UnrankedNo signals yet
Harnessclaude
quality-gateshooks
Details
HooksPreview

secret-scanner

Automatically detects hardcoded secrets before git commits. Scans for API keys from 30+ providers (Anthropic: sk-ant-..., OpenAI: sk-..., AWS: AKIA..., Stripe: sk_live_..., Google: AIza..., GitHub: ghp_..., Vercel, Supabase, Hugging Face: hf_..., Replicate: r8_..., Groq: gsk_..., Databricks: dapi..., GitLab, DigitalOcean, npm, PyPI, and more), tokens, passwords, private keys, and database credentials. Blocks commits containing secrets and suggests using environment variables instead.

UnrankedNo signals yet
Harnessclaude
securityhooks
Details
HooksPreview

secret-scanner-2

Secret Scanner Hook Detects hardcoded secrets before git commits

UnrankedNo signals yet
Harnessclaude
securityhooks
Details
HooksPreview

security-scanner

Scan code for security vulnerabilities and secrets after modifications. Uses multiple security tools to detect potential issues.

UnrankedNo signals yet
Harnessclaude
securityhooks
Details
HooksPreview

session-end

Run at session end, to flush logs, persist memory, or clean up.

UnrankedNo signals yet
Harnessclaude
hookdisler
Details
HooksPreview

session-end-marker

SessionEnd hook: Session end lifecycle marker (non-blocking) (matcher: *).

UnrankedNo signals yet
Harnessclaudecodexcursorgeminiopencode
hookSessionEnd
Details
HooksPreview

session-start

SessionStart hook: Load previous context and detect package manager on new session (matcher: *).

UnrankedNo signals yet
Harnessclaudecodexcursorgeminiopencode
hookSessionStart
Details
HooksPreview

setup

Run on setup/initialization to prepare the hook environment.

UnrankedNo signals yet
Harnessclaude
hookdisler
Details
HooksPreview

shell-wrapper-guard

Detects destructive commands hidden inside shell wrappers (sh -c, bash -c, python3 -c, node -e, perl -e, ruby -e). Complements dangerous-command-blocker by catching bypass vectors like 'sh -c "rm -rf /"' that evade direct command checks. Covers 8 bypass patterns: interpreter one-liners, nested wrappers, pipe-to-shell, here-strings, and env-based wrappers.

UnrankedNo signals yet
Harnessclaude
securityhooks
Details
HooksPreview

shell-wrapper-guard-2

shell-wrapper-guard.sh — Detect destructive commands hidden in shell wrappers

UnrankedNo signals yet
Harnessclaude
securityhooks
Details
HooksPreview

simple-notifications

Send desktop notifications when Claude Code finishes working or needs user input. Works on macOS and Linux systems.

UnrankedNo signals yet
Harnessclaude
automationhooks
Details
HooksPreview

slack-detailed-notifications

Send detailed Slack notifications with session information when Claude Code finishes. Includes working directory, session duration, and system info. Requires SLACK_WEBHOOK_URL environment variable.

UnrankedNo signals yet
Harnessclaude
automationhooks
Details
HooksPreview

slack-error-notifications

Send Slack notifications when Claude Code encounters long-running operations or when tools take significant time. Helps monitor productivity and catch potential issues. Requires SLACK_WEBHOOK_URL environment variable.

UnrankedNo signals yet
Harnessclaude
automationhooks
Details
HooksPreview

slack-notifications

Send Slack notifications when Claude Code finishes working. Requires SLACK_WEBHOOK_URL environment variable. Get webhook URL from Slack App settings -> Incoming Webhooks.

UnrankedNo signals yet
Harnessclaude
automationhooks
Details
HooksPreview

smart-commit

Intelligent git commit creation with automatic message generation and validation. Creates meaningful commits based on file changes.

UnrankedNo signals yet
Harnessclaude
git-workflowhooks
Details
HooksPreview

smart-formatting

Smart code formatting based on file type. Automatically formats code using Prettier, Black, gofmt, rustfmt, and other language-specific formatters.

UnrankedNo signals yet
Harnessclaude
development-toolshooks
Details
HooksPreview

stop

Run when the main agent finishes responding, to announce completion or run end-of-turn checks.

UnrankedNo signals yet
Harnessclaude
hookdisler
Details
HooksPreview

stop-check-console-log

Stop hook: Check for console.log in modified files after each response (matcher: *).

UnrankedNo signals yet
Harnessclaudecodexcursorgeminiopencode
hookStop
Details
Browse · Armory