feat: import 35 skills from affaan-m/everything-claude-code
- Add 9 agent skills (cc-agent-*) - Add 10 command skills (cc-cmd-*) - Add 8 skill files (cc-skill-*) - Add 8 rule skills (cc-rule-*) - Update README.md skill count from 225 to 260 - Add new skills to Full Skill Registry - Add credit to affaan-m in Credits section - Regenerate skills_index.json Source: https://github.com/affaan-m/everything-claude-code Author attribution: affaan-m, version 1.0
This commit is contained in:
53
skills/cc-rule-hooks/SKILL.md
Normal file
53
skills/cc-rule-hooks/SKILL.md
Normal file
@@ -0,0 +1,53 @@
|
||||
---
|
||||
name: cc-rule-hooks
|
||||
description: Hooks System
|
||||
author: affaan-m
|
||||
version: "1.0"
|
||||
---
|
||||
|
||||
# Hooks System
|
||||
|
||||
## Hook Types
|
||||
|
||||
- **PreToolUse**: Before tool execution (validation, parameter modification)
|
||||
- **PostToolUse**: After tool execution (auto-format, checks)
|
||||
- **Stop**: When session ends (final verification)
|
||||
|
||||
## Current Hooks (in ~/.claude/settings.json)
|
||||
|
||||
### PreToolUse
|
||||
- **tmux reminder**: Suggests tmux for long-running commands (npm, pnpm, yarn, cargo, etc.)
|
||||
- **git push review**: Opens Zed for review before push
|
||||
- **doc blocker**: Blocks creation of unnecessary .md/.txt files
|
||||
|
||||
### PostToolUse
|
||||
- **PR creation**: Logs PR URL and GitHub Actions status
|
||||
- **Prettier**: Auto-formats JS/TS files after edit
|
||||
- **TypeScript check**: Runs tsc after editing .ts/.tsx files
|
||||
- **console.log warning**: Warns about console.log in edited files
|
||||
|
||||
### Stop
|
||||
- **console.log audit**: Checks all modified files for console.log before session ends
|
||||
|
||||
## Auto-Accept Permissions
|
||||
|
||||
Use with caution:
|
||||
- Enable for trusted, well-defined plans
|
||||
- Disable for exploratory work
|
||||
- Never use dangerously-skip-permissions flag
|
||||
- Configure `allowedTools` in `~/.claude.json` instead
|
||||
|
||||
## TodoWrite Best Practices
|
||||
|
||||
Use TodoWrite tool to:
|
||||
- Track progress on multi-step tasks
|
||||
- Verify understanding of instructions
|
||||
- Enable real-time steering
|
||||
- Show granular implementation steps
|
||||
|
||||
Todo list reveals:
|
||||
- Out of order steps
|
||||
- Missing items
|
||||
- Extra unnecessary items
|
||||
- Wrong granularity
|
||||
- Misinterpreted requirements
|
||||
Reference in New Issue
Block a user