| file_type | documentation | |||||
|---|---|---|---|---|---|---|
| title | Portable Hooks & Guardrails | |||||
| description | Ownership index for safe portable hooks, guardrails, and tool adapters for Claude Code, GitHub, and automation platforms. | |||||
| version | v0.3.1 | |||||
| created_date | 2026-05-26 | |||||
| last_updated | 2026-05-29 | |||||
| maintainer | LightSpeed Team | |||||
| authors |
|
|||||
| license | GPL-3.0 | |||||
| stability | stable | |||||
| domain | governance | |||||
| tags |
|
This folder contains reusable hooks, guardrails, and tool adapters designed to enhance security, logging, and safety across Claude Code, GitHub Actions, and other automation platforms.
Portable hooks are self-contained modules that can be integrated into any LightSpeed project or automation workflow. They provide:
- Security Guardrails – Prevent accidental exposure of secrets and credentials
- Session Logging – Track AI agent activities for auditing and debugging
- Tool Governance – Control and validate tool usage across automation platforms
- Safety Adapters – Bridge between platforms whilst maintaining consistent security policies
| Hook | Status | Purpose |
|---|---|---|
| tool-guardian | active | Control and validate tool usage permissions |
| secrets-scanner | active | Detect and prevent secret exposure |
| session-logger | active | Log and audit AI agent sessions |
See hook-registry.json for the canonical ownership index of all portable hooks, including their status, paths, and metadata.
Hooks can be configured in your project's settings.json:
{
"hooks": {
"before:submit": ["./hooks/secrets-scanner"],
"after:tool": ["./hooks/tool-guardian"],
"on:session-start": ["./hooks/session-logger"]
}
}Reference portable hooks in your workflow files:
- name: Scan for secrets
uses: lightspeedwp/.github/hooks/secrets-scanner@main
- name: Validate tool usage
uses: lightspeedwp/.github/hooks/tool-guardian@main- stable – Recommended for production use; breaking changes trigger major version bumps
- experimental – May change frequently; suitable for testing and feedback
- deprecated – No longer recommended; use alternative instead
For version migration guides, see individual hook documentation.
To add a new hook:
- Create a new directory with a clear, descriptive name
- Include a
README.mdwith full documentation and examples - Update
hook-registry.jsonwith metadata - Add tests in the hook's directory
- Submit a PR for review
See CONTRIBUTING.md for full contribution guidelines.
🎼 Orchestrated automation — where intelligence meets operations