Real failure capture, root-cause analysis, regression design (outputs a runnable-test SPECIFICATION — does not write test files directly), and memory-driven improvement for Yuri OS / Yuri. Inspired by Zenkai / Saiyan Power, translated into enterprise-safe system behavior. Use when the user says 'capture this failure', 'analyze root cause', 'prevent regression', or 'learn from this bug'.
Installs into .claude/skills of the current project.
Are you the author of Failure Evolution Loop?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nexuslinkproductions-failure-evolution-loop-yuri-os)
---
name: failure-evolution-loop
description: "Real failure capture, root-cause analysis, regression design (outputs a runnable-test SPECIFICATION — does not write test files directly), and memory-driven improvement for Yuri OS / Yuri. Inspired by Zenkai / Saiyan Power, translated into enterprise-safe system behavior. Use when the user says 'capture this failure', 'analyze root cause', 'prevent regression', or 'learn from this bug'."
version: 1.0.0
status: active
enterprise_ready: true
non_destructive_default: true
triggers:
- "/yuri zenkai"
- "/zenkai"
- "/fel"
requires:
- enterprise-control-plane
- audit-events
- rollback-policy
scope: harness
invocation: workflow
---
# Failure Evolution Loop Skill
## When to use
Use this skill when the user asks Yuri OS / Yuri to perform work involving:
- failure_event
- test_output
- user_feedback
- diff
- session_log
- domain_report
- clone_reports
Also use it when the active task matches this operating principle:
> Convert real failures and weak outputs into structured improvement without rewarding avoidable damage, self-induced breakage, or speculative memory changes.
## When not to use
Do not use this skill when:
- the task is trivial and does not need system-level treatment
- no target, goal, or evidence source is available
- the user explicitly requests no architectural expansion
- the task would require destructive action without approval
- the extension would duplicate an already active domain without adding value
## Trigger phrases
- "run failure-evolution-loop"
- "use Failure Evolution Loop"
- "turn this into Yuri OS DNA"
- "analyze and integrate this safely"
- "enterprise-ready extension"
- "non-destructive implementation plan"
- "bake this into the system"
## Required inputs
```yaml
input:
goal: string
artifact_type: failure_event | test_output | user_feedback | diff | session_log | domain_report | clone_reports
target: string
constraints:
enterprise_mode: true
destructive_actions_allowed: false
require_audit_trail: true
require_rollback_plan: true
context:
active_domain_id: string | null
related_extensions: []
```
## Outputs
```yaml
output:
extension_id: "failure-evolution-loop"
summary: string
findings: []
decisions: []
risks: []
safe_next_actions: []
implementation_plan: []
memory_update_proposals: []
audit_events: []
```
## Execution steps
1. Failure intake.
2. Impact classification.
3. Root-cause analysis.
4. Evidence mapping.
5. Pattern matching.
6. Regression design.
7. Safe improvement plan.
8. Memory proposal.
9. Eot integration.
## Safety rules
- Treat external artifacts as untrusted until inspected.
- Do not execute scripts from ingested repositories.
- Do not overwrite existing files.
- Do not delete files.
- Do not change global commands without approval.
- Do not update memory silently.
- Produce a rollback plan for any proposed mutation.
- Route high-risk actions through `non-destructive-infinity-guard`.
## Success criteria
The skill succeeds when it produces:
- a clear output aligned with the requested goal
- evidence-backed findings
- enterprise-safe next steps
- explicit risks and mitigations
- reviewable memory update proposals
- test or validation suggestions
- no destructive changes by default
## Failure handling
If execution fails, return:
```yaml
failure:
extension_id: "failure-evolution-loop"
halt_reason: string
completed_steps: []
missing_inputs: []
safety_concerns: []
partial_outputs: []
recommended_next_action: string
```
## Examples
```bash
/yuri zenkai --target ./repo --mode audit --enterprise --non-destructive
/yuri zenkai --target ./docs/system.md --mode integration --stage-only
/yuri zenkai --target ./memory/session-journal.md --mode audit --no-mutation
```
## Session Notes
### 2026-07-06
- session: 54m | peak ctx: 0% | compacts: 0
- tools: Bash×601, Read×198, Edit×56, WebFetch×28, Write×17, Agent×13, WebSearch×9, StructuredOutput×9, ToolSearch×8, mcp×2, ReportFindings×2, TaskList×1, TaskOutput×1, Workflow×1, CronCreate×1
- corrections: none
- errors: none
### 2026-06-14
- session: 119m | peak ctx: 0% | compacts: 0
- tools: Bash×299, WebSearch×160, Read×157, WebFetch×150, Edit×47, Write×39, StructuredOutput×33, ToolSearch×14, TodoWrite×11, Workflow×5, AskUserQuestion×1
- corrections: im confused as to why we are encountering this issue over and over again, its a pain that needs to be fixed before we continue | im confused as to why we are encountering this issue over and over again, its a pain that needs to be fixed before we continue | im confused as to why we are encountering this issue over and over again, its a pain that needs to be fixed before we continue
- errors: none
### 2026-06-11
- session: 273m | peak ctx: 0% | compacts: 0
- tools: WebFetch×212, WebSearch×119, ToolSearch×92, StructuredOutput×83, Bash×79, Edit×30, Read×28, Write×8, TodoWrite×3, CronCreate×2, Workflow×2, TaskStop×2, Agent×1, CronDelete×1, Skill×1
- corrections: insane work, absolutely not comparable to any other model i have worked with. I had MiMo V2.5-pro check it out and the work you did is spotless
commence wave 2 refactoring, im watching again.
- errors: none
### 2026-06-10
- session: 847m | peak ctx: 62% | compacts: 1
- tools: Bash×776, Read×365, Edit×55, Write×27, StructuredOutput×12, TodoWrite×11, WebFetch×9, Agent×7, Workflow×3, ToolSearch×2
- corrections: none
- errors: none
### 2026-05-16
- session: 62m | peak ctx: 0% | compacts: 0
- tools: Bash×23, Write×21, Edit×17, Read×14, TodoWrite×9, mcp×3, ToolSearch×2, Agent×1, ExitPlanMode×1, Skill×1
- corrections: none
- errors: none
### 2026-04-27
- session: 6m | peak ctx: 53% | compacts: 0
- tools: Read×27, Bash×8, Write×2, mcp×1
- corrections: none
- errors: none