Skip to content
Back to skills

Session Query

ASecurity

Query previous pi sessions to retrieve context, decisions, code changes, or other information. Use when you need to look up what happened in a parent session or any other session file.

  • 1,689 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added June 3, 2026
development

Security analysis

A100/100

Scanned June 3, 2026

npx -y skills add Dicklesworthstone/pi_agent_rust --skill session-query --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Session Query?

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

Security grade badge for Session Query
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dicklesworthstone-session-query/badge)](https://www.skillsdirectory.com/skills/dicklesworthstone-session-query)

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: session-query
description: Query previous pi sessions to retrieve context, decisions, code changes, or other information. Use when you need to look up what happened in a parent session or any other session file.
disable-model-invocation: true
---

# Session Query

Query pi session files to retrieve context from past conversations.

This skill is automatically invoked in handed-off sessions when you need to look up details from the parent session.

## Usage

Use the `session_query` tool:

```
session_query(sessionPath, question)
```

- `sessionPath`: Full path to the session file (provided in the "Parent session:" line)
- `question`: Specific question about that session (e.g., "What files were modified?" or "What approach was chosen?")

## Examples

```
session_query("/path/to/session.jsonl", "What files were modified?")
session_query("/path/to/session.jsonl", "What approach was chosen for authentication?")
session_query("/path/to/session.jsonl", "Summarize the key decisions made")
```

The tool loads the session and uses an LLM to answer your question based on its contents. Ask specific questions for best results.

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…