Cómo evitar que Claude Code borre tu proyecto: hooks de seguridad en 5 minutos

Chronological Source Flow
Back

AI Fusion Summary

Claude Code offers security hooks and skills to optimize development workflows. Hooks are scripts executed before or after tool use; a PreToolUse hook returning exit code 2 cancels destructive actions, like recursive rm or git push --force, allowing the agent to correct its plan. Additionally, skills are Markdown files stored in .claude/skills/ or ~/.claude/skills/ that teach Claude Code to perform repetitive tasks, such as generating Conventional Commits based on git diff --staged.
Community Comments
Loading updates...
0