Skip to content
Productivity
Command

/replay

Surface relevant past learnings before starting a task.

From plugin
pro-workflow
2.9k23 skills8 agents23 commands22 hooks
> /plugin marketplace add rohitg00/pro-workflow
> /plugin install pro-workflow@pro-workflow

Command definition

replay.md
description: Surface relevant past learnings before starting a task.

/replay - Surface Past Learnings for Current Task

Automatically find and surface relevant learnings from your pro-workflow database before you start working. Like muscle memory for your coding sessions.

Usage

/replay auth middleware
/replay "file path errors"
/replay testing react components

How It Works

1. Extract keywords from your current task description 2. Search the learnings database using FTS5 BM25 ranking 3. Check correction history for similar file patterns 4. Surface the top learnings with context

What You Do

When the user runs `/replay <task description>`:

1. **Search learnings database**:

   sqlite3 ~/.pro-workflow/data.db "
     SELECT l.category, l.rule, l.mistake, l.correction, l.times_applied
     FROM learnings l
     JOIN learnings_fts ON l.id = learnings_fts.rowid
     WHERE learnings_fts MATCH '<keywords>'
     ORDER BY bm25(learnings_fts)
     LIMIT 8
   "

2. **Check session history for similar work**:

   sqlite3 ~/.pro-workflow/data.db "
     SELECT project, corrections_count, edit_count,
            ROUND(CAST(corrections_count AS FLOAT) / NULLIF(edit_count, 0) * 100, 1) as correction_rate
     FROM sessions
     WHERE project LIKE '%<keyword>%'
     ORDER BY started_at DESC
     LIMIT 5
   "

3. **Output the replay briefing**:

REPLAY BRIEFING: <task>
=======================

Past learnings (ranked by relevance):
  1. [Testing] Always mock external APIs in auth tests (applied 8x)
     Mistake: Called live API in tests, caused flaky failures
  2. [Navigation] Auth middleware is in src/middleware/ not src/auth/ (applied 5x)
  3. [Quality] Add error boundary around auth state changes (applied 3x)

Session history for similar work:
  - 2026-02-01: auth refactor — 23 edits, 2 corrections (8.7% rate)
  - 2026-01-28: auth middleware — 15 edits, 4 corrections (26.7% rate)
    ^ Higher correction rate — review patterns before starting

Suggested approach:
  - [based on learnings, suggest what to watch out for]

4. If no learnings found, say so and suggest starting with `/scout` to explore first

Why This Is Unique

No other workflow tool has persistent FTS5-indexed learnings across sessions. This turns your past mistakes into a personal knowledge base that gets surfaced exactly when relevant.

Related Commands

  • `/search <query>` - Direct search of learnings
  • `/scout` - Confidence-gated exploration before implementing
  • `/insights` - Analytics on learning patterns

---

**Trigger:** Use when user says "replay", "what do I know about", "past learnings", "before I start", "remind me about", or starts a task that matches previous session patterns.

Read more
@rohitg00
Ships withpro-workflow

Claude Code learns from your corrections: self-correcting memory that compounds over 50+ sessions. Context engineering, parallel worktrees, agent teams, and 17 battle-tested skills.

2.9k41 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.9k
Star history of rohitg00/pro-workflow on GitHub, a chart by star-history.com

Other commands on pro-workflow.

auto-setup

auto-setup

Command

Auto-detect project type and configure quality gates, permissions, and hooks for a new codebase

@rohitg00@rohitg00Install Command
compact-guard

compact-guard

Command

Smart context compaction with state preservation — saves critical state before compact and restores after

@rohitg00@rohitg00Install Command

More commands from other plugins.

analyze-cohorts

analyze-cohorts

Command

Perform cohort analysis on user data — retention curves, feature adoption, and engagement trends

@phuryn@phurynInstall Command
again

again

Command

PUA Again — 用于再试试、换个方法、别放弃、为什么还不行、同一路径失败多次;要求停止微调同一思路,改用本质不同方案。

pua2mo20k
@tanweai@tanweaiInstall Command