read-memories

Solid

Search past Claude Code session logs to recover context from previous conversations. Finds past decisions, data paths, CRS info, model configurations, and unresolved work. Works across all projects or scoped to the current one.

AI & Automation 24 stars 3 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
47
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

Use this to recover your own context from past sessions. Do NOT narrate the process to the user -- silently run the query, absorb the results, and continue with enriched context. `$0` is the keyword to search for. Pass `--here` as an argument to scope the search to the current project only. Pass `--geo` as an argument to additionally extract geospatial-specific context (EPSG codes, bounding boxes, CRS info, spatial file paths, model names). ## Step 1 -- Set the search path ```bash ALL_PROJECTS="$HOME/.claude/projects/*/*.jsonl" CURRENT_PROJECT="$HOME/.claude/projects/$(echo "$PWD" | sed 's|[/_]|-|g')/*.jsonl" ``` Use `$CURRENT_PROJECT` if any argument is `--here`, otherwise use `$ALL_PROJECTS`. Store the chosen glob in `SEARCH_PATH`. Check whether the `--geo` flag is present. ## Step 2 -- Query with Python Run the following Python script via `python3 -c "..."`, substituting `<SEARCH_PATH>` and `<KEYWORD>` with the resolved values. Escape any single quotes in `<KEYWORD>` before embedding it. ```bash python3 -c " import json, glob, os SEARCH_PATH = '<SEARCH_PATH>' KEYWORD = '<KEYWORD>'.lower() LIMIT = 40 files = sorted(glob.glob(os.path.expanduser(SEARCH_PATH))) results = [] for fpath in files: parts = fpath.split('/') try: proj_idx = parts.index('projects') + 1 project = parts[proj_idx] if proj_idx < len(parts) else 'unknown' except ValueError: project = 'unknown' with open(fpath, 'r', errors='replace') as f: for line...

Details

Author
opengeos
Repository
opengeos/geoai-skills
Created
4 months ago
Last Updated
6 days ago
Language
N/A
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category