Skill
Community

reference-session

Install
1
Install the plugin
$
npx claudepluginhub levifig/loaf --plugin loaf

Want just this skill?

Then install: npx claudepluginhub u/[userId]/[slug]

Description

Imports decisions and context from past sessions. Use when the user asks "reference that earlier session" or "what did we decide before?"

Tool Access

This skill uses the workspace's default tool permissions.

Supporting Assets
View in Repository
templates/session.md
Skill Content

Reference Session

Import context from past sessions into current work without duplicating full context.

Input: $ARGUMENTS


Process

Step 1: Parse Arguments

Parse for: search term (session name fragment, Linear issue ID, or topic keyword), optional content type (decisions, context, or all; default: decisions).

/loaf:reference-session auth              # Search "auth", import decisions
/loaf:reference-session auth context      # Import full context summary
/loaf:reference-session PLT-123           # Search by Linear issue
/loaf:reference-session                   # List available session decisions

Step 2: Search for Sessions

Option A: Use Serena MCP list_memories(), filter for session-*-decisions.md

Option B: Search .agents/sessions/archive/*<search-term>*.md

Step 3: Display Matches

Show matching sessions with date, Linear issue, and decision count. If single match, proceed directly.

Step 4: Read and Import

Read decision memory via Serena or extract from archived session file.

If active session exists: update session frontmatter referenced_sessions and add ## Referenced Decisions section with decision name, what was decided, rationale, and context.

If no active session: display decisions without updating any file.

Step 5: Report

Confirm what was imported: source session, content type, decision count, summary list, and updated session path.


Content Types

TypeImports
decisions (default)Decision name, what was decided, rationale, council outcome
contextProblem statement, technical approach, key files, final outcome
allBoth decisions and context

Anti-Patterns

Don'tDo Instead
Import full session filesImport only decisions/summaries
Import without trackingAlways update referenced_sessions
Import from unrelated sessionsSearch by topic or Linear issue

Related Skills

  • resume-session -- Resume active sessions (not reference past ones)
  • cleanup -- Session hygiene and cleanup
  • implement -- Start new work that may reference past sessions
Stats
Stars1
Forks0
Last CommitMar 17, 2026

Similar Skills