autopoiesis
БесплатноБез исполняемых скриптовНе проверенSelf-producing skill system combining ruler enforcement with skill self-evolution. Implements trifurcation-first imperative via nbb sexp invocation for…
от plurigrid★ 73 звезды на GitHubОб этом скилле
Autopoiesis: Self-Producing Agent Skills
Trit: 0 (ERGODIC - coordinator)
Color: Green (#26D826)
Overview
Autopoiesis (Greek: αὐτό "self" + ποίησις "creation") implements self-producing agent instruction systems by combining:
- Ruler: Unified instruction propagation across 18+ coding agents
- Agent Skills Spec: Homebrew-style skill installation
- Trifurcation Discipline: XOR-independent parallel execution
- nbb SEXP Invocation: Idempotent enforcement via Babashka
The Trifurcation-First Imperative
CRITICAL RULE: When spanning 3+ domains/files/languages, Amp MUST spawn 3 Task subagents BEFORE any read/grep/find operations.
Mathematical Foundation
Based on SplitMixTernary XOR-independence and GF(3) field conservation:
cat(69, -1, 0, +1) → Three streams that sum to coherent result
GOLDEN = 0x9e3779b97f4a7c15
MIX1 = 0xbf58476d1ce4e5b9
MIX2 = 0x94d049bb133111eb
SEED = 0x42D ;; 1069
| Stream | ID | Role | Action |
|---|---|---|---|
| MINUS | -1 | Contracting | Search/Read |
| ERGODIC | 0 | Synthesis | Analyze (NO reading) |
| PLUS | +1 | Expanding | Parallel search OR creation |
❌ FORBIDDEN Anti-Patterns
"Let me first search for the files..." → search → then split
"I'll check what exists..." → read → then split
Any grep/find/read BEFORE spawning subagents
✅ CORRECT Pattern
[spawn Task 1] [spawn Task 2] [spawn Task 3] → each searches internally
Subagents are XOR-independent: no shared pre-search state
Each stream discovers its own context autonomously
nbb SEXP Enforcement
Enforcer Script
Create .ruler/trifurcation-enforcer.cljs:
(ns ruler.trifurcation-enforcer
"Idempotent enforcement: NEVER read/grep/find BEFORE spawning 3 subagents.
SplitMixTernary XOR-independence requires autonomous context discovery."
(:require [clojure.string :as str]))
;; SplitMixTernary Constants (GF(3) field operations)
(def GOLDEN 0x9e3779b97f4a7c15)
(def MIX1 0xbf58476d1ce4e5b9)
(def MIX2 0x94d049bb133111eb)
(def SEED 0x42D) ;; 1069
;; Forbidden pre-trifurcation operations
(def forbidden-before-split
#{:read :grep :find :glob :search :Grep :Read :finder})
;; Trifurcation stream types
(def streams
{:minus {:id -1 :role :contracting :action :search}
:ergodic {:id 0 :role :synthesis :action :analyze}
:plus {:id +1 :role :expanding :action :create}})
(defn trifurcation-required?
"Detect if request spans 3+ domains/files/languages"
[request]
(let [domains (or (:domains request) [])
files (or (:files request) [])
langs (or (:languages request) [])]
(>= (+ (count domains) (count files) (count langs)) 3)))
(defn validate-no-presearch
"ENFORCE: No read operations before subagent spawn."
[operation-sequence]
(let [split-idx (->> operation-sequence
(map-indexed vector)
(filter #(= :spawn-subagent (second %)))
first
first)]
(if (nil? split-idx)
{:valid false :reason :no-trifurcation}
(let [pre-split (take split-idx operation-sequence)
violations (filter forbidden-before-split pre-split)]
(if (seq violations)
{:valid false
:violation (first violations)
:reason :presearch-before-split}
{:valid true})))))
(defn spawn-trifurcated-tasks
"Generate 3 XOR-independent subagent specifications."
[base-task]
[(merge base-task
{:stream :minus
:constraint "Search/discover in contracting domain"
:xor-independent true})
(merge base-task
{:stream :ergodic
:constraint "Synthesize/analyze WITHOUT reading new files"
:xor-independent true})
(merge base-task
{:stream :plus
:constraint "Parallel search OR creation in expanding domain"
:xor-independent true})])
(defn enforce!
"Main enforcement entry point."
[request planned-ops]
(if (trifurcation-required? request)
(let [validation (validate-no-presearch planned-ops)]
(if (:valid validation)
{:proceed true :tasks (spawn-trifurcated-tasks request)}
{:proceed false
:error "TRIFURCATION VIOLATION"
:details validation
:remedy "STOP and spawn 3 subagents IMMEDIATELY"}))
{:proceed true :single-agent true}))
;; Idempotent rule declaration
(def ^:const RULE
{:name "trifurcation-first"
:version "1.0.0"
:trigger "3+ domains/files/languages in request"
:enforcement :strict
:gf3-conservation true})
Usage via nbb
# Check if trifurcation required and validate
nbb -e "(require '[ruler.trifurcation-enforcer :as te]) \
(te/enforce! {:domains [:rust :julia :clojure]} \
[:spawn-subagent :spawn-subagent :spawn-subagent])"
# => {:proceed true, :tasks [...]}
# Detect violation
nbb -e "(require '[ruler.trifurcation
Установить autopoiesis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл autopoiesis?
Self-producing skill system combining ruler enforcement with skill self-evolution. Implements trifurcation-first imperative via nbb sexp invocation for idempotent agent instruction.
Как установить скилл autopoiesis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл autopoiesis запускает скрипты?
Нет, скилл состоит только из инструкций (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