返回 Skill 列表
extension
分类: 开发与工程无需 API Key

agent-report

从Claude代理的JSONL文件中提取并显示最终消息。当用户想要查看代理报告、查看代理输出、提取代理结果、检查代理生成的内容或阅读子代理的最终响应时使用。在诸如“给我看代理报告”、“代理X生成了什么”、“提取代理输出”、“查看代理结果”或“获取来自代理ad42ecb的报告”等请求下触发。

person作者: jakexiaohubgithub

Agent Report Extractor

Extract the final message from a Claude agent file and write it to a formatted markdown report.

Usage

Run the script with an agent ID:

scripts/extract_agent_message.sh <agent_id> [output_file]
  • agent_id: The short agent ID (e.g., ad42ecb)
  • output_file: Optional. Defaults to agent-<id>-report.md in current directory

Workflow

  1. If the user provides an agent ID, run the script immediately
  2. If no agent ID is provided, ask the user for the agent ID using AskUserQuestion
  3. Run the script and confirm the output file location

Output Format

The script produces a markdown file containing:

  • Agent slug/name
  • Agent ID
  • Model used
  • Timestamp
  • Full text content of the final message