Enhance session reporting and table rendering; add time-range selection in skill metadata - #11
Merged
mouxinqq merged 2 commits intoApr 12, 2026
Conversation
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
--start/--endmode.Description
.claude/skills/stat-cache-hitrate/SKILL.md) to add--start/--endtime-range mode, require discrete AskUserQuestion options for analysis modes, and clarify output and field names in the session detail description.session_analysis.pyto includefirst_ts,last_ts, andprefill_url_countfor each session row returned bycompute_session_details.stat_cache_hitrate.pyby replacing the simple Markdown header/row construction with a width-aware renderer that pads columns and supports right alignment viaalign_right._seq_label,_extract_seq_num, and_summarize_id_type_rangesto produce compact id-type range summaries and consistent sequence IDs for sessions shown in reports.stat_cache_hitrate.pyto: compute and display overall analysis time range, summarize contiguous id-type ranges, includepurl_cntandavg-hitcolumns in compact and full tables, replace some column names for clarity, and include per-session time ranges in the switch details section.Testing
python3 .claude/skills/stat-cache-hitrate/scripts/stat_cache_hitrate.py sample.log --tail 100and verified the script completed and produced theskill_output/stat-cache-hitrate/report files without exceptions.Codex Task