Files
leo-claude-mktplace/plugins/code-sentinel
lmiranda 35cf20e02d fix: protected branch detection and non-blocking hooks
- Add protected branch detection to /commit command (Step 1)
- Warn users before committing to protected branches
- Offer to create feature branch automatically
- Rewrite doc-guardian hook to be truly non-blocking
- Enforce strict [plugin-name] prefix in all hook outputs
- Add forbidden words list to prevent accidental blocking

Fixes #109, #110

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 11:08:00 -05:00
..

code-sentinel

Security scanning and code refactoring tools for Claude Code projects.

Features

Security Scanning

  • PreToolUse Hook: Catches vulnerabilities BEFORE code is written
  • Full Audit: /security-scan for comprehensive project review
  • Pattern Detection: SQL injection, XSS, command injection, secrets, and more

Refactoring

  • Pattern Library: Extract method, simplify conditionals, modernize syntax
  • Safe Transforms: Preview changes before applying
  • Reference Updates: Automatically updates all call sites

Commands

Command Description
/security-scan Full project security audit
/refactor <target> Apply refactoring with pattern
/refactor-dry <target> Preview opportunities without changes

Hooks

  • PreToolUse (Write|Edit): Scans code for security patterns before writing

Security Patterns Detected

Category Examples
Injection SQL, Command, Code (eval), XSS
Secrets Hardcoded API keys, passwords
Deserialization Pickle, unsafe YAML
Path Traversal Unsanitized file paths

Installation

/plugin marketplace add https://gitea.hotserv.cloud/personal-projects/leo-claude-mktplace.git
/plugin install code-sentinel

Integration

See claude-md-integration.md for CLAUDE.md additions.