Agent Skills
› semantica-agi/semantica
› policy
policy
GitHub用于在 Semantica 知识图谱上定义和执行策略、访问控制及合规规则。支持检查合规性并输出失败规则与修复建议,以及列出可用策略规则和分类信息。
Trigger Scenarios
需要验证知识图谱数据是否符合特定安全或业务策略
查询当前可用的合规规则列表及其严重程度
Install
npx skills add semantica-agi/semantica --skill policy -g -y
SKILL.md
Frontmatter
{
"name": "policy",
"description": "Define and enforce policies, access controls, and compliance rules over Semantica knowledge graphs."
}
/semantica:policy
Apply policy rules and checks. Usage: /semantica:policy <task> [args]
$ARGUMENTS = task + optional policy name, rule set, or target entity.
check [--rule <name>] [--target <id>]
Run policy checks against the graph.
from semantica.policy import PolicyEngine
engine = PolicyEngine()
result = engine.check(rule_name=rule_name, target=target)
Output: compliance status, failing rules, and remediation guidance.
list
List available policy rules and categories.
rules = engine.list_rules()
Return: rule name, description, severity, and category.
Version History
- 9094f1e Current 2026-07-05 09:26


