Chat summary

From teammors/xteammors-OpenClaw4J · View interactive version

Chat summary is an AI agent skill from the GitHub repository teammors/xteammors-OpenClaw4J. Summarize chat messages from the database based on user requirements. This skill queries the chat_messages table and uses AI to generate a summary of recent conversations.

How to use this skill

Skill file

Chat Summary Skill

Description

Summarize chat messages from the database based on user requirements. This skill queries the chat_messages table and uses AI to generate a summary of recent conversations.

Invocation

Command

chat-summary

Natural Language Examples

Parameters

Configuration

database:
  host: "db_ip"
  port: db_port
  database: "db_name"
  username: "user"
  password: "password"
  jdbc_url: "jdbc:mysql://db_ip:3306/db_name?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B0&autoReconnect=true"

Database Schema

Table: chat_messages

Key columns:

Output Format

时间段: [开始时间] - [结束时间]

聊天内容要点:

  1. 要点1
  2. 要点2
  3. 要点3

...

Implementation

The skill works in three steps (all AI calls are handled by Java side):

  1. First AI call (Java): Build SQL query based on user requirements and table structure
  2. Database query (Python): Execute the SQL query and return raw data as JSON
  3. Second AI call (Java): Summarize the chat content retrieved from database

Scripts

Dependencies

Note: AI processing is done by the Java application using the configured ChatClient. No OpenAI API key is needed in the Python script.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.