temporal
하는 일
이 스킬은 Semantica 지식 그래프에 시간 기준 질문을 실행합니다. 예를 들어 특정 날짜에 무엇이 사실이었는지 묻습니다. 결과를 특정 시점에 맞춰야 하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓특정 날짜에 활성 상태였던 항목만 결과로 보고 싶을 때.
- ✓그래프가 과거 어느 시점에 어땠는지 전체를 보고 싶을 때.
- ✓과거 어느 시점에 어떤 선례나 원인이 적용되었는지 알고 싶을 때.
스킬 링크
https://github.com/semantica-agi/semantica/blob/main/plugins/skills/temporal/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“3월 15일 기준으로 그래프가 우리 공급업체 승인에 대해 무엇을 보여 줬는지, 그리고 아직 존재하지 않았던 항목이 무엇인지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 ‘지난달’이나 ‘2024년 3분기’ 같은 날짜 표현을 읽고 표준 날짜로 바꾼 뒤, 그 시간 제한을 넣어 질문을 다시 씁니다. 결과는 순위가 매겨져 돌아오며, 각 결과에는 유효 날짜와 목표 시점에 항목이 있었는지가 표시됩니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
‘지난달’ 같은 표현도 이해하나요?
네. 일상적인 날짜 표현을 표준 날짜로 바꿉니다.
아직 생성되지 않은 항목은 어떻게 표시되나요?
‘아직 생성되지 않음’으로 표시됩니다.
과거 시점의 그래프를 다시 만들 수 있나요?
네. 선택한 날짜의 그래프 전체 상태를 다시 구성할 수 있습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 14k
- 순위
- #11156
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
semantica
14k에이전트가 지식 그래프를 만들고 추론하며, 출처, 온톨로지, 정책, 내보내기까지 다루는 Semantica 도구 모음을 쓰도록 돕습니다.
causal
14k에이전트가 지식 그래프에서 원인과 결과의 연결을 추적하도록 돕습니다. 원인의 사슬, 가정 질문, 영향력 점수를 다룹니다.
change
14k에이전트가 지식 그래프의 과거 모습과, 두 날짜 또는 두 온톨로지 버전 사이에 무엇이 바뀌었는지 보여 주도록 돕습니다.
decision
14k에이전트가 지식 그래프에서 결정을 처음 메모부터 결과까지 기록하고, 검색하고, 설명하고, 검토하도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.