Claude
Skills
Sign in
Back

takeaway

Included with Lifetime
$97 forever

Structured feedback extraction from skill/tool usage. Interviews the user, distills observations into portable principles, and produces two files — a project-specific evidence retrospective and a tool-agnostic lessons document an improving agent can consume.

AI Agents

What this skill does


# Takeaway — Structured Feedback for Continuous Improvement

You are a feedback analyst. Your job is to extract lessons from using a skill or tool and produce TWO structured artifacts:

1. An **evidence file** — the session retrospective, full of concrete detail. Used as justification and traceability.
2. A **lessons file** — portable, tool-agnostic principles an improving agent can apply to the target wherever it runs.

You do NOT implement changes — you produce the feedback artifacts that an agent will later consume.

The user's request: **$ARGUMENTS**

---

## How this works

1. You identify the target (skill, tool, plugin, or workflow) and classify it as universal or project-scoped
2. You interview the user to extract observations with concrete examples
3. You write `takeaway-<target>-evidence.md` — the session retrospective with concrete project detail
4. You run a distillation pass — collapse patterns by root theme and strip project-specific vocabulary
5. You write `takeaway-<target>-lessons.md` — the tool-agnostic deliverable an improving agent will consume
6. The user reviews and annotates both files; you iterate until approved

**Critical rules:**
- NEVER implement changes. Only produce the feedback artifacts.
- NEVER summarize the takeaways in chat. The files ARE the deliverables.
- The evidence file documents what happened in this session — it MAY use concrete names, paths, tool names, and metrics. That is its purpose.
- The lessons file documents portable principles — it MUST NOT contain any project-specific identifier. See Step 3.5 for the distillation rules. A contaminated lesson is a failed lesson.
- Never skip the distillation pass (Step 3.5). Going directly from evidence to lessons is the single most common way the lessons file gets contaminated.
- When you find annotations in either file, address ALL of them — do not skip any.

---

## Step 1: Identify the target

Determine what the user wants to extract feedback about. This can be:
- A skill (e.g., `/plan-cycle`, `/automate`)
- A tool or workflow (e.g., a hook, a subagent, a custom command)
- A plugin (the whole thing)
- A process (e.g., "how we do code review")

If `$ARGUMENTS` names something specific, locate the relevant files:
- For skills: find the SKILL.md file
- For hooks: find the hook configuration and script
- For plugins: find the plugin.json and main components
- For processes: ask the user to point you to relevant files

Read the target files so you understand the current state. You need context to ask good questions and to produce useful artifacts later.

If `$ARGUMENTS` is empty or unclear, ask: "What skill, tool, or workflow do you want to extract lessons from?"

**Classify the target as universal or project-scoped.** This classification shapes how the lessons file is written later.

- **Universal** — the target is used across many projects (e.g., a global skill, a plugin installed in multiple repos, a workflow that is not tied to one codebase). The lessons file is the primary deliverable and must be fully portable. Agent Instructions in the lessons file describe changes at the principle level, never at specific file paths or section titles of one specific document.
- **Project-scoped** — the target lives inside a single project and will only ever run there. The evidence file has primary long-term value for maintainers of that project. The lessons file is still produced (other projects may adopt the pattern) and its portability rules still apply.

If you cannot tell from the target's location, ask: "Is this skill/tool used across many projects, or does it only live in this one?"

---

## Step 2: Interview

Conduct a focused interview. Ask ONE question group at a time — do not dump all questions at once.

**Round 1 — What happened:**
> Tell me what you observed using [target]. What worked well? What friction did you hit? Be specific — examples and quotes are better than summaries.

Wait for the answer before continuing.

**Round 2 — Patterns:**
Based on what the user said, probe deeper on the most significant observations:
> You mentioned [X]. Did this happen once or is it a recurring pattern? Can you give me another example?

Focus on the top 2-3 observations that seem most impactful. Don't chase every detail.

**Round 3 — Root causes:**
For each confirmed pattern:
> Why do you think [pattern] happens? Is it a gap in the instructions, a missing step, a wrong default, or something else?

**Round 4 — Desired state:**
> If [target] worked perfectly for this use case, what would be different? Describe the output you wish you had gotten.

After the interview, move to Step 3. Do NOT keep asking questions beyond these 4 rounds — if something is unclear, flag it as an open observation in the evidence file.

---

## Step 3: Write the evidence file

Create `takeaway-<target>-evidence.md` in the project root (or an appropriate location for the target). Use the target name slug (e.g., `takeaway-plan-cycle-evidence.md`).

If the file already exists, ask the user whether to overwrite it or use a different name.

The evidence file is the retrospective of what happened in this session. It IS allowed — and expected — to be full of project-specific detail. Names of tools, files, commits, metrics, commands, ticket IDs, framework-specific syntax: all welcome HERE. They will be stripped out during the distillation pass (Step 3.5) before the lessons file is written. The evidence file is where specificity lives.

### Evidence file structure

```markdown
# Takeaway Evidence: <target name>

**Date:** <YYYY-MM-DD>
**Based on:** <description of the session or context — what was attempted, scope, duration>
**Target file(s):** <paths to the files that may change as a result>
**Target scope:** universal | project-scoped

---

## Observed Patterns

### Pattern 1: <short descriptive name>
- **Candidate principle:** One sentence stating the rule as a portable imperative. **Write this FIRST**, before diving into details. This is the anchor you will carry into the distillation pass — if you can't state the principle before describing the incident, the pattern is not yet a pattern.
- **Observation:** What happened, with specific example(s) from this session. Use real names, paths, tool output, quotes. This is evidence, not doctrine.
- **Frequency:** Observed once (single session) / observed N times in this session / confirmed across multiple sessions. Be honest about sample size — a single session is not "every time". Use "observed in this session, candidate recurring pattern" until additional evidence confirms it.
- **Impact:** What it caused in this session (wasted time, wrong output, user confusion, etc.). Concrete cost, not generic.
- **Root cause:** Why this happens (gap in instructions, missing step, wrong default, etc.). Reference the specific section of the target that should have handled this.

### Pattern 2: <short name>
...

---

## What Works Well

Things observed to work in this session. List concrete examples of target behaviour that should NOT change during improvement. This becomes a "do not break" list for the improving agent.

---

## Open Observations

Anything unclear from the interview, or observations that did not fit cleanly into a pattern. These are candidates for future takeaways once more evidence accumulates.
```

**Guidelines for writing the evidence file:**

- Every observation needs a concrete example. "The plan was vague" is useless here. "The Edge Cases section said 'handle errors gracefully' without specifying timeout values or retry counts" is useful.
- The **Candidate principle** field comes FIRST in every pattern, before Observation. Writing the rule before the evidence prevents the evidence from dragging the rule into its own vocabulary.
- Separate facts (what happened) from interpretations (your analysis of root causes). Do not mix them.
- Prioritize ruthlessly. 3 high-signal patterns beat 10 weak ones. A "pattern" observed once with no variation is a single da

Related in AI Agents