temporal
ما الذي تفعله
تشغّل هذه المهارة أسئلة مرتبطة بالزمن على رسم معرفة Semantica، مثل ما الذي كان صحيحًا في تاريخ معين. وهي مخصصة لمن يحتاج إلى نتائج محصورة في لحظة زمنية.
متى تستخدمها
- ✓عندما تريد نتائج للعناصر النشطة فقط في تاريخ محدد.
- ✓عندما تريد رؤية الرسم كله كما كان في وقت سابق.
- ✓عندما تريد معرفة السوابق أو الأسباب التي انطبقت في لحظة ماضية.
رابط المهارة
https://github.com/semantica-agi/semantica/blob/main/plugins/skills/temporal/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ماذا أظهر الرسم عن موافقات الموردين لدينا حتى 15 مارس، وأي عناصر لم تكن موجودة بعد؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يقرأ الوكيل عبارات زمنية مثل «الشهر الماضي» أو «الربع الثالث 2024» ويحوّلها إلى تاريخ قياسي، ثم يعيد صياغة السؤال مع حد زمني. ويعيد نتائج مرتبة مع تواريخ صلاحيتها، وهل كان العنصر موجودًا في الوقت المستهدف.
المحتوى التقني (ملف 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
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
semantica
14kيمنح وكيلك مجموعة أدوات كاملة لرسوم المعرفة، تشمل الاستخلاص والاستدلال والمصدر والأنطولوجيات والسياسات والتصدير.
causal
14kيساعد وكيلك على تتبع روابط السبب والنتيجة في رسم المعرفة، بما في ذلك سلاسل الأسباب وسيناريوهات «ماذا لو» ودرجات التأثير.
change
14kيعرض لوكيلك كيف كان رسم المعرفة في تاريخ سابق، وما الذي تغيّر بين تاريخين أو بين نسختين من الأنطولوجيا.
decision
14kيساعد وكيلك على تسجيل القرارات في رسم المعرفة والبحث فيها وشرحها ومراجعتها، من أول ملاحظة حتى نتيجتها.
مهارات مشابهة
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
slacrawl
394kيتيح لوكيلك البحث في رسائل Slack داخل أرشيف محلي وعدّها، والتحقق من مدى حداثة الأرشيف، وتحديثه عند الحاجة.
goplaces
394kيساعد وكيلك على البحث عن الأماكن وعرض تفاصيلها وتقييماتها وتحديد أسمائها عبر Google Places، مع مخرجات JSON للسكربتات.