界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

conversation-summary

conversation-summary

【效率与协作】Generate summaries for conversation content with incremental update support.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: conversation-summary description: Generate summaries for conversation content with incremental update support. emoji: 📝 author: lyue82665-droid version: 1.0.0 license: MIT requires: bins: - python3 pip: - requests tools:

  • name: summarize_conversation description: Generate a summary for conversation content. parameters: type: object 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)" required: [chat_list]

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

ParameterTypeRequiredDescription
chat_liststringYesJSON formatted conversation content
history_summarystringNoPrevious 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
我的收藏