Hook Development Rules
AI & LLM
LLM integrations, prompt engineering, and AI orchestration
Idempotent Redundancy
Implement technical plans from thoughts/shared/plans with verification
Implement technical plans from thoughts/shared/plans with verification
Implementation agent that executes a single task and creates handoff on completion
Index at Creation Time
LLM Tuning Patterns
Search Mathlib for lemmas by type signature pattern
Guide to the math cognitive stack - what tools exist and when to use each
Deterministic router for math cognitive stack - maps user intent to exact CLI commands
Unified math capabilities - computation, solving, and explanation. I route to the right tool.
Research-to-implement pipeline chaining 5 MCP tools with graceful degradation
MCP Script Rules
Migration workflow - research → analyze → plan → implement → review
Modular Code Organization
Fast file editing via Morph Apply API (10,500 tokens/sec, 98% accuracy)
Fast codebase search via WarpGrep (20x faster than grep)
System health check (MOT) for skills, agents, hooks, and memory
Search library documentation and code examples via Nia
No Polling for Background Agents
Never Use TaskOutput
Observe Before Editing
Analyze brownfield codebase and create initial continuity ledger
OPC Architecture Understanding