recursive-improvement

A pattern for generating higher-quality output by iterating against explicit scoring criteria. Use for headlines, CTAs, landing page copy, social content, ad copy — anything where quality matters. Generate → Evaluate → Diagnose → Improve → Repeat.

176 stars

Best use case

recursive-improvement is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

A pattern for generating higher-quality output by iterating against explicit scoring criteria. Use for headlines, CTAs, landing page copy, social content, ad copy — anything where quality matters. Generate → Evaluate → Diagnose → Improve → Repeat.

Teams using recursive-improvement should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/recursive-improvement/SKILL.md --create-dirs "https://raw.githubusercontent.com/dylanfeltus/skills/main/recursive-improvement/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/recursive-improvement/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How recursive-improvement Compares

Feature / Agentrecursive-improvementStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

A pattern for generating higher-quality output by iterating against explicit scoring criteria. Use for headlines, CTAs, landing page copy, social content, ad copy — anything where quality matters. Generate → Evaluate → Diagnose → Improve → Repeat.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Recursive Self-Improvement Loop

A pattern for generating higher-quality output by iterating against explicit scoring criteria.

## The Pattern

```
generate → evaluate → diagnose → improve → repeat (until passing)
```

**Never ship first-draft output for important content.** Run the loop.

---

## How It Works

### 1. Generate
Create the initial output as you normally would.

### 2. Evaluate
Score the output against each criterion (1-10). Be brutally honest.

### 3. Diagnose
For any criterion scoring below threshold:
- What specifically is weak?
- Why does it fail?
- What would "passing" look like?

### 4. Improve
Rewrite addressing each diagnosed weakness. Don't patch — rebuild the weak sections.

### 5. Repeat
Re-evaluate. Keep looping until all criteria pass threshold (usually 8/10 minimum).

---

## Adversarial Pressure (Optional but Powerful)

After passing criteria, attack the output from a hostile perspective:
- **Skeptical customer:** "Why should I believe this? What's the catch?"
- **Distracted scroller:** "Would I stop for this? In 2 seconds?"
- **Competitor:** "How would a rival tear this apart?"

If it survives, ship it. If not, iterate.

---

## Example Criteria by Use Case

### Social Content

| Criterion | What to evaluate |
|-----------|-----------------|
| **Hook strength** | First line grabs attention? Pattern interrupt? |
| **Curiosity gap** | Creates urge to keep reading? |
| **Clarity** | One clear idea? No confusion? |
| **Voice match** | Sounds like the target voice/brand? |
| **Engagement potential** | People will reply/share/save? |
| **Thumb-stop power** | Scroller would pause? |
| **Value density** | Every line earns its place? |
| **CTA clarity** | Clear what reader should do next? |

**Adversarial test:** Would a distracted, skeptical user at 11pm engage with this?

---

### Landing Page / Web Copy

| Criterion | What to evaluate |
|-----------|-----------------|
| **Headline clarity** | Instantly clear what this business does? |
| **Value prop strength** | Why choose them over competitors? |
| **Benefit focus** | Features translated to customer benefits? |
| **CTA effectiveness** | Clear, compelling action? Low friction? |
| **Trust signals** | Credibility established? Social proof? |
| **Readability** | Scannable? Short paragraphs? Clear hierarchy? |
| **Objection handling** | Common concerns addressed? |
| **Specificity** | Concrete details vs vague claims? |

**Adversarial test:** Would someone searching on their phone take action within 30 seconds?

---

### Email Copy

| Criterion | What to evaluate |
|-----------|-----------------|
| **Subject line** | Would this get opened? Stands out in inbox? |
| **Opening hook** | First sentence earns the second? |
| **Single focus** | One clear ask per email? |
| **Skimmability** | Can get the gist in 5 seconds? |
| **CTA prominence** | Action is obvious and easy? |
| **Voice consistency** | Matches brand/sender personality? |
| **Length appropriate** | No fluff, nothing missing? |
| **Mobile friendly** | Works on small screens? |

**Adversarial test:** Would a busy person with 200 unread emails act on this?

---

### Ad Copy

| Criterion | What to evaluate |
|-----------|-----------------|
| **Thumb-stop power** | Pattern interrupt in first 2 seconds? |
| **Curiosity gap** | Creates need to know more? |
| **Emotional trigger** | Hits a real pain point or desire? |
| **Credibility** | Believable? Not too good to be true? |
| **CTA strength** | Clear next step with low friction? |
| **Persona match** | Speaks directly to target audience? |
| **Differentiation** | Stands out from competitor ads? |
| **Platform native** | Fits the platform's style/format? |

**Adversarial test:** Would this stop YOUR scroll? Would you click?

---

## When to Use

**Always use for:**
- Headlines and hooks
- CTAs and value props
- Key landing page sections
- Social posts (especially threads)
- Ad copy
- Important emails

**Can skip for:**
- Internal notes
- First-pass brainstorming
- Technical documentation
- Boilerplate content

---

## Building Your Own Criteria

1. **Pick one task** you do repeatedly
2. **Write down how YOU evaluate** that output — what makes "good" vs "mid"?
3. **Turn each into a pass/fail threshold** — be specific ("9/10 minimum" not "make it good")
4. **Add adversarial pressure** — who would attack this? What would they say?
5. **Save and reuse** — now you have a system, not just a prompt

---

## Quick Loop Template

```markdown
## Output v1
[Initial generation]

## Evaluation v1
- Hook strength: 6/10 — Opens weak, no pattern interrupt
- Clarity: 8/10 — Clear enough
- Voice match: 7/10 — Too formal
[... score all criteria]

## Diagnosis
1. Hook needs a surprising stat or contrarian take
2. Voice should be more casual, shorter sentences
3. [...]

## Output v2
[Revised version addressing weaknesses]

## Evaluation v2
[Re-score — continue until all pass]
```

---

The loop typically adds 2-3 iterations. Worth it for anything that matters.

Related Skills

visual-qa

176
from dylanfeltus/skills

Use vision models to self-review screenshots against design intent. Catches spacing issues, alignment problems, color inconsistencies, responsive bugs, and accessibility gaps. Use when reviewing designs, comparing implementations to mockups, or doing pre-ship QA.

trademark-search

176
from dylanfeltus/skills

Search the USPTO trademark database to check name availability and get registration details. Use when the user wants to check if a name is trademarked, research trademark availability, or look up registration status. No API key required.

producthunt

176
from dylanfeltus/skills

Search Product Hunt launches, products, and makers via the GraphQL V2 API. Use when the user asks about Product Hunt launches, trending products, or wants to research a product's reception. Requires a free developer token (~2 min setup).

privacy-cards

176
from dylanfeltus/skills

Create and manage Privacy.com virtual cards for agent spending. Use when an agent needs to make a purchase, buy a domain, pay for a service, or needs a disposable card with a spending limit. Requires a Privacy.com account and API key.

motion-design-patterns

176
from dylanfeltus/skills

Framer Motion (Motion) animation patterns for React — springs, staggers, layout animations, micro-interactions, scroll effects, and page transitions. Use when building or improving UI animations, adding polish, or making interfaces feel premium.

hn-search

176
from dylanfeltus/skills

Search and monitor Hacker News stories, comments, and users via the free Algolia API. Use when the user asks about HN discussions, wants to find posts about a topic, or monitor HN for mentions. No API key required.

design-tokens

176
from dylanfeltus/skills

Generate type scales, color palettes, spacing systems, WCAG contrast checks, and dark mode derivations with math. Use when setting up a design system, creating tokens, or building a Tailwind/CSS theme. Outputs CSS custom properties, Tailwind config, or JSON tokens.

creative-direction

176
from dylanfeltus/skills

Image prompt templates, model selection guidance, and anti-generic patterns for generating visual assets. Use when the user needs AI-generated images for landing pages, marketing, or products. Covers hero images, feature illustrations, OG cards, icons, and backgrounds.

appstore-intel

176
from dylanfeltus/skills

Look up app details, ratings, reviews, and search the iOS App Store, Mac App Store, and Google Play. Use when the user asks about app ratings, wants to compare apps, or research a competitor's app store presence. No API key required.

self-improvement

3891
from openclaw/skills

Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks.

Agent Intelligence & Learning

RLM (Recursive Language Model) Skill

44
from richardwhiteii/rlm

The RLM (Recursive Language Model) Skill enables AI agents to process extremely large contexts (10M+ tokens) by recursively chunking, processing, and aggregating results, effectively overcoming context window limitations.

Data & ResearchClaude

ruff-recursive-fix

28865
from github/awesome-copilot

Run Ruff checks with optional scope and rule overrides, apply safe and unsafe autofixes iteratively, review each change, and resolve remaining findings with targeted edits or user decisions.