decision
What it does
This skill manages the full life of a recorded decision in a Semantica knowledge graph, including its reasoning, outcome and any exceptions. It is for teams who need a clear record of why choices were made.
When to use it
- ✓When you want to record a decision with its reasons, outcome and confidence.
- ✓When you need to find earlier decisions that set a precedent for a new case.
- ✓When you want an explanation of why a recorded decision was reached.
Skill link
https://github.com/semantica-agi/semantica/blob/main/plugins/skills/decision/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you record our decision to approve the new vendor, with the reasons and how confident we are, and find similar past decisions?”
5 new skills a week. 1 minute to read.
How it works
The agent saves each decision with its category, situation, reasoning, outcome and confidence score. It can then search past decisions in plain language, follow links between them, and summarize how a decision was reached.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
/semantica:decision
Full decision lifecycle management. Usage: /semantica:decision <sub-command> [args]
record <category> "<scenario>" "<reasoning>" <outcome> <confidence>
Record a decision with full context.
from semantica.context import AgentContext
ctx = AgentContext(decision_tracking=True)
decision_id = ctx.record_decision(
category=category, # "loan_approval", "deployment", "hiring"
scenario=scenario, # natural-language situation description
reasoning=reasoning, # why this decision was made
outcome=outcome, # "approved", "rejected", "deferred"
confidence=float(confidence),
entities=entities or [],
decision_maker="ai_agent",
valid_from=valid_from, # optional ISO date string
valid_until=valid_until,
)
Output: Decision <decision_id> recorded | <category> | <outcome> (conf: 0.95)
query "<question>" [--hops N] [--hybrid]
Query decisions using natural language with multi-hop graph traversal.
from semantica.context import AgentContext
ctx = AgentContext(decision_tracking=True, advanced_analytics=True)
results = ctx.query_decisions(
query=question,
max_hops=int(hops) if hops else 3,
include_context=True,
use_hybrid_search="--hybrid" in args,
)
For structured lookups use DecisionQuery:
from semantica.context.decision_query import DecisionQuery
dq = DecisionQuery(graph_store=ctx.graph_store)
# dq.find_by_category(category, limit=100)
# dq.find_by_entity(entity_id, limit=100)
# dq.find_by_time_range(start, end, limit=100)
# dq.multi_hop_reasoning(start_entity, query_context, max_hops=3)
# dq.trace_decision_path(decision_id, relationship_types)
# dq.analyze_decision_influence(decision_id, max_depth=3)
Return: | ID | Category | Scenario | Outcome | Confidence | Timestamp |
precedents "<scenario>" [--category <cat>] [--advanced] [--hops N] [--as-of <date>]
Find similar past decisions using hybrid semantic + structural + vector search.
from semantica.context import AgentContext
ctx = AgentContext(decision_tracking=True, kg_algorithms=True, vector_store_features=True)
if "--advanced" in args:
precedents = ctx.find_precedents_advanced(
scenario=scenario, category=category, limit=10,
use_kg_features=True,
similarity_weights={"semantic": 0.5, "structural": 0.3, "vector": 0.2},
)
else:
precedents = ctx.find_precedents(
scenario=scenario, category=category, limit=10,
use_hybrid_search=True,
max_hops=int(hops) if hops else 3,
include_context=True,
include_superseded=False,
as_of=as_of_date or None, # temporal filter: only precedents that existed as_of this date
)
Return ranked: | Rank | ID | Scenario | Outcome | Confidence | Similarity | Date |
influence <decision_id> [--depth N]
Analyze how a decision influences others across the graph.
from semantica.context import AgentContext
ctx = AgentContext(decision_tracking=True, advanced_analytics=True, kg_algorithms=True)
influence = ctx.analyze_decision_influence(decision_id, max_depth=int(depth) if depth else 3)
predictions = ctx.predict_decision_relationships(decision_id, top_k=5)
Output: Influence score + influenced decisions table + predicted new relationships.
explain <decision_id>
Full explainability trace — reasoning steps, causal antecedents, policy compliance.
from semantica.context import AgentContext, ContextGraph
ctx = AgentContext(decision_tracking=True)
explainability = ctx.trace_decision_explainability(decision_id)
graph = ContextGraph(advanced_analytics=True)
chain = graph.trace_decision_chain(decision_id, max_steps=5)
causality = graph.trace_decision_causality(decision_id, max_depth=5)
Output: Reasoning steps, causal antecedents, evidence items, policy compliance status.
insights
Comprehensive analytics across all tracked decisions.
from semantica.context import ContextGraph, AgentContext
ctx = AgentContext(decision_tracking=True, advanced_analytics=True)
graph = ContextGraph(advanced_analytics=True)
insights = graph.get_decision_insights()
summary = graph.get_decision_summary()
context_insights = ctx.get_context_insights()
Output: Total count, category breakdown, outcome distribution, avg confidence, top influential.
list [--category <cat>] [--entity <id>] [--from <date>] [--to <date>]
``
FAQ
What details does a recorded decision include?
The category, the situation, the reasoning, the outcome, a confidence score and the entities involved.
Can I search past decisions in plain language?
Yes. A question can be asked in everyday words, and the skill follows links to related decisions.
Can I record an exception?
Yes. Exceptions to a decision can also be recorded.
Details
Original description by the author
Full decision lifecycle in Semantica — record, query, find precedents (hybrid/advanced), analyze influence, explain, insights dashboard, list, and record exceptions. Uses AgentContext, ContextGraph, DecisionQuery, CausalChainAnalyzer, DecisionRecorder.
repo: semantica-agi/semantica
Popularity
- GitHub stars
- 14k
- Ranking position
- #11144
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
semantica
14kGives your agent a full toolkit for knowledge graphs, covering extraction, reasoning, provenance, ontologies, policies and exports.
causal
14kHelps your agent trace cause-and-effect links in a knowledge graph, including chains of causes, what-if scenarios and influence scores.
change
14kShows your agent how a knowledge graph looked at an earlier date, and what changed between two dates or two ontology versions.
deduplicate
14kHelps your agent find duplicate entities, groups and relationships in a knowledge graph, and suggest which copies to merge.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.