Scaffold Sentinel config and rules directory in the current repository, installing prerequisites if needed
Set up Sentinel in the current repository. Checks prerequisites, installs what's missing, and scaffolds the config directory.
Supports both Claude Code and GitHub Copilot CLI. The skill detects which agent is running and installs the appropriate hook configuration.
Run these steps in order. Stop and report if anything fails.
Determine which coding agent is running:
CLAUDE_PLUGIN_ROOT environment variable is set, or this skill was invoked via /sentinel-init. This is the default.GITHUB_COPILOT or COPILOT_AGENT environment variable is set, or the user explicitly says they're using Copilot.Remember which agent was detected — it determines hook installation in Step 8.
Check if .claude/sentinel/ already exists in the current working directory. If it does, tell the user it's already initialized and stop.
Run which ollama to check if Ollama is installed.
If not installed, detect the platform and install:
brew install ollama (if brew is available), otherwise tell the user to download from https://ollama.comcurl -fsSL https://ollama.com/install.sh | shRun curl -s http://localhost:11434/api/tags to check if Ollama is serving.
If not responding, start it:
ollama serve in the backgroundIf it still doesn't respond, tell the user to start Ollama manually and re-run /sentinel-init.
Check if gemma3:4b is available by inspecting the response from /api/tags.
If not available, pull it:
ollama pull gemma3:4bCreate .claude/sentinel/config.yaml with this content:
# ─────────────────────────────────────────────────────────────
# Sentinel — configuration
# ─────────────────────────────────────────────────────────────
# LLM backend for rule evaluation: ollama, claude, or copilot.
# Per-rule overrides via `backend:` in rule files.