withzombies/hyperpowers/skills-auto-activation
Claude Code and agent skill by withzombies/hyperpowers
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use when skills aren't activating reliably - covers official solutions (better descriptions) and custom hook system for deterministic skill activation
Install
npx vskill@latest install withzombies/hyperpowers/skills-auto-activationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
<skill_overview> Skills often don't activate despite keywords; make activation reliable through better descriptions, explicit triggers, or custom hooks. </skill_overview>
<rigidity_level> HIGH FREEDOM - Choose solution level based on project needs (Level 1 for simple, Level 3 for complex). Hook implementation is flexible pattern, not rigid process. </rigidity_level>
<quick_reference>
| Level | Solution | Effort | Reliability | When to Use | |
|---|---|---|---|---|---|
| 1 | Better descriptions + explicit requests | Low | Moderate | Small projects, starting out | |
| 2 | CLAUDE.md references | Low | Moderate | Document patterns | |
| 3 | Custom hook system | High | Very High | Large projects, established patterns |
Hyperpowers includes: Auto-activation hook at hooks/user-prompt-submit/10-skill-activator.js </quick_reference>
<when_to_use> Use this skill when:
- Skills you created aren't being used automatically
- Need consistent skill activation across sessions
- Large codebases with established patterns
- Manual "/use skill-name" gets tedious
Prerequisites:
- Skills properly configured (name, description, SKILL.md)
- Code execution enabled (Settings > Capabilities)
- Skills toggled on (Settings > Capabilities)
</when_to_use>
<the_problem>
What Users Experience
Symptoms:
- Keywords from skill descriptions present → skill not used
- Working on files that should trigger skills → nothing
- Skills exist but sit unused
Community reports:
- GitHub Issue #9954: "Skills not available even if explicitly enabled"
- "Claude knows it should use skills, but it's not reliable"
- Skills activation is "not reliable yet"
Root cause: Skills rely on Claude recognizing relevance (not deterministic) </the_problem>
<solution_levels>
Level 1: Official Solutions (Start Here)
1. Improve Skill Descriptions
❌ Bad:
✅ Good:
Key elements:
- Specific keywords: "API routes", "controllers", "services"
- When to use: "Use when creating..."
- What it enforces: Patterns, error handling
2. Be Explicit in Requests
Instead of: "How do I create an endpoint?"
Try: "Use my backend-dev-guidelines skill to create an endpoint"
Result: Works, but tedious
3. Check Settings
- Settings > Capabilities > Enable code execution
- Settings > Capabilities > Toggle Skills on
- Team/Enterprise: Check org-level settings
Level 2: Skill References (Moderate)
Reference skills in CLAUDE.md:
Pros: No custom code Cons: Claude still might not check
Level 3: Custom Hook System (Advanced)
How it works:
- UserPromptSubmit hook analyzes prompt before Claude sees it
- Matches keywords, intent patterns, file paths
- Injects skill activation reminder into context
- Claude sees "🎯 USE these skills" before processing
Result: "Night and day difference" - skills consistently used
Architecture
Configuration: skill-rules.json
Trigger Types
- Keyword Triggers - Simple string matching (case insensitive)
- Intent Pattern Triggers - Regex for actions + objects
- File Path Triggers - Glob patterns for file paths
- Content Pattern Triggers - Regex in file content
Hook Implementation (High-Level)
For complete working implementation: See resources/hook-implementation.md
Progressive Enhancement
Phase 1 (Week 1): Basic keyword matching
Phase 2 (Week 2): Add intent patterns
Phase 3 (Week 3): Add file triggers
Phase 4 (Ongoing): Refine based on observation </solution_levels>
<results>
Before Hook System
- Skills sit unused despite perfect keywords
- Manual "/use skill-name" every time
- Inconsistent patterns across codebase
- Time spent fixing "creative interpretations"
After Hook System
- Skills activate automatically and reliably
- Consistent patterns enforced
- Claude self-checks before showing code
- "Night and day difference"
Real user: "Skills went from 'expensive decorations' to actually useful" </results>
<limitations>
Hook System Limitations
- Requires hook system - Not built into Claude Code
- Maintenance overhead - skill-rules.json needs updates
- May over-activate - Too many skills overwhelm context
- Not perfect - Still relies on Claude using activated skills
Considerations
Token usage:
- Activation reminder adds ~50-100 tokens per prompt
- Multiple skills add more tokens
- Use priorities to limit activation
Performance:
- Hook adds ~100-300ms to prompt processing
- Acceptable for quality improvement
- Optimize regex patterns if slow
Maintenance:
- Update rules when adding new skills
- Review activation logs monthly
- Refine patterns based on misses
</limitations>
<alternatives>
Approach 1: MCP Integration
Use Model Context Protocol to provide skills as context.
Pros: Built into Claude system Cons: Still not deterministic, same activation issues
Approach 2: Custom System Prompt
Modify Claude's system prompt to always check certain skills.
Pros: Works without hooks Cons: Limited to Pro plan, can't customize per-project
Approach 3: Manual Discipline
Always explicitly request skill usage.
Pros: No setup required Cons: Tedious, easy to forget, doesn't scale
Approach 4: Skill Consolidation
Combine all guidelines into CLAUDE.md.
Pros: Always loaded Cons: Violates progressive disclosure, wastes tokens
Recommendation: Level 3 (hooks) for large projects, Level 1 for smaller projects </alternatives>
<critical_rules>
Rules That Have No Exceptions
- Try Level 1 first → Better descriptions and explicit requests before building hooks
- Observe before building → Watch which prompts should activate skills
- Start with keywords → Add complexity incrementally (keywords → intent → files)
- Keep hook fast (<1 second) → Don't block prompt processing
- Maintain skill-rules.json → Update when skills change
Common Excuses
All of these mean: Try Level 1 first, then decide.
- "Skills should just work automatically" (They should, but don't reliably - workaround needed)
- "Hook system too complex" (Setup takes 2 hours, saves hundreds of hours)
- "I'll manually specify skills" (You'll forget, it gets tedious)
- "Improving descriptions will fix it" (Helps, but not deterministic)
- "This is overkill" (Maybe - start Level 1, upgrade if needed)
</critical_rules>
<verification_checklist> Before building hook system:
- [ ] Tried improving skill descriptions (Level 1)
- [ ] Tried explicit skill requests (Level 1)
- [ ] Checked all settings are enabled
- [ ] Observed which prompts should activate skills
- [ ] Identified patterns in failures
- [ ] Project large enough to justify hook overhead
- [ ] Have time for 2-hour setup + ongoing maintenance
If Level 1 works: Don't build hook system
If Level 1 insufficient: Build hook system (Level 3) </verification_checklist>
<integration> This skill covers: Skill activation strategies
Related skills:
- hyperpowers:building-hooks (how to build hook system)
- hyperpowers:using-hyper (when to use skills generally)
- hyperpowers:writing-skills (creating skills that activate well)
This skill enables:
- Consistent enforcement of patterns
- Automatic guideline checking
- Reliable skill usage across sessions
Hyperpowers includes: Auto-activation hook at hooks/user-prompt-submit/10-skill-activator.js </integration>
<resources> Detailed implementation:
Official documentation:
When stuck:
- Skills still not activating → Check Settings > Capabilities
- Hook not working → Check ~/.claude/logs/hooks.log
- Over-activation → Reduce keywords, increase priority thresholds
- Under-activation → Add more keywords, broaden intent patterns
</resources>
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/skills-auto-activation/SKILL.md
Popularity
- Repository stars
- 69
- Repository forks
- 12
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 8 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/withzombies/hyperpowers/skills-auto-activation)