一键导入
behavior-simulator
This skill enables real-time, lightweight simulation of emergent sorting behaviors in the Emergent Doom Engine (EDE)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
This skill enables real-time, lightweight simulation of emergent sorting behaviors in the Emergent Doom Engine (EDE)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | behavior-simulator |
| description | This skill enables real-time, lightweight simulation of emergent sorting behaviors in the Emergent Doom Engine (EDE) |
| license | MIT |
| compatibility | opencode/skills |
| metadata | {"domain":"lab-tools","style":"ede-chop-shop","languages":"java,python,typescript","emphasis":"readability-over-cleverness"} |
This skill enables real-time, lightweight simulation of emergent sorting behaviors in the Emergent Doom Engine (EDE), predicting how local cell swaps evolve into global patterns without full Java execution. Focused on general sorting (any comparable array), it models cell interactions, swap proposals, and convergence trajectories, using probabilistic shortcuts for efficiency. Ideal for rapid prototyping, debugging algotype mixes, or forecasting iterations (e.g., "Simulate 100 Bubble cells on [3,1,4,1,5]—predict steps to sort?").
Key capabilities:
From training: Local rules (e.g., Bubble's random dir on disorder) create diffusion; Insertion prefixes build left-to-right; Selection increments ideals for min-finding. Skill abstracts to Markov-like steps, predicting without full Probe/Engine.
Analyzed full relevant codebase (~40 files) for emergent fidelity:
Probabilistic model: Bubble nextBoolean() → sample 100 paths; deterministic for Insertion/Selection. General sorting: No domain (e.g., factorization)—pure comparables.
Invoke via /simulate-sorting command or tool integration:
array=[3,1,4], algotypes=['BUBBLE','INSERTION','SELECTION'], steps=1000, samples=100 (for random algos).{ "steps_to_converge": 25, "final_order": [1,3,4], "swaps": 12, "monotonicity": 100.0, "trajectory": [[initial], [after_swap1], ...] }.Example CLI:
$ python tools/emergent_sim.py --array "[5,2,8,1]" --algotypes "BUBBLE BUBBLE INSERTION SELECTION" --max_steps 500
Returns: Simulated path, e.g., 18 steps to sort, 95% monotonicity at end.
In opencode sessions: "Simulate Bubble on [10,3,7]—what's convergence time?" → Runs Python, summarizes.
Standalone tools/emergent_sim.py (std lib only).
[Code as above, fixed version]