From security-code-audit
Set up and verify the security review system. Checks grepai installation, Ollama for local embeddings.
How this command is triggered — by the user, by Claude, or both
Slash command
/security-code-audit:security-code-audit-setupThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Security Review Setup Complete setup guide for the security review system. ## Purpose Verify and configure all dependencies needed for security code reviews: grepai for semantic search and Ollama for local embeddings. ## Setup Checklist Run through each check sequentially. Report status after each step. ### Step 1: Detect Platform Use this to provide platform-specific installation commands: - **Darwin** → macOS (prefer Homebrew) - **Linux** → Use shell script - **Windows** → Use PowerShell (or WSL) ### Step 2: Check grepai Installation **If not installed, guide user with plat...
Complete setup guide for the security review system.
Verify and configure all dependencies needed for security code reviews: grepai for semantic search and Ollama for local embeddings.
Run through each check sequentially. Report status after each step.
uname -s
Use this to provide platform-specific installation commands:
which grepai && grepai version
If not installed, guide user with platform-specific install:
| Platform | Command |
|---|---|
| macOS | brew install yoanbernabeu/tap/grepai |
| Linux/macOS | curl -sSL https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.sh | sh |
| Windows | irm https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.ps1 | iex |
which ollama && curl -s http://localhost:11434/api/tags | head -c 100
If not installed:
| Platform | Command |
|---|---|
| macOS | brew install ollama |
| Linux | curl -fsSL https://ollama.com/install.sh | sh |
After installation:
ollama serve & # Start Ollama daemon
ollama pull nomic-embed-text # Pull embedding model
After running all checks, report:
## Security Review Setup Status
| Component | Status | Notes |
|-----------|--------|-------|
| grepai | ✅/❌ | version X.Y.Z or "not installed" |
| Ollama | ✅/❌/⚠️ | running/not installed/not running |
| Embedding Model | ✅/❌ | nomic-embed-text available |
**Next Steps:**
- [any required actions]
echo $PATHsource ~/.zshrc (or ~/.bashrc)pgrep ollamaollama servelsof -i :11434ollama pull nomic-embed-textollama list# Full setup (macOS with Homebrew)
brew install yoanbernabeu/tap/grepai ollama
ollama serve &
ollama pull nomic-embed-text
# Check everything
grepai version && grepai status
curl -s http://localhost:11434/api/tags
npx claudepluginhub mfakbar127/agent-skills --plugin security-code-audit