Graph Query logo

Graph Query

Community
alirezarezvani
graph-query

Use when the user asks a question about how things in the codebase or wiki relate — what connects two things, how something works end to end, what depends on what, or what a concept means in this repo. Answers from the knowledge graph in graphify-out/graph.json, with source-location citations. Trigger on "/graph-query", "ask the graph", "what connects X to Y", "trace how X works", "explain <concept> from the graph", "shortest path between".

Overview

Publisheralirezarezvani
Repositorygaios
Skill namegraph-query
Stars
50
Forks
9
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by alirezarezvani on GitHub. Read the source before you install it.

Installation

Install the Graph Query AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/alirezarezvani/gaios/tree/dev/.claude/skills/graph-query
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/alirezarezvani/gaios.git /tmp/gaios
mkdir -p .claude/skills
cp -r /tmp/gaios/.claude/skills/graph-query .claude/skills/graph-query
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Graph Query in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Graph Query on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Graph Query is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Graph Query

Ask the knowledge graph a relationship question and get a cited answer grounded in the graph — not a guess. The graph is built by /graph (graphify) over code + the committed wiki/. This skill only reads it.

When to run

  • graphify-out/graph.json exists, and the user has a question about how things relate:
    • "what connects the intake flow to the billing module?"
    • "trace how a /wiki capture becomes a committed entry."
    • "explain the WAT execution model from the graph."
    • "shortest path between wiki_lint.py and the commit gate."
  • Use this for relationships and explanations. To (re)build or refresh the graph, run /graph.

The output (always this shape)

## Graph answer — <the question>
**Answer** — the relationship/explanation, in plain sentences, grounded only in graph edges.
**Path / nodes used**
- <node A> —[<relation>]→ <node B>   (EXTRACTED · src: <path:line>)
- <node B> —[<relation>]→ <node C>   (INFERRED — not literal in source)
**Citations** — source_location for each EXTRACTED edge (path:line).
**Gaps** — anything the question asked that the graph does NOT contain (say so plainly).

Every claim traces to an edge. If the graph doesn't have it, the answer says so — it never fills the gap from memory.

Process

  1. Check the graph exists. If graphify-out/graph.json is missing, stop and tell the user: "No graph yet — run /graph first to build it." Don't answer from training data or by re-reading files.
  2. Pick the query that fits the question (graphify, read-only):
    • Broad / "what relates to X" / "what connects X to Y" → graphify query "<question>" (BFS, broad neighborhood).
    • Trace a chain / "how does X flow to Y" / "trace how X works" → graphify query "<question>" --dfs (follows a path; --budget N to bound it).
    • "shortest path between A and B" → graphify path "A" "B".
    • "explain <concept/node>" → graphify explain "X" (the node + its neighbors). For richer interactive exploration, the graphify MCP server may be wired (python3 -m graphify.serve graphify-out/graph.json → query_graph, get_node, get_neighbors, shortest_path, god_nodes, graph_stats); use it when the question needs several hops or node lookups. Otherwise the CLI is enough.
  3. Answer using ONLY what the graph returns. Quote the source_location (path:line) for each edge you rely on. Fill the output shape above. Two hard rules:
    • Never invent edges. If the query returns nothing for part of the ask, list it under Gaps and say the graph doesn't cover it — do not bridge it with a guess or by reading the file yourself.
    • Honor the honesty trail. graphify labels every edge EXTRACTED (literal in source), INFERRED (graphify's inference), or AMBIGUOUS (uncertain). Present only EXTRACTED as fact. Tag INFERRED/AMBIGUOUS edges as such inline — never pass them off as established.

Autonomy

L1 — read-only. Suggests/answers from the graph; the human decides. Builds nothing, sends nothing, writes no files. (To rebuild the graph, that's /graph, not this skill.)

Guardrails (from CLAUDE.md)

  • Cite, don't invent (Guardrail #6). Every claim cites a graph edge's source_location; unsupported parts of the ask are flagged as gaps, never fabricated.
  • Respect the honesty audit trail. EXTRACTED = fact; INFERRED/AMBIGUOUS are flagged as such, not stated as truth.
  • The graph covers code + the committed (de-identified) wiki/ only — by design it excludes raw/, .env, .tmp/, and secrets. If asked about something outside that scope, say it isn't in the graph.
  • Read-only: no commits, no external sends, no file writes from this skill.

Frequently asked questions

What does the Graph Query AI skill do?

Use when the user asks a question about how things in the codebase or wiki relate — what connects two things, how something works end to end, what depends on what, or what a concept means in this repo. Answers from the knowledge graph in graphify-out/graph.json, with source-location citations. Trigger on "/graph-query", "ask the graph", "what connects X to Y", "trace how X works", "explain <concept> from the graph", "shortest path between".

Why use Graph Query on TypingMind?

Because you install it once and use it with any model. Graph Query is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Graph Query in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/alirezarezvani/gaios/tree/dev/.claude/skills/graph-query. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Graph Query?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Graph Query?

As many as you like. As long as a model supports skills, you can use Graph Query with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Graph Query AI skill free?

It is published on GitHub by alirezarezvani. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇