Skip to content
Development
Skill

/claude-praetorian

Context preservation with cross-session memory — hooks prompt compaction at high-impact moments, siblings enrich what gets saved

From plugin
claude-emporium
806 skills8 commands

Claude Code

$ npx -y skills add Vvkmnn/claude-emporium --skill claude-praetorian --agent claude-code

SKILL.md

claude-praetorian.SKILL.md
name: claude-praetorian
description: Context preservation with cross-session memory — hooks prompt compaction at high-impact moments, siblings enrich what gets saved
triggers: [PreToolUse, PreCompact, PostToolUse, SubagentStop]

Praetorian Plugin

Context guard. Saves and restores valuable context at the right moments — before planning, after research, when subagents complete.

Hooks

| 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` |

Commands

| Command | Description | |---------|-------------| | `/compact-praetorian [type] [title]` | Save current context | | `/restore-praetorian [query]` | Load previous context |

Workflows

Compact (standalone)

1. Identify what's worth saving (research, decisions, patterns) 2. `praetorian_compact(type, title, key_insights, refs)` 3. Verify with `praetorian_restore(title)` to confirm it saved

Compact (with siblings)

1. If **historian** active: `search_plans()` to check if past context already covers this 2. If **oracle** active: include any tool discoveries in `key_insights` 3. `praetorian_compact(type, title, key_insights, refs)` 4. If **vigil** active: files are also checkpointed via quicksave

Restore (standalone)

1. `praetorian_restore()` — list recent compactions 2. `praetorian_restore("query")` — search for specific topic 3. Summarize findings for the current task

Restore (with siblings)

1. `praetorian_restore("query")` — load praetorian context 2. If **historian** active: `search_conversations("query")` for broader session history 3. If **oracle** active: `search("query")` for tools relevant to the restored context 4. Combine all sources into a unified briefing

Sibling Synergy

| 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 |

Requires

claude mcp add praetorian -- npx claude-praetorian-mcp
Read more
@vvkmnn
Ships withclaude-emporium

🏛 [UNDER CONSTRUCTION] A (roman) claude plugin marketplace

Stars on GitHub

Momentum

stars in total
80
Star history of Vvkmnn/claude-emporium on GitHub, a chart by star-history.com

Other skills on claude-emporium.

claude-gladiator

claude-gladiator

Continuous learning — hooks observe failures and prompt reflection, sibling synergy deepens analysis with history and tool…

claude-oracle

claude-oracle

Automatic tool discovery across 17 sources — hooks search before planning and after errors, siblings avoid redundant searches

claude-vigil

claude-vigil

File checkpoint and recovery — auto-quicksaves before destructive commands, manual checkpoints for safe rollback

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about claude-praetorian.

Which coding agents can use claude-praetorian?
claude-praetorian installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.