hooks-system-cursor-implementation

Validate terminal commands and log post-execution results with configurable hooks.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/ihj04982/my-cursor-settings --skill hooks-system-cursor-implementation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hooks-system-cursor-implementation
Source: https://github.com/ihj04982/my-cursor-settings/tree/main/skills/hooks-system-cursor-implementation
Command: npx skills add https://github.com/ihj04982/my-cursor-settings --skill hooks-system-cursor-implementation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enhances terminal command execution by adding safety checks, automation, and auditing before, during, and after command execution.

Core Features & Use Cases

  • Pre-execution validation: Catches long-running commands and prevents accidental git push.
  • Post-execution logging: Logs new PR URLs and suggests review commands.
  • File edit automation: Auto-formats code, checks TypeScript, and warns about console.log.
  • Session end audit: Audits all modified files for console.log statements.

Quick Start

Use the hooks-system-cursor-implementation skill to automatically format edited JavaScript files.

Frequently Asked Questions about hooks-system-cursor-implementation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent accidental git push commands in the Cursor IDE terminal?

Terminal command safety checks intercept operations before execution, preventing accidental git push commands. Configurable hooks validate commands in the Cursor IDE, stopping unsafe git operations and long-running tasks before they run.

How do I automatically format code and check TypeScript after file edits in Cursor IDE?

File edit automation hooks trigger post-edit to auto-format code, check TypeScript, and warn about console.log statements. This integrates with the Cursor IDE to automate code quality checks immediately after file modifications.

What are terminal hooks and how do they enhance command execution?

Terminal hooks are scripts that intercept command execution to add pre-execution validation, post-execution logging, and file edit automation. They enhance workflows by managing safety checks for long-running commands and auditing modified files at session end.

Can I log new PR URLs and suggest review commands automatically after terminal execution?

Post-execution logging hooks automatically capture new PR URLs from command output and suggest relevant review commands. This provides an audit trail of terminal activity and streamlines the code review process.

Does this hook system work without external dependencies or package managers?

The hook system operates without external dependencies, using internal scripts and references to manage terminal command validation and logging. It integrates directly into the Cursor IDE environment without requiring additional package managers.

How do I audit my project for console.log statements at the end of a coding session?

Session end audit hooks automatically scan all modified files to detect and warn about leftover console.log statements. This ensures code quality by cleaning up debugging artifacts before the coding session concludes.