takeaway
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.
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
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.