xiaohongshu
xiaohongshu
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.
Full skill instructions
Extract structured learnings from Claude Code and OpenClaw session history using LLM-based summarization.
| Category | Description | Example |
|---|---|---|
| decision | Architectural and design choices | "Chose SQLite over PostgreSQL for local CLI" |
| pattern | Code patterns and idioms | "Uses Result<T, E> for error handling" |
| gotcha | Things that went wrong and fixes | "index.json must sync with posts/" |
| convention | Project-specific norms | "Tests colocated with source files" |
| context | Background knowledge | "This is a Rust 2021 edition project" |
export ANTHROPIC_API_KEY=your-key
# 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
The output includes:
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
Use summarized learnings to enhance generated skills:
# Generate skill with richer context
npx engram generate-skill --workspace . --days 30
| Option | Description | Default |
|---|---|---|
-w, --workspace <path> | Workspace to filter sessions | . |
-d, --days <number> | Days of history to analyze | 30 |
--no-openclaw | Exclude OpenClaw sessions | include |
-a, --agent <id> | OpenClaw agent ID filter | all |
-c, --min-confidence <n> | Confidence threshold (0-1) | 0.5 |
-o, --output <path> | Save learnings to JSON file | stdout |
--json | Output as JSON | pretty print |
| Skill | When to Combine |
|---|---|
| engram-generate | Summarize before generating for richer skills |
| engram-recall | Recall + summarize for full context |
| describe-codebase | Add summarized learnings to codebase description |
| Aspect | engram-generate | engram-summarize |
|---|---|---|
| Method | Pattern matching | LLM extraction |
| Output | Structural patterns | Semantic learnings |
| Cost | Free (local) | API tokens |
| Depth | File co-edits, commands | Decisions, rationale |
Use both together for best results:
summarize extracts the meaninggenerate captures the structure{
"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
}
]
}
ANTHROPIC_API_KEY environment variablexiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
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...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
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...
Display project status, active tracks, and next actions
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.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience