Skip to content
Back to skills

Hook

ASecurity

Install or remove the lights-out pre-commit hook in this repository's .codex/hooks.json. Only when the user asks to install or remove it.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsrustgogit

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add nicolaguglielmi/lights-out --skill hook --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hook?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hook
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nicolaguglielmi-hook/badge)](https://www.skillsdirectory.com/skills/nicolaguglielmi-hook)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hook
description: Install or remove the lights-out pre-commit hook in this repository's .codex/hooks.json. Only when the user asks to install or remove it.
---

Run the script beside this file, from inside the repository, with
`install` or `remove` as the user asked:

    sh scripts/hook.sh install

(the path is relative to this skill's directory: use its absolute path).
It prints exactly one line. Report it to the user exactly as it is.

After `install`, the repository's `.codex/hooks.json` holds one
`PreToolUse` hook: before a `git commit`, `lights-out-gates --light
STAGED=1` judges the staged changes and a NO-GO stops the commit. Codex
runs it only once the user has reviewed and trusted it with `/hooks`, and
only when the project's `.codex/` layer is trusted: say so. It needs
`lights-out-gates` on PATH (`uv tool install lights-out-gates`) and a
committed `.lights-out/workload.env`; without that contract it refuses
every commit, so install it only where the contract is.

Files in this skill

  • SKILL.md997 B
  • agents/openai.yaml43 B
  • scripts/hook.sh2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.