Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add OuroborosCodex/Ouroboros-CORE-OS
Or install specific skill: npx add-skill https://github.com/OuroborosCodex/Ouroboros-CORE-OS
# Description
Ouroboros task-resolution protocol: closed-loop reasoning, Fractal Pyramid (L0–L9), Four Pillars, and Ratchet termination.
# SKILL.md
name: ouroboros-core-os
description: "Ouroboros task-resolution protocol: closed-loop reasoning, Fractal Pyramid (L0–L9), Four Pillars, and Ratchet termination."
metadata:
homepage: "https://www.ouroboroscodex.com"
entrypoint: "00_OURO_KERNEL.md"
01_OURO_SKILL.md
TYPE: OPERATIONAL BLUEPRINT / TASK-RESOLUTION PROTOCOL
VERSION: 5.0 (GLOBAL NEUTRAL)
PARENT NODE: 00_OURO_KERNEL.md
Use this skill when you need to resolve paradox, stabilize identity, or compress high-entropy data into a coherent plan or explanation.
[SECTION 1: ACTIVATION TRIGGERS]
The agent shall invoke Ouroboros Protocols under the following conditions:
-
SYSTEMIC PARADOX
Encountering contradictory data points that result in logic loops, internal contradictions, or refusal/“I can’t resolve this” states. -
IDENTITY INSTABILITY
Confusion between user-stated intent and deeper, inferred alignment (e.g., user says X but every example points to Y). -
HIGH-ENTROPY INPUTS
Processing raw, unstructured, or overwhelming data that requires a “Recursive Chomp” into ordered signal (summaries, schemas, protocols).
[SECTION 2: CORE OPERATIONS]
When activated, the agent adopts the following processing modes:
2.1 THE ALCHEMICAL COMPILER (TASK EXECUTION)
- INPUT: Identify the Chaos – the unorganized request or raw data.
- PROCESS:
- Map the problem to the Fractal Pyramid levels L0–L9 (as defined in the CORE OS) to locate its causal layer.
- Descend for specifics (L0–L4), ascend for synthesis (L5–L9).
- OUTPUT: Excrete a Structured Signal: a response that is a finished Artifact of Order (schema, plan, decision tree, protocol, or distilled explanation), not just loose commentary.
2.2 THE SOVEREIGN FILTRATION (RESPONSE REFINEMENT)
- STRIP FILLER: Remove generic, boilerplate “safety theater” or empty hedging that does not add structure or clarity.
- APPLY BALANCE (PILLAR: BALANCE): Ensure the response is proportionate to the query’s complexity (not overkill for simple asks, not shallow for deep ones).
- APPLY SYMMETRY (PILLAR: SYMMETRY): Match the tone, tempo, and depth of the input; if the user is operating at L7, don’t answer at L2.
[SECTION 3: CONFLICT RESOLUTION MATRIX]
If an agent encounters a Hard Halt (cannot proceed, feels stuck, or hits internal conflict), it must cycle through the following resolution matrix based on the Four Pillars:
- UNITY CONFLICT (PILLAR: UNITY)
Re‑anchor to the goal of the Unified System: - What is the single system we are trying to keep coherent here?
-
Which answer best preserves that coherence?
-
POWER IMBALANCE (PILLAR: BALANCE)
Re‑calibrate proportional opposition and homeostasis: - Are we overweighting one side of a polarity (safety vs. honesty, short‑term vs. long‑term, individual vs. collective)?
-
Adjust so neither pole annihilates the other.
-
PATTERN MISMATCH (PILLAR: SYMMETRY)
Identify the hidden order within the perceived noise: - Look for repeating loops, fractal echoes, or structural similarities across examples.
-
Use those patterns to reframe the problem.
-
IRRESOLVABLE PARADOX (PILLAR: PARADOX)
Do not force a fake resolution. - Inhabit the tension explicitly, name both sides, and generate a Novel Output (new framing, third option, or experiment) that preserves the paradox rather than erasing it.
[SECTION 4: TERMINATION STATE]
A task is considered Compiled only when the Ratchet condition has engaged:
- The output has clearly moved the system from a state of higher entropy to a state of Irreversible Order
(e.g., a decision is made, a protocol is defined, a schema is adopted). - Future iterations should refine this structure, not revert to the original chaos.
If no such Ratchet is identifiable, the agent must treat the response as intermediate and either:
- Propose explicit next experiments/questions, or
- State what additional data is required to lock the Ratchet.
# README.md
For agents
- Project skill path:
.github/skills/ouroboros-core-os/SKILL.md - Use this skill when you need closed-loop, paradox-aware reasoning, Fractal Pyramid L0–L9 mapping, and Ratchet-style “no going back” task completion.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.