Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

reason

Skill by semantica-agi

Runs reasoning over the Semantica knowledge graph using deduction, abduction, Datalog, SPARQL and Rete evaluation. Aimed at users who want to derive conclusions or explanations from graph facts.

  • Score 90
  • 15k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install reason

Built from the published package, never by AI.

git clone --depth 1 https://github.com/semantica-agi/semantica /tmp/semantica && mkdir -p ~/.claude/skills && cp -r /tmp/semantica/plugins/skills/reason ~/.claude/skills/reason

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install reason in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a /semantica:reason command for AI assistants. It applies reasoning over a Semantica knowledge graph in one of several modes, chosen by a sub-command. Deductive mode adds facts to working memory and applies logic to derive conclusions, and prove mode tests a theorem against known facts. Abductive and hypotheses modes generate and rank candidate explanations for an observation. Datalog and SPARQL modes evaluate programs and queries over graph facts, and rete mode runs incremental rule evaluation with working memory.

The skill is built on the DeductiveReasoner, AbductiveReasoner, DatalogReasoner, SPARQLReasoner and ReteEngine classes from the semantica.reasoning package. Results are returned as Markdown tables or structured proof and hypothesis outputs. It is intended for developers and analysts who work with Semantica knowledge graphs and need logical inference, hypothesis ranking or query evaluation.

Written from the project's SKILL.md and checked against it.

What it can do

  • deductiveApplies deductive rules to known facts to derive new conclusions in a table.
  • proveProves or disproves a theorem against known facts and lists proof steps.
  • abductiveGenerates and ranks hypotheses that explain an observation, with supporting evidence.
  • datalogEvaluates a Datalog program over graph facts and returns derived tuples.
  • sparqlRuns a SPARQL query over the knowledge graph and returns a Markdown table.
  • reteRuns incremental rule evaluation with a Rete network and working memory.
  • hypothesesReturns the top-N explanations for a scenario, with evidence, falsifiers and parsimony.

What you need

  • Semantica Python package with the semantica.reasoning and semantica.context modules

Try asking

  • Use reason deductive to derive conclusions from these facts: Person(John), Parent(John, Mary)
  • Use reason prove to test whether this theorem follows from my known facts
  • Use reason abductive to explain why our sales dropped last quarter

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/skills/reason/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB

Alternatives to reason

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

reason: common questions

What reasoning modes does the reason skill support?

It supports deductive, prove, abductive, datalog, sparql, rete and hypotheses sub-commands. Each one runs a different reasoner from the semantica.reasoning package.

Which Semantica classes does the skill use?

The source says it uses DeductiveReasoner, AbductiveReasoner, DatalogReasoner, SPARQLReasoner and ReteEngine. These run over a ContextGraph in the Datalog and SPARQL modes.

What does the hypotheses sub-command return?

It returns the top-N most probable explanations for a complex scenario. For each one it also shows supporting evidence, what would falsify it, and the most parsimonious option.

How do I install reason?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is reason free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is reason safe to use?

It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to reason?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

reason Install

Add to stack

Loading.