type: rule
status: active
timestamp: 2026-07-02
tags: [prompting, agent, iteration, skills, retrospective]

Distill the winning prompt — save the retrospective one-shot

After long back-and-forth to reach a working answer, ask Claude to write the prompt that would have gotten there first-try. Save that prompt. Skip the iteration next time.

Distill the winning prompt

The rule

After a long back-and-forth in Claude that reaches a working answer, do NOT just move on. Ask Claude:

“Write the prompt that would have gotten me to this answer on the first try. Include all the context and constraints you inferred from our back-and-forth.”

Then SAVE that prompt. Next time you have a similar task, start with the saved prompt.

Why

Where to save

Depends on frequency + shape:

FrequencySave location
Once — probably won’t repeatSkip, don’t save
Occasional (few times/year)knowledge/reference/prompts/<slug>.md
Regular (weekly+)Turn into a skill via iterate-before-skill
Team-wide reusableNew skill in repos/own/infra/agent-skills/

Difference from iterate-before-skill

Both feed the skills library. This rule catches the accidental iterations.

Anti-patterns

Format for saved prompts

Match icc-prompt-formula:

# <task-name>

## Instructions
<verb-first task description>

## Context
<role, scope, background — what Claude needs>

## Constraints
<format, length, tone, banned patterns>

## Example output (optional)
<one-shot example>

Cross-refs


Edit on GitHub · Back to index