policy
What it does
This skill checks recorded decisions against compliance rules, such as minimum confidence, required outcomes and required details. It is for teams who need every decision to meet agreed standards.
When to use it
- ✓When you want to check a new decision against your team's rules before it is accepted.
- ✓When you need a record of which rules a decision broke.
- ✓When you want to set up versioned policies for a category of decisions.
Skill link
https://github.com/semantica-agi/semantica/blob/main/plugins/skills/policy/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you check this vendor approval against our decision rules and tell me if it breaks any of them?”
5 new skills a week. 1 minute to read.
How it works
The agent compares the decision with a rule set, using built-in defaults or your own rules. It reports whether the decision complies, along with any violations and warnings, and can also enforce a policy.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
/semantica:policy
Policy governance over recorded decisions. Usage: /semantica:policy <task> [args]
PolicyEnginelives insemantica.context. For most cases the two policy methods onContextGraphitself 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.
FAQ
What rules are built in?
The defaults include a minimum confidence of 0.7, allowed outcomes such as approved, rejected or flagged, and a required decision maker field.
Can I use my own rules?
Yes. Your own rule set can be passed in to replace the defaults.
Do I need a policy store to start?
No. The simple check works without one, while managed policies need a graph store.
Details
Original description by the author
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
Popularity
- GitHub stars
- 14k
- Ranking position
- #11152
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
semantica
14kGives your agent a full toolkit for knowledge graphs, covering extraction, reasoning, provenance, ontologies, policies and exports.
causal
14kHelps your agent trace cause-and-effect links in a knowledge graph, including chains of causes, what-if scenarios and influence scores.
change
14kShows your agent how a knowledge graph looked at an earlier date, and what changed between two dates or two ontology versions.
decision
14kHelps your agent record, search, explain and review decisions in a knowledge graph, from the first note through to its outcome.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.