Get the FREE Ultimate OpenClaw Setup Guide →

Retro

npx machina-cli add skill rjroy/vibe-garden/retro --openclaw
Files (1)
SKILL.md
4.2 KB

Retro

Review artifacts and record lessons learned.

When to Use

  • After completing a feature or significant chunk of work
  • When wanting to capture insights before they fade
  • Periodic reflection on project progress

Process

  1. Review relevant .lore/ artifacts:
    • Original spec in .lore/specs/
    • Plan in .lore/plans/
  2. Reflect on what happened vs. what was expected
  3. Capture lessons learned
  4. Save to .lore/retros/
  5. Graduate lessons (see Lessons Graduation below)

Output

Save to .lore/retros/[feature-name].md

Document Structure

Before writing: Load ${CLAUDE_PLUGIN_ROOT}/shared/frontmatter-schema.md to get frontmatter field definitions and status values for retros.

---
[frontmatter per schema]
---

# Retro: [Feature Name]

## Summary
Brief description of what was built.

## What Went Well
- Thing 1
- Thing 2

## What Could Improve
- Thing 1
- Thing 2

## Lessons Learned
Insights to carry forward:
- Lesson 1
- Lesson 2

## Artifacts
Links to related `.lore/` documents.

Frontmatter Tips for Retros

  • title: Focus on the key lesson, not just the feature name (e.g., "N+1 query fix in brief generation" not just "Brief generation retro")
  • tags: Include problem types (bug, performance, refactor), technologies, and patterns
  • modules: Include codebase areas touched; omit if purely process/methodology focused

Lessons Graduation

After saving the retro, graduate lessons to higher scopes.

Detection

If /retro is invoked on an existing retro document (path to .lore/retros/*.md), skip the normal retro flow and run graduation only.

Flow

  1. Extract lessons from the "Lessons Learned" section
  2. If no lessons, skip graduation
  3. For each lesson, use AskUserQuestion:
    • Prompt: Review lesson: "[lesson text]"
    • Options:
      • Invalid - Remove from retro
      • Valid (Recommended) - Keep in retro only
      • Critical - Add to project CLAUDE.md
      • Universal - Add to ~/.claude/rules/lessons-learned.md
  4. Process classifications:
    • Invalid: Remove lesson from retro document
    • Valid: No action (already in retro)
    • Critical: Append to project CLAUDE.md under "## Critical Lessons"
    • Universal: Append to ~/.claude/rules/lessons-learned.md under inferred category

File Operations

For Critical lessons (project CLAUDE.md):

  • If "## Critical Lessons" section doesn't exist, create it at file bottom
  • Append lesson as bullet: - [lesson text]
  • Don't duplicate existing lessons

For Universal lessons (~/.claude/rules/lessons-learned.md):

  • Create file if missing with header: # Lessons Learned\n\nHard-won lessons that apply across all projects.
  • Infer category from retro tags (see Category Inference)
  • Create category section if missing
  • Append lesson as bullet under category
  • Don't duplicate existing lessons

Category Inference

Infer category from retro tags, not exact match:

Tags likeCategory
plugin, extensionPlugin Development
git, commit, branchGit Workflow
test, testing, coverageTesting
process, methodology, workflowProcess
performance, optimizationPerformance
(no clear match)General

Category hygiene:

  • Review existing categories before creating new ones
  • Don't let any category sprawl (10+ items suggests splitting)
  • Err on fitting into existing categories over creating new ones

Purpose

This builds organizational memory. Future work benefits from past experience - but only if it's written down.

Specialized Agents

If .lore/lore-agents.md exists, consult it for specialized agents that can help identify patterns. Reviewers can spot recurring issues or opportunities worth capturing. Invoke relevant agents via Task tool and incorporate their insights.

Source

git clone https://github.com/rjroy/vibe-garden/blob/main/lore-development/skills/retro/SKILL.mdView on GitHub

Overview

Retro is a structured practice for reviewing completed work, recording lessons learned, and preserving insights for future projects. It uses artifacts from .lore/specs and .lore/plans, saves the retro to .lore/retros, and can graduate important lessons to higher scopes.

How This Skill Works

During a retro, you review relevant artifacts, compare what happened to what was expected, and capture concrete lessons learned. The process saves the retro to .lore/retros/[feature-name].md and, when appropriate, graduates lessons to project level or universal repositories using the defined frontmatter and structure.

When to Use It

  • After completing a feature or significant chunk of work
  • When wanting to capture insights before they fade
  • Periodic reflection on project progress
  • After a major milestone or sprint to capture takeaways
  • When planning to graduate lessons to higher scopes

Quick Start

  1. Step 1: Review artifacts in .lore/specs and .lore/plans to set context
  2. Step 2: Reflect on outcomes vs expectations and write concrete Lessons Learned
  3. Step 3: Save to .lore/retros/[feature-name].md and run graduation if needed

Best Practices

  • Review relevant artifacts in .lore/specs and .lore/plans before starting the retro
  • Reflect on what happened vs what was expected to surface gaps and successes
  • Capture concrete, actionable lessons learned with clear implications
  • Save retros in .lore/retros/[feature-name].md with a clear, consistent structure
  • Use the Lessons Graduation flow to elevate key lessons and avoid duplicates

Example Use Cases

  • Post feature release retro to document what went well and what to improve next time
  • Retro after a spike to capture insights before team knowledge fades
  • Monthly retro to review progress across multiple features
  • Graduate a critical lesson to CLAUDE.md for project-wide visibility
  • Archive a retro document for future reference in the .lore/retros folder

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers