360 Secure SkillHub
360 安全技能中心

Ralph Evolver

Ralph-Evolver 是一个递归自我改进引擎:从提交历史、TODO/FIXME、错误处理模式、热点文件中收集信号,基于第一性原理生成假设与改进洞察,记录改进等级和健康指标,并分析模式与前后效果趋势;支持循环迭代、任务指定和重置状态。

hsssgdtc
hsssgdtc
热度 73.94
最近更新 2026-05-11 15:53:37
分类:开发依赖:代码执行 / 读写文件应用场景:代码审查 / 调试排错 / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ralph-evolver
Metadata
name
ralph-evolver
description
Recursive self-improvement engine. Think from first principles, let insights emerge.
tags
["meta","recursive","evolution","emergence","first-principles"]
version
1.0.6

🧬 Ralph-Evolver

Philosophy: Recursion + Emergence + First Principles

Signal Sources

Collects multi-dimensional context, not just code structure:

  • Commit history - Understand the "why" behind changes
  • TODO/FIXME - Distress signals in the code
  • Error handling patterns - Find fragile points
  • Hotspot files - Frequent changes = design problems

Each signal includes a hypothesis prompt to guide deeper analysis.

First Principles

Each run doesn't execute a checklist, but asks:

  1. What is the essence of this project?
  2. What is it doing that it shouldn't?
  3. What is it missing that it should have?
  4. If you started from scratch, how would you build it?

Meta-Reflection (v1.0.5)

When analyzing itself, evolver asks:

  • Is this a surface fix or evolution-level improvement?
  • What pattern exists in improvement history?
  • Will this change make evolver better at finding problems?

Improvement Tracking

  • Records description, insight, level (surface/evolution), and health metrics
  • Pattern analysis: counts surface/evolution ratio, finds recurring themes
  • Compares before/after effect trends (improved/degraded/unchanged)

Usage

node index.js .                    # Current directory (positional)
node index.js /path/to/app         # Specify path
node index.js . --loop 5           # Run 5 cycles
node index.js --task "fix auth"    # Specific task
node index.js --reset              # Reset iteration state

Recursion

The improver can improve itself. This is true recursion.


"Form hypotheses, then verify. Think from first principles."