본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트14k · #11156

temporal

하는 일

이 스킬은 Semantica 지식 그래프에 시간 기준 질문을 실행합니다. 예를 들어 특정 날짜에 무엇이 사실이었는지 묻습니다. 결과를 특정 시점에 맞춰야 하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓특정 날짜에 활성 상태였던 항목만 결과로 보고 싶을 때.
  • ✓그래프가 과거 어느 시점에 어땠는지 전체를 보고 싶을 때.
  • ✓과거 어느 시점에 어떤 선례나 원인이 적용되었는지 알고 싶을 때.

스킬 링크

https://github.com/semantica-agi/semantica/blob/main/plugins/skills/temporal/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/semantica-agi/semantica/blob/main/plugins/skills/temporal/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬