decision
Skill này làm gì
Skill quản lý toàn bộ vòng đời của một quyết định đã ghi trong đồ thị tri thức Semantica, gồm lý luận, kết quả và mọi ngoại lệ. Skill dành cho nhóm cần một bản ghi rõ ràng về lý do các lựa chọn được đưa ra.
Khi nào nên dùng
- ✓Khi bạn muốn ghi lại một quyết định cùng lý do, kết quả và độ tin cậy.
- ✓Khi bạn cần tìm các quyết định trước đó làm tiền lệ cho một trường hợp mới.
- ✓Khi bạn muốn có lời giải thích vì sao một quyết định đã ghi được đưa ra.
Liên kết skill
https://github.com/semantica-agi/semantica/blob/main/plugins/skills/decision/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể ghi lại quyết định phê duyệt nhà cung cấp mới của chúng tôi, cùng lý do và mức độ tự tin của chúng tôi, rồi tìm các quyết định tương tự trong quá khứ không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent lưu từng quyết định với danh mục, tình huống, lý luận, kết quả và điểm tin cậy. Sau đó nó có thể tìm các quyết định trước đó bằng ngôn ngữ thường, theo dõi liên kết đến các quyết định liên quan và tóm tắt cách một quyết định được đưa ra.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
/semantica:decision
Full decision lifecycle management. Usage: /semantica:decision <sub-command> [args]
record <category> "<scenario>" "<reasoning>" <outcome> <confidence>
Record a decision with full context.
from semantica.context import AgentContext
ctx = AgentContext(decision_tracking=True)
decision_id = ctx.record_decision(
category=category, # "loan_approval", "deployment", "hiring"
scenario=scenario, # natural-language situation description
reasoning=reasoning, # why this decision was made
outcome=outcome, # "approved", "rejected", "deferred"
confidence=float(confidence),
entities=entities or [],
decision_maker="ai_agent",
valid_from=valid_from, # optional ISO date string
valid_until=valid_until,
)
Output: Decision <decision_id> recorded | <category> | <outcome> (conf: 0.95)
query "<question>" [--hops N] [--hybrid]
Query decisions using natural language with multi-hop graph traversal.
from semantica.context import AgentContext
ctx = AgentContext(decision_tracking=True, advanced_analytics=True)
results = ctx.query_decisions(
query=question,
max_hops=int(hops) if hops else 3,
include_context=True,
use_hybrid_search="--hybrid" in args,
)
For structured lookups use DecisionQuery:
from semantica.context.decision_query import DecisionQuery
dq = DecisionQuery(graph_store=ctx.graph_store)
# dq.find_by_category(category, limit=100)
# dq.find_by_entity(entity_id, limit=100)
# dq.find_by_time_range(start, end, limit=100)
# dq.multi_hop_reasoning(start_entity, query_context, max_hops=3)
# dq.trace_decision_path(decision_id, relationship_types)
# dq.analyze_decision_influence(decision_id, max_depth=3)
Return: | ID | Category | Scenario | Outcome | Confidence | Timestamp |
precedents "<scenario>" [--category <cat>] [--advanced] [--hops N] [--as-of <date>]
Find similar past decisions using hybrid semantic + structural + vector search.
from semantica.context import AgentContext
ctx = AgentContext(decision_tracking=True, kg_algorithms=True, vector_store_features=True)
if "--advanced" in args:
precedents = ctx.find_precedents_advanced(
scenario=scenario, category=category, limit=10,
use_kg_features=True,
similarity_weights={"semantic": 0.5, "structural": 0.3, "vector": 0.2},
)
else:
precedents = ctx.find_precedents(
scenario=scenario, category=category, limit=10,
use_hybrid_search=True,
max_hops=int(hops) if hops else 3,
include_context=True,
include_superseded=False,
as_of=as_of_date or None, # temporal filter: only precedents that existed as_of this date
)
Return ranked: | Rank | ID | Scenario | Outcome | Confidence | Similarity | Date |
influence <decision_id> [--depth N]
Analyze how a decision influences others across the graph.
from semantica.context import AgentContext
ctx = AgentContext(decision_tracking=True, advanced_analytics=True, kg_algorithms=True)
influence = ctx.analyze_decision_influence(decision_id, max_depth=int(depth) if depth else 3)
predictions = ctx.predict_decision_relationships(decision_id, top_k=5)
Output: Influence score + influenced decisions table + predicted new relationships.
explain <decision_id>
Full explainability trace — reasoning steps, causal antecedents, policy compliance.
from semantica.context import AgentContext, ContextGraph
ctx = AgentContext(decision_tracking=True)
explainability = ctx.trace_decision_explainability(decision_id)
graph = ContextGraph(advanced_analytics=True)
chain = graph.trace_decision_chain(decision_id, max_steps=5)
causality = graph.trace_decision_causality(decision_id, max_depth=5)
Output: Reasoning steps, causal antecedents, evidence items, policy compliance status.
insights
Comprehensive analytics across all tracked decisions.
from semantica.context import ContextGraph, AgentContext
ctx = AgentContext(decision_tracking=True, advanced_analytics=True)
graph = ContextGraph(advanced_analytics=True)
insights = graph.get_decision_insights()
summary = graph.get_decision_summary()
context_insights = ctx.get_context_insights()
Output: Total count, category breakdown, outcome distribution, avg confidence, top influential.
list [--category <cat>] [--entity <id>] [--from <date>] [--to <date>]
``
Câu hỏi thường gặp
Một quyết định đã ghi gồm những chi tiết nào?
Danh mục, tình huống, lý luận, kết quả, điểm tin cậy và các thực thể liên quan.
Tôi có thể tìm các quyết định trước đó bằng ngôn ngữ thường không?
Có. Câu hỏi có thể đặt bằng lời thường, và skill theo các liên kết đến quyết định liên quan.
Tôi có thể ghi lại một ngoại lệ không?
Có. Các ngoại lệ của một quyết định cũng có thể được ghi lại.
Chi tiết
Mô tả gốc của tác giả
Full decision lifecycle in Semantica — record, query, find precedents (hybrid/advanced), analyze influence, explain, insights dashboard, list, and record exceptions. Uses AgentContext, ContextGraph, DecisionQuery, CausalChainAnalyzer, DecisionRecorder.
repo: semantica-agi/semantica
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11144
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
semantica
14kCung cấp cho agent của bạn một bộ công cụ đầy đủ cho đồ thị tri thức, gồm trích xuất, suy luận, nguồn gốc, ontology, chính sách và xuất dữ liệu.
causal
14kGiúp agent của bạn truy vết các liên kết nhân quả trong đồ thị tri thức, gồm chuỗi nguyên nhân, kịch bản nếu-thì và điểm ảnh hưởng.
change
14kCho agent của bạn thấy một đồ thị tri thức trông như thế nào vào một ngày trước đó, và điều gì đã thay đổi giữa hai ngày hoặc hai phiên bản ontology.
deduplicate
14kGiúp agent của bạn tìm thực thể, nhóm và quan hệ trùng lặp trong đồ thị tri thức, và đề xuất bản nào nên gộp.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.