kramme-cc-workflow/skills/kramme:session:search/SKILL.md
Searches prior coding-agent sessions across Claude Code, Codex, and Cursor using safe metadata/skeleton extraction before synthesis. Use when the user asks what was tried before, references previous attempts, or needs related prior-session context for a coding task. Not for summarizing the current session, personal retrospectives, git history, or broad non-coding history searches.
npx skillsauth add abildtoft/kramme-cc-workflow kramme:session:searchInstall 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.
Search prior Claude Code, Codex, and Cursor session history without loading raw transcripts into context. The unit of work is a targeted technical question about prior coding-agent sessions.
scripts/extract-metadata.py, scripts/extract-skeleton.py, and scripts/extract-errors.py first.no relevant prior sessions is a valid result.Parse $ARGUMENTS:
--days N: override the inferred scan window.--platform claude|codex|cursor: restrict discovery to one platform.If no question or topic remains, ask one concise question: "What do you want to know about prior coding-agent sessions?" Stop until the user answers.
Resolve repository and branch context.
REPO_ROOT with git rev-parse --show-toplevel when available, otherwise use the current working directory.REPO_NAME from the last path component of REPO_ROOT.BRANCH with git rev-parse --abbrev-ref HEAD when available. Use it only as a ranking/filtering signal.Choose the scan window.
today, this morning: 1 day.recently, last few days, this week, or no time signal: 7 days.last few weeks, this month: 30 days.last few months, broad feature history: 90 days.--days N is present, use N.Discover sessions and extract metadata.
SKILL_DIR once to the directory containing this SKILL.md, then invoke the scripts by absolute path from the user's current workspace. Do not cd into the skill directory — the scratch output in Step 5 must land in the user's repo, not the plugin tree.
bash "$SKILL_DIR/scripts/discover-sessions.sh" "$REPO_NAME" "$DAYS" [--platform "$PLATFORM"] \
| tr '\n' '\0' \
| xargs -0 python3 "$SKILL_DIR/scripts/extract-metadata.py" --cwd-filter "$REPO_NAME"
_meta line reports files_processed and parse_errors. The error count reports failed attempts across header, tail, and keyword passes, so overlapping passes can count the same malformed record more than once.files_processed is 0, return no relevant prior sessions.Keyword fallback and ranking.
--keyword K1,K2,.... This scans only user/assistant text, not JSON metadata, tool payloads, or reasoning blocks.files_matched: 0, return no relevant prior sessions.match_count, size over 30KB, and recency. Prefer last_ts over ts.Create scratch output.
$REPO_ROOT/.context/session-search/<timestamp>/.Extract selected sessions.
python3 "$SKILL_DIR/scripts/extract-skeleton.py" --output "$SCRATCH/<session-id>.skeleton.txt" < "$SESSION_FILE"
python3 "$SKILL_DIR/scripts/extract-errors.py" --output "$SCRATCH/<session-id>.errors.txt" < "$SESSION_FILE"
Synthesize findings.
Return output.
If no extracted session yields relevant content, return no relevant prior sessions.
Otherwise include:
**Sessions searched**: <count> (<claude> Claude Code, <codex> Codex, <cursor> Cursor) | <date range>
- What was tried before
- What didn't work
- Key decisions
- Related context
Omit empty sections.
Add UNVERIFIED only for parse errors, inaccessible stores, uncertain date ranges, or stale-session caveats.
This skill writes safe extraction artifacts to .context/session-search/<timestamp>/. They are gitignored workspace scratch files, consumed by the current run or sibling agents in the same Conductor workspace. Refresh them by rerunning this skill. Retire them with kramme:workflow-artifacts:cleanup or by deleting the matching .context/session-search/ run directory when the workspace no longer needs prior-session evidence.
references/sources.yaml records the upstream ce-sessions source. Do not load it during normal use unless auditing or updating source attribution.
tools
Requires Linear MCP. Implements one Linear issue end to end, selects applicable code-review, convention, and PR-refactor gates, runs them to bounded convergence, verifies, and optionally opens the PR and iterates on CI and review feedback until green. Use when the user wants a single Linear issue taken from implementation through a clean Pull Request. Not for implementation-only work, SIW-tracked issues, stacked PRs, existing PR updates, or post-merge rollout.
development
Reviews PR and local changes for convention drift and overcaution against documented rules and mined peer-file practice. Use for new patterns, dependencies, abstractions, or defensive complexity that departs from established practice; every finding cites evidence. Supports --inline. Not for general code quality (use kramme:pr:code-review) or spec review (use kramme:siw:spec-audit --team).
testing
Charts huge or foggy initiatives into a local `.context` decision map and resolves one typed frontier ticket per session until the work is ready for SIW or another execution workflow. Use when the route to a destination cannot fit in one agent session or parallel workspaces need coordinated planning state. Not for clear specs, ordinary issue decomposition, implementation, or Linear-native tracking.
development
Investigates a question against primary sources and saves one cited Markdown artifact. Use for reading legwork: official docs/API facts, source-code or spec checks, standards, and first-party service behavior before planning or implementation. Not for making product or architecture decisions, implementing code, broad web search, secondary blog summaries, or uncited answers.