index
Bulk-populate the omnisess transcript SQLite cache by walking every session of every registered (non-stub) source. This is the index that `omnisess stats` reads from. Without it, stats will still work but lazy-indexes on first query, which is slow on a large corpus. Use this skill when asked to build/rebuild the transcript index, seed the cache, prepare for stats queries, or capture full tool arguments and result payloads for inspection. Trigger phrases: "index sessions", "build the index", "populate the cache", "seed the transcript index", "rebuild stats", "prepare stats", "index --all", "capture tool arguments".
- License 许可
- MIT
- 所属仓库
- psacc/omnisess
- 最近更新
- 2026-11-05
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- index
- license
- MIT
- metadata
- { "version": "0.13.0" }
- description
- Bulk-populate the omnisess transcript SQLite cache by walking every session of every registered (non-stub) source. This is the index that `omnisess stats` reads from. Without it, stats will still work but lazy-indexes on first query, which is slow on a large corpus. Use this skill when asked to build/rebuild the transcript index, seed the cache, prepare for stats queries, or capture full tool arguments and result payloads for inspection. Trigger phrases: "index sessions", "build the index", "populate the cache", "seed the transcript index", "rebuild stats", "prepare stats", "index --all", "capture tool arguments".
- allowed-tools
- Bash
- argument-hint
- --all [--full] [--rebuild]
02 资源文件 15
- 参考文档AestheticProfiles.md8.0 KB
- 参考文档AntiCliche.md8.1 KB
- 参考文档Critics.md9.9 KB
- 参考文档DerivationLenses.md6.2 KB
- 参考文档PhasesAndEvents.md13.9 KB
- 参考文档PressfieldFramework.md14.5 KB
- 参考文档RhetoricalFigures.md36.4 KB
- 参考文档StorrFramework.md10.8 KB
- 参考文档StoryLayers.md9.7 KB
- 参考文档StoryStructures.md8.2 KB
- 参考文档Workflows/BuildBible.md8.9 KB
- 参考文档Workflows/Explore.md5.5 KB
- 参考文档Workflows/Interview.md8.7 KB
- 参考文档Workflows/Revise.md4.5 KB
- 参考文档Workflows/WriteChapter.md13.9 KB
03 SKILL.md 正文
omnisess index
Bulk-populate the transcript SQLite cache used by omnisess stats.
Usage
omnisess index --all [--full] [--rebuild]
--allis required (other modes are not yet implemented).--fullcaptures tool-use arguments and result payloads. This is privacy-sensitive: Bash command strings and Write/Edit file content may contain secrets. Treat the cache file as user-private data.--rebuilddrops existing rows for each session before re-indexing. Use this after a schema change or to recover from a corrupt cache.
The index file lives at os.UserCacheDir() + /omnisess/index.sqlite by
default; override via OMNISESS_INDEX_PATH.
When you need this
You don't, strictly — omnisess stats lazy-indexes on first query. But:
- One bulk run up front is much faster than indexing during interactive use.
--fullonly makes per-session data available if it was captured at index time.omnisess stats --fullcannot retroactively populate arguments/results that weren't recorded.
Instructions
- Check that the
omnisessbinary is available:
if ! command -v omnisess &>/dev/null; then
echo "omnisess not found. Install it with:"
echo " go install github.com/psacc/omnisess@latest"
exit 1
fi
- Run the command, passing through all arguments:
omnisess index "$@"
Examples
# Seed the cache with metadata-only rows (default)
omnisess index --all
# Capture full arguments and result payloads (privacy-sensitive)
omnisess index --all --full
# Drop existing rows and re-index
omnisess index --all --rebuild
04 同仓库更多 Skills
stats
Show tool-call counts and file-I/O activity from the transcript SQLite index. Aggregates Read/Write/Edit file paths, line counts, token usage, and error flags across a time window (default 7d) or for a single session. Use this skill when asked which tools were used most, which files saw the most activity, how many tokens were spent, or to inspect a single session's tool-call summary. Trigger phrases: "session stats", "tool stats", "what tools did I use", "tool usage", "files touched", "token usage", "stats for last week", "summarize tool calls", "session tool breakdown".
skills-audit
Classify agent skills by usage tier (Keep / Borderline / Archive / Unknown) using Claude Code session JSONL transcripts as the signal source. Read-only — never modifies skills, sessions, or any file on disk. Use this skill when asked to audit skills, find unused skills, classify skills, check which skills get used, produce a skill usage report, or prune skills. Trigger phrases: "audit skills", "find unused skills", "classify skills", "which skills do I use", "skill usage report", "prune skills", "what skills are unused", "skills I can remove", "trim my skill list". Output is a recommendation (Keep / Borderline / Archive) — acting on it is always a manual step.
show
Show the full detail of a single AI coding session by its ID. Session IDs are in the format <tool>:<id> (e.g., claude:5c3f2742, cursor:a1b2c3d4). Use this skill when asked to show a specific session, inspect a session, read a session, or view the messages in a session. Trigger phrases: "show session", "open session", "inspect session", "read session", "show me claude:5c3f2742", "view session details", "what happened in session".
search
Full-text search across all AI coding sessions (Claude Code, Cursor, Codex, GitHub Copilot CLI). Use this skill when asked to search sessions, find a conversation about a topic, look up what was discussed in past sessions, or find sessions mentioning specific code or concepts. Trigger phrases: "search sessions", "find sessions about", "look up in sessions", "what did I discuss about", "find conversation about", "search my history".
recap
Produce a structured markdown briefing of AI coding sessions for a given time window. Groups sessions by project and summarizes each group with intent, outcome, and status. Use this skill when asked to recap recent coding work, summarize today's sessions, show what was worked on, or produce a daily/weekly session summary. Trigger phrases: "recap", "what did I work on", "daily summary", "session summary", "summarize my sessions", "what sessions did I have today", "coding recap". This is the sessions-only public version — no Slack, Jira, or Granola integration.
ps
Show live Claude Code and Codex sessions as a process tree, grouped by shared ancestor chain up to launchd. Covers Claude CLI sessions, Claude Desktop agent mode, and Codex sessions (CLI TUI + Codex.app threads). Use this skill when asked about the process tree, ancestor lineage, which terminal or tmux window a Claude or Codex session is running in, or what's currently running. Trigger phrases: "process tree", "what's running", "lineage", "ancestor chain", "which terminal is my claude in", "tmux tree", "claude process tree", "codex process tree", "session lineage". macOS-only: on other platforms the command prints "unsupported" and exits 0.