session-summarize

Harvest validated SQL, business rules, and metric definitions from chat sessions.

1.5k|222|Updated Jul 4, 2025
One-click install
npx skills add https://github.com/Datus-ai/Datus-agent --skill session-summarize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-summarize
Source: https://github.com/Datus-ai/Datus-agent/tree/main/datus/resources/skills/session-summarize
Command: npx skills add https://github.com/Datus-ai/Datus-agent --skill session-summarize

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When working with a data engineering agent across multiple chat sessions, valuable insights like validated SQL queries, business rules, metric definitions, and user preferences are often lost when a session ends, leading to repeated work and inconsistent context for future interactions.

Core Features & Use Cases

  • Session Takeaway Harvesting: Automatically scans the current chat transcript to collect all high-value content including business facts/rules, accepted SQL queries, refined metric definitions, durable user preferences, and reusable multi-step workflows.
  • Intelligent Storage Classification: Uses the storage-classify skill's decision tree to route each harvested candidate to the correct store (semantic models, metrics, reference SQL, knowledge base, memory, or AGENTS.md) with the appropriate generation mechanism.
  • Confirmation-First Persistence: Presents a deduplicated Summary Manifest of all planned persistence actions for user approval before any heavy generation or file writes occur, avoiding unnecessary work and unintended changes.
  • Use Case: After a session where you validated a regional GMV ranking SQL query and defined a custom order status encoding rule, use this skill to capture both the SQL example, the metric definition, and the business rule for future reuse across all your data workflows.

Quick Start

Invoke the session-summarize skill at the end of your working session to harvest, classify, and route all valuable takeaways for persistence after your confirmation.

Frequently Asked Questions about session-summarize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I save validated SQL queries and metric definitions from a chat session for future reuse?

Session summarization harvests validated SQL queries, business rules, and metric definitions from completed chat transcripts to prevent context loss. It automatically scans the session, classifies each valuable takeaway, and routes content to the appropriate store for persistence.

What is the best way to persist business rules and user preferences after a data engineering chat session ends?

Persisting business rules and user preferences is achieved by harvesting high-value content from the chat transcript at the end of a session. The session summarization process collects durable preferences, classifies them using a decision tree, and routes them to designated stores.

Can I review and approve what gets saved before the session summarization process writes to my knowledge base?

Yes, a confirmation-first persistence mechanism presents a deduplicated Summary Manifest of all planned storage actions before any heavy generation or file writes occur. This avoids unnecessary work and unintended changes by requiring your explicit approval.

How does storage classification route harvested session context to different stores?

Storage classification uses a decision tree to route each harvested candidate to the correct store, such as semantic models, metrics, reference SQL, knowledge base, memory, or AGENTS.md. It assigns the appropriate generation mechanism based on the content type.

When do I need to run session summarization for my data engineering agent workflows?

You need session summarization at the end of an interactive data exploration workflow where context from SQL validation, metric refinement, and business rule definition must be captured. It prevents the loss of validated multi-step workflows and business facts for future interactions.

Does session summarization support deduplicating takeaways before routing them to storage?

Yes, session summarization deduplicates harvested candidates before routing them. It scans the transcript, removes redundant takeaways, and generates a clean Summary Manifest containing only unique persistence actions for your final review.