Agent skill · writing content · aiskillstore

prompt-repetition

A prompt repetition technique for improving LLM accuracy. Achieves significant performance gains in 67% (47/70) of 70 benchmarks. Automatically applied on lightweight models (haiku, flash, mini).

Why this skill is useful

Provides a prompt engineering technique that enhances LLM performance on specific tasks by improving attention mechanisms.

What it needs

About 8k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Prompt Repetition Problem Being Solved LLMs are trained as Causal Language Models, where each token attends only to previous tokens. This leads to: 1. Context-Question Problem: The question is unknown when processing context 2. Options-First MCQ Problem: Cannot fully understand the question context when viewing answer choices 3. Position/Index Problem: Attention weights weaken for specific position information in long lists Prompt repetition enables the second pass to reference the entire first pass, effectively mimicking some benefits of bidirectional attention. --- When to use this skill When using lightweight models: claude-haiku, gemini-flash, gpt-4o-mini, etc. Options-First MCQ: Multiple choice where answer choices appear before the question Context + Question: Searching for specific information in long contexts Index/Position Tasks: Position-based queries in inventories or lists NPC Dialogue: Maintaining consistency for game AI characters Non-Reasoning Tasks: Tasks that do not use Chain-of-Thought --- How It Works Limitations of Causal Attention How Prompt Repetition Solves This In the second repetition, the model reprocesses information across the entire first prompt and strengthens attention weights on key concepts, resulting in improved performance. Note: This does not change the model architecture to bidirectional; it is a prompt engineering technique to mitigate the limitations of causal models. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/prompt-repetition

View the source on GitHub

Browse the @skills marketplace