Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Squirrel Dig?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/thgmatajs-squirrel-dig)
---
name: squirrel-dig
description: "Search the global hoard and only the current project's own memories, then read selected entries."
---
<!-- GENERATED FILE. Source: targets/codex/skills/squirrel-dig/SKILL.md; installed by targets/codex/install.sh. -->
# squirrel-dig
Use the bundled helper at `"$HOME/.agents/skills/squirrel-dig/squirrel.py"`.
1. Run `python3 "$HOME/.agents/skills/squirrel-dig/squirrel.py" search --scope both --cwd "$PWD" --query '<terms>' --limit N`. The limit is 1–10; default to 5. Use `--scope global`, `--scope project`, or `--scope both` to select exactly those layers. Results contain titles and short snippets only. Search does not traverse other project directories.
2. If project identity cannot be resolved, search `global` only and report that no project layer was queried. Never substitute another project's slug.
3. Show the bounded result list. Read only a memory the user selects with `python3 "$HOME/.agents/skills/squirrel-dig/squirrel.py" memory-read --scope global|project --cwd "$PWD" --id '<id>'`. Project scope uses the canonical repository-root legacy basename+cksum slug for compatibility with Claude-created memories.
4. Reads are deliberately read-only; do not auto-inject memories. Use `--all` only when the user asks for superseded history.
The helper accepts only regular, non-symlink, single-link files and safe memory IDs. It uses atomic writes and a per-layer `flock` lock among Codex helper processes only; Claude Code and all other writers do not share it. Reads do not update usage metadata to avoid cross-writer lost updates. Supersession uses a durable journal: helper reads/searches/writes recover an interrupted transition before returning layer contents. The legacy project slug searches only the exact canonical-root basename+cksum directory already used by Claude. Historical subdirectory- or worktree-specific directories are not discovered or merged. Requires Python 3.8 or newer, the standard library, and `git` plus `cksum` on PATH.