Get the FREE Ultimate OpenClaw Setup Guide →

claude-historian

Scanned
npx machina-cli add skill Vvkmnn/claude-emporium/claude-historian --openclaw
Files (1)
SKILL.md
3.0 KB

Historian Plugin

Session memory. Checks past sessions before redundant research, planning, or debugging.

Hooks

HookWhenAction
PreToolUse(WebSearch/WebFetch)Before web researchChecks find_similar_queries() first
PreToolUse(EnterPlanMode)Before planningSearches search_plans() for past approaches
PreToolUse(Task)Before agentsChecks find_tool_patterns() for workflows
PostToolUse(Bash)After errorsSuggests get_error_solutions()

Commands

CommandDescription
/search-historian <query>Search past sessions for solutions, decisions, context

Workflows

Search (standalone)

  1. search_conversations("query") — full-text across all sessions
  2. If error-related: get_error_solutions("error pattern")
  3. If file-related: find_file_context("filename")
  4. Summarize relevant findings

Search (with siblings)

  1. search_conversations("query") — historian's own search
  2. If praetorian active: praetorian_restore("query") for compacted context (denser than raw history)
  3. If oracle active: search("query") when error patterns suggest a missing tool
  4. Combine: historian provides breadth (all sessions), praetorian provides depth (curated insights)

Error Resolution (standalone)

  1. get_error_solutions("error pattern") — how was this fixed before?
  2. If found: apply the previous solution
  3. If not: proceed with normal debugging

Error Resolution (with siblings)

  1. get_error_solutions("error pattern") — historian checks past fixes
  2. If oracle active: search("error tool") for tools that address this error class
  3. If gladiator active: check if this error was already observed as a pattern
  4. Present combined findings: past fix + available tools + pattern context

Sibling Synergy

SiblingValueHow
PraetorianResearch will be compacted afterPraetorian prompts saving after web searches historian triggers
OracleTools found for error patternsOracle searches for tools when historian finds recurring errors
GladiatorObservations correlate with historyPast solutions enrich gladiator reflection
VigilCheckpoints complement historyFile state preserved alongside session history

MCP Tools Reference

ToolPurpose
search_conversationsGeneral history search
find_similar_queriesFind related past questions
get_error_solutionsFind how errors were fixed
find_file_contextTrack file changes
find_tool_patternsDiscover successful workflows
list_recent_sessionsBrowse recent work
search_plansFind past implementation plans

Requires

claude mcp add historian -- npx claude-historian-mcp

Source

git clone https://github.com/Vvkmnn/claude-emporium/blob/main/plugins/claude-historian/skills/claude-historian/SKILL.mdView on GitHub

Overview

Historian Plugin performs session memory checks before redundant research, planning, or debugging. It leverages past conversations, plans, and workflows to deepen coverage and avoid repeating work, with sibling components enhancing context when available.

How This Skill Works

On PreToolUse hooks, it searches past sessions with find_similar_queries before web research, scans past approaches with search_plans before planning, and reviews workflows with find_tool_patterns before tasks. PostToolUse returns help from get_error_solutions after errors. It can also combine results from list_recent_sessions and full-text history via search_conversations for broader context.

When to Use It

  • Before starting a web search to reuse related past queries
  • Before planning to build on previous approaches found in search_plans
  • Before executing a task to adopt proven workflows via find_tool_patterns
  • After a tool error to retrieve prior fixes with get_error_solutions
  • When exploring past sessions for broader context, potentially using siblings for compacted or enhanced insights

Quick Start

  1. Step 1: /search-historian <query> to locate relevant past sessions
  2. Step 2: Before web research, run find_similar_queries to reuse related history
  3. Step 3: Before planning, run search_plans; before tasks, run find_tool_patterns

Best Practices

  • Use /search-historian <query> to locate relevant prior sessions quickly
  • Check find_similar_queries before web searches to avoid duplicates
  • Consult search_plans before drafting new plans to leverage past strategies
  • Review get_error_solutions during debugging to accelerate resolution
  • Leverage siblings (Praetorian, Oracle, Gladiator) for depth, tools, and pattern context

Example Use Cases

  • Reuse a successful web search path by finding related past questions with find_similar_queries
  • Recover a proven plan approach via search_plans before drafting a new plan
  • Adopt a known workflow by reviewing find_tool_patterns before task execution
  • Resolve a recurring error quickly by applying a prior get_error_solutions fix
  • Compact context with Praetorian after historian results for dense but rich input

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers