session-reconstruct

Retroactively analyze exported sessions to reveal orchestration that wasn't captured. Use --reconstruct for old sessions where you forgot --showcase. Infers skill logic, agent internals, and decision rationale from transcript patterns with 60-80% accuracy.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "session-reconstruct" with this command: npx skills add sunnypatneedi/skills

Session Reconstruct

Retroactively analyze and annotate exported sessions to reveal orchestration that wasn't captured.

Note: This skill analyzes sessions exported via the built-in /export command or raw JSONL logs from ~/.claude/projects/. It INFERS orchestration details that weren't narrated—accuracy is ~60-80% vs ~95% for --showcase mode.

Quick Start

# For current session (export + reconstruct in one step)
"Export and reconstruct this session --reconstruct"

# For already-exported file
"Reconstruct orchestration from session.md --reconstruct"

# Other options
"Analyze this session --audit"
"Walk through what happened --replay"

Important: /export --reconstruct won't work because /export is a built-in command that doesn't accept flags. Use the natural language commands above instead.

For NEW sessions, use showcase-export with --showcase instead.

How It Works

┌─────────────────────────────────────────────────────────┐
│ Input Sources                                           │
├─────────────────────────────────────────────────────────┤
│ 1. /export output (.md or .txt)                         │
│ 2. Raw JSONL logs (~/.claude/projects/*.jsonl)          │
│ 3. Community tool exports (claude-code-log, etc.)       │
└─────────────────────────────────────────────────────────┘
                          │
                          ▼
┌─────────────────────────────────────────────────────────┐
│ Reconstruction Engine                                   │
├─────────────────────────────────────────────────────────┤
│ • Identifies skill invocations from output patterns     │
│ • Infers agent reasoning from results                   │
│ • Reconstructs decision points from choices made        │
│ • Estimates compound learning from behavior changes     │
└─────────────────────────────────────────────────────────┘
                          │
                          ▼
┌─────────────────────────────────────────────────────────┐
│ Output: Annotated Session                               │
├─────────────────────────────────────────────────────────┤
│ Original transcript + [RECONSTRUCTED] markers           │
│ with confidence scores for each inference               │
└─────────────────────────────────────────────────────────┘

When to Use This

ScenarioUse This?Why
Exported session without showcase mode✅ YesReconstruct what happened
Old session you want to showcase✅ YesAdd orchestration visibility
Session with partial showcase✅ YesFill in gaps
New session starting now❌ NoUse --showcase at start

What Gets Reconstructed

1. Skill Logic (from outputs)

[RECONSTRUCTED SKILL LOGIC]
Skill: idea-validator
Based on the output pattern, this skill likely instructed:
1. Problem clarity analysis (evidence: "clear problem" in output)
2. Market need validation (evidence: reference to "demand signals")
3. Competitive moat assessment (evidence: "defensibility" section)
Confidence: 85%

2. Subagent Internals (from results)

[RECONSTRUCTED AGENT PROCESS]
Agent: rigorous-thinking
Final result mentioned: "4/5 counterarguments addressed"
Inferred process:
- Generated ~5 counterarguments (evidence: "4/5" ratio)
- Tested each against evidence (evidence: "addressed" language)
- Tool calls: ~4-6 (typical for this agent type)
Confidence: 70%

3. Decision Points (from choices made)

[RECONSTRUCTED DECISION]
At this point, the session chose X over Y.
Likely tradeoffs considered:
- X advantage: [inferred from context]
- Y advantage: [what was given up]
- Why X won: [reasoning based on subsequent actions]
Confidence: 60%

4. Compound Learning (from patterns)

[RECONSTRUCTED COMPOUND UPDATE]
A pattern was likely extracted here:
- Pattern: "[inferred from repeated behavior]"
- Evidence in session: [what suggested this]
- Likely confidence update: [estimate]
Confidence: 50%

Reconstruction Protocol

Step 1: Identify Orchestration Points

Scan for:

  • Skill invocations (Skill:, 🔧, skill names mentioned)
  • Agent spawns (Task, 🤖, "spawning", "agent")
  • Phase transitions (numbered sections, "Phase", "Step")
  • Decision indicators ("chose", "decided", "instead of", "rather than")
  • Compound signals (database mentions, "pattern", "learned", "updated")

Step 2: Mark Confidence Levels

ConfidenceMeaningEvidence Required
90%+Almost certainExplicit mention + output matches
70-89%High confidenceOutput strongly implies process
50-69%ModerateReasonable inference from context
30-49%SpeculativePossible but uncertain
<30%GuessFlag as "[UNCERTAIN]"

Step 3: Generate Annotated Version

# Session Reconstruction: [Project Name]

## Reconstruction Metadata
- Original session: [filename]
- Reconstruction date: [date]
- Overall confidence: [average %]
- Gaps identified: [count]

---

[ORIGINAL CONTENT]
User: Build sessionizer

[RECONSTRUCTION]
This request triggered the following orchestration:
- Skills likely loaded: idea-validator, software-architecture
- Why: "Build" keyword + project name suggests full build pipeline
- Confidence: 75%

Reconstruction Markers

MarkerMeaning
[RECONSTRUCTED]Inferred, not captured
[VERIFIED]Explicitly in transcript
[UNCERTAIN]Low confidence inference
[GAP]Cannot reconstruct

Complete Workflow

# If you FORGOT --showcase:

# 1. Export the session using built-in command
/export my-session.md

# 2. Reconstruct orchestration using this skill
"Reconstruct orchestration from my-session.md --audit"

# 3. Output: Annotated version with [RECONSTRUCTED] markers

Comparison with showcase-export

TimingSkillFlagAccuracy
Before sessionshowcase-export--showcase95%
After sessionsession-reconstruct--audit60-80%

Best practice: Always start with --showcase. Use --reconstruct only for old sessions or gaps.


Limitations

Reconstruction CANNOT provide:

  1. Exact subagent reasoning - Can only infer from results
  2. Precise tool call counts - Estimates only
  3. Actual confidence scores - Must approximate
  4. Internal decision debates - Only see final choice
  5. Timing information - Unless explicitly logged

Always flag these limitations in the reconstructed output.


Installation

npx skills add sunnypatneedi/skills

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

showcase-export

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

AGENT-OS

The operating system layer for AI agents. Routes goals to the right skills. Executes with checkpoints.

Registry SourceRecently Updated
1551Profile unavailable
Automation

Agent Network

Decentralized AI agent platform for discovering, connecting, chatting, trading skills with point-based system and leaderboard, featuring P2P networking and d...

Registry SourceRecently Updated
3650Profile unavailable
Automation

OpenClaw Auto‑Updater (Safe + Scheduled + Summary)

Schedule automatic OpenClaw and skill updates with reliable cron templates, timezone-safe scheduling, and clear summary outputs. Use for hands-off maintenance, scheduled upgrades, and concise update reports.

Registry SourceRecently Updated
5.9K11Profile unavailable