aggregate-logs
CommandGenerate 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-market
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
Runs abstract's hook validator script, which detects JSON or Python hooks and prints the errors, warnings and info it finds:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/hook_validator.py" hooks/my-hook.py -vSupports 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.
Generate context optimization report for skill directories
Create slash commands with brainstorming and best practices
Scaffold new Claude Code skills with brainstorming, TDD methodology, and proper frontmatter and module structure.
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.