Install
openclaw skills install ai-retrospective-skillAI Collaboration Retrospective — a tool-agnostic post-session analysis framework. After each AI-assisted coding/development session, it systematically reviews the entire conversation across eight dimensions to identify improvement opportunities and generate a structured retrospective report. Core goal: make every AI session better than the last.
openclaw skills install ai-retrospective-skillPost-session systematic review tool. Eight-dimension deep analysis drives a continuous improvement loop for AI-assisted development.
references/analysis_dimensions.md — load on demandThis skill is pure LLM instruction-driven — no scripts, no external dependencies. It works on any AI assistant that can:
Capability adaptation: The workflow below references file operations and memory updates. If your AI tool doesn't support a specific capability, skip that step and note it in the report. The analysis itself only requires conversation context access.
Scan the entire conversation context and extract these key events into a timeline:
| Event Type | Recognition Signal |
|---|---|
| Tool invocations | Command execution, file reading/writing, web searches, code generation |
| File changes | Files created, modified, or deleted |
| Errors & fixes | Error messages, lint failures, debugging cycles |
| Repeated modifications | Same file/feature modified multiple times, user providing multiple clarifications |
| Decision points | Technology choices, architecture decisions, trade-offs |
| Automation/plugin usage | Any skill, agent, plugin, or extension triggered during the session |
| User clarifications | User adding context because the AI misunderstood intent |
| Verification rounds | User providing test data/feedback, AI analyzing verification results |
| AI misjudgments | AI providing wrong conclusions, missing critical issues, or jumping to premature conclusions |
Filter rule: System initialization events (bootstrap files, identity setup, etc.) are excluded from analysis.
Critical step — Waste point tagging:
After building the timeline, interrogate each event in reverse:
Tag events where the answer is "yes" with [⚠ Optimizable] and record the reason. These tags are the core input for Step 2.
Output format: Chronological event list with type labels and brief descriptions. Waste points tagged separately.
Load references/analysis_dimensions.md for detailed evaluation criteria, self-check lists, and common patterns per dimension. Analyze conversation events dimension by dimension to identify improvement opportunities.
Eight dimensions overview:
Analysis requirements (mandatory):
For each dimension:
references/analysis_dimensions.md)Load assets/report_template.md for the report template. Fill the template with results from Step 1 and Step 2 to produce a complete Markdown retrospective report.
Report save path: {workspace}/retrospectives/{topic}_retrospective.md
Naming rules:
{topic} uses 2-4 English words joined by hyphens, summarizing the session's core task (e.g., multithread-scope-collection, login-flow-refactor)--- and a new date heading) — don't create a new fileIf the retrospectives/ directory doesn't exist, create it first.
Note: The save path above is a sensible default. Adapt to your project's conventions if they differ.
The complete analysis must be shown directly in the conversation — don't just output a summary and point to the file. The file is an archive; the primary reading experience is in the conversation.
Output content (show in full, no trimming):
Format: Use Markdown tables and headings for clear structure. Better to be thorough than to cut valuable analysis.
For items identified in the "Knowledge Persistence" dimension (Dimension 6), execute persistence operations available in your AI tool:
.memory directories), write new preferences/conventions directlyBriefly state what was updated after each operation. Skip this step if no knowledge needs persisting.
For the following types of improvement suggestions, do not auto-execute — list them for user selection:
| Action Type | Examples |
|---|---|
| Create new automation | Reusable workflow, script template, custom command |
| Tune existing automation | Modify instructions, parameters, or trigger conditions |
| Create/update project rules | Coding standards, review checklists, conventions |
| Update project documentation | Architecture docs, API references, onboarding guides |
| Create tool integration | Custom plugin, API connection, webhook |
List format: Numbered list, each item includes "Action type + Specific content + Expected benefit." User can reply with numbers to select which actions to execute.
If no pending actions, skip this step and state "No additional actions needed for this session."
Very short sessions: If the conversation is only a few turns with simple content, output a brief summary and state "This session was brief — no significant improvement opportunities identified." Don't force analysis.
Compressed/summarized history: If the conversation history appears compressed or truncated, analyze based on available context and note in the report: "Some conversation history was compressed; analysis is based on visible context."
Tool capability limitations: If the AI tool being used lacks certain capabilities referenced in this workflow (e.g., no file writing, no memory persistence), adapt gracefully — perform the analysis steps that are possible and clearly note any skipped steps with the reason.