본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

constraint-engine

leegitw 제작

Transportation
—아직 평가 없음
내 평가

요약

Learn from consequences, not instructions — generate and enforce constraints from experience.

설명

이 스킬이 하는 일

Generates and enforces behavioral constraints derived from observed failures rather than predefined rules. Uses a circuit breaker pattern (CLOSED/OPEN/HALF-OPEN) to block actions that violate active constraints. Consolidates constraint generation, checking, lifecycle management, and versioning into one system.

Constraints derived from actual failures have higher adoption than manually written rules because they carry concrete consequences as evidence.

사용 시점

  • Blocking a deployment when code review approval is missing
  • Auto-generating a 'run tests before commit' rule after repeated CI failures
  • Auditing emergency constraint overrides during incident response
  • Retiring outdated constraints after 90-day review cycles
  • Checking staging actions against active constraints before promotion to production

예시 워크플로

입력

User asks: check if I can deploy to production

에이전트
  1. 1

    Run /ce check 'deploy production' against active constraints

  2. 2

    Identify CON-20260212-005 requires code review approval before production deployment

  3. 3

    Determine constraint severity is CRITICAL and review approval is absent

  4. 4

    Block the action and log to output/hooks/blocked.log

  5. 5

    Surface the violated constraint with override instructions

출력

[CHECK BLOCKED] deploy production — Constraint CON-20260212-005 violated: 'Always get code review approval before production deployment'. Run /ce override CON-20260212-005 "reason" to bypass with audit trail.

설치

clawhub install leegitw/constraint-engine

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크