本文へスキップ
Skillpedia
分析とスプレッドシート14k · #11152

policy

できること

このスキルは、記録された判断を、最低確信度、必要な結果、必要な詳細などのコンプライアンス規則と照らして確認します。すべての判断が合意された基準を満たす必要があるチーム向けです。

使う場面

  • ✓新しい判断を、受け入れる前にチームの規則と照らして確認したいとき。
  • ✓どの規則を判断が破ったかの記録が必要なとき。
  • ✓ある種類の判断に対して、バージョン管理されたポリシーを設定したいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/semantica-agi/semantica/blob/main/plugins/skills/policy/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このベンダー承認を私たちの判断ルールと照らして確認し、どれかに違反しているかを教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、判断を規則のセットと比べます。組み込みの初期値か、あなた自身の規則を使います。判断が準拠しているかを、違反や警告とともに報告し、ポリシーを適用することもできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

/semantica:policy

Policy governance over recorded decisions. Usage: /semantica:policy <task> [args]

PolicyEngine lives in semantica.context. For most cases the two policy methods on ContextGraph itself are enough.


check <decision> — the simple path

No policy store needed; rules default to a built-in policy set.

from semantica.context import ContextGraph

graph = ContextGraph()
result = graph.check_decision_rules({
    "category": "vendor_selection",
    "outcome": "approved",
    "confidence": 0.93,
    "decision_maker": "gyro",
})
# {'compliant': bool, 'violations': [...], 'warnings': [...], 'policy_rules': {...}}

Default rules: min_confidence=0.7, required_outcomes=['approved','rejected','flagged'], required_metadata=['decision_maker'], max_reasoning_length=1000. Override by passing your own rules= dict.

enforce <decision> [--rules <dict>]

verdict = graph.enforce_decision_policy(decision_data, policy_rules=None)

Managed policies — the full path

PolicyEngine requires a graph store and versioned Policy objects.

from semantica.context import PolicyEngine
from semantica.context.decision_models import Policy

engine = PolicyEngine(graph_store)

policy_id = engine.add_policy(Policy(...))
policies  = engine.get_applicable_policies(category="vendor_selection", entities=[...])
ok        = engine.check_compliance(decision, policy_id)
history   = engine.get_policy_history(policy_id)

engine.update_policy(policy_id, rules={...}, change_reason="tightened threshold")
engine.record_exception(decision_id, policy_id, reason="...", approver="...")
impact    = engine.analyze_policy_impact(policy_id, proposed_rules={...})
affected  = engine.get_affected_decisions(policy_id, from_version, to_version)

Note check_compliance takes a Decision object, not a dict — fetch it from the graph rather than constructing one by hand.

よくある質問

どんな規則が組み込まれていますか?

初期値には、最低確信度0.7、承認、却下、フラグ付けなどの許可された結果、必須の意思決定者の項目が含まれます。

自分の規則を使えますか?

はい。初期値の代わりに、独自の規則のセットを渡せます。

始めるのにポリシーのストアが必要ですか?

いいえ。簡単な確認はストアなしで動きますが、管理されたポリシーにはグラフのストアが必要です。

詳細

作者による元の説明

Define and enforce decision policies, compliance rules, and exceptions over Semantica graphs. Uses ContextGraph.check_decision_rules/enforce_decision_policy and context.PolicyEngine.

repo: semantica-agi/semantica

人気

GitHubのスター
14k
ランキング
#11152
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル