CtrlK
BlogDocsLog inGet started
Tessl Logo

memory-merger

Reviews mature LESSONS-LEARNED.md entries, rewrites them as permanent rules in skill/instruction files, and archives graduated lessons. Use when graduating lessons into skills, promoting validated lessons, updating skills from past learnings, archiving mature lessons, codifying repeated patterns, or cleaning up a crowded LESSONS-LEARNED.md.

100

Quality

100%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Memory Merger

Run Criteria

Combined signals to identify merge candidates.

CriterionSignal / Threshold
File sizeLESSONS-LEARNED.md > 50 entries
Citation countCited 3+ times across sessions
Age>60 days and still relevant
Category cluster5+ lessons in same category
SeverityMarked high or blocking
DiscretionaryCurator / maintainer judgement (stale file)

Workflow (numbered)

  1. Scan LESSONS-LEARNED.md for candidate entries (frequency, severity, age).
  2. Map each candidate to a target file and section.
  3. Draft the exact edit (concise rule or example).
  4. Apply the edit with an attribution comment.
  5. Archive the migrated lesson in LESSONS-LEARNED.md with a merge note.
  6. Update the index and run validation checks.

Merge Protocol

3 — Draft Edit

Lesson: LES-XXX — [title]
Target: [file path]
Section: [section name]
Edit: [exact text]

Strategies: add rule, add anti-pattern, add code example, expand existing rule, add table row.

4 — Apply & Attribute

Edit target file; add <!-- Merged from LES-XXX --> attribution inline.

5 — Archive

Move merged lessons to ## Archived (Merged) at the bottom of LESSONS-LEARNED.md:

### LES-XXX: [title] → Merged to `[target]` on YYYY-MM-DD

Never delete lessons — archive for traceability.

6 — Update Index

Update ## Index by Category in LESSONS-LEARNED.md to mark archived lessons.

Worked Example

See REFERENCE.md for a full worked merge example (LES-042: MCP tool timeout).

Quality Gates (validation checkpoints)

  • Merged content reads naturally (not copy-pasted)
  • No duplicate rules created in target files or other skills
  • Archived lesson references target file and date
  • Core insight preserved — no loss of nuance
  • Target file still passes lint/markdown checks (if applicable)
  • A quick smoke verification (search for relevant keyword) confirms merge applied

Anti-Patterns

  • Merge too eagerly — must meet 3+ citations or 60+ day threshold
  • Copy verbatim — rewrite as rules/guidelines, not incident reports
  • Merge conflicting lessons — resolve conflict first
  • Create new files for merged content — merge INTO existing files only
Repository
monkilabs/opencastle
Last updated
Created

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.