Skip to content
Back to skills

Claude Praetorian

ASecurity

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

  • 82 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 26, 2026
ai-agents

Works with

  • mcp

Security analysis

A100/100

Scanned May 27, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Claude Praetorian?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Claude Praetorian
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vvkmnn-claude-praetorian/badge)](https://www.skillsdirectory.com/skills/vvkmnn-claude-praetorian)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.