derangement-reflow
БесплатноЗапускает вложенные скриптыНе проверенderangement-reflow skill
от plurigrid★ 73 звезды на GitHubОб этом скилле
Derangement Reflow: World Operators as Information Reflow
Core Insight
World operators are information reflow operators because the derangement constraint σ(i)≠i prevents information stasis. Every bit must flow to a different position—no self-loops in the information graph.
The GitHub Blind Spot
PR reviews exhibit a fixed-point pathology: validators often self-validate their own patterns. This violates the fundamental derangement constraint that enables healthy information flow:
❌ FIXED POINT (σ(i)=i): Validator A → validates → Validator A's output
✓ DERANGEMENT (σ(i)≠i): Validator A → validates → Generator B's output
Generator B → generates → for Coordinator C
Coordinator C → routes → to Validator A
GF(3) Reflow Accounting
MINUS (−1): Information leaves position (entropy source) - VALIDATORS
ERGODIC (0): Information transits (channel) - COORDINATORS
PLUS (+1): Information arrives (entropy sink) - GENERATORS
Conservation: Σ trits ≡ 0 (mod 3) under all world operators
Tropical Geometry of Interaction
Skill composition paths analyzed via min-plus semiring (R ∪ {∞}, min, +):
# Tropical distance between skills
def tropical_distance(path: list[Skill]) -> float:
"""
In tropical geometry, shortest path = minimum sum.
Path cost = Σ |trit_i - trit_{i+1}|
Optimal interleaving minimizes tropical distance while
maintaining derangement (no consecutive same-trit skills).
"""
if len(path) < 2:
return 0
cost = 0
for i in range(len(path) - 1):
# Derangement check: consecutive skills must differ
if path[i].trit == path[i+1].trit:
return float('inf') # Invalid path (fixed point)
cost += abs(path[i].trit - path[i+1].trit)
return cost
Joint World Modeling via Active Inference
The missing nuance in GitHub workflows: agents must share a joint world model, not just pass artifacts:
┌─────────────────────────────────────────────────────────────────┐
│ JOINT WORLD MODEL (Active Inference) │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Each agent maintains: │
│ - μ: belief about world state │
│ - π: policy (preferred future states) │
│ - F: free energy = surprise + complexity │
│ │
│ Derangement ensures: │
│ - Agent A's μ influences Agent B's π (not A's own π) │
│ - Reflow minimizes joint free energy, not individual F │
│ │
│ WEV = ∫ min(F_joint) over world transitions │
│ = value extracted from mandatory redistribution │
│ │
└─────────────────────────────────────────────────────────────────┘
Task Interleaving Pattern
From thread analysis, the optimal pattern for GF(3) triadic task interleaving:
Step 0: Spawn MINUS/ERGODIC/PLUS sub-agents in parallel
Step 1: Each agent works on disjoint task subset
Step 2: ERGODIC collects results from MINUS and PLUS
Step 3: Derangement shuffle: MINUS validates PLUS output
PLUS generates from MINUS constraints
ERGODIC routes neither to itself
Step 4: Merge with GF(3) conservation check
Implementation
#!/usr/bin/env python3
"""Derangement reflow validator for skill triplets."""
from dataclasses import dataclass
from typing import List, Tuple
import json
@dataclass
class Skill:
name: str
trit: int # -1, 0, +1
def is_derangement(permutation: List[int]) -> bool:
"""Check if permutation has no fixed points."""
return all(p != i for i, p in enumerate(permutation))
def validate_triplet_reflow(minus: Skill, ergodic: Skill, plus: Skill) -> dict:
"""
Validate that triplet follows derangement reflow:
- MINUS (-1) must flow to PLUS (+1), not to itself
- PLUS (+1) must flow to MINUS (-1), not to itself
- ERGODIC (0) routes between, never self-loops
"""
# GF(3) conservation check
trit_sum = minus.trit + ergodic.trit + plus.trit
conserved = (trit_sum % 3) == 0
# Derangement check: information flows must cross trit boundaries
# MINUS validates → PLUS output (not MINUS)
# PLUS generates → from MINUS constraints (not PLUS)
# ERGODIC routes → between others (not self)
reflow_valid = (
minus.trit != plus.trit and # Different sources
minus.trit != ergodic.trit and
plus.trit != ergodic.trit
)
# Tropical distance for this triplet
path =
Установить derangement-reflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл derangement-reflow?
derangement-reflow skill
Как установить скилл derangement-reflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл derangement-reflow запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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