跳到正文
cccskills
免费在 GitHub 公开

ce-session-extract

Extract conversation skeleton or error signals from a single session file at a given path. Invoked by session-research agents after they have selected which sessions to deep-dive — not intended for direct user queries.

中文简介正在准备中。当前显示原文说明。

JesusFilm/core星标 25(GitHub 25 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(3)

  • SKILL.md2.7 KB
  • scripts/extract-errors.py3.5 KB
  • scripts/extract-skeleton.py11.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Session extract

Agent-facing primitive. Extract filtered content from a single Claude Code, Codex, or Cursor session file — either a conversation skeleton or error signals.

This skill exists so that agents do not read multi-megabyte session files into context. The scripts under scripts/ own the JSONL shape knowledge and emit a narrative-readable digest.

Arguments

Space-separated positional args:

  1. <file> — absolute path to a session JSONL file (typically a file value returned by ce-session-inventory).
  2. <mode> — skeleton or errors.
  3. <limit> (optional) — head:N or tail:N to cap output at N lines (e.g., head:200). Omit to return full extraction.

Execution

Skeleton mode — narrative of user messages, assistant text, and collapsed tool-call summaries:

cat <file> | python3 scripts/extract-skeleton.py

Errors mode — just error signals:

cat <file> | python3 scripts/extract-errors.py

If <limit> is head:N, pipe through head -n N. If tail:N, pipe through tail -n N. Apply the limit after the Python script, never before — the _meta line is emitted last and a head cap may drop it; that is acceptable when the caller asks for a head cap.

Return the raw stdout verbatim. Do not paraphrase, annotate, or synthesize — the caller does synthesis across multiple sessions.

What each mode returns

Skeleton

Narrative output with one logical event per block, separated by ---:

  • User messages (text only, no tool results, framework wrapper tags stripped)
  • Assistant text (no thinking/reasoning blocks — those are internal or encrypted)
  • Tool call summaries; 3+ consecutive same-name calls are collapsed (e.g., [tools] 5x Read (file1, file2, +3 more) -> all ok)

Ends with a _meta line: {"_meta": true, "lines": N, "parse_errors": N, "user": N, "assistant": N, "tool": N}.

Errors

One line per error, separated by ---:

  • Claude Code: tool results with is_error: true
  • Codex: exec_command_end events with non-zero exit or non-empty stderr
  • Cursor: always empty — Cursor agent transcripts do not log tool results

Ends with a _meta line: {"_meta": true, "lines": N, "parse_errors": N, "errors_found": N}.

Error handling

If the file cannot be read, let the error surface to the caller. If _meta reports parse_errors > 0, return the output as-is — partial extraction is still useful and the caller decides whether to widen the search or deep-dive further.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

ask-matt

免费

Ask which skill or flow fits your situation. A router over the skills in this repo.

中文简介正在准备中。当前显示原文说明。

JesusFilm/core252026年10月29日 更新

Build applications where agents are first-class citizens. Use this skill when designing autonomous agents, creating MCP tools, implementing self-modifying systems, or building apps where features are outcomes achieved by agents operating in a loop.

中文简介正在准备中。当前显示原文说明。

JesusFilm/core252026年10月29日 更新

Run comprehensive agent-native architecture review with scored principles

中文简介正在准备中。当前显示原文说明。

JesusFilm/core252026年10月29日 更新

Explore requirements and approaches through collaborative dialogue before writing a right-sized requirements document and planning implementation. Use for feature ideas, problem framing, when the user says 'let's brainstorm', or when they want to think through options before deciding what to build. Also use when a user describes a vague or ambitious feature request, asks 'what should we build', 'help me think through X', presents a problem with multiple valid solutions, or seems unsure about scope or direction — even if they don't explicitly ask to brainstorm.

中文简介正在准备中。当前显示原文说明。

JesusFilm/core252026年10月29日 更新

Clean up local branches whose remote tracking branch is gone. Use when the user says "clean up branches", "delete gone branches", "prune local branches", "clean gone", or wants to remove stale local branches that no longer exist on the remote. Also handles removing associated worktrees for branches that have them.

中文简介正在准备中。当前显示原文说明。

JesusFilm/core252026年10月29日 更新

Structured code review using tiered persona agents, confidence-gated findings, and a merge/dedup pipeline. Use when reviewing code changes before creating a PR.

中文简介正在准备中。当前显示原文说明。

JesusFilm/core252026年10月29日 更新

查看 JesusFilm 的全部技能

报告此技能的问题