High-performance Rust hooks for Claude Code skill auto-activation. ~2ms startup, zero dependencies, production-tested patterns.
git clone https://github.com/dwalleck/catalyst.gitCatalyst provides battle-tested Rust hooks designed to make Claude Code skills activate automatically based on context—keywords, file paths, intent patterns, and file content analysis. Built from 6 months of production use, it runs in ~2ms with zero runtime dependencies, making skill suggestions imperceptible to users. The skill-activation-prompt hook analyzes every user input to match relevant skills, while file-analyzer scans codebases for patterns like async functions without error handling, database usage, and API endpoints. Optional SQLite state management enables tracking file modifications across sessions with rich query capabilities. Developers benefit from dramatically faster skill activation than interpreted alternatives like TypeScript or Python, with minimal memory footprint (3-5MB) and self-contained binaries (1.8-2.4MB).
Install via standalone script: run `./install.sh` (or `./install.ps1` on Windows) from the catalyst directory to build binaries in `~/.claude-hooks/bin/`. Create a thin bash/PowerShell wrapper in your project's `.claude/hooks/` directory pointing to the installed binary. Configure the `UserPromptSubmit` hook in `.claude/settings.json` to run `skill-activation-prompt.sh` (or `.ps1`) on every user prompt.
Automatically suggest backend frameworks when detecting API endpoint patterns
Activate database skills when codebase contains Prisma or SQL queries
Trigger async error handling skills for unprotected async functions
Enable context-aware skill loading based on file type and project structure
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/dwalleck/catalystCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Write a Rust function using the catalyst hook to auto-activate Claude Code skills for processing [DATA] in the [INDUSTRY] sector. Ensure it meets production standards with <2ms startup time and no dependencies.
# Rust Function for Claude Code Auto-Activation
```rust
use catalyst::hook;
fn process_data(data: &str) -> Result<String, String> {
let hook = hook::ClaudeCode::new("data_processing")?;
let output = hook.execute(data)?;
Ok(output)
}
fn main() {
let sample_data = "2023 Q3 financials for [COMPANY] in the [INDUSTRY] sector";
match process_data(sample_data) {
Ok(result) => println!("Processed data: {}", result),
Err(e) => eprintln!("Error: {}", e),
}
}
```
## Key Features
- **Performance**: Achieves <2ms startup time
- **Reliability**: Production-tested patterns
- **Dependencies**: Zero external dependencies
- **Use Case**: Optimized for [INDUSTRY] data processingAgents that listen, think and act for you.
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan