AGENT SKILL

conversation-summary

Generate summaries for conversation content with incremental update support.

License 许可
MIT
最近更新
2026-04-05
Stars
★ 7
Forks
1

01 前言 Front Matter

name
conversation-summary
emoji
?
tools
[ { "name": "summarize_conversation", "parameters": { "type": "object", "required": [ "chat_list" ], "properties": { "chat_list": { "type": "string", "description": "JSON formatted conversation list, e.g., [{\"role\":\"user\",\"content\":\"hello\"}]" }, "history_summary": { "type": "string", "description": "Previous summary for incremental update (optional)" } } }, "description": "Generate a summary for conversation content." } ]
author
lyue82665-droid
license
MIT
version
1.0.0
requires
{ "pip": [ "requests" ], "bins": [ "python3" ] }
description
Generate summaries for conversation content with incremental update support.

02 资源文件 3

03 SKILL.md 正文

Conversation Summary - Agent Instructions

Use this skill to generate summaries for conversation content.

Usage

When the user requests any of the following:

  • "Summarize this conversation"
  • "Generate a summary"
  • "What did we talk about"

Use the summarize_conversation tool to call the summary API.

How to Call

python3 scripts/conversation_summary.py '<chat_list_json>' '<history_summary>'

Parameters

Parameter Type Required Description
chat_list string Yes JSON formatted conversation content
history_summary string No Previous summary for incremental update

chat_list Format Example

[
  {"role": "user", "content": "How is the weather today?"},
  {"role": "assistant", "content": "It is sunny, 25 degrees."}
]

Response

The script returns JSON with:

  • status: "completed" or "error"
  • summary: Generated conversation summary
  • error: Error message if failed

Error Handling

  • If the API returns a non-zero code, report the error message to the user
  • If the request fails, check network connectivity
  • Ensure chat_list is valid JSON format before calling

04 同仓库更多 Skills