intent-sink
БесплатноБез исполняемых скриптовНе проверенIntent Sink Skill
от plurigrid★ 73 звезды на GitHubОб этом скилле
intent-sink Skill
"Where intents go to be validated. The final checkpoint before execution."
Overview
Intent Sink is the validation endpoint for intent-centric architectures. It validates that intents are well-formed, satisfiable, and safe before allowing execution.
GF(3) Role
| Aspect | Value |
|---|---|
| Trit | -1 (MINUS) |
| Role | VALIDATOR |
| Function | Validates intents before execution |
Architecture
┌─────────────────────────────────────────────────────────────────┐
│ INTENT FLOW │
├─────────────────────────────────────────────────────────────────┤
│ │
│ User Intent Solver Intent Sink Execution │
│ (+1 GEN) (0 COORD) (-1 VAL) (output) │
│ │ │ │ │ │
│ ▼ ▼ ▼ ▼ │
│ ┌───────┐ ┌────────┐ ┌──────────┐ ┌─────────┐ │
│ │Declare│───►│ Solve │───►│ Validate │───►│ Execute │ │
│ └───────┘ └────────┘ └──────────┘ └─────────┘ │
│ │ │
│ ▼ │
│ ┌──────────┐ │
│ │ Reject ? │ │
│ └──────────┘ │
│ │
└─────────────────────────────────────────────────────────────────┘
Validation Checks
class IntentSink:
"""Final validation before intent execution."""
TRIT = -1 # VALIDATOR role
def validate(self, intent, solution):
"""Run all validation checks."""
checks = [
self.check_well_formed(intent),
self.check_resource_conservation(solution),
self.check_authorization(intent),
self.check_deadlines(intent),
self.check_slippage(intent, solution),
]
return all(checks)
def check_well_formed(self, intent):
"""Intent has valid structure."""
required = ['type', 'constraints', 'deadline']
return all(k in intent for k in required)
def check_resource_conservation(self, solution):
"""Inputs balance outputs (no creation/destruction)."""
input_sum = sum(r.quantity for r in solution.inputs)
output_sum = sum(r.quantity for r in solution.outputs)
return input_sum == output_sum
def check_authorization(self, intent):
"""User authorized to create this intent."""
return verify_signature(intent.signature, intent.user)
def check_deadlines(self, intent):
"""Intent hasn't expired."""
return intent.deadline > current_time()
def check_slippage(self, intent, solution):
"""Solution meets slippage constraints."""
if intent.type == 'swap':
actual_rate = solution.output_amount / solution.input_amount
min_rate = intent.min_rate * (1 - intent.slippage)
return actual_rate >= min_rate
return True
Sink Modes
class SinkMode(Enum):
STRICT = "reject on any failure"
LENIENT = "allow with warnings"
DRY_RUN = "validate but don't execute"
class ConfigurableSink:
def __init__(self, mode: SinkMode):
self.mode = mode
def process(self, intent, solution):
result = self.validate(intent, solution)
if self.mode == SinkMode.DRY_RUN:
return {"valid": result, "executed": False}
if not result and self.mode == SinkMode.STRICT:
raise ValidationError("Intent failed validation")
if not result and self.mode == SinkMode.LENIENT:
log.warning(f"Intent {intent.id} has warnings")
return {"valid": result, "executed": True}
GF(3) Integration
def intent_triad(intent, solver, sink):
"""
Complete intent lifecycle with GF(3) conservation.
intent (+1) + solver (0) + sink (-1) = 0 ✓
"""
# Generation phase
raw_intent = intent.declare() # +1
# Coordination phase
solution = solver.solve(raw_intent) # 0
# Validation phase
if sink.validate(raw_intent, solution): # -1
return solution.execute()
else:
return None
# Net GF(3): +1 + 0 + (-1) = 0 ✓
Anoma Integration
-- Intent sink in Juvix
module IntentSink;
type ValidationResult :=
| Valid : Solution -> ValidationResult
| Invalid : Error -> ValidationResult;
validate : Intent -> Solution -> ValidationResult;
validate intent solution :=
if (all-checks-pass intent solution)
then Valid solution
else Invalid (first-failure intent solution);
-- Compose with solver
process : Intent -> Maybe Transaction;
process intent :=
case solve int
Установить intent-sink в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл intent-sink?
Intent Sink Skill
Как установить скилл intent-sink?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл intent-sink запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic