تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

iterative-code-evolution

بواسطة aaronjmars

Coding Agents & IDEs
550التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Systematically improve code through structured analysis-mutation-evaluation loops.

الوصف

ما الذي تفعله هذه المهارة

A structured methodology for improving code through repeated analyze-plan-mutate-verify-score-archive cycles, adapted from the ALMA research framework. Each cycle is logged in `.evolution/log.json`, so lessons from past iterations inform the next change. Designed for situations where ad-hoc fixes keep failing.

Unlike ad-hoc iteration, it enforces a maximum of 3 changes per cycle and requires every change to link to a specific observation, making it possible to attribute improvements or regressions accurately.

متى تستخدمها

  • Debugging a web scraper that fails on 40% of target pages
  • Optimizing a slow database query through multiple profiling rounds
  • Improving an LLM prompt pipeline with structured variant tracking
  • Breaking out of a debugging loop after two or more failed fix attempts
  • Evolving an agent's memory design through principled experimentation

مثال على سير العمل

الإدخال

User asks: improve a web scraper that fails on 40% of target pages

الوكيل
  1. 1

    Assess each component: marks parse_html() as Broken (crashes on pages without <article>), fetch_page() as Working, extract_links() as Fragile

  2. 2

    Plan one targeted change: add fallback selectors in parse_html() for pages missing <article>

  3. 3

    Mutate the code: add cascading selector logic trying <article>, then <main>, then <body>

  4. 4

    Verify: run the scraper against the same test pages, confirm no crashes

  5. 5

    Score and archive: pass rate rises from 40% to 72%, log the change and record the learned principle

الإخراج

Pass rate reaches 88% after a second cycle fixing relative URL resolution in extract_links(), with both cycles logged in .evolution/log.json

التثبيت

clawhub install aaronjmars/iterative-code-evolution

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط