temporal
What it does
This skill runs time-based questions on a Semantica knowledge graph, such as what was true on a given date. It is for people who need results scoped to a moment in time.
When to use it
- ✓When you want results only for items that were active on a specific date.
- ✓When you want to see the whole graph as it was at an earlier time.
- ✓When you want to know which precedents or causes applied at a past moment.
Skill link
https://github.com/semantica-agi/semantica/blob/main/plugins/skills/temporal/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
“What did the graph show about our vendor approvals as of March 15, and which items did not exist yet?”
5 new skills a week. 1 minute to read.
How it works
The agent reads date phrases such as last month or Q3 2024 and converts them to a standard date, then rewrites the question with that time limit. It returns ranked results marked with their validity dates and whether each item existed at the target time.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
/semantica:temporal
Temporal graph operations. Usage: /semantica:temporal <sub-command> [args]
$ARGUMENTS = sub-command + query/node + date expression.
query "<question>" [at|before|after <date>]
Temporally-scoped natural-language graph query.
from semantica.kg.temporal_query_rewriter import TemporalQueryRewriter
from semantica.kg.temporal_normalizer import TemporalNormalizer
normalizer = TemporalNormalizer()
# Normalize natural date expressions: "last month", "Q3 2024", "2025-01-15"
date = normalizer.normalize(date_expr)
rewriter = TemporalQueryRewriter()
# Rewrite query with temporal constraint
rewritten = rewriter.rewrite(
query=question,
temporal_constraint={"op": direction, "value": date}, # op: "at"|"before"|"after"
)
Then run the rewritten query through AgentContext.retrieve() or ContextGraph.query().
Return ranked results with Valid From, Valid Until, Active At <date> columns. Mark nodes that were not yet created at the target time as [not yet created].
snapshot <date>
Reconstruct the full graph state as it existed at a specific point in time.
from semantica.context import ContextGraph
graph = ContextGraph(advanced_analytics=True)
# state_at returns a dict snapshot of the graph at that timestamp
snapshot = graph.state_at(timestamp=date) # ISO string or datetime
Output:
Graph snapshot at <date>:
Nodes: N (M added since prev snapshot, K removed)
Edges: P
Density: 0.21
Communities: Q
Active decision categories at <date>:
| Category | Count | Avg Confidence |
Top 10 nodes (by degree at <date>):
| Node | Type | Degree |
[Compact Mermaid graph TD — top-10 most connected nodes at that time]
timeline <node_id>
Show attribute and relationship changes for a node across its full history.
from semantica.context import ContextGraph
graph = ContextGraph()
# Use state_at() at multiple time points to reconstruct history
# Check add_node timestamps and edge addition times from graph data
node_data = graph.find_node(node_id)
Output as Markdown timeline:
Timeline for "<node_id>" (<type>):
<timestamp> CREATED
Properties: {confidence: 0.71, category: "loan_approval"}
Source: extraction/pipeline
<timestamp> UPDATED
confidence: 0.71 → 0.91 [source: review]
<timestamp> RELATIONSHIP ADDED
"<node_id>" →[CAUSED]→ "Decision_B"
<timestamp> RELATIONSHIP REMOVED
"<node_id>" →[PRECEDED_BY]→ "Decision_X" (superseded)
Total lifespan: <duration>
Current state: <active|superseded>
causal-at <decision_id> <date> [--direction upstream|downstream]
Trace a causal chain as it existed at a specific point in time.
from semantica.context.causal_analyzer import CausalChainAnalyzer
from semantica.context import AgentContext
ctx = AgentContext(decision_tracking=True)
analyzer = CausalChainAnalyzer(graph_store=ctx.graph_store)
historical_chain = analyzer.trace_at_time(
event_id=decision_id,
at_time=date, # ISO string or datetime
direction=direction or "upstream",
max_depth=10,
)
Output:
Historical causal chain for <decision_id> at <date>:
Direction: upstream (what caused it?)
[Mermaid graph TD showing chain as it existed at <date>]
Decisions present then but not now: [list]
Decisions added since then: [list]
precedents-at "<scenario>" <date> [--category <cat>]
Find precedent decisions that existed as of a specific date — useful for auditing what context was available when a decision was made.
from semantica.context import AgentContext
ctx = AgentContext(decision_tracking=True, advanced_analytics=True)
# find_precedents supports as_of parameter for temporal precedent search
precedents = ctx.find_precedents(
scenario=scenario,
category=category or None,
limit=10,
use_hybrid_search=True,
include_context=True,
include_superseded=False,
as_of=date, # Only return precedents that existed at this date
)
Return: | Rank | Decision ID | Scenario | Outcome | Confidence | Set Date | Valid Until |
Note decisions that were superseded before or after the target date.
FAQ
Can it understand phrases like last month?
Yes. It turns everyday date expressions into a standard date.
How are items that did not exist yet shown?
They are marked as not yet created.
Can it rebuild the graph at a past date?
Yes. It can reconstruct the full graph state as it was at a chosen date.
Details
Original description by the author
Temporal graph operations on Semantica — scoped queries at a point in time, graph snapshots, node change timelines, temporal causal analysis, and graph state reconstruction. Uses AgentContext.find_precedents(as_of=), ContextGraph.state_at(), CausalChainAnalyzer.trace_at_time(), and TemporalQueryRewriter. Sub-commands: query, snapshot, timeline, causal-at, precedents-at.
repo: semantica-agi/semantica
Popularity
- GitHub stars
- 14k
- Ranking position
- #11156
- 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.
decision
14kHelps your agent record, search, explain and review decisions in a knowledge graph, from the first note through to its outcome.
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.