Preserves context across sessions by hooking PreToolUse, PreCompact, PostToolUse, SubagentStop to compact/save insights. Manual /compact-praetorian and /restore-praetorian commands.
From claude-praetoriannpx claudepluginhub vvkmnn/claude-emporium --plugin claude-praetorianThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Analyzes BMad project state from catalog CSV, configs, artifacts, and query to recommend next skills or answer questions. Useful for help requests, 'what next', or starting BMad.
Context guard. Saves and restores valuable context at the right moments — before planning, after research, when subagents complete.
| Hook | When | Action |
|---|---|---|
| PreToolUse(EnterPlanMode) | Before planning | Lists prior compactions, suggests restoring |
| PreCompact | Before context resets | Prompts to save decisions/insights/findings |
| PostToolUse(WebFetch/WebSearch) | After web research | Prompts to compact as web_research |
| SubagentStop | After subagent completes | Prompts to compact as task_result |
| Command | Description |
|---|---|
/compact-praetorian [type] [title] | Save current context |
/restore-praetorian [query] | Load previous context |
praetorian_compact(type, title, key_insights, refs)praetorian_restore(title) to confirm it savedsearch_plans() to check if past context already covers thiskey_insightspraetorian_compact(type, title, key_insights, refs)praetorian_restore() — list recent compactionspraetorian_restore("query") — search for specific topicpraetorian_restore("query") — load praetorian contextsearch_conversations("query") for broader session historysearch("query") for tools relevant to the restored context| Sibling | Value | How |
|---|---|---|
| Historian | Past plans surface during planning compactions | search_plans() enriches pre-plan hook |
| Oracle | Tool discoveries included in compactions | Oracle results added to key_insights |
| Gladiator | Observations inform what to compact | Failure patterns highlight important context |
| Vigil | Files checkpointed alongside context | Quicksave protects files during compaction |
claude mcp add praetorian -- npx claude-praetorian-mcp