Retrospect
by @zbc0315
Session retrospective that analyzes conversation history to produce structured feedback for both user and LLM. Use this skill whenever the user says '复盘', 'r...
clawhub install retrospect📖 About This Skill
name: retrospect description: "Session retrospective that analyzes conversation history to produce structured feedback for both user and LLM. Use this skill whenever the user says '复盘', 'retrospect', '批评与自我批评', 'session review', 'review this session', or asks to review/reflect on how a conversation went. Also trigger when the user wants feedback on their prompting skills, wants the LLM to self-critique its mistakes, or asks for a post-mortem of the current or a past session." version: 1.0.0 metadata: openclaw: requires: bins: - node
Retrospect — Session Retrospective: Critique & Self-Critique
Perform a structured retrospective on all conversation sessions in the current project. This produces two deliverables:
1. FEEDBACK_TO_HUMAN.md — Critique of the user's prompting behavior 2. FEEDBACK_TO_LLM.md — Self-critique of the LLM's performance
Step 1: Locate and parse all session transcripts
Run the bundled parser, passing the current working directory. It will automatically find all session JSONL files for this project, merge them in chronological order, and output a unified transcript.
node ${CLAUDE_SKILL_DIR}/scripts/parse_session.js --project-dir "$(pwd)" > /tmp/session_transcript.md
The parser:
/Users/tom/myproject → ~/.claude/projects/-Users-tom-myproject/).jsonl files in that directory (excluding subagent logs)If the transcript is very long, the parser automatically summarizes older sessions (keeping only user messages and key exchanges) while preserving full detail for the most recent sessions.
Step 2: Spawn the analysis subagent
Launch a single subagent (via the Agent tool, or equivalent in your platform) with the full transcript content. The subagent reads the transcript and writes both feedback files to the project root directory.
Pass the subagent this prompt structure (fill in the transcript and project root):
You are a session retrospective analyst. You have been given conversation transcripts from all sessions in a project between a user and an LLM. Your job is to produce two analysis documents.
Read the transcript carefully, then write both files to:
The transcript is below:
File 1: FEEDBACK_TO_HUMAN.md
Analyze the user's behavior across all sessions. Structure the document as:
#### Overall Assessment A 2-3 sentence summary of how effectively the user communicated with the LLM across this project.
#### Round-by-Round Analysis For each significant exchange (skip trivial ones like "ok" or tool confirmations), analyze:
When the user expresses frustration or rejection of LLM output, perform a responsibility analysis:
#### Prompting Patterns Identify recurring patterns across sessions (good and bad):
#### Suggestions Concrete, actionable advice for how the user could prompt more effectively in future sessions. Focus on what would save the most time and frustration.
File 2: FEEDBACK_TO_LLM.md
Analyze the LLM's behavior across all sessions. Structure the document as:
#### Overall Assessment A 2-3 sentence summary of the LLM's performance across this project.
#### Mistakes & Errors For each significant mistake the LLM made:
Pay special attention to:
#### Counter-Intuitive Learnings Information encountered in these sessions that a general-purpose LLM would NOT know or would likely get wrong. Examples:
For each item, explain: what the intuitive assumption would be, what the reality is, and why this matters.
#### Self-Improvement Notes What should the LLM do differently next time when facing similar tasks?
Important guidelines for the subagent:
Step 3: Report completion
After the subagent finishes, tell the user where the files are and give a one-line summary of each file's key finding.