Langsung ke konten
Skillpedia
Analisis & spreadsheet14k ยท #11156

temporal

Fungsinya

Skill ini menjalankan pertanyaan berbasis waktu pada knowledge graph Semantica, misalnya apa yang benar pada tanggal tertentu. Untuk orang yang membutuhkan hasil yang dibatasi pada momen tertentu.

Kapan dipakai

  • โœ“Saat Anda hanya ingin hasil untuk item yang aktif pada tanggal tertentu.
  • โœ“Saat Anda ingin melihat seluruh graf seperti keadaannya pada waktu sebelumnya.
  • โœ“Saat Anda ingin tahu preseden atau penyebab mana yang berlaku pada momen lampau.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/semantica-agi/semantica/blob/main/plugins/skills/temporal/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œApa yang ditampilkan graf tentang persetujuan vendor kami per 15 Maret, dan item mana yang belum ada saat itu?โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent membaca frasa tanggal seperti bulan lalu atau Q3 2024 dan mengubahnya menjadi tanggal standar, lalu menulis ulang pertanyaan dengan batas waktu itu. Agent mengembalikan hasil berperingkat yang diberi tanda tanggal berlakunya dan apakah item itu ada pada waktu yang dituju.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apakah bisa memahami frasa seperti bulan lalu?

Bisa. Skill mengubah ekspresi tanggal sehari-hari menjadi tanggal standar.

Bagaimana item yang belum ada ditampilkan?

Ditandai sebagai belum dibuat.

Bisakah membangun ulang graf pada tanggal lampau?

Bisa. Skill dapat merekonstruksi seluruh keadaan graf seperti pada tanggal yang dipilih.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
14k
Peringkat
#11156
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa