aggregate-logs
Generate LEARNINGS.md from skill execution logs over a configurable time window.
Validate hooks for security, performance, and SDK compliance
> /plugin marketplace add athola/claude-night-marketHow it fires
How this command gets triggered: by you, by Claude, or both.
/validate-hookContext preview
What this command does when you run it.
Validate hooks for security, performance, and SDK compliance
name: validate-hook description: Validate hooks for security, performance, and SDK compliance usage: /validate-hook [hook-path] [--security] [--performance] [--compliance] [--all] [--fix] [--report] modules: [security-checks, performance-checks, compliance-checks]
Detailed validation for Claude Code and SDK hooks. Performs security scanning, performance analysis, and compliance verification.
Use this command when you need to:
Avoid this command if:
# Validate all aspects (default) /validate-hook hooks/my-hook.py # Validate specific aspects /validate-hook hooks/my-hook.py --security /validate-hook hooks/my-hook.py --performance /validate-hook hooks/my-hook.py --compliance # Validate all hooks in directory /validate-hook hooks/ --all # Generate detailed report /validate-hook hooks/my-hook.py --report # Auto-fix issues where possible /validate-hook hooks/my-hook.py --fix
Checks for security vulnerabilities and unsafe patterns:
**Score**: PASS (100%), WARN (80-99%), FAIL (<80%)
Analyzes hook efficiency and resource usage:
**Score**: OPTIMAL (>90%), ACCEPTABLE (70-90%), POOR (<70%)
Verifies SDK and best practice adherence:
**Score**: COMPLIANT (100%), MINOR ISSUES (95-99%), NON-COMPLIANT (<95%)
VALIDATION REPORT: hooks/pre-tool-use.py ========================================== SECURITY: PASS (100%) - No issues found PERFORMANCE: WARN (85%) - Consider async for file I/O COMPLIANCE: PASS (100%) - Fully compliant OVERALL: PASS with 1 warning Issues Found: [PERFORMANCE/WARN] Line 45: Synchronous file read Impact: May block execution for large files Fix: Use async file I/O or implement timeout Recommendations: - Consider adding result caching for expensive operations - Add unit tests for error paths
/validate-hook hooks/my-hook.py --fix
Automatically applies fixes for common issues:
**Note**: Review auto-fixes before committing.
For more validation patterns, see the validate-hook source code and examples in the abstract validation framework.
**When to Validate**:
**Score Interpretation**:
**Common Patterns**:
# Typical hook development workflow /create-hook my-hook # Create hook /validate-hook hooks/my-hook.py # Validate implementation /hooks-eval --hook my-hook # Evaluate in plugin context git commit -m "Add validated hook" # Commit validated hook
Uses the abstract validation framework:
from abstract.validation import HookValidator
validator = HookValidator()
results = validator.validate_hook("hooks/my-hook.py")
if results.security.passed and results.performance.score > 80:
print("Hook validated successfully")
else:
print(f"Issues found: {results.issues}")Supports multiple output formats via `--format`:
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Generate LEARNINGS.md from skill execution logs over a configurable time window.
Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading.
Scaffold new Claude Code skills with brainstorming, TDD methodology, and proper frontmatter and module structure.