BROWSE
HOOKS

Browse Codex hooks and installable hook packages.

51 RESULTS

Agents Md Loader

am-will

Automatically loads AGENTS.md configuration file content at session start to ensure Codex follows project-specific agent behavior. Only loads if AGENTS.md exists, otherwise passes empty context. Supports the universal AGENTS.md standard for cross-platform AI assistant compatibility.

AI & Agentshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/agents-md-loader --hook

Build On Change

am-will

Automatically trigger build processes when source files change. Detects common build tools and runs appropriate build commands.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/build-on-change --hook

Change Logger

am-will

Log every file mutation to CSV for demo prep. Records timestamp, tool, file path, action, and details for Edit, MultiEdit, Write, and Bash operations. Output: .codex/critical_log_changes.csv

AI & Agentshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/change-logger --hook

Dependency Checker

am-will

Advanced dependency analysis and security checking. Monitors for outdated packages, security vulnerabilities, and license compatibility.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/dependency-checker --hook

Deployment Health Monitor

am-will

Monitor deployment status, error rates, and performance metrics, sending notifications for failed deployments or performance degradation. Tracks Vercel deployment health, monitors build success/failure rates, and provides alerts for deployment issues. Setup: Export 'export VERCEL_TOKEN=your_token' and 'export VERCEL_PROJECT_ID=your_project_id' (get from vercel.com/account/tokens and Vercel dashboard).

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/deployment-health-monitor --hook

Discord Detailed Notifications

am-will

Send detailed Discord notifications with session information when Codex finishes. Includes working directory, session duration, and system info with rich embeds. Requires DISCORD_WEBHOOK_URL environment variable.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/discord-detailed-notifications --hook

Discord Error Notifications

am-will

Send Discord notifications when Codex encounters long-running operations or when tools take significant time. Helps monitor productivity and catch potential issues with rich embeds. Requires DISCORD_WEBHOOK_URL environment variable.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/discord-error-notifications --hook

Discord Notifications

am-will

Send Discord notifications when Codex finishes working. Requires DISCORD_WEBHOOK_URL environment variable. Get webhook URL from Discord Server Settings -> Integrations -> Webhooks.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/discord-notifications --hook

Simple Notifications

am-will

Send simple desktop notifications when Codex operations complete. Works on macOS and Linux systems.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/simple-notifications --hook

Slack Detailed Notifications

am-will

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

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/slack-detailed-notifications --hook

Slack Error Notifications

am-will

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

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/slack-error-notifications --hook

Slack Notifications

am-will

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

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/slack-notifications --hook

Telegram Detailed Notifications

am-will

Send detailed Telegram notifications with session information when Codex finishes. Includes working directory, session duration, and system info. Requires TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID environment variables.

AI & Agentshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/telegram-detailed-notifications --hook

Telegram Error Notifications

am-will

Send Telegram notifications when Codex encounters long-running operations or when tools take significant time. Helps monitor productivity and catch potential issues. Requires TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID environment variables.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/telegram-error-notifications --hook

Telegram Notifications

am-will

Send Telegram notifications when Codex finishes working. Requires TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID environment variables. Get bot token from @BotFather, get chat ID by messaging the bot and visiting https://api.telegram.org/bot<TOKEN>/getUpdates

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/telegram-notifications --hook

Telegram Pr Webhook

am-will

Send Telegram notification when a new PR is created via gh pr create. Includes PR URL and Vercel preview URL. Requires TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID environment variables. Optionally set VERCEL_PROJECT_NAME and VERCEL_TEAM_SLUG to construct the Vercel preview URL automatically.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/telegram-pr-webhook --hook

Vercel Auto Deploy

am-will

Automatically trigger Vercel deployments when code changes are committed, with environment-specific deployment strategies and rollback on failure. Setup: Export environment variables 'export VERCEL_TOKEN=your_token' and 'export VERCEL_PROJECT_ID=your_project_id' (get your token from vercel.com/account/tokens and project ID from your Vercel dashboard). Hook triggers on PostToolUse for Write, Edit, and MultiEdit operations affecting source code files.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/vercel-auto-deploy --hook

Vercel Environment Sync

am-will

Synchronize environment variables between local development and Vercel deployments, ensuring consistency across all environments. Detects changes to .env files and provides options to sync with Vercel, validates environment variable format, and ensures required variables are present. Setup: Export 'export VERCEL_TOKEN=your_token' (get from vercel.com/account/tokens).

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/automation/vercel-environment-sync --hook

Change Tracker

am-will

Track file changes in a simple log. Records which files were modified and when for easy tracking of Codex activity.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/development-tools/change-tracker --hook

Command Logger

am-will

Log all Codex commands to a file for audit and debugging purposes. Simple logging that records tool usage with timestamps.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/development-tools/command-logger --hook

Debug Window

am-will

Auto Debug Log Viewer. Opens a live-tailing debug log window when Codex starts with --debug or -d flag. The window closes automatically on session end. To keep the debug window open after session ends, set DEBUG_WINDOW_AUTO_CLOSE_DISABLE=1 in your settings.json. Tested on Intel Mac. Supports macOS, Linux, and Windows (Git Bash/Cygwin). Contributions from other platform users are welcome.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/development-tools/debug-window --hook

File Backup

am-will

Automatically backup files before editing. Creates timestamped backups in a .backups directory when files are modified.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/development-tools/file-backup --hook

Lint On Save

am-will

Automatically run linting tools after file modifications. Supports ESLint for JavaScript/TypeScript, Pylint for Python, and RuboCop for Ruby.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/development-tools/lint-on-save --hook

Nextjs Code Quality Enforcer

am-will

Enforce Next.js best practices, proper file structure, component patterns, and TypeScript usage with automated code reviews and suggestions. Validates Next.js App Router conventions, Server/Client component patterns, proper imports, and TypeScript usage. Provides real-time feedback on code quality and adherence to Next.js best practices.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/development-tools/nextjs-code-quality-enforcer --hook

Smart Formatting

am-will

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

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/development-tools/smart-formatting --hook

Worktree Ghostty

am-will

Worktree Ghostty Layout. Opens a 3-panel Ghostty layout when creating worktrees: Codex (left) | lazygit (top-right) / yazi (bottom-right). Creates worktrees in a sibling directory (../worktrees/<repo>/<name>/) and cleans up on removal. macOS only. Requires: jq, Ghostty terminal, lazygit, yazi. Ghostty keybindings required: super+d = new_split:right, super+shift+d = new_split:down.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/development-tools/worktree-ghostty --hook

Auto Git Add

am-will

Automatically stage modified files with git add after editing. Helps maintain a clean git workflow by staging changes as they're made.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/git-workflow/auto-git-add --hook

Smart Commit

am-will

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

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/git-workflow/smart-commit --hook

Conventional Commits

am-will

Enforce conventional commit message format for all git commits. Validates commit messages follow the pattern: type(scope): description. Supported types: feat, fix, docs, style, refactor, perf, test, chore, ci, build, revert. Ensures consistent commit history for changelog generation and semantic versioning.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/git/conventional-commits --hook

Prevent Direct Push

am-will

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.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/git/prevent-direct-push --hook

Validate Branch Name

am-will

Validate Git Flow branch naming conventions before checkout. Ensures branches follow the pattern: feature/*, release/v*.*.*, hotfix/*. Prevents creation of branches that don't follow Git Flow standards.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/git/validate-branch-name --hook

Desktop Notification On Stop

am-will

Sends a native desktop notification when Codex finishes responding. Uses the Stop hook event so you get a single notification per response instead of one per tool call (which is very noisy with PostToolUse). Supports macOS (osascript) and Linux (notify-send). Useful when you switch to another window while Codex works — you'll get a notification when it's ready for your input.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/monitoring/desktop-notification-on-stop --hook

Langsmith Tracing

am-will

Automatically send Codex conversation traces to LangSmith for monitoring and analysis. Prerequisites: jq (brew install jq on macOS or sudo apt-get install jq on Linux), curl and uuidgen (usually pre-installed), LangSmith account and API key. Configuration: install the matching LangSmith setting from the upstream template source, or manually add to `.codex/settings.local.json` the following environment variables: `TRACE_TO_LANGSMITH=true`, `CC_LANGSMITH_API_KEY=lsv2_pt_...`, `CC_LANGSMITH_PROJECT=project-name`, `CC_LANGSMITH_DEBUG=true` (optional). How it works: Runs in background on Stop event after each Codex response, reads conversation transcript, converts to LangSmith format, sends to LangSmith API, groups by `thread_id` for session continuity. Debugging: Check logs at `~/.codex/state/hook.log`. Privacy note: System prompts not included in traces.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/monitoring/langsmith-tracing --hook

Performance Budget Guard

am-will

Monitor bundle size and Core Web Vitals metrics during development, blocking deployments that exceed performance budgets with detailed reports. Automatically analyzes Next.js build output, checks bundle sizes against predefined budgets, and provides optimization recommendations. Hook triggers on PostToolUse for build-related operations and file changes that could affect performance.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/performance/performance-budget-guard --hook

Performance Monitor

am-will

Monitor system performance during Codex operations. Tracks CPU, memory usage, and execution time for performance optimization.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/performance/performance-monitor --hook

Format Javascript Files

am-will

Automatically format JavaScript/TypeScript files after any Edit operation using prettier. This hook runs 'npx prettier --write' on any .js, .ts, .jsx, or .tsx file that Codex modifies, ensuring consistent code formatting. Uses npx so prettier doesn't need to be globally installed. Includes error suppression so it won't fail if prettier is not available.

AI & Agentshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/post-tool/format-javascript-files --hook

Format Python Files

am-will

Automatically format Python files after any Edit operation using black formatter. This hook runs 'black' on any .py file that Codex modifies, ensuring consistent Python code formatting. Requires black to be installed ('pip install black'). The command includes error suppression (2>/dev/null || true) so it won't fail if black is not installed.

AI & Agentshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/post-tool/format-python-files --hook

Git Add Changes

am-will

Automatically stage changes in git after file modifications for easier commit workflow. This hook runs 'git add' on any file that Codex edits or writes, automatically staging changes for the next commit. Includes error suppression so it won't fail in non-git repositories. Helps streamline the development workflow by preparing files for commit.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/post-tool/git-add-changes --hook

Run Tests After Changes

am-will

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.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/post-tool/run-tests-after-changes --hook

Backup Before Edit

am-will

Create automatic backup of files before any Edit operation for safety. This hook creates a timestamped backup copy (filename.backup.timestamp) of any existing file before Codex modifies it. Provides a safety net to recover previous versions if needed. Only backs up existing files, includes error suppression to handle edge cases gracefully.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/pre-tool/backup-before-edit --hook

Console Log Cleaner

am-will

Warns about console.log statements when editing files on production branches (main/master). Helps prevent debug code from reaching production.

AI & Agentshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/pre-tool/console-log-cleaner --hook

Notify Before Bash

am-will

Show notification before any Bash command execution for security awareness. This hook displays a simple echo message '🔔 About to run bash command...' before Codex executes any bash command, giving you visibility into when system commands are about to run. Useful for monitoring and auditing command execution.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/pre-tool/notify-before-bash --hook

Update Search Year

am-will

Automatically adds current year to WebSearch queries when no year is specified. This hook intercepts WebSearch tool usage and appends the current year to queries that don't already contain a year, ensuring search results are current and relevant.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/pre-tool/update-search-year --hook

Plan Gate

am-will

Planning gate that warns when editing production code without an approved specification. Checks for recent .spec.md files in the project directory (last 14 days). If no spec is found, shows a warning suggesting to create one first. Non-blocking (exit 0) — acts as a reminder, not a hard gate. Supports 16 programming languages. Part of the Spec-Driven Development (SDD) methodology where every implementation should be backed by an approved specification.

Productivityhook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/quality-gates/plan-gate --hook

Scope Guard

am-will

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.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/quality-gates/scope-guard --hook

Tdd Gate

am-will

Test-Driven Development enforcement hook. Blocks editing production code files (.cs, .py, .ts, .go, .rs, .rb, .php, .java, .kt, .swift, .dart) unless a corresponding test file exists. Forces the TDD workflow: write tests first, then implement. Automatically skips config files, migrations, DTOs, test files themselves, and infrastructure files. Looks for test files with common naming patterns (MyClassTest.ext, my-class.test.ext, my_class_test.ext, test_my_class.ext). Inspired by pm-workspace's Spec-Driven Development methodology.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/quality-gates/tdd-gate --hook

Dangerous Command Blocker

am-will

Advanced protection against dangerous shell commands with multi-level security. Blocks catastrophic operations (rm -rf /, dd, mkfs), protects critical paths (.codex/, .git/, node_modules/), and warns about suspicious patterns. Features: catastrophic command blocking, critical path protection, smart pattern detection, and detailed safety messages.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/security/dangerous-command-blocker --hook

File Protection

am-will

Protect critical files from accidental modification. Prevents editing of important system files, configuration files, and production code.

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/security/file-protection --hook

Secret Scanner

am-will

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.

Codinghook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/security/secret-scanner --hook

Security Scanner

am-will

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

Utilitieshook
884
$ npx codex-marketplace add am-will/codex-skills/hooks/aitmpl-codex/security/security-scanner --hook