360 Secure SkillHub
360 安全技能中心

Prompt Log

运行捆绑脚本 scripts/extract.sh 处理 .jsonl 会话日志,支持 --after/--before 时间过滤和 --output 指定路径,默认输出 Markdown 转录到 .prompt-log/ 目录;依赖 jq,macOS 上用 gdate 否则回退 date。材料中脚本本体缺失。

分类:效率
thesash
thesash
热度 57.62
最近更新 2026-05-11 15:48:53

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add thesash/prompt-log
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
prompt-log
description
Extract conversation transcripts from AI coding session logs (Clawdbot, Claude Code, Codex). Use when asked to export prompt history, session logs, or transcripts from .jsonl session files.

Prompt Log

Quick start

Run the bundled script on a session file:

scripts/extract.sh <session-file>

Inputs

  • Session file: A .jsonl session log from Clawdbot, Claude Code, or Codex.
  • Optional filters: --after and --before ISO timestamps.
  • Optional output: --output path for the markdown transcript.

Outputs

  • Writes a markdown transcript. Defaults to .prompt-log/YYYY-MM-DD-HHMMSS.md in the current project.

Examples

scripts/extract.sh ~/.codex/sessions/2026/01/12/abcdef.jsonl
scripts/extract.sh ~/.claude/projects/my-proj/xyz.jsonl --after "2026-01-12T10:00:00" --before "2026-01-12T12:00:00"
scripts/extract.sh ~/.clawdbot/agents/main/sessions/123.jsonl --output my-transcript.md

Dependencies

  • Requires jq in PATH.
  • Uses gdate if available on macOS; otherwise falls back to date.