/asi:parallel-fanoutfrom asi
Fans out every user interaction into parallel skill invocations using interaction entropy for deterministic skill selection.
Ships in asi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A metaskill that transforms every user interaction into a maximally parallel skill invocation, using the interaction's entropy as the seed for deterministic SplitMixTernary forking.
┌─────────────────────────────────────────────────────────────────┐
│ USER INTERACTION │
│ "implement feature X with Y constraints" │
└──────────────────────────┬──────────────────────────────────────┘
│
┌──────▼──────┐
│ ENTROPY │
│ EXTRACTION │
│ (Shannon H) │
└──────┬──────┘
│ seed = hash(interaction) & MASK64
┌──────▼──────┐
│ SplitMix64 │
│ .fork(3) │
└──────┬──────┘
│
┌───────────────┼───────────────┐
│ │ │
┌──────▼──────┐ ┌──────▼──────┐ ┌──────▼──────┐
│ GENERATOR │ │ COORDINATOR │ │ VALIDATOR │
│ (+1 RED) │ │ (0 GREEN) │ │ (-1 BLUE) │
│ child[0] │ │ child[1] │ │ child[2] │
└──────┬──────┘ └──────┬──────┘ └──────┬──────┘
│ │ │
└───────────────┼───────────────┘
│
┌──────▼──────┐
│ MERGE │
│ GF(3) = 0 │
└─────────────┘
def interaction_to_seed(interaction_text)
# Shannon entropy of interaction
chars = interaction_text.chars
freq = chars.tally
total = chars.size.to_f
h = freq.values.sum { |c|
p = c / total
-p * Math.log2(p)
}
# Hash interaction with entropy weight
fnv1a = 0xcbf29ce484222325
interaction_text.bytes.each do |b|
fnv1a ^= b
fnv1a = (fnv1a * 0x100000001b3) & 0xFFFFFFFFFFFFFFFF
end
# Combine hash with entropy bits
entropy_bits = (h * 1_000_000).to_i
(fnv1a ^ (entropy_bits * GOLDEN)) & MASK64
end
Given a task domain, select a GF(3)-balanced triad:
SKILL_TRIADS = {
sonification: {
generator: 'supercollider-osc', # +1: Create sound
coordinator: 'parameter-mapping', # 0: Map data→audio
validator: 'spectral-invariants' # -1: Verify bounds
},
derivation: {
generator: 'gay-mcp', # +1: Generate colors
coordinator: 'unworld', # 0: Chain derivations
validator: 'three-match' # -1: Verify 3-SAT
},
repl: {
generator: 'cider-clojure', # +1: Evaluate code
coordinator: 'borkdude', # 0: Select runtime
validator: 'slime-lisp' # -1: Type check
},
database: {
generator: 'rama-gay-clojure', # +1: Generate queries
coordinator: 'acsets', # 0: Schema navigation
validator: 'clj-kondo-3color' # -1: Lint/validate
},
proof: {
generator: 'gay-mcp', # +1: Generate terms
coordinator: 'squint-runtime', # 0: JS interop
validator: 'proofgeneral-narya' # -1: Type check
},
game: {
generator: 'rubato-composer', # +1: Compose music
coordinator: 'glass-bead-game', # 0: Connect domains
validator: 'bisimulation-game' # -1: Verify equivalence
}
}
class ParallelFanout
def initialize(interaction)
@interaction = interaction
@seed = interaction_to_seed(interaction)
@rng = SplitMixTernary::Generator.new(@seed)
@domain = detect_domain(interaction)
@triad = SKILL_TRIADS[@domain]
end
def fanout!
# Fork into 3 independent streams
children = @rng.fork(3)
# Dispatch in parallel (SPI-compliant)
results = Parallel.map(0..2, in_threads: 3) do |i|
role = [:generator, :coordinator, :validator][i]
skill = @triad[role]
child_seed = children[i].seed
{
role: role,
skill: skill,
seed: child_seed,
trit: i - 1, # -1, 0, +1
result: invoke_skill(skill, @interaction, child_seed)
}
end
# Verify GF(3) conservation
trit_sum = results.sum { |r| r[:trit] }
raise "GF(3) violation!" unless trit_sum % 3 == 0
# Merge results
merge_results(results)
end
private
def invoke_skill(skill_name, context, seed)
# Load skill and execute with seeded determinism
skill = Skill.load(skill_name)
skill.execute(context: context, seed: seed)
end
def merge_results(results)
{
domain: @domain,
seed: @seed,
seed_hex: "0x#{@seed.to_s(16)}",
gf3_sum: 0,
generator: results[0],
coordinator: results[1],
validator: results[2],
merged: combine_outputs(results)
}
end
end
Track entropy across interactions for adaptive seeding:
CREATE TABLE interaction_entropy (
interaction_id VARCHAR PRIMARY KEY,
timestamp TIMESTAMP,
text_length INT,
char_entropy FLOAT, -- Shannon entropy of characters
word_entropy FLOAT, -- Shannon entropy of words
topic_entropy FLOAT, -- Entropy of detected topics
mode_entropy FLOAT, -- Entropy of interaction type
combined_entropy FLOAT, -- Weighted combination
seed_derived BIGINT, -- SplitMixTernary seed
triad_used VARCHAR[3], -- Skills invoked
gf3_verified BOOLEAN
);
sequential == parallel (bitwise)# Fan out on interaction
just parallel-fanout "implement X with Y"
# Show skill triad for domain
just fanout-triad sonification
# Verify SPI across all triads
just fanout-spi-verify
# Compute interaction entropy
just interaction-entropy "your message here"
# Demo full pipeline
just parallel-fanout-demo
# Parallel fanout metaskill
parallel-fanout interaction:
@echo "🔀 PARALLEL FANOUT: {{interaction}}"
ruby -I lib -r parallel_fanout -e "ParallelFanout.new('{{interaction}}').fanout!"
# Show triad for domain
fanout-triad domain:
@echo "🎭 SKILL TRIAD for {{domain}}"
ruby -I lib -r parallel_fanout -e "puts ParallelFanout::SKILL_TRIADS[:{{domain}}].to_yaml"
# Interaction entropy
interaction-entropy text:
@echo "📊 INTERACTION ENTROPY"
ruby -I lib -r parallel_fanout -e "puts ParallelFanout.interaction_entropy('{{text}}')"
# Full demo
parallel-fanout-demo:
@echo "🚀 PARALLEL FANOUT DEMO"
ruby -I lib -r parallel_fanout -e "ParallelFanout.demo"
For any interaction, the metaskill selects exactly one skill per polarity:
Σ trits = (+1) + (0) + (-1) = 0 ≡ 0 (mod 3) ✓
This ensures color balance across the triadic dispatch:
This skill can invoke itself recursively with forked seeds:
def meta_fanout(depth: 3)
return fanout! if depth == 0
children = @rng.fork(3)
children.map.with_index do |child, i|
sub = ParallelFanout.new(@interaction)
sub.instance_variable_set(:@seed, child.seed)
sub.meta_fanout(depth: depth - 1)
end
end
This creates a skill tree of depth N with 3^N leaves, all deterministically seeded.
triad-interleave - Stream interleavingspi-parallel-verify - Parallelism verificationepistemic-arbitrage - Knowledge transfergay-mcp - Color generation backendINTERACTION_ENTROPY_FRAMEWORK.md - Entropy metricslib/spi_parallel.rb - SPI implementationThis skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:
general: 734 citations in bib.duckdbThis skill maps to Cat# = Comod(P) as a bicomodule in the equipment structure:
Trit: 0 (ERGODIC)
Home: Prof
Poly Op: ×
Kan Role: Adj
Color: #26D826
The skill participates in triads satisfying:
(-1) + (0) + (+1) ≡ 0 (mod 3)
This ensures compositional coherence in the Cat# equipment structure.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (plurigrid/asi) — no native marketplace selected
npx claudepluginhub p/plurigrid-asi-plugins-asi1,393 skills in this plugin
/abductive-replHypothesis-Test Loops via REPL for Exploratory Abductive Inference/academic-researchSearch academic papers across arXiv, PubMed, Semantic Scholar, bioRxiv, medRxiv, Google Scholar, and more. Get BibTeX citations, download PDFs, analyze citation networks. Use for literature reviews, finding papers, and academic research./accept-no-substitutesThis skill should be used when agents generate placeholder tokens like "pseudo-", "mock-", "temporary", "TODO", "demo-", or similar incompleteness markers. Detects substitution patterns in agent OUTPUT and triggers mandatory user interview instead of accepting incomplete work. Activates automatically on any output containing forbidden tokens.Other plugins' skills for the same job