Stats
Actions
Tags
Help us improve
Share bugs, ideas, or general feedback.
From piggytales
Automates session memory tracking, file write guards, code linting, and project initialization hooks. Blocks Edit/Write/Bash tools via PreToolUse guards. Uses Python and bash scripts.
6 events · 8 hooks
npx claudepluginhub joshuarweaver/cascade-content-creation-misc-1 --plugin nguyenthienthanh-piggytalesSafety signals detected in this hook configuration
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
if [ -f .piggytales/state/pending-approval.json ]; then echo '🐷❓ PiggyTales: Pending approval detected. Use /tale approve or /tale reject' >&2; fiBashif echo "$CLAUDE_TOOL_INPUT" | grep -qE '(rm -rf /|mkfs|dd if=|:(){|fork|shutdown|reboot|halt)'; then echo '🐷❌ Blocked: Potentially destructive command detected' >&2; exit 2; fiWrite|Editif echo "$CLAUDE_TOOL_INPUT" | grep -qiE '(script|story|content)'; then echo '🐷❓ Reminder: Ensure content follows child-safety guidelines' >&2; fiif [ -f .piggytales/state/workflow.json ]; then echo '🐷🍄 PiggyTales: Workflow state saved. Use /tale continue to resume.' >&2; fiBashif [ -d .piggytales/logs ]; then echo "[$(date '+%Y-%m-%d %H:%M:%S')] Bash: $CLAUDE_TOOL_INPUT" >> .piggytales/logs/commands.log; fiif echo "$CLAUDE_USER_INPUT" | grep -qE '^/(tale|t) '; then echo '🐷🍄 PiggyTales command detected' >&2; fiif echo "$CLAUDE_USER_INPUT" | grep -qiE '(audiobook|animation|story|tale|truyen|video)'; then echo '🍄✨ Content creation detected - consider using /tale new or /tale quick' >&2; fiShare bugs, ideas, or general feedback.