greppable/greppable-cc-plugin/traversing-gdlm-memory

Claude Code and agent skill by greppable/greppable-cc-plugin

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when agent memory from prior sessions could inform current work — choosing between alternatives when past decisions exist, investigating why something was built a certain way, or checking if a problem was already solved. Triggers on: \"what did we decide about X\", \"why did we choose Y\", \"what do we know about Z\", references to past session work (\"last time\", \"before\", \"we decided\"), recording decisions/observations/errors, correcting memories, following supersedes chains, concept anchors, or any .gdlm file operation. NOT for general \"remember my preferences\", git log/blame searches, episodic conversation memory, PR comment reviews, or meeting notes in docs/.

Install

npx vskill@latest install greppable/greppable-cc-plugin/traversing-gdlm-memory

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as greppable/greppable-cc-plugin/traversing-gdlm-memory.

Memory Quick Reference

Available Memory Files

!bash -c 'find docs/gdl/memory/active -name "*.gdlm" -maxdepth 1 2>/dev/null | while read f; do count=$(grep -c "^@memory" "$f" 2>/dev/null || echo 0); echo "- $(basename "$f"): $count records"; done'

Format

@memory|id:{id}|agent:{agent}|subject:{subject}|tags:{t1,t2}|detail:{text}|confidence:{level}|anchor:{concept}|ts:{timestamp}

Each memory is one line. Each field is self-describing (key:value). Latest timestamp wins for corrections.

Required Fields

FieldDescription
idM-{agent}-{seq} unique identifier
agentAgent that authored the memory
subjectPrimary topic (flat)
detailThe knowledge content
tsISO timestamp

Optional Fields

FieldDescription
tagsComma-separated retrieval tags
confidencehigh, medium, low
relatesLinks to other memory IDs (typed: supersedes~M-001)
typeobservation, decision, preference, error, fact, task, procedural
anchorConcept anchor reference
statuscorrected, deleted, compacted

Three Tiers

TierPathPurpose
Activememory/active/*.gdlmCurrent working memory (read/write)
Archivememory/archive/*.gdlmCompacted summaries (read-only)
Historymemory/history/{period}/*.gdlmFull originals (forensic only)

Concept Anchors

Two-grep similarity search via memory/anchors.gdlm:

bash
# Step 1: Find anchor by keyword
grep "authentication\|oauth" memory/anchors.gdlm
# → @anchor|concept:auth-security|scope:authentication,authorization,oauth,...
# Step 2: Find memories by anchor
grep "anchor:auth-security" memory/active/*.gdlm

Grep Patterns

bash
# By subject
grep "subject:GL_ACCOUNT" memory/active/*.gdlm
# By agent
grep "agent:sf-042" memory/active/*.gdlm
# By tag
grep "tags:.*snowflake" memory/active/*.gdlm
# By anchor concept
grep "anchor:data-quality" memory/active/*.gdlm
# By type
grep "type:decision" memory/active/*.gdlm
# Latest version of a memory
grep "id:M-sf-042-001" memory/active/systems.gdlm | tail -1
# High-confidence only
grep "confidence:high" memory/active/*.gdlm
# Related memories
grep "relates:.*M-sf-042-018" memory/active/*.gdlm
# Search archive when active doesn't answer
grep "subject:GL_ACCOUNT" memory/archive/*.gdlm

Graph Traversal

Source the helpers: source "${CLAUDE_PLUGIN_ROOT}/scripts/gdlm-tools.sh"

HelperPurposeExample
gdlm_getFetch memory by IDgdlm_get M-sf-042-018
gdlm_outboundWhat does X relate to?gdlm_outbound M-001 supersedes
gdlm_inboundWhat points TO X?gdlm_inbound M-001 caused_by
gdlm_followFollow chain N hopsgdlm_follow M-ERR-001 caused_by 5
gdlm_chainFollow to endgdlm_chain M-001 supersedes
gdlm_filterFilter by type + keywordgdlm_filter decision auth
Relationship Types
TypeMeaning
supersedesThis replaces that
caused_byThis happened because of that
supportsThis evidence backs that claim
contradictsThis conflicts with that
refinesThis adds detail to that

Writing Memories

mem
@memory|id:M-sf-042-018|agent:sf-042|subject:GL_ACCOUNT|anchor:schema-change|tags:snowflake,finance|detail:added REGION_CODE VARCHAR(100)|confidence:high|ts:2026-01-31T14:30:00

Corrections

Append new record with same ID. Latest timestamp wins:

mem
@memory|id:M-sf-042-001|agent:sf-042|subject:GL_ACCOUNT|detail:has 13 columns|status:corrected|ts:2026-01-31T14:45:00

Deletions

Append with status:deleted:

mem
@memory|id:M-sf-042-001|agent:sf-042|status:deleted|ts:2026-01-31T16:00:00

Key Rules

  • Each line is a complete, self-describing record
  • grep "key:value" directly answers queries - no context lines needed
  • Active tier is the primary query target; search archive when active is insufficient
  • Concept anchors enable similarity search in exactly two grep calls
  • Latest timestamp always wins for corrections
  • Include anchor field when writing to enable concept-based retrieval

Query Cookbook

Common queries translated to commands:

QuestionCommand
"Auth decisions last month"`grep "type:decision" *.gdlm \grep "anchor:auth-security" \grep "2026-01"`
"What superseded M-001?"gdlm_inbound M-001 supersedes
"Current version of M-001"gdlm_chain M-001 supersedes
"Why did this error happen?"gdlm_follow M-ERR-001 caused_by 5
"How important is M-001?"`gdlm_inbound M-001 \wc -l`
"All procedural knowledge"gdlm_filter procedural
"Decisions about deployment"gdlm_filter decision deploy
"High-confidence facts"`grep "type:fact" *.gdlm \grep "confidence:high"`

Tooling Recipes

Generate Memory Records
bash
source "${CLAUDE_PLUGIN_ROOT}/scripts/gdl-tools.sh"
gdl_new memory --agent=sf-042 --subject=GL_ACCOUNT --detail="Added REGION_CODE" --file=memory/active/systems.gdlm --append

Auto-increments the ID from the max sequence in the file. --append writes directly with flock-based locking.

Time Travel — Compare memory across git history
bash
# What did we know last week?
bash "${CLAUDE_PLUGIN_ROOT}/scripts/gdl-diff.sh" memory/active/systems.gdlm HEAD~5
# Show a specific memory at a past commit
git show abc123:memory/active/systems.gdlm | grep "subject:GL_ACCOUNT"
Validate Memory Files
bash
bash "${CLAUDE_PLUGIN_ROOT}/scripts/gdl-lint.sh" memory/active/systems.gdlm
bash "${CLAUDE_PLUGIN_ROOT}/scripts/gdl-lint.sh" --all memory/active/

Checks required fields (id, agent, ts), M-{agent}-{seq} ID format, and duplicate IDs.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
Repository forks
1
7-day trend score
7

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/greppable/greppable-cc-plugin/traversing-gdlm-memory/badge)](https://verified-skill.com/skills/greppable/greppable-cc-plugin/traversing-gdlm-memory)

Something wrong with this skill or its page? Tell us.