agentleFS
SuckzooSuckzoo/skills/lessons-learned/SKILL.md

lessons-learned

Skill1 starsChanged 9 months agoMITView on GitHub

Analyze lessons-learned files for the current ticket and suggest enhancements to docs, CLAUDE.md, or codebase patterns.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If argument provided, use $ARGUMENTS as the ticket number

    line 15
  2. Distinctive:

    If still unclear, ask the user

    line 17
  3. Distinctive:

    Read all found files.

    line 27
  4. Distinctive:

    If no files found, inform user and stop.

    line 29
  5. Distinctive:

    Use the Explore agent or direct file reads to:

    line 61
  6. Distinctive:

    Create a summary report. Present to user (don't write to file unless asked).

    line 78
  7. Distinctive:

    Ask user what they'd like to do:

    line 118
  8. Distinctive:

    If user chooses to archive:

    line 127
  9. Distinctive:

    Don't suggest changes that conflict with user's established preferences

    line 139

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Lessons Learned

Consolidate lessons-learned files for the current ticket into actionable enhancement suggestions.

Step 1: Identify Ticket Number

Determine the ticket/branch identifier:

  1. If argument provided, use $ARGUMENTS as the ticket number
  2. Otherwise, check git branch: git branch --show-current
  3. If still unclear, ask the user

Step 2: Gather Lessons Learned Files

Find lessons-learned files for this ticket:

ls ~/tmp/dora-plans/{ticket-number}/lessons-learned-*.md

Read all found files.

If no files found, inform user and stop.

Step 3: Categorize Findings

Group insights from all files into categories:

3.1 CLAUDE.md Updates

  • Missing patterns or conventions
  • Outdated information
  • Gaps in documentation

3.2 Codebase Documentation

  • Missing README sections
  • Undocumented utilities or helpers
  • API documentation gaps

3.3 Tooling / Automation

  • Repetitive tasks that could be skills
  • Hook opportunities
  • Script improvements

3.4 Code Patterns

  • Recurring gotchas to document
  • Best practices discovered
  • Anti-patterns to avoid

3.5 User Preference Conflicts

  • Consistent overrides of system guidance
  • Patterns where user prefers different approach

Step 4: Explore Codebase for Context

Use the Explore agent or direct file reads to:

  1. Check current CLAUDE.md files for overlap/gaps:
    • Root CLAUDE.md
    • Service-specific apps/*/CLAUDE.md
  2. Verify suggestions are still relevant:
    • Has the issue already been fixed?
    • Is the pattern still used?
  3. Find related documentation:
    • Existing READMEs
    • Inline documentation
    • Comments that could be promoted to docs

Step 5: Generate Enhancement Report

Create a summary report. Present to user (don't write to file unless asked).

Report Structure

# Enhancement Suggestions

**Reviewed**: {N} lessons-learned files from {date range or ticket list}

## High Priority

{Most impactful suggestions - things that would save significant time}

### 1. {Enhancement title}
**Category**: CLAUDE.md / Docs / Tooling / Code Pattern
**Source**: lessons-learned from {ticket(s)}
**Current state**: {what exists now}
**Suggestion**: {specific change}
**Impact**: {why this matters}

## Medium Priority

{Useful but not urgent}

## Low Priority / Nice to Have

{Minor improvements}

## Already Addressed

{Items from lessons-learned that have been fixed since}

## Conflicts to Resolve

{Cases where user preferences consistently differ from documented guidance}
{Recommend: update docs to match actual practice, or discuss with user}

Step 6: Offer Actions

Ask user what they'd like to do:

  1. Apply specific suggestions - Make the changes now
  2. Create issues/tickets - Track as future work
  3. Archive processed lessons - Move lessons-learned files to archived/ subdirectory
  4. Dismiss - Just informational, no action needed

Step 7: Cleanup (if requested)

If user chooses to archive:

mkdir -p ~/tmp/dora-plans/{ticket}/archived
mv ~/tmp/dora-plans/{ticket}/lessons-learned-*.md ~/tmp/dora-plans/{ticket}/archived/

Notes

  • Focus on patterns that appear multiple times - single occurrences may be one-offs
  • CLAUDE.md improvements are highest value - they help all future sessions
  • Be specific in suggestions - "improve docs" is too vague, "add section on X pattern in apps/api/CLAUDE.md" is actionable
  • Don't suggest changes that conflict with user's established preferences

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.