Skip to content

Add claude-code-hooks — 16 safety hooks for autonomous operation#1038

Closed
yurukusa wants to merge 1 commit into
hesreallyhim:mainfrom
yurukusa:add-hooks
Closed

Add claude-code-hooks — 16 safety hooks for autonomous operation#1038
yurukusa wants to merge 1 commit into
hesreallyhim:mainfrom
yurukusa:add-hooks

Conversation

@yurukusa

Copy link
Copy Markdown

Adds claude-code-hooks to the Hooks section.
16 production safety hooks extracted from 160+ hours of autonomous Claude Code operation. Every hook exists because something went wrong without it.
What it includes:

  • Destructive command blocker (rm -rf, git reset --hard, git checkout --force)
  • Branch push protector (main/master + force-push)
  • Secret leak prevention (git add .env)
  • Post-edit syntax validator (Python, Shell, JSON, YAML, JS)
  • Context window monitor (graduated warnings)
  • 8 COOKBOOK recipes from real GitHub Issues
  • 5 operational templates
  • Plugin support (hooks.json + skills/)
    Stats:
  • 61 automated tests, CI green
  • 1,320 npm downloads/week (via npx cc-safe-setup)
  • 3 GitHub stars

16 production safety hooks from 160+ hours of autonomous Claude Code operation.
One-command install: npx cc-safe-setup
GitHub: https://github.com/yurukusa/claude-code-hooks
@hesreallyhim

Copy link
Copy Markdown
Owner

⚠️ Resource submissions are not accepted via pull request

Resource recommendations must be submitted through the issue template, not as a pull request. The entire resource pipeline — validation, review, and merging — is managed by automation.

To submit your resource correctly:

  1. 📖 Read CONTRIBUTING.md
  2. 📝 Submit using the official template

If this PR is not a resource submission (e.g., a bug fix or improvement), please comment below and we'll reopen it.

A cooldown of 14 days has been applied to this account.


This PR was automatically closed.

@hesreallyhim hesreallyhim added the needs-template Issue is a resource recommendation that did not use the issue template label Mar 21, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 53d7be92a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md
- [Britfix](https://github.com/Talieisin/britfix) by [Talieisin](https://github.com/Talieisin) - Claude outputs American spellings by default, which can have an impact on: professional credibility, compliance, documentation, and more. Britfix converts to British English, with a Claude Code hook for automatic conversion as files are written. Context-aware: handles code files intelligently by only converting comments and docstrings, never identifiers or string literals.
- [CC Notify](https://github.com/dazuiba/CCNotify) by [dazuiba](https://github.com/dazuiba) - CCNotify provides desktop notifications for Claude Code, alerting you to input needs or task completion, with one-click jumps back to VS Code and task duration display.
- [cchooks](https://github.com/GowayLee/cchooks) by [GowayLee](https://github.com/GowayLee) - A lightweight Python SDK with a clean API and good documentation; simplifies the process of writing hooks and integrating them into your codebase, providing a nice abstraction over the JSON configuration files.
- [claude-code-hooks](https://github.com/yurukusa/claude-code-hooks) by [yurukusa](https://github.com/yurukusa) - 16 production safety hooks from 160+ hours of autonomous operation. Blocks destructive commands, force push, secret leaks, syntax errors. Includes 8 COOKBOOK recipes from real GitHub Issues, 5 templates, and plugin support. One-command install: `npx cc-safe-setup`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Persist the new hook in the CSV source of truth

README.md is generated output (README.md:1), and the repo’s documented workflow says THE_RESOURCES_TABLE.csv is the single source of truth and all README variants are regenerated from it (scripts/README.md:14, docs/README-GENERATION.md:31-42). Because this commit only inserts the line here, the next README generation will delete it again, and the new resource is already missing from README_ALTERNATIVES/* and other generated artifacts. Please add the resource to the CSV and regenerate instead of editing the root README directly.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-template Issue is a resource recommendation that did not use the issue template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants