ContextSearch

Search session registries, MEMORY work directories, and ISA titles for topic keywords.

1|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/davdunc/pai-framework --skill contextsearch-davdunc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ContextSearch
Source: https://github.com/davdunc/pai-framework/tree/main/skills/ContextSearch
Command: npx skills add https://github.com/davdunc/pai-framework --skill contextsearch-davdunc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of quickly finding prior context (sessions, work directories, and ISA summaries) when you need to resume what you were doing, especially after a cold start.

Core Features & Use Cases

  • Two-phase context recovery: performs a fast parallel index scan first, then optionally runs a deeper git-history search when results are sparse.
  • ISA summary loading: returns compact, first-10-lines summaries for the most recent relevant ISAs instead of dumping full documents.
  • Paired or standalone workflows: supports both “search then decide” and “search then proceed with the request” modes.
  • Targeted scope: focuses on PAI session registry, MEMORY work directories, and ISA title matches (not published content, OSINT, or archive lookups).

Quick Start

Use the ContextSearch skill to locate the most relevant past sessions and ISA summaries for your topic, then resume the work with the newly loaded context.

Frequently Asked Questions about ContextSearch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I recover prior session context after a cold start?

Recover prior session context after a cold start by executing a two-phase scan that searches PAI session registries, MEMORY work directories, and ISA title keywords to locate and resume relevant work instantly.

What is the best way to search git history for prior work sessions?

The best way to search git history for prior work sessions is using an optional two-phase context recovery scan that runs a deeper git log grep to find sparse session matches when initial index results are insufficient.

How do I retrieve ISA summaries without loading full documents?

Retrieve ISA summaries by loading the compact first 10 lines of the most recent relevant ISAs into a context block under 40 lines, providing quick session context recovery without dumping full documents.

Can I search MEMORY work directories to resume unfinished development tasks?

Yes, you can search MEMORY work directories to resume unfinished development tasks by running a parallel index scan that matches topic keywords against session registries and ISA titles.

Does context recovery search published content and OSINT archives?

No, context recovery does not search published content, OSINT, or archive lookups; the targeted scope focuses exclusively on PAI session registries, MEMORY work directories, and ISA title matches.

What are the limitations of two-phase context recovery scans?

The main limitation of two-phase context recovery scans is the strict 40-line context block ceiling, and the scope is restricted to session registries, MEMORY directories, and ISA summaries rather than external published content or archives.