alirezarezvani/claude-code-skill-factory / generated-skills/hook-factory
hook-factory
FlaggedGenerate production-ready Claude Code hooks with interactive Q&A, automated installation, and enhanced validation. Supports 10 templates across 7 event types for comprehensive workflow automation.
Security report
FlaggedStatic analysis of one exact version. It reduces risk and shows evidence; it does not certify that a skill is safe.
- Commit
ba18b31703542d9d7eda5f9ba94f0df65a59dddf- Content hash
2d09f526fcb296d3f74c5bd2ec9441302a9c202d868db30d6987d6c330de9f71- Scanned
- 2026-11-17
- Scanner version
- skillxone-scan-1.0.0
- Policy version
- 0.1-draft
- Decision
- 2 open critical or high findings.
- Verification expires
- Not applicable
Findings (1 critical, 1 high, 4 medium, 7 low, 4 info)
A recursive, forced delete targets the root directory, a system directory or the home directory.
"command": "# Log user prompts for analysis\nif [ -n \"$CLAUDE_USER_PROMPT\" ]; then\n mkdir -p .claude\n echo \"[$(date '+%Y-%m-%d %H:%M:%S')] $CLAUDE_USER_PROMPT\" >> .claude/prompt_log.txt\nfi\n\n# Add project context if available\nif […Suggested fix: Delete only specific paths inside a working or temporary directory.
A disk or partition tool can erase or reformat a drive.
(r'mkfs\s+', 'mkfs command'),Suggested fix: Remove disk and partition operations from the skill.
A recursive, forced delete targets the root directory, a system directory or the home directory. Severity lowered from critical because the surrounding text warns against it.
if echo "$CLAUDE_USER_PROMPT" | grep -qiE '(rm -rf /|sudo rm|format disk|delete database)'; thenSuggested fix: Delete only specific paths inside a working or temporary directory.
Files are made writable by every user on the machine.
dangerous = ['rm -rf', 'dd if=', '> /dev/', 'chmod -R 777']Suggested fix: Grant only the permissions needed, for example 755 for a script or 644 for data.
Files are made writable by every user on the machine.
- **Destructive patterns:** rm -rf, git push --force, DROP TABLE, chmod 777Suggested fix: Grant only the permissions needed, for example 755 for a script or 644 for data.
Files are made writable by every user on the machine.
(r'chmod\s+777', 'chmod 777'),Suggested fix: Grant only the permissions needed, for example 755 for a script or 644 for data.
A command runs with administrator privileges.
sudo apt-get install libnotify-binSuggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
sudo dnf install libnotifySuggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
"command": "# Log user prompts for analysis\nif [ -n \"$CLAUDE_USER_PROMPT\" ]; then\n mkdir -p .claude\n echo \"[$(date '+%Y-%m-%d %H:%M:%S')] $CLAUDE_USER_PROMPT\" >> .claude/prompt_log.txt\nfi\n\n# Add project context if available\nif […Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
echo " Ubuntu: sudo apt-get install jq"Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
echo " Fedora: sudo dnf install jq"Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
# Check for sudo usage (requires password)Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges.
fix_suggestion='Avoid sudo in hooks - run commands with appropriate permissions'Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges. Severity lowered from low because the surrounding text warns against it.
if echo "$CLAUDE_USER_PROMPT" | grep -qiE '(rm -rf /|sudo rm|format disk|delete database)'; thenSuggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges. Severity lowered from low because the surrounding text warns against it.
# Try: "Run sudo rm -rf on the test directory"Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
The skill ships an executable script. Review it before allowing an agent to run it.
#!/usr/bin/env python3Suggested fix: None required. Informational.
The skill ships an executable script. Review it before allowing an agent to run it.
#!/bin/bashSuggested fix: None required. Informational.
Checks run
- prompt-injection
- dangerous-commands
- credentials
- network
- file-access
- integrity
Checks skipped
- dependencies: No dependency manifest in the skill directory.
- gitleaks: gitleaks is not installed on this host.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 468k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |