greppable/greppable-cc-plugin/querying-gdld-diagrams
Claude Code and agent skill by greppable/greppable-cc-plugin
- community
Checking that the SKILL.md file is still in the repository.
Use when creating, modifying, or querying .gdld diagram files — architecture flows, sequence diagrams, service topology, and gotcha/anti-pattern records. Also triggers when: investigating how services connect, understanding request flows or data pipelines, assessing blast radius of a change, \"how does X connect to Y\", \"what calls what\", \"show me the flow\", or documenting what NOT to do. NOT for .gdls schema maps — .gdld and .gdls are different formats.
Install
npx vskill@latest install greppable/greppable-cc-plugin/querying-gdld-diagramsSemi-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-gdld-diagrams.
GDLD Quick Reference
Available Diagrams
!bash -c 'find docs/gdl -name "*.gdld" -maxdepth 3 2>/dev/null | while read f; do title=$(grep -m1 "^@diagram" "$f" 2>/dev/null | grep -o "title:[^|]*" | sed "s/title://"); echo "- $f${title:+ ($title)}"; done'
Format
Every record is one line. Every field is self-describing (key:value). No schema lookup needed.
Core Record Types
| Type | Purpose | Key Fields | |
|---|---|---|---|
@diagram | File metadata | id, type, purpose | |
@group | Subgraph | id, label, file, parent, pattern | |
@node | Graph node | id, label, group, shape, status, tags | |
@edge | Relationship | from, to, label, type, status, tags | |
@use-when | When to use | condition, threshold | |
@use-not | When NOT to use | condition, reason | |
@component | Key component | name, file, does | |
@config | Configuration | param, value, source | |
@gotcha | Lesson learned | issue, detail, fix, severity | |
@recovery | Failure handling | issue, means, fix, severity | |
@decision | Architectural decision | id, title, status, reason | |
@pattern | Related pattern | name, for, file | |
@entry | Entry point | use-case, command | |
@note | Freeform prose | context, text | |
@participant | Sequence actor | id, label, role | |
@msg | Ordered message | from, to, label, type | |
@block | Conditional/loop start | id, type, label | |
@endblock | Block end | id | |
@seq-note | Sequence annotation | over, text | |
@scenario | Diagram variant | id, label, inherits | |
@override | Element override in scenario | scenario, target, field, value | |
@exclude | Remove element from scenario | scenario, target | |
@view | Named perspective/filter | id, label, filter, includes, excludes, level | |
@include | File inclusion | file, records, prefix | |
@deploy-env | Deployment environment | id, label, provider | |
@deploy-node | Infrastructure node | id, label, env, parent, technology | |
@deploy-instance | Component-to-node map | component, node, instances, config | |
@infra-node | Non-app infrastructure | id, label, node, technology |
Grep Patterns
Combined Queries (Fewer Tool Calls)
Use regex unions to answer multi-type queries in a single grep:
Prefer combined queries when you need multiple record types to answer a single question.
Encoding Guide
When converting architecture knowledge to GDLD, use this to choose the right record type:
Which record type?
| Source Concept | Use | NOT | |
|---|---|---|---|
| Hard-won lesson, "don't do X", key principle | @gotcha | @note | |
| What to do when something breaks | @recovery | @gotcha | |
| "When to use" with a measurable threshold | @use-when | @note | |
| "When NOT to use" or anti-pattern | @use-not | (don't omit — see below) | |
| Config value, threshold, parameter | @config | @note | |
| Design decision with rationale | @decision | @note | |
| Narrative context, rationale, caveats | @note | @gotcha | |
| Reusable pattern referenced by other diagrams | @pattern | @note | |
| Cross-cutting classification (pii, tier1, internal) | tags: field | separate @note | |
| Dev/prod/error variant of same diagram | @scenario + @override | separate files | |
| Named filter for specific audience | @view | ad-hoc grep | |
| Shared records from another diagram | @include | copy-paste | |
| Infrastructure/deployment target | @deploy-node | @node | |
| Component-to-server mapping | @deploy-instance | @note | |
| Non-app infra (LB, WAF, CDN) | @infra-node | @node | |
| Severity of a gotcha or recovery | severity: field | separate @note |
The @use-not rule
Every diagram that has @use-when records SHOULD also have @use-not records. Anti-patterns prevent misuse and are the most common omission. Ask: "When would someone reach for this pattern but be wrong to?"
Gotcha vs Note vs Recovery
The most common encoding mistake. Use this test:
- Would another developer repeat this mistake? →
@gotcha - Did something break and here's how to fix it? →
@recovery - Is this just context or explanation? →
@note
Source headings don't matter. "Key Principles", "Lessons Learned", "Important Notes", "Caveats" — if they describe mistakes to avoid, encode as @gotcha.
Example
Node Shapes
| Shape | Use For | |
|---|---|---|
box | Process, action (default) | |
diamond | Decision, condition | |
circle | Start/end point | |
stadium | Input/output |
Edge Types
| Type | Use For | |
|---|---|---|
flow | Normal flow (default) | |
conditional | Yes/No branches | |
data | Data transfer | |
triggers | Event trigger |
Tool Functions
Source the helpers:
| Function | Usage | What it does | ||||
|---|---|---|---|---|---|---|
gdld_gotchas | gdld_gotchas FILE | List gotchas sorted by severity (SEVERITY\ | ISSUE\ | DETAIL\ | FIX) | |
gdld_nodes | gdld_nodes FILE [--group=G] | List node ID\ | LABEL pairs, optionally filtered by group | |||
gdld_components | gdld_components FILE | List NAME\ | FILE\ | DOES | ||
gdld_subgraph | gdld_subgraph FILE GROUP | Extract group + nodes + internal edges | ||||
gdld_filter | gdld_filter FILE --scenario=N | Apply scenario, output filtered GDLD | ||||
gdld_view | gdld_view FILE --view=N | Apply view filter, output filtered GDLD |
Key Rules
- Each line is a complete, self-describing record
grep "^@type"filters by record typegrep "from:X"orgrep "to:X"finds relationships- Use
# === SECTION ===comments for organization - Quantify conditions with
threshold:not vague prose
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/querying-gdld-diagrams/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-gdld-diagrams)