greppable/greppable-cc-plugin/querying-gdl-data
Claude Code and agent skill by greppable/greppable-cc-plugin
- community
Checking that the SKILL.md file is still in the repository.
Use when working with structured business data records — orders, invoices, products, or any @type records in .gdl files. Covers: filtering records by field values, aggregating data by region/status/category, cross-referencing between record types, extracting specific fields, or converting GDL data to CSV/JSON. Triggers on: \"show me all orders over X\", \"filter by status\", \"aggregate by region\", business data queries, or direct .gdl file operations. NOT for SQL database queries, .gdls schema maps, or .gdlm memory files.
Install
npx vskill@latest install greppable/greppable-cc-plugin/querying-gdl-dataSemi-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/querying-gdl-data.
GDL Quick Reference
Available Data Files
!bash -c 'find docs/gdl -name "*.gdl" -not -name "rules.gdl" -maxdepth 3 2>/dev/null | while read f; do count=$(grep -c "^@" "$f" 2>/dev/null || echo 0); echo "- $f ($count records)"; done'
Format
Every record is one line. Every field is self-describing (key:value). No schema lookup needed.
Grep Patterns
Example
Escaping
\| = literal pipe, \: = literal colon, \\ = literal backslash.
Tool Functions
Source the helpers:
| Function | Usage | What it does | |
|---|---|---|---|
csv2gdl | csv2gdl TYPE FILE | Convert CSV to GDL records | |
json2gdl | json2gdl TYPE FILE | Convert JSON array or JSONL to GDL records. Supports stdin via -. Requires jq. | |
gdl_describe | gdl_describe FILE | Describe record types and sample records in a GDL file | |
gdl_latest | gdl_latest ID FILE | Get latest version of a record by ID | |
gdl_values | gdl_values TYPE FIELD FILE | List unique values for a field |
Cross-Layer Search
| Function | Usage | What it does | |
|---|---|---|---|
gdl_about | gdl_about TOPIC [dir] [--layer=L] [--exclude-layer=L] [--summary] [--regex] [--ignore-case] | Search across all GDL layers for TOPIC |
Flags:
--layer=gdl|gdls|gdlc|gdla|gdld|gdlm|gdlu— restrict to one layer--exclude-layer=LAYERS— skip comma-separated layers--summary— show match counts only, no record content--regex/-E— extended regex matching--ignore-case/-i— case-insensitive search
Key Rules
- Each line is a complete, self-describing record
grep "key:value"directly answers queries - no context lines needed- Multiple record types coexist in one file
- References use plain ID values (e.g.,
customer:C001)
Null Convention
Distinguish between explicit absence and missing fields:
| Pattern | Meaning | Use Case | |
|---|---|---|---|
email:null | Explicit absence | "We asked, they have no email" | |
No email: field | Not applicable | "We didn't collect this field" |
Recommended Field Names
Use consistent field names across files for easier cross-file queries:
| Field | Purpose | Example | |
|---|---|---|---|
id: | Primary identifier | id:C001 | |
name: | Human-readable name | name:Acme Inc | |
ts: | Timestamp (ISO 8601) | ts:2026-02-02T14:30:00Z | |
status: | Current state | status:active | |
source: | Data provenance | source:crm-export-2026-02-01 | |
type: | Record subtype | type:enterprise | |
author: | Creator/modifier | author:agent-sf-042 |
These are conventions, not requirements. GDL remains flexible.
Wide Records Principle
Include all relevant context in each record so a single grep returns complete information:
Why: Single grep = single tool call. Wide records align with GDL's "1 grep per query" philosophy.
Note: "Wide" means relevant context, not every possible field. Include what an agent would need to answer questions about this record.
Analytical Patterns
Simple aggregations work with grep + standard Unix tools:
When to use DuckDB instead:
For GROUP BY, JOINs, window functions, or complex aggregations, convert to CSV and use DuckDB:
GDL excels at lookup and simple counts. SQL excels at analytics.
Converting Between GDL and JSONL
GDL → JSONL:
JSONL → GDL:
Use case: Store in GDL (human-readable, greppable), export to JSONL for AI batch APIs (OpenAI, Anthropic).
Discovering Schema
GDL is self-describing. Infer schema from existing records:
Records ARE the schema. These patterns make it explicit.
Tooling Recipes
Blast Radius — What does an entity touch?
Shows match counts across all GDL layers for an entity. Use before modifying to understand impact.
Cross-Layer Coverage — One-liner audit
Project Health Check
Validate Before Commit
Semantic Diff — Review changes
Generate Records Safely
Why GDL Works: External Validation
Filesystem + grep outperforms RAG for structured data retrieval:
Vercel (2024):
"LLMs have been trained on massive amounts of code, spending countless hours navigating directories, grepping through files. If agents excel at filesystem operations for code, they'll excel at filesystem operations for anything."
LlamaIndex Benchmark:
- Filesystem agent: 8.4 correctness vs RAG 6.4 (+31%)
- Filesystem agent: 9.6 relevance vs RAG 8.0 (+20%)
Letta/MemGPT LoCoMo Benchmark:
- Filesystem + grep: 74.0%
- Mem0 specialized memory: 68.5%
Why grep wins:
- Deterministic (no hallucination)
- Zero infrastructure
- Pre-installed everywhere
- Agents already trained on grep patterns
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/querying-gdl-data/SKILL.md
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
[](https://verified-skill.com/skills/greppable/greppable-cc-plugin/querying-gdl-data)