Graph search

From athola/claude-night-market · View interactive version

Graph search is an AI agent skill from the GitHub repository athola/claude-night-market. Searches the code knowledge graph by function, class, or type using FTS5 full-text search. Use when locating code entities by name or qualified path.

How to use this skill

Skill file

Search Code Knowledge Graph

Search .gauntlet/graph.db for code entities by name.

When NOT To Use

Steps

  1. Accept query: Get the search term from the user.
  1. Run the query script:

```bash

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/graph_query.py \

--action search --query "<term>" --limit 20

```

Optional filters:

  1. Display results: Show qualified name, file path,

line numbers, and relevance score for each match.

  1. Offer to read: Ask if the user wants to read the

top result's source file.

Query Intelligence

The search engine detects query patterns:

and Type results

results

qualified name matches

Prerequisites

The graph must be built first. If .gauntlet/graph.db

does not exist, suggest running the graph-build skill.

Exit Criteria

the missing-prerequisite error and suggests gauntlet:graph-build

rather than failing silently

relevance score for each match (up to --limit results)

Class/Type results, snake_case boosts Function results, dotted

path boosts qualified name matches

results are shown

graph_query.py --action status shows node_count above zero. An

unbuilt graph, or one built without tree-sitter, answers every

query with zero, and that zero says nothing about the codebase

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.