trw-memory-optimize

Prune stale TRW learnings and consolidate duplicates after user confirmation.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/wallter/trw-mcp --skill trw-memory-optimize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trw-memory-optimize
Source: https://github.com/wallter/trw-mcp/tree/main/src/trw_mcp/data/codex/skills/trw-memory-optimize
Command: npx skills add https://github.com/wallter/trw-mcp --skill trw-memory-optimize

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prunes stale TRW learnings, consolidates duplicates, and rebalances tags in the memory store, with an interactive guard before destructive actions.

Core Features & Use Cases

  • Audit learnings to identify stale entries, duplicates, and inconsistent tagging using the TRW recall and index data.
  • Build an optimization plan by selecting candidates for pruning, consolidation, and tag normalization.
  • Execute changes only after explicit user confirmation, marking deletions as obsolete and creating compendium entries for consolidations.
  • Sync the AGENTS.md and delivery state after changes to preserve accurate documentation and workflow traces.
  • Provide before/after reports to reveal active entries, obsoleted items, consolidations, and tag normalization outcomes.

Quick Start

Run the /trw-memory-optimize command to begin auditing learnings and apply an interactive optimization plan.

Frequently Asked Questions about trw-memory-optimize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prune stale learnings and reduce noise in my memory store?

You can prune stale TRW learnings by auditing the memory store to identify obsolete entries, then interactively confirming a plan that marks deletions as obsolete and recalibrates impact scores to reduce noise.

What is the best way to consolidate duplicate memory entries and rebalance tags?

Consolidating duplicate memory entries and rebalancing tags involves detecting redundant learnings, creating compendium entries for them, and normalizing inconsistent tags across the learning store after explicit user confirmation.

How does interactive memory optimization protect against accidental data loss?

Interactive memory optimization prevents data loss by building an optimization plan first, requiring explicit user confirmation before executing changes, and safely marking deletions as obsolete rather than permanently removing them.

Can I synchronize documentation and delivery state after modifying learnings?

Yes, you can synchronize documentation and delivery state after modifying learnings; the optimization workflow automatically syncs AGENTS.md and delivery traces to preserve accurate workflow records post-change.

How do I audit inconsistent tagging and duplicates in my learning store?

Auditing inconsistent tagging and duplicates in a learning store uses TRW recall and index data to identify stale entries, detect redundant learnings, and surface tag inconsistencies for normalization.

What do before and after reports show after memory optimization?

Before and after reports reveal active entries, obsoleted items, consolidations, and tag normalization outcomes, providing a clear comparison of the memory store's state before and after the optimization changes.