Agent Skillsrohitg00/pro-workflow › replay-learnings

replay-learnings

GitHub

在任务开始前检索并展示相关的历史学习记录和错误修正,通过关键词匹配和会话历史分析,按相关性排序提供经验教训,帮助避免重复犯错并优化工作策略。

skills/replay-learnings/SKILL.md rohitg00/pro-workflow

Trigger Scenarios

启动新任务前 询问过往经验或教训时 输入'replay'或'remind me about'等指令时

Install

npx skills add rohitg00/pro-workflow --skill replay-learnings -g -y
More Options

Use without installing

npx skills use rohitg00/pro-workflow@replay-learnings

指定 Agent (Claude Code)

npx skills add rohitg00/pro-workflow --skill replay-learnings -a claude-code -g -y

安装 repo 全部 skill

npx skills add rohitg00/pro-workflow --all -g -y

预览 repo 内 skill

npx skills add rohitg00/pro-workflow --list

SKILL.md

Frontmatter
{
    "name": "replay-learnings",
    "description": "Surface past learnings relevant to the current task before starting work. Searches correction history, recalls past mistakes, and applies prior patterns. Use when starting a task, saying \"what do I know about\", \"previous mistakes\", \"lessons learned\", or \"remind me about\"."
}

Replay Learnings

Like muscle memory for your coding sessions. Find and surface relevant learnings before you start working.

Trigger

Use when starting a new task, saying "what do I know about", "before I start", "replay", or "remind me about".

Workflow

  1. Extract keywords from the task description (e.g. "auth refactor" → auth, middleware, refactor).
  2. Search learnings/memory for matching patterns:
    grep -i "auth\|middleware" .claude/LEARNED.md 2>/dev/null
    grep -i "auth\|middleware" .claude/learning-log.md 2>/dev/null
    grep -A2 "\[LEARN\]" CLAUDE.md | grep -i "auth\|middleware"
    
  3. Check session history for similar work — what was the correction rate?
  4. Surface the top learnings ranked by relevance.
  5. If no learnings found, suggest starting with the scout agent to explore first.

Output

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:
  - Mock external APIs (learning #1)
  - Check src/middleware/ first for auth code (learning #2)

Guardrails

  • Rank by relevance, not recency.
  • Include the original mistake context so the learning is actionable.
  • Flag high correction-rate sessions as areas requiring extra care.
  • If no learnings match, say so explicitly rather than forcing irrelevant results.

Version History

  • 7f7209d Current 2026-07-24 11:41

Same Skill Collection

skills/agent-teams/SKILL.md
skills/auto-setup/SKILL.md
skills/batch-orchestration/SKILL.md
skills/bug-capture/SKILL.md
skills/compact-guard/SKILL.md
skills/context-engineering/SKILL.md
skills/context-optimizer/SKILL.md
skills/cost-tracker/SKILL.md
skills/design-engineering/SKILL.md
skills/deslop/SKILL.md
skills/domain-modeling/SKILL.md
skills/file-watcher/SKILL.md
skills/improve-architecture/SKILL.md
skills/insights/SKILL.md
skills/learn-rule/SKILL.md
skills/llm-council/SKILL.md
skills/llm-gate/SKILL.md
skills/mcp-audit/SKILL.md
skills/orchestrate/SKILL.md
skills/parallel-worktrees/SKILL.md
skills/permission-tuner/SKILL.md
skills/plan-interrogate/SKILL.md
skills/safe-mode/SKILL.md
skills/session-handoff/SKILL.md
skills/skill-router/SKILL.md
skills/smart-commit/SKILL.md
skills/sprint-status/SKILL.md
skills/tdd/SKILL.md
skills/thoroughness-scoring/SKILL.md
skills/token-efficiency/SKILL.md
skills/wiki-builder/SKILL.md
skills/wiki-query/SKILL.md
skills/wiki-research-loop/SKILL.md
skills/wiki-viewer/SKILL.md
skills/wrap-up/SKILL.md
skills/writing-guidelines/SKILL.md
skills/pro-workflow/SKILL.md
skills/skill-optimizer/SKILL.md
skills/survey-generator/SKILL.md

Metadata

Files
0
Version
7f7209d
Hash
2f92ef8e
Indexed
2026-07-24 11:41

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 16:19
浙ICP备14020137号-1 $방문자$