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.
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/reasonRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/semantica-agi/semantica /tmp/semantica && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/semantica/plugins/skills/reason ~/.gemini/antigravity-cli/skills/reasonAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
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.
