本文へ移動
cccskills
無料GitHub で公開

ce-session-inventory

Discover session files for a repo across Claude Code, Codex, and Cursor, and extract session metadata (timestamps, branch, cwd, size, platform). Invoked by session-research agents — not intended for direct user queries.

日本語の概要は準備中です。原文の説明を表示しています。

JesusFilm/coreスター 25(GitHub 25 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(3)

  • SKILL.md3.8 KB
  • scripts/discover-sessions.sh2.4 KB
  • scripts/extract-metadata.py11.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Session inventory

Agent-facing primitive. Discover session files and emit session metadata as JSONL across Claude Code, Codex, and Cursor.

This skill exists so that agents researching session history do not need to know the layout of session stores on disk or the JSONL shapes of each platform. The scripts under scripts/ own that knowledge.

Arguments

Space-separated positional args:

  1. <repo> — repo folder name (e.g., my-project). Used for directory matching in Claude Code and Cursor, and as the CWD filter for Codex sessions.
  2. <days> — scan window in days (e.g., 7). Session files older than this are skipped.
  3. <platform> (optional) — one of claude, codex, cursor. Omit to search all three.
  4. --keyword K1[,K2,...] (optional) — filter to sessions whose full file content matches at least one of the comma-separated keywords (case-insensitive substring). Each emitted session line gains match_count and keyword_matches ({K: N, ...}) fields, and the _meta line gains files_matched. Use this instead of rolling per-file grep -l calls when ranking many sessions by topical relevance.

Execution

Run the discovery-plus-metadata pipeline from the skill's own scripts/ directory:

bash scripts/discover-sessions.sh <repo> <days> [--platform <platform>] \
  | tr '\n' '\0' \
  | xargs -0 python3 scripts/extract-metadata.py --cwd-filter <repo>

To filter by keyword, append --keyword K1[,K2,...] to the extract-metadata.py invocation. Keyword scanning reads the full file (not just the head metadata window), so it costs more than a metadata-only run — use it when you need to rank candidates by topic across many sessions, not as a default.

Return the raw stdout verbatim — one JSON object per session, then a final _meta line. Callers parse the JSONL directly, so do not paraphrase, reformat, or summarize.

If discovery finds no files, the pipeline still emits a clean _meta line (files_processed: 0). Return that as-is.

Output format

Each session line is a JSON object. Common fields across platforms:

  • platform — claude, codex, or cursor
  • file — absolute path to the session JSONL
  • size — file size in bytes
  • ts — session start timestamp (ISO 8601)
  • session — session identifier

Platform-specific fields:

  • Claude Code adds branch (git branch) and last_ts (last message timestamp).
  • Codex adds cwd (working directory), source, cli_version, model, last_ts.
  • Cursor has no in-file timestamps or metadata — ts is derived from file mtime and session from the containing directory name.

The final _meta line has files_processed, parse_errors, and optionally filtered_by_cwd (count of Codex sessions dropped by the CWD filter) and files_matched (count of sessions retained by the keyword filter, present only when --keyword was set).

When --keyword is set, each session line additionally carries:

  • match_count — total occurrences across all keywords
  • keyword_matches — per-keyword counts, e.g., {"middleware": 4, "auth": 12}

Sessions with match_count: 0 are excluded from output.

Error handling

If the discovery script errors (e.g., unreadable home directory, permission failure), let the error surface to the caller. Do not substitute git log, file listings, or other sources — this skill's contract is session metadata, nothing else.

If _meta reports parse_errors > 0, return the JSONL as-is. The caller decides how to handle partial data.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。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 のスキルをすべて見る

このスキルの問題を報告する