Skip to content
Back to skills

Squirrel Dig

ASecurity

Search the global hoard and only the current project's own memories, then read selected entries.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentspythongit

Works with

  • claude code

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add thgMatajs/squirrel-mode --skill squirrel-dig --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Squirrel Dig?

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

Security grade badge for Squirrel Dig
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thgmatajs-squirrel-dig/badge)](https://www.skillsdirectory.com/skills/thgmatajs-squirrel-dig)

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: 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.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.