Skip to content
engram-summarize logo

Engram Summarize

engram-summarize

Summarize coding sessions into structured learnings using LLM extraction. Use when: (1) distilling lessons from recent work, (2) creating reusable knowledge, (3) building a project knowledge base, (4) onboarding others to a codebase.

SKILL.md

Full skill instructions

Engram Summarize

Extract structured learnings from Claude Code and OpenClaw session history using LLM-based summarization.

When to Use

  • After completing significant work on a project
  • Before onboarding someone new to a codebase
  • Periodically to capture accumulated knowledge
  • When you want to distill decisions and patterns

What It Extracts

CategoryDescriptionExample
decisionArchitectural and design choices"Chose SQLite over PostgreSQL for local CLI"
patternCode patterns and idioms"Uses Result<T, E> for error handling"
gotchaThings that went wrong and fixes"index.json must sync with posts/"
conventionProject-specific norms"Tests colocated with source files"
contextBackground knowledge"This is a Rust 2021 edition project"

Workflow

Step 1: Set up API key

export ANTHROPIC_API_KEY=your-key

Step 2: Summarize sessions

# Summarize last 30 days for current workspace
npx engram summarize --workspace . --days 30

# Save to file
npx engram summarize --workspace . -o learnings.json

# Higher confidence threshold
npx engram summarize --workspace . --min-confidence 0.7

Step 3: Review learnings

The output includes:

  • Session count processed
  • Learnings by category
  • Top learnings ranked by confidence

Example output:

📊 Summary:
  Sessions: 12
  Learnings: 23

  By category:
    Decisions:   5
    Patterns:    8
    Gotchas:     4
    Conventions: 3
    Context:     3

📝 Top learnings:
  [gotcha] Blog index.json must be updated when posts are renamed
  [pattern] All exports go through index.ts barrel files
  [decision] Used vitest over jest for faster test execution

Step 4: Integrate with skill generation

Use summarized learnings to enhance generated skills:

# Generate skill with richer context
npx engram generate-skill --workspace . --days 30

CLI Options

OptionDescriptionDefault
-w, --workspace <path>Workspace to filter sessions.
-d, --days <number>Days of history to analyze30
--no-openclawExclude OpenClaw sessionsinclude
-a, --agent <id>OpenClaw agent ID filterall
-c, --min-confidence <n>Confidence threshold (0-1)0.5
-o, --output <path>Save learnings to JSON filestdout
--jsonOutput as JSONpretty print

Integration with Other Skills

SkillWhen to Combine
engram-generateSummarize before generating for richer skills
engram-recallRecall + summarize for full context
describe-codebaseAdd summarized learnings to codebase description

Comparison: Generate vs Summarize

Aspectengram-generateengram-summarize
MethodPattern matchingLLM extraction
OutputStructural patternsSemantic learnings
CostFree (local)API tokens
DepthFile co-edits, commandsDecisions, rationale

Use both together for best results:

  1. summarize extracts the meaning
  2. generate captures the structure

Example Learnings

{
  "learnings": [
    {
      "category": "gotcha",
      "summary": "Blog index.json must be updated when posts are renamed",
      "detail": "The blog uses a static index.json. Renaming a post without updating causes 404 errors.",
      "files": ["index.json", "posts/​*.md"],
      "confidence": 0.95
    },
    {
      "category": "decision", 
      "summary": "Chose TypeScript for type safety",
      "confidence": 0.85
    }
  ]
}

Important

  • Requires ANTHROPIC_API_KEY environment variable
  • Uses Claude Sonnet for extraction (cost-effective)
  • Review learnings before sharing (may contain sensitive info)
  • Higher confidence threshold reduces noise but may miss insights

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View