← knowledge.oriz.in

Distill the winning prompt — save the retrospective one-shot

rule promptingagentiterationskillsretrospective

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:

Frequency Save location
Once — probably won't repeat Skip, don't save
Occasional (few times/year) knowledge/reference/prompts/<slug>.md
Regular (weekly+) Turn into a skill via iterate-before-skill
Team-wide reusable New 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