본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트14k · #11152

policy

하는 일

이 스킬은 기록된 결정을 최소 확신도, 필수 결과, 필수 세부 정보 같은 규칙과 비교합니다. 모든 결정이 합의된 기준을 충족해야 하는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓새 결정을 받아들이기 전에 팀 규칙과 비교하고 싶을 때.
  • ✓어떤 규칙을 어겼는지 기록이 필요할 때.
  • ✓한 범주의 결정에 대해 버전이 있는 정책을 설정하고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/semantica-agi/semantica/blob/main/plugins/skills/policy/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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, approved, rejected, flagged 같은 허용 결과, 그리고 필수 결정자(decision maker) 필드가 있습니다.

내 규칙을 쓸 수 있나요?

네. 기본값을 대신할 자체 규칙 세트를 전달할 수 있습니다.

시작하려면 정책 저장소가 필요한가요?

아니요. 간단한 검사는 저장소 없이 작동하며, 관리되는 정책에는 그래프 저장소가 필요합니다.

상세 정보

작성자의 원본 설명

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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬