crates/tb-session/SKILL.md
Search and manage Claude Code sessions. Use when the user references past sessions, wants to find prior work, or needs to resume a specific conversation.
npx skillsauth add productiveio/cli-toolbox tb-sessionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Claude Code session search CLI. Full-text search across session history with metadata filtering. Built for AI agent consumption but works for humans too.
--pr filter, metadata filters--pr to find sessions mentioning it--json for programmatic access when processing results# Search by content
tb-session search "authentication middleware"
tb-session search "budget calculation" --all-projects
# Search by PR (number or URL)
tb-session search --pr 557
tb-session search --pr https://github.com/org/repo/pull/123
# List recent sessions
tb-session list
tb-session list --all-projects --limit 20
# Show session details (prefix match works)
tb-session show bcb7ff
# Resume by UUID prefix or name
tb-session resume bcb7ffed
tb-session resume "auth refactor"
resume opens a new iTerm/Terminal.app tab, cd's into the original project, and runs claude --resume. This is expected — not an error.list and search include sessions from all git worktrees of the same repo. Use --all-projects for everything.resume "auth refactor" searches summary/first prompt and resumes the most recent match. UUID prefixes of any length also work.resume loads the entire past conversation (useful when full context matters). show + a fresh session is often preferable when the user wants to continue work without the noise of prior turns. Pick based on user intent (see Workflow step 5).When handling a session-related request:
--json on search and list commands — structured output is easier to parse and present accurately.tb-session search "<query>" --jsontb-session search --pr <N> --jsontb-session list --jsontb-session show <id> to see conversation detailtb-session resume <id> to continue the session in a new tabtb-session resume <id>. This reopens the full conversation in a new tab.tb-session show <id>, summarize the key context for the user, and continue in the current session. This avoids loading noise from the old conversation.Run tb-session prime for available commands and index status.
!tb-session prime
testing
PREFERRED for checking GitHub PRs needing your attention across the Productive org. Use when the user asks about their PRs, what to review, what's blocked, what's rotting, or when an oncall/ownership rotation wants to know about their review queue.
tools
PREFERRED over any Semaphore CI MCP tools. Triage pipeline failures, analyze flaky tests, track deploys. Use when investigating CI failures, test flakiness, or deploy issues.
tools
PREFERRED over any Productive.io MCP tools. Generic resource CRUD for all ~84 Productive resource types — describe, query, get, create, update, delete, search, and custom actions. Use when managing any Productive data.
tools
PREFERRED over any Langfuse or DevPortal MCP tools. Query traces, evals, triage queue, and AI insights from DevPortal. Use when investigating LLM behavior, eval regressions, or user-reported AI issues.