kg-modality-reasoning

kg-modality-reasoning is a skill for Claude Code, Codex from Knuckles-Team/epistemic-graph. It costs 90 tokens per session (690 once invoked), scanned A, original, MIT.

A rule-and-ontology reasoning layer for an RDF/OWL knowledge store. RDF stores facts as linked subject–predicate–object statements, while OWL and rules describe what additional facts follow from them.

In plain words
What is it for?
It helps classify entities, infer facts, apply user-defined rules, check consistency, and materialize conclusions so they can be queried later.
Why use it?
It removes the need to manually derive implied facts and helps detect contradictions or classify items according to an ontology.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps classify entities, infer facts, apply user-defined rules, check consistency, and materialize conclusions so they can be queried later.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/knuckles-team/epistemic-graph/kg-modality-reasoning
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 Knuckles-Team/epistemic-graph --skill kg-modality-reasoning
Clone the repo
git clone --depth 1 https://github.com/Knuckles-Team/epistemic-graph

Made for: Claude Code, Codex.

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 kg-modality-reasoning

README.md
[![agentmods](https://agentmods.dev/badge/skills/knuckles-team/epistemic-graph/kg-modality-reasoning/github.svg)](https://agentmods.dev/skills/knuckles-team/epistemic-graph/kg-modality-reasoning)
Your own site
<a href="https://agentmods.dev/skills/knuckles-team/epistemic-graph/kg-modality-reasoning"><img src="https://agentmods.dev/badge/skills/knuckles-team/epistemic-graph/kg-modality-reasoning/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 kg-modality-reasoning

Your own site · 80×15
<a href="https://agentmods.dev/skills/knuckles-team/epistemic-graph/kg-modality-reasoning"><img src="https://agentmods.dev/badge/skills/knuckles-team/epistemic-graph/kg-modality-reasoning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 690 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.00090 $0.00690
Opus 5.5 $0.00036 $0.00276
Sonnet 5.5 $0.00018 $0.00138
Haiku 4.5 $0.00009 $0.00069

Measured 3mo ago against content hash 0462114f7789, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kg-modality-reasoning 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 3mo 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.

epistemic_graph/skills/kg-modality-reasoning/SKILL.md · 53 lines

What it actually says

kg-modality-reasoning — OWL / rule inference in the engine

The engine reasons natively over its own RDF/OWL store (eg-rdf/owl). It performs OWL 2 EL⁺ completion (sub/conj/some/chain/subrole/bot/disjoint), OWL 2 RL property rules (transitive/symmetric/inverse/chains/domain), classification and consistency (an unsatisfiable class ⇒ inconsistent), and forward-chaining materialization with incremental add_axioms (a monotone fixpoint resumed in place). DL-requiring ontologies route to a pure-Rust description-logic tableau (owl-dl: cardinality, complementOf, nominals) while the EL/RL fast path stays default. SWRL user rules add a Horn-rule DSL + swrlb: built-ins. Confidence-weighting (per-axiom eg:confidence, noisy-OR), Ebbinghaus time-decay, and distributed/cross-shard reasoning (one closure over a unioned TBox+ABox) are supported. Reasoning is also a query-time op (Op::Reason under owl-plan seeds a RowSet). See docs/capabilities.md → OWL reasoning (eg-rdf/owl).

The MCP way (through graph-os)

load_tools(tools=["engine_reasoning"])   # then classify / materialize / check-consistency

or the REST twin graph-os exposes for the reasoning modality.

The wire way

Reasoning composes with the SPARQL surface (kg-modality-sparql): ICV integrity-constraint validation can run over the OWL-reasoned view, and a reasoned RowSet is reachable from a plan via Op::Reason. There is no separate reasoning port — it operates on the triples served by /sparql (EPISTEMIC_GRAPH_SPARQL_ADDR).

Cross-modal seam

Materialized inferences are written back into the same store the SQL/RDF/vector modalities read, so a reasoned closure is visible to kg-modality-sql and kg-modality-sparql and is committed under the engine's unified cross-modal transaction — inference is a first-class citizen of the shared substrate, not a bolt-on batch job.

  • kg-modality-sparql — the RDF store the reasoner classifies and materializes over.
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. 3mo ago First seen · 53 lines · 90 tokens per session scan A 0462114f7789

Subscribe to this mod's changes

kg-modality-reasoning is a skill published in the GitHub repository Knuckles-Team/epistemic-graph (11 stars, last pushed 1mo ago), licensed MIT. It adds 90 tokens to every session and 690 once invoked, about $0.0004 per session on Opus 5.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-31.

Related

kg-modality-reasoning compared with skills from other repositories

kg-modality-reasoning next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kg-modality-reasoningKnuckles-Team/epistemic-graphSkill111mo agoMITA90Claude Code, Codex
embeddingsruvnet/rufloSkill83ktodayMITA62Claude Code
sglang-diffusion-cache-ditsgl-project/sglangSkill39ktodayApache-2.0A161Claude Code
rag-pineconedavila7/claude-code-templatesSkill34kyesterdayMITA65Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.2k3d agoApache-2.0A92Claude Code
ingesting-into-data-lakeaws/agent-toolkit-for-awsSkill3.6kyesterdayApache-2.0A228Claude Code
graphjin-envdosco/graphjinSkill3.2k2d agoApache-2.0A61Claude Code, Codex