query

query is a skill for Claude Code from semantica-agi/semantica. It costs 26 tokens per session (223 once invoked), scanned A, original, MIT.

A command for searching and querying Semantica, a knowledge graph that stores connected entities and relationships. It supports SPARQL, Cypher-like queries, and keyword search.

In plain words
What is it for?
Use it to run structured SPARQL or Cypher-like queries, search by keywords, filter entities by type, and view matching nodes, relationships, paths, and relevance scores.
Why use it?
It provides one way to find graph entities or inspect relationships without writing separate search and graph-query code.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the semantica plugin — 17 skills, 3 agents, 2 hooks shipped together

Good fit Use it to run structured SPARQL or Cypher-like queries, search by keywords, filter entities by type, and view matching nodes, relationships, paths, and relevance scores.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/semantica-agi/semantica/query
About the project

Semantica is an open-source infrastructure layer that turns enterprise data into structured context and knowledge graphs, where ontologies define meaning and graph reasoning connects facts and decisions. It is intended for AI systems and agents that need traceable, governed, and explainable context in high-stakes domains. The catalogue add-ons provide agent workflows, hooks, and plugins for operating Semantica.

semantica-agi/semantica · 12,329 stars · on GitHub · getsemantica.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add semantica-agi/semantica --skill query
Clone the repo
git clone --depth 1 https://github.com/semantica-agi/semantica

Made for: Claude Code.

Or install semantica, the plugin that ships this one along with the rest of its 17 skills, 3 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for query

README.md
[![agentmods](https://agentmods.dev/badge/skills/semantica-agi/semantica/query/github.svg)](https://agentmods.dev/skills/semantica-agi/semantica/query)
Your own site
<a href="https://agentmods.dev/skills/semantica-agi/semantica/query"><img src="https://agentmods.dev/badge/skills/semantica-agi/semantica/query/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for query

Your own site · 80×15
<a href="https://agentmods.dev/skills/semantica-agi/semantica/query"><img src="https://agentmods.dev/badge/skills/semantica-agi/semantica/query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 223 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00223
Opus 5 $0.00013 $0.00112
Sonnet 5 $0.00005 $0.00045
Haiku 4.5 $0.00003 $0.00022

Measured 9d ago against content hash ff906b009af0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/skills/query/SKILL.md · 50 lines

What it actually says

/semantica:query

Run graph queries and search. Usage: /semantica:query <mode> [args]

$ARGUMENTS = query mode + query string or filter.


sparql <query>

Execute a SPARQL query against the graph.

from semantica.query import QueryEngine

engine = QueryEngine()
results = engine.query_sparql(query)

Return: query bindings as a Markdown table.


cypher <query>

Execute a Cypher-like query.

results = engine.query_cypher(query)

Output: node/relationship results and path summaries.


search <keywords> [--filter <type>]

Search graph entities by keyword.

results = engine.search(keywords=keywords, filter_type=filter_type)

Return: ranked matches with entity types and relevance scores.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 50 lines · 26 tokens per session scan A ff906b009af0

Subscribe to this mod's changes

query is a skill published in the GitHub repository semantica-agi/semantica (12,329 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 223 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

langchain-oracledb-helper

Scaffold a langchain-oracledb store layer — multi-collection OracleVS wrapper, metadata-as-string monkeypatch, embedder-dim assertion, OracleChatHistory subclass (langchain-oracledb does not ship one). Use when a project needs Oracle as its LangChain vector store and chat-history backend.

oracle-devrel/oracle-ai-developer-hub · 72 tokens

build-paths

Top-level router for the build-paths skill set. Asks the user one question (which path?), then dispatches to beginner/, intermediate/, or advanced/. Use when the user wants to scaffold an Oracle-AI-DB project but hasn't picked a difficulty yet.

oracle-devrel/oracle-ai-developer-hub · 57 tokens

data-pipelines

Apply Data Pipelines Pocket Reference practices (James Densmore). Covers Infrastructure (Ch 1-2: warehouses, lakes, cloud), Patterns (Ch 3: ETL, ELT, CDC), DB Ingestion (Ch 4: MySQL, PostgreSQL, MongoDB, full/incremental), File Ingestion (Ch 5: CSV, JSON, cloud storage), API Ingestion (Ch 6: REST, pagination, rate…

booklib-ai/booklib · 241 tokens

graphjin-env

Use when setting up a training or evaluation loop against a GraphJin agent environment — running the container, reading /health, driving episodes hosted or step-by-step or with your own agent over MCP, splitting train from eval, exporting trajectories, and deciding whether two rewards can be compared.

dosco/graphjin · 61 tokens

similarity-search-patterns

Implement efficient similarity search with vector databases. Use when building semantic search, implementing nearest neighbor queries, or optimizing retrieval performance.

foryourhealth111-pixel/Vibe-Skills · 30 tokens

ingesting-into-data-lake

Import data into the AWS data lake from S3 files, local uploads, JDBC databases (Oracle, SQL Server, PostgreSQL, MySQL, RDS, Aurora), Amazon Redshift, Snowflake, BigQuery, DynamoDB, or existing Glue catalog tables (migration). Default target is S3 Tables; standard Iceberg on a general purpose bucket is supported where…

aws/agent-toolkit-for-aws · 228 tokens