Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
8
2
# Install this skill:
npx skills add claude-world/director-mode-lite --skill "hooks-check"
Install specific skill from multi-skill repository
# Description
Validate hooks configuration and scripts
# SKILL.md
name: hooks-check
description: Validate hooks configuration and scripts
user-invocable: true
Hooks Validator
Validate hooks configuration in .claude/settings.json and hook scripts.
Validation Steps
1. Check settings.json
Verify hooks section exists and is valid.
2. Validate Hook Structure
{
"hooks": {
"PreToolUse": [...],
"PostToolUse": [...],
"Stop": [...],
"Notification": [...]
}
}
3. Validate Each Hook Entry
- [ ]
typeis "command" - [ ]
commandpath exists - [ ] Script is executable
4. Validate Hook Scripts
- [ ] File exists and is executable
- [ ] Outputs valid JSON
- [ ] Has appropriate shebang
Output Format
## Hooks Validation Report
### Configuration Status: VALID / INVALID
### Configured Hooks
| Type | Matcher | Script | Status |
|------|---------|--------|--------|
| Stop | * | auto-loop-stop.sh | OK |
### Script Validation
| Script | Exists | Executable | Valid Output |
|--------|--------|------------|--------------|
| auto-loop-stop.sh | OK | OK | OK |
### Issues Found
1. [Issue and fix]
Auto-Fix
- Make scripts executable
- Add missing shebang
- Create missing hook scripts
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Amp
Antigravity
Claude Code
Clawdbot
Codex
Cursor
Droid
Gemini CLI
GitHub Copilot
Goose
Kilo Code
Kiro CLI
OpenCode
Roo Code
Trae
Windsurf
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.